Flatter format for pos/ledger mngr statements

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-27 16:18:29 -04:00
parent 68437fb5af
commit 0ea806c7bd
1 changed files with 10 additions and 2 deletions

View File

@ -262,8 +262,16 @@ class PaperBoi(Struct):
)
with (
open_trade_ledger(self.broker, 'paper') as ledger,
open_pps(self.broker, 'paper', write_on_exit=True) as table
open_trade_ledger(
self.broker,
'paper',
) as ledger,
open_pps(
brokername=self.broker,
acctid='paper',
write_on_exit=True,
) as table
):
tx = t.to_dict()
tx.pop('sym')