Flatter format for pos/ledger mngr statements

rekt_pps
Tyler Goodlet 2023-03-27 16:18:29 -04:00
parent 4494acbc01
commit 2cb59fe450
1 changed files with 10 additions and 2 deletions

View File

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