From 15aba154f23769365b80c80dce595ce3781e6389 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 9 Sep 2021 10:33:52 -0400 Subject: [PATCH] Return account name in next order info --- piker/clearing/_allocate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/clearing/_allocate.py b/piker/clearing/_allocate.py index 7549b3c2..999f9ff9 100644 --- a/piker/clearing/_allocate.py +++ b/piker/clearing/_allocate.py @@ -129,7 +129,7 @@ class Allocator(BaseModel): return self.units_limit def account_name(self) -> str: - return self.accounts.inverse[self.account] + return self.accounts.inverse[self.account] def next_order_info( self, @@ -224,6 +224,9 @@ class Allocator(BaseModel): # TODO: incorporate multipliers for relevant derivatives 'fiat_size': round(order_size * price, ndigits=2), 'slots_used': slots_used, + + # update line LHS label with account name + 'account': self.account_name(), } def slots_used(