fix sell in simulation trader
This commit is contained in:
parent
ba943ce9c6
commit
89b8ffe767
@ -90,7 +90,7 @@ class SimulationTrader(BaseTrader):
|
|||||||
|
|
||||||
# 更新持仓管理器
|
# 更新持仓管理器
|
||||||
position_manager.update_position(
|
position_manager.update_position(
|
||||||
strategy_name, code, ORDER_DIRECTION_SELL, amount
|
code, ORDER_DIRECTION_SELL, amount
|
||||||
)
|
)
|
||||||
order_id = random.randint(1, 999999) # 使用随机函数生成小于1000000的随机整数
|
order_id = random.randint(1, 999999) # 使用随机函数生成小于1000000的随机整数
|
||||||
position_manager.add_pending_order(
|
position_manager.add_pending_order(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user