remove 'enabled' property in exchange config
This commit is contained in:
parent
b9eb266236
commit
95e5c2e6c1
@ -15,7 +15,6 @@
|
||||
},
|
||||
"exchange": {
|
||||
"name": "bittrex",
|
||||
"enabled": true,
|
||||
"key": "key",
|
||||
"secret": "secret",
|
||||
"pair_whitelist": [
|
||||
|
@ -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
|
||||
|
@ -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': [
|
||||
|
Loading…
Reference in New Issue
Block a user