Update icons from pps at order mode startup

chart_mod_breakup
Tyler Goodlet 2021-09-14 12:26:26 -04:00
parent 9c60aa1928
commit 4afafce297
1 changed files with 2 additions and 8 deletions

View File

@ -665,15 +665,9 @@ async def open_order_mode(
)
order_pane.set_accounts(list(trackers.keys()))
# set all entries as unavailable at startup and then fill out
# positions and ready icons
# order_pane.update_accounts_icon('unavailable')
# update pp icons
for name, tracker in trackers.items():
if tracker.live_pp.size > 0:
order_pane.update_accounts_icon('long_pp', [name])
elif tracker.live_pp.size < 0:
order_pane.update_accounts_icon('short_pp', [name])
order_pane.update_account_icons({name: tracker.live_pp})
# top level abstraction which wraps all this crazyness into
# a namespace..