Skip to main content

GetPositionResult

Detailed position view (legs, leg groups, vars, and optional market data blocks).

FieldTypeRequiredNullableDefaultDescription
PositionLivePositionNoNoPosition details.
Varsdict[str, Decimal]NoNoCurrent strategy/position variables (var name → value).
PositionStrategyDefinitionPositionStrategyDefinitionSnapshotNoYesPosition-specific strategy definition captured at entry time. Null for legacy/discretionary positions.
LegGreeksdict[int, LiveGreeks]NoNoPer-leg greeks keyed by live leg id.
LegPricesdict[int, LivePrices]NoNoPer-leg prices keyed by live leg id.
PositionLegsdict[int, LiveLeg]YesNoPosition legs keyed by live leg id.
LegGroupsdict[int, list[int]]YesNoLeg groups keyed by leg group id. Values are lists of live leg ids in that group.
LegGroupQtysdict[int, PositionLegGroupQtys]YesNoPer-leg-group quantities (group qty and per-leg quantities) keyed by leg group id.
LegGroupGreeksdict[int, LiveGreeks]NoNoPer-leg-group greeks keyed by leg group id.
LegGroupPricesdict[int, LivePrices]NoNoPer-leg-group prices keyed by leg group id.
PositionGreeksLiveGreeksNoNoAggregated greeks for the position.
PositionPriceLivePricesNoNoAggregated prices for the position.