Skip to main content

PreparePositionAdjustmentResult

Result payload for a successful prepare-adjustment job.

FieldTypeRequiredNullableDefaultDescription
ExecPlanIdintYesNoLive execution plan id created for this preparation.
OperationPositionAdjustmentOperationYesNoAdjustment operation.
ConditionstrYesNoCondition identifier/expression used for selecting and validating the adjustment.
PositionIdintYesNoLive position id being adjusted.
PositionNamestrYesNoPosition name at the time of preparation.
StrategyIdintYesNoLive strategy id.
StrategyNamestrYesNoStrategy name at the time of preparation.
BrokerAccountIdstrYesNoBroker account id this preparation targets.
OrderLegsdict[str, LiveLeg]YesNoLegs involved in the prepared order(s), 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.
QtyMultiplierDecimalNoYesOptional quantity multiplier resolved by the server for this preparation.
AbortConditionslist[ConditionEvaluation]NoYesOptional abort condition evaluations (if included by the server).
AdjustmentAllowedboolNoYesOptional flag indicating whether the adjustment is allowed according to evaluated checks/conditions.