paper: always sync pps.toml state on startup
parent
e98ef3c512
commit
1408ba80aa
|
@ -473,6 +473,7 @@ async def handle_order_requests(
|
||||||
BrokerdOrderAck(
|
BrokerdOrderAck(
|
||||||
oid=order.oid,
|
oid=order.oid,
|
||||||
reqid=reqid,
|
reqid=reqid,
|
||||||
|
account='paper'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -564,6 +565,10 @@ async def trades_dialogue(
|
||||||
['paper'],
|
['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,
|
# exit early since no fqme was passed,
|
||||||
# normally this case is just to load
|
# normally this case is just to load
|
||||||
# positions "offline".
|
# positions "offline".
|
||||||
|
|
Loading…
Reference in New Issue