From 32f931ca25b08b14492bc28a38551e6a33b8e643 Mon Sep 17 00:00:00 2001 From: Joe Schr <8218910+TheJoeSchr@users.noreply.github.com> Date: Tue, 28 May 2024 20:04:15 +0200 Subject: [PATCH] Revert "`refresh_latest_trades`: remove "-cached" from trades pair files" This reverts commit 839827c0d712aabfb4e9a24747d37f436541855d. --- freqtrade/exchange/exchange.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 8ad901a9c..28d1d5f55 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2622,7 +2622,9 @@ class Exchange: else: until = int(timeframe_to_prev_date(timeframe).timestamp()) * 1000 - all_stored_ticks_df = data_handler.trades_load(f"{pair}", self.trading_mode) + all_stored_ticks_df = data_handler.trades_load( + f"{pair}-cached", self.trading_mode + ) if not all_stored_ticks_df.empty: if all_stored_ticks_df.iloc[0]["timestamp"] <= first_candle_ms: @@ -2667,7 +2669,7 @@ class Exchange: ) results_df[(pair, timeframe, candle_type)] = trades_df data_handler.trades_store( - f"{pair}", trades_df[DEFAULT_TRADES_COLUMNS], self.trading_mode + f"{pair}-cached", trades_df[DEFAULT_TRADES_COLUMNS], self.trading_mode ) else: