Skip to main content

TradesSummary

dataclass
A point-in-time roll-up of a group of trades: their sizes, notionals, PnL and greeks. Built by Strategy.calculate_trades_summary, which is how a strategy reads a multi-leg structure as one position. The greeks and iv default to None and are filled from the legs that carry them, so a futures or spot leg contributes 0 to a greek total and drops out of the iv average. Attributes
Last modified on November 4, 2026