Flatter format for pos/ledger mngr statements
parent
4494acbc01
commit
2cb59fe450
|
@ -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