From d5d2288ba84f2774935b2f866ca6faa8da0aac66 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 07 七月 2025 18:38:05 +0800 Subject: [PATCH] bug修复/策略完善 --- strategy/strategy_script_v6.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/strategy/strategy_script_v6.py b/strategy/strategy_script_v6.py index a6bd81d..59f1d2f 100644 --- a/strategy/strategy_script_v6.py +++ b/strategy/strategy_script_v6.py @@ -175,6 +175,8 @@ if big_order_money < threshold_money: return False, f"({round(big_order_money / 1e4, 2)}涓�/{round(threshold_money / 1e4, 2)}涓�)澶у崟閲戦涓嶈冻" - return True, f" \n\t澶у崟淇℃伅锛歿round(big_order_money / 1e4, 2)}涓囷紙涔帮細{round(big_order_money / 1e4, 2)}涓� 鍗栵細{round(big_sell_order_money / 1e4, 2)}涓囷級/{round(threshold_money / 1e4, 2)}涓� \n\t閲忓淇℃伅锛歿sv.浠婃棩閲忓淇℃伅}\n\t浠婃棩鏈�楂樹环:{sv.浠婃棩鏈�楂樹环淇℃伅} \n\t5鏃ユ渶楂樹环锛歿sv.鏃ユ渶楂樹环_5}", f"\n\t鏉垮潡淇℃伅锛歿[(p, sv.寮�鐩樺暒鏈�姝f澘鍧楁定鍋�.get(p)) for p in can_buy_plates]}", can_buy_plates + big_order_info = f"{round(big_order_money / 1e4, 2)}w/{round(threshold_money / 1e4, 2)}w" + + return True, f" \n\t澶у崟淇℃伅锛歿round(big_order_money / 1e4, 2)}涓囷紙涔帮細{round(big_order_money / 1e4, 2)}涓� 鍗栵細{round(big_sell_order_money / 1e4, 2)}涓囷級/{round(threshold_money / 1e4, 2)}涓� \n\t閲忓淇℃伅锛歿sv.浠婃棩閲忓淇℃伅}\n\t浠婃棩鏈�楂樹环:{sv.浠婃棩鏈�楂樹环淇℃伅} \n\t5鏃ユ渶楂樹环锛歿sv.鏃ユ渶楂樹环_5}", f"\n\t鏉垮潡淇℃伅锛歿[(p, sv.寮�鐩樺暒鏈�姝f澘鍧楁定鍋�.get(p)) for p in can_buy_plates]}", {p: sv.寮�鐩樺暒鏈�姝f澘鍧楁定鍋�.get(p) for p in can_buy_plates}, big_order_info compute_result = __can_buy() -- Gitblit v1.8.0