Make order mode expect account names in startup pp msgs
parent
c6cc592f4e
commit
8ec31d9256
|
@ -577,8 +577,8 @@ async def open_order_mode(
|
||||||
for msg in pp_msgs:
|
for msg in pp_msgs:
|
||||||
|
|
||||||
log.info(f'Loading pp for {symkey}:\n{pformat(msg)}')
|
log.info(f'Loading pp for {symkey}:\n{pformat(msg)}')
|
||||||
account_value = msg.get('account')
|
account_name = msg.get('account')
|
||||||
account_name = accounts.inverse.get(account_value)
|
account_value = accounts.get(account_name)
|
||||||
if not account_name and account_value == 'paper':
|
if not account_name and account_value == 'paper':
|
||||||
account_name = 'paper'
|
account_name = 'paper'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue