braverock / blotter

blotter provides transaction infrastructure for defining transactions, portfolios and accounts for trading systems and simulation. Provides portfolio support for multi-asset class and multi-currency portfolios. Actively maintained and developed.
112 stars 49 forks source link

question: how to get a series of Pos.Qty via a function? #75

Closed ssh352 closed 5 years ago

ssh352 commented 5 years ago
screen shot 2019-01-30 at 2 58 48 pm

getTxns excludes a few columns from txns, though Pos.Qty is there.

jaymon0703 commented 5 years ago

Hi @ssh352 have you looked at perTradeStats()? Cumsum of Txn.Qty is also an option if you want to use the output of getTxns().

ssh352 commented 5 years ago

thank you both work~