From f8b35dc5b48326bc5ca6307adbf4bb46acd8fd4f Mon Sep 17 00:00:00 2001 From: WCKD Date: Thu, 8 Sep 2022 17:14:52 +0300 Subject: [PATCH] added 1s timeframe changes and requirements --- freqtrade/exchange/exchange.py | 3 --- requirements.txt | 2 +- tests/exchange/test_exchange.py | 7 +------ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 33a56c530..684d32a31 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -590,9 +590,6 @@ class Exchange: raise OperationalException( f"Invalid timeframe '{timeframe}'. This exchange supports: {self.timeframes}") - if timeframe and timeframe_to_minutes(timeframe) < 1: - raise OperationalException("Timeframes < 1m are currently not supported by Freqtrade.") - def validate_ordertypes(self, order_types: Dict) -> None: """ Checks if order-types configured in strategy/config are supported diff --git a/requirements.txt b/requirements.txt index fdbe6ac28..aeafeb8dd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ numpy==1.23.2 pandas==1.4.4 pandas-ta==0.3.14b -ccxt==1.93.3 +ccxt==1.93.14 # Pin cryptography for now due to rust build errors with piwheels cryptography==37.0.4 aiohttp==3.8.1 diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 71690ecdf..ed1fb6341 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -907,12 +907,7 @@ def test_validate_timeframes_failed(default_conf, mocker): with pytest.raises(OperationalException, match=r"Invalid timeframe '3m'. This exchange supports.*"): Exchange(default_conf) - default_conf["timeframe"] = "15s" - - with pytest.raises(OperationalException, - match=r"Timeframes < 1m are currently not supported by Freqtrade."): - Exchange(default_conf) - + def test_validate_timeframes_emulated_ohlcv_1(default_conf, mocker): default_conf["timeframe"] = "3m"