Make order mode expect account names in startup pp msgs

fsp_feeds
Tyler Goodlet 2021-09-13 08:22:42 -04:00
parent c6cc592f4e
commit 8ec31d9256
1 changed files with 2 additions and 2 deletions

View File

@ -577,8 +577,8 @@ async def open_order_mode(
for msg in pp_msgs:
log.info(f'Loading pp for {symkey}:\n{pformat(msg)}')
account_value = msg.get('account')
account_name = accounts.inverse.get(account_value)
account_name = msg.get('account')
account_value = accounts.get(account_name)
if not account_name and account_value == 'paper':
account_name = 'paper'