remove 'enabled' property in exchange config
This commit is contained in:
parent
b9eb266236
commit
95e5c2e6c1
@ -15,7 +15,6 @@
|
|||||||
},
|
},
|
||||||
"exchange": {
|
"exchange": {
|
||||||
"name": "bittrex",
|
"name": "bittrex",
|
||||||
"enabled": true,
|
|
||||||
"key": "key",
|
"key": "key",
|
||||||
"secret": "secret",
|
"secret": "secret",
|
||||||
"pair_whitelist": [
|
"pair_whitelist": [
|
||||||
|
@ -48,9 +48,6 @@ def init(config: dict) -> None:
|
|||||||
if not exchange_class:
|
if not exchange_class:
|
||||||
raise RuntimeError('Exchange {} is not supported'.format(name))
|
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)
|
EXCHANGE = exchange_class(exchange_config)
|
||||||
|
|
||||||
# Check if all pairs are available
|
# Check if all pairs are available
|
||||||
|
@ -77,7 +77,6 @@ CONF_SCHEMA = {
|
|||||||
'type': 'object',
|
'type': 'object',
|
||||||
'properties': {
|
'properties': {
|
||||||
'name': {'type': 'string'},
|
'name': {'type': 'string'},
|
||||||
'enabled': {'type': 'boolean'},
|
|
||||||
'key': {'type': 'string'},
|
'key': {'type': 'string'},
|
||||||
'secret': {'type': 'string'},
|
'secret': {'type': 'string'},
|
||||||
'pair_whitelist': {
|
'pair_whitelist': {
|
||||||
@ -86,7 +85,7 @@ CONF_SCHEMA = {
|
|||||||
'uniqueItems': True
|
'uniqueItems': True
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'required': ['name', 'enabled', 'key', 'secret', 'pair_whitelist']
|
'required': ['name', 'key', 'secret', 'pair_whitelist']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'anyOf': [
|
'anyOf': [
|
||||||
|
Loading…
Reference in New Issue
Block a user