Merge pull request #13 from vertti/more-config-validation
More config validation with JSON schema
This commit is contained in:
commit
089dbb478b
6
utils.py
6
utils.py
@ -13,9 +13,9 @@ _cur_conf = None
|
|||||||
_conf_schema = {
|
_conf_schema = {
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
'properties': {
|
'properties': {
|
||||||
'max_open_trades': {'type': 'integer'},
|
'max_open_trades': {'type': 'integer', 'minimum': 1},
|
||||||
'stake_currency': {'type': 'string'},
|
'stake_currency': {'type': 'string', 'enum': ['BTC', 'ETH', 'USDT']},
|
||||||
'stake_amount': {'type': 'number'},
|
'stake_amount': {'type': 'number', 'minimum': 0.0005},
|
||||||
'dry_run': {'type': 'boolean'},
|
'dry_run': {'type': 'boolean'},
|
||||||
'minimal_roi': {
|
'minimal_roi': {
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
|
Loading…
Reference in New Issue
Block a user