From 086fe05c4d6f89d5eb90085e3fb7293f25860af6 Mon Sep 17 00:00:00 2001 From: guopengfa Date: Fri, 16 Jan 2026 21:35:47 +0800 Subject: [PATCH] =?UTF-8?q?set=20trading=20code=20history=20data=20to=20co?= =?UTF-8?q?nfig(=E7=AD=96=E7=95=A5=E6=89=A7=E8=A1=8C=E6=97=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=85=8D=E7=BD=AE=E6=95=B0=E9=87=8F=E7=9A=84=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E6=95=B0=E6=8D=AE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend_api_python/app/services/trading_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend_api_python/app/services/trading_executor.py b/backend_api_python/app/services/trading_executor.py index a663c39..8728933 100644 --- a/backend_api_python/app/services/trading_executor.py +++ b/backend_api_python/app/services/trading_executor.py @@ -708,7 +708,7 @@ class TradingExecutor: # 2. 检查是否需要更新K线(每个K线周期更新一次,从API拉取) # ============================================ if current_time - last_kline_update_time >= kline_update_interval: - klines = self._fetch_latest_kline(symbol, timeframe, limit=500) + klines = self._fetch_latest_kline(symbol, timeframe, limit=history_limit) if klines and len(klines) >= 2: df = self._klines_to_dataframe(klines) if len(df) > 0: