Add password and uid to config to support exchanges that require them
This commit is contained in:
@@ -51,6 +51,8 @@ def init(config: dict) -> None:
|
||||
_API = getattr(ccxt, name.lower())({
|
||||
'apiKey': exchange_config.get('key'),
|
||||
'secret': exchange_config.get('secret'),
|
||||
'password': exchange_config.get('password'),
|
||||
'uid': exchange_config.get('uid'),
|
||||
})
|
||||
except KeyError:
|
||||
raise OperationalException('Exchange {} is not supported'.format(name))
|
||||
|
||||
@@ -418,6 +418,8 @@ CONF_SCHEMA = {
|
||||
'name': {'type': 'string'},
|
||||
'key': {'type': 'string'},
|
||||
'secret': {'type': 'string'},
|
||||
'password': {'type': 'string'},
|
||||
'uid': {'type': 'string'},
|
||||
'pair_whitelist': {
|
||||
'type': 'array',
|
||||
'items': {
|
||||
|
||||
@@ -48,6 +48,8 @@ def default_conf():
|
||||
"enabled": True,
|
||||
"key": "key",
|
||||
"secret": "secret",
|
||||
"password": "password",
|
||||
"uid": "uid",
|
||||
"pair_whitelist": [
|
||||
"ETH/BTC",
|
||||
"TKN/BTC",
|
||||
|
||||
Reference in New Issue
Block a user