Skip to main content

PreparePositionExitResult

Result payload for a successful prepare-exit job.

FieldTypeRequiredNullableDefaultDescription
ExecPlanIdintYesNoLive execution plan id created for this preparation.
PositionIdintYesNoLive position id being exited.
PositionNamestrYesNoPosition name at the time of preparation.
StrategyIdintYesNoLive strategy id.
StrategyNamestrYesNoStrategy name at the time of preparation.
BrokerAccountIdstrYesNoBroker account id this preparation targets.
PositionLegsdict[str, LiveLeg]YesNoPosition legs keyed by leg name.
LegGroupsdict[int, list[str]]YesNoLeg groups keyed by leg group id. Values are lists of leg names in that group.
LegGroupQtysdict[int, LegGroupQtys]YesNoPer-leg-group quantities keyed by leg group id.
Varsdict[str, Decimal]YesNoVariables used/produced during preparation (var name → value).
LegGreeksdict[str, LiveGreeks]YesNoPer-leg greeks keyed by leg name.
LegPricesdict[str, LivePrices]YesNoPer-leg prices keyed by leg name.
LegGroupGreeksdict[int, LiveGreeks]YesNoPer-leg-group greeks keyed by leg group id.
LegGroupPricesdict[int, LivePrices]YesNoPer-leg-group prices keyed by leg group id.
PositionGreeksLiveGreeksYesNoAggregated greeks for the position.
PositionPriceLivePricesYesNoAggregated prices for the position.
UnderlyingPriceLivePricesYesNoUnderlying prices snapshot used during preparation.