fix bug
This commit is contained in:
@@ -85,7 +85,7 @@ def sync_account_state(
|
||||
) -> None:
|
||||
"""初次持仓作为底仓;后续只按成交减仓,避免延迟快照删除持仓。"""
|
||||
zt_deals = [d for d in deals if d.get_local_order_id.startswith('zt-')]
|
||||
state.sync_deals(zt_deals, archived=initialize)
|
||||
state.sync_deals(zt_deals)
|
||||
if initialize:
|
||||
state.sync_state(positions)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user