Flatter format for pos/ledger mngr statements
parent
68437fb5af
commit
0ea806c7bd
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue