Initializing CCXT with rate_limit parameter optional (default to false)

This commit is contained in:
misagh 2018-07-31 14:19:16 +02:00
parent 1044d15b17
commit be1298dbd2
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
"name": "bittrex",
"key": "your_exchange_key",
"secret": "your_exchange_secret",
"ccxt_rate_limit": false,
"pair_whitelist": [
"ETH/BTC",
"LTC/BTC",

View File

@ -91,7 +91,7 @@ class Exchange(object):
'secret': exchange_config.get('secret'),
'password': exchange_config.get('password'),
'uid': exchange_config.get('uid', ''),
'enableRateLimit': True,
'enableRateLimit': exchange_config.get('ccxt_rate_limit', False),
})
except (KeyError, AttributeError):
raise OperationalException(f'Exchange {name} is not supported')