From 89f860904270b6cdc20b5e7e90a7c12b5b2bf8e3 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 25 四月 2025 09:53:15 +0800 Subject: [PATCH] bug修复 --- api/outside_api_command_callback.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py index 51fac20..b97f5ea 100644 --- a/api/outside_api_command_callback.py +++ b/api/outside_api_command_callback.py @@ -1314,7 +1314,10 @@ if latest_trading_date: volumes_data = HistoryKDataManager().get_history_bars(code, latest_trading_date) if volumes_data: - is_new_top = code_nature_analyse.is_new_top(code, gpcode_manager.get_limit_up_price_by_preprice(code, volumes_data[-1]["close"]), volumes_data) + is_new_top = code_nature_analyse.is_new_top(code, + gpcode_manager.get_limit_up_price_by_preprice(code, + volumes_data[0]["close"]), + volumes_data) data = { "blocks": {}, -- Gitblit v1.8.0