diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b1bdee9c..87c25b821 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,7 +44,7 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.15.0' + rev: 'v0.15.1' hooks: - id: ruff - id: ruff-format diff --git a/freqtrade/exchange/binance.py b/freqtrade/exchange/binance.py index aa1aa3e68..6fab1afe0 100644 --- a/freqtrade/exchange/binance.py +++ b/freqtrade/exchange/binance.py @@ -48,6 +48,7 @@ class Binance(Exchange): "has_delisting": True, } _ft_has_futures: FtHas = { + "ohlcv_candle_limit": 499, "funding_fee_candle_limit": 1000, "stoploss_order_types": {"limit": "stop", "market": "stop_market"}, "stoploss_blocks_assets": False, # Stoploss orders do not block assets diff --git a/tests/exchange_online/conftest.py b/tests/exchange_online/conftest.py index 272055b0f..6f1f86c81 100644 --- a/tests/exchange_online/conftest.py +++ b/tests/exchange_online/conftest.py @@ -44,7 +44,7 @@ EXCHANGES: dict[str, TestExchangeOnlineSetup] = { "candle_count": 1000, "futures": True, "futures_pair": "BTC/USDT:USDT", - "candle_count_futures": 1500, + "candle_count_futures": 499, "hasQuoteVolumeFutures": True, "leverage_tiers_public": False, "leverage_in_spot_market": False,