From 89b8ffe76703072bd5e9f741fa5eae12c1761bd4 Mon Sep 17 00:00:00 2001 From: zhiyong Date: Sat, 10 May 2025 23:22:29 +0800 Subject: [PATCH] fix sell in simulation trader --- src/simulation/simulation_trader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/simulation_trader.py b/src/simulation/simulation_trader.py index af1ee0a..cd837e6 100644 --- a/src/simulation/simulation_trader.py +++ b/src/simulation/simulation_trader.py @@ -90,7 +90,7 @@ class SimulationTrader(BaseTrader): # 更新持仓管理器 position_manager.update_position( - strategy_name, code, ORDER_DIRECTION_SELL, amount + code, ORDER_DIRECTION_SELL, amount ) order_id = random.randint(1, 999999) # 使用随机函数生成小于1000000的随机整数 position_manager.add_pending_order(