Merge pull request #13 from vertti/more-config-validation

More config validation with JSON schema
This commit is contained in:
Michael Egger 2017-09-08 10:33:39 +02:00 committed by GitHub
commit 089dbb478b
1 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,9 @@ _cur_conf = None
_conf_schema = {
'type': 'object',
'properties': {
'max_open_trades': {'type': 'integer'},
'stake_currency': {'type': 'string'},
'stake_amount': {'type': 'number'},
'max_open_trades': {'type': 'integer', 'minimum': 1},
'stake_currency': {'type': 'string', 'enum': ['BTC', 'ETH', 'USDT']},
'stake_amount': {'type': 'number', 'minimum': 0.0005},
'dry_run': {'type': 'boolean'},
'minimal_roi': {
'type': 'object',