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

View File

@ -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',