Skip to main content

aggregate_per_pulse_to_daily

Group per-pulse values by date and collapse each group. Parameters Returns

trades_to_dataframe

One row per trade, the serialized trade fields as columns. Parameters Returns

aggregate_trades

Roll a flat list of trades up into one row per multi-leg structure. Legs are grouped by group_by (trades opened on the same pulse are one structure by default), quantities and notionals are summed, and the leg prices are combined into a single structure price per unit: each price is weighted by its signed leg quantity, summed, then divided by the smallest absolute leg quantity, so a ratio spread keeps its ratio. Only the absolute PnL and notional histories are summed element-wise into group-level histories: the price and percentage histories are recombined as ratios and datetimes is the union of the legs’. The daily_* columns collapse those to one value per calendar date (summed for absolute PnL, compounded for percentages). The pnl_pct column is against the structure’s own open notional, not against equity, so it is not the same basis as TradesSummary.pnl_pct. Parameters Returns
Last modified on November 4, 2026