From be1298dbd219bca61b13457a00b1d28ffcb195fa Mon Sep 17 00:00:00 2001 From: misagh Date: Tue, 31 Jul 2018 14:19:16 +0200 Subject: [PATCH] Initializing CCXT with rate_limit parameter optional (default to false) --- config.json.example | 1 + freqtrade/exchange/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.json.example b/config.json.example index e8473e919..af496685c 100644 --- a/config.json.example +++ b/config.json.example @@ -17,6 +17,7 @@ "name": "bittrex", "key": "your_exchange_key", "secret": "your_exchange_secret", + "ccxt_rate_limit": false, "pair_whitelist": [ "ETH/BTC", "LTC/BTC", diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index 423e38246..f011161be 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -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')