Add password and uid to config to support exchanges that require them
This commit is contained in:
parent
251c86197a
commit
995345da28
@ -10,8 +10,10 @@
|
||||
},
|
||||
"exchange": {
|
||||
"name": "binance",
|
||||
"key": "your_echange_key",
|
||||
"secret": "your_echange_secret",
|
||||
"key": "your_exchange_key",
|
||||
"secret": "your_exchange_secret",
|
||||
"password": "your_exchange_password",
|
||||
"uid": "your_exchange_uid",
|
||||
"pair_whitelist": [
|
||||
"ETH/BTC",
|
||||
"LTC/BTC",
|
||||
|
@ -27,6 +27,8 @@ The table below will list all configuration parameters.
|
||||
| `exchange.name` | bittrex | Yes | Name of the exchange class to use.
|
||||
| `exchange.key` | key | No | API key to use for the exchange. Only required when you are in production mode.
|
||||
| `exchange.secret` | secret | No | API secret to use for the exchange. Only required when you are in production mode.
|
||||
| `exchange.password` | password | No | Password to use for the exchange. Only required when you are in production mode, and only by some exchanges.
|
||||
| `exchange.uid` | uid | No | User ID to use for the exchange. Only required when you are in production mode, and only by some exchanges.
|
||||
| `exchange.pair_whitelist` | [] | No | List of currency to use by the bot. Can be overrided with `--dynamic-whitelist` param.
|
||||
| `exchange.pair_blacklist` | [] | No | List of currency the bot must avoid. Useful when using `--dynamic-whitelist` param.
|
||||
| `experimental.use_sell_signal` | false | No | Use your sell strategy in addition of the `minimal_roi`.
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user