Add password and uid to config to support exchanges that require them

This commit is contained in:
enenn
2018-03-12 19:56:49 +01:00
parent 251c86197a
commit 995345da28
5 changed files with 12 additions and 2 deletions

View File

@@ -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))

View File

@@ -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': {

View File

@@ -48,6 +48,8 @@ def default_conf():
"enabled": True,
"key": "key",
"secret": "secret",
"password": "password",
"uid": "uid",
"pair_whitelist": [
"ETH/BTC",
"TKN/BTC",