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