remove 'enabled' property in exchange config

This commit is contained in:
xsmile 2017-10-07 17:36:48 +02:00
parent b9eb266236
commit 95e5c2e6c1
3 changed files with 1 additions and 6 deletions

View File

@ -15,7 +15,6 @@
},
"exchange": {
"name": "bittrex",
"enabled": true,
"key": "key",
"secret": "secret",
"pair_whitelist": [

View File

@ -48,9 +48,6 @@ def init(config: dict) -> None:
if not exchange_class:
raise RuntimeError('Exchange {} is not supported'.format(name))
if not exchange_config.get('enabled', False):
raise RuntimeError('Exchange {} is disabled'.format(name))
EXCHANGE = exchange_class(exchange_config)
# Check if all pairs are available

View File

@ -77,7 +77,6 @@ CONF_SCHEMA = {
'type': 'object',
'properties': {
'name': {'type': 'string'},
'enabled': {'type': 'boolean'},
'key': {'type': 'string'},
'secret': {'type': 'string'},
'pair_whitelist': {
@ -86,7 +85,7 @@ CONF_SCHEMA = {
'uniqueItems': True
}
},
'required': ['name', 'enabled', 'key', 'secret', 'pair_whitelist']
'required': ['name', 'key', 'secret', 'pair_whitelist']
}
},
'anyOf': [