From 96c8908e9cc758c44607f7e935cde42d07041df4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 12 Oct 2021 10:34:54 -0400 Subject: [PATCH] Comment on default account load order --- piker/ui/order_mode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 4c971fe2..594f0826 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -571,7 +571,10 @@ async def open_order_mode( # first account listed is the one we select at startup # (aka order based selection). - pp_account = next(iter(accounts.keys())) if accounts else 'paper' + pp_account = next( + # choose first account based on line order from `brokers.toml`. + iter(accounts.keys()) + ) if accounts else 'paper' # NOTE: requires the backend exactly specifies # the expected symbol key in its positions msg.