remove 'enabled' property in exchange config
This commit is contained in:
@@ -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': [
|
||||
|
Reference in New Issue
Block a user