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(