paper: always sync pps.toml state on startup

rekt_pps
Tyler Goodlet 2023-04-04 14:10:12 -04:00
parent 2806a4c0e5
commit 33a78366ff
1 changed files with 5 additions and 0 deletions

View File

@ -473,6 +473,7 @@ async def handle_order_requests(
BrokerdOrderAck(
oid=order.oid,
reqid=reqid,
account='paper'
)
)
@ -564,6 +565,10 @@ async def trades_dialogue(
['paper'],
))
# write new positions state in case ledger was
# newer then that tracked in pps.toml
ppt.write_config()
# exit early since no fqme was passed,
# normally this case is just to load
# positions "offline".