PreparePositionAdjustmentResult
Result payload for a successful prepare-adjustment job.
| Field | Type | Required | Nullable | Default | Description |
|---|---|---|---|---|---|
ExecPlanId | int | Yes | No | Live execution plan id created for this preparation. | |
Operation | PositionAdjustmentOperation | Yes | No | Adjustment operation. | |
Condition | str | Yes | No | Condition identifier/expression used for selecting and validating the adjustment. | |
PositionId | int | Yes | No | Live position id being adjusted. | |
PositionName | str | Yes | No | Position name at the time of preparation. | |
StrategyId | int | Yes | No | Live strategy id. | |
StrategyName | str | Yes | No | Strategy name at the time of preparation. | |
BrokerAccountId | str | Yes | No | Broker account id this preparation targets. | |
OrderLegs | dict[str, LiveLeg] | Yes | No | Legs involved in the prepared order(s), keyed by leg name. | |
LegGroups | dict[int, list[str]] | Yes | No | Leg groups keyed by leg group id. Values are lists of leg names in that group. | |
LegGroupQtys | dict[int, LegGroupQtys] | Yes | No | Per-leg-group quantities keyed by leg group id. | |
Vars | dict[str, Decimal] | Yes | No | Variables used/produced during preparation (var name → value). | |
LegGreeks | dict[str, LiveGreeks] | Yes | No | Per-leg greeks keyed by leg name. | |
LegPrices | dict[str, LivePrices] | Yes | No | Per-leg prices keyed by leg name. | |
LegGroupGreeks | dict[int, LiveGreeks] | Yes | No | Per-leg-group greeks keyed by leg group id. | |
LegGroupPrices | dict[int, LivePrices] | Yes | No | Per-leg-group prices keyed by leg group id. | |
PositionGreeks | LiveGreeks | Yes | No | Aggregated greeks for the position. | |
PositionPrice | LivePrices | Yes | No | Aggregated prices for the position. | |
UnderlyingPrice | LivePrices | Yes | No | Underlying prices snapshot used during preparation. | |
QtyMultiplier | Decimal | No | Yes | Optional quantity multiplier resolved by the server for this preparation. | |
AbortConditions | list[ConditionEvaluation] | No | Yes | Optional abort condition evaluations (if included by the server). | |
AdjustmentAllowed | bool | No | Yes | Optional flag indicating whether the adjustment is allowed according to evaluated checks/conditions. |