PreparePositionExitResult
Result payload for a successful prepare-exit job.
| Field | Type | Required | Nullable | Default | Description |
|---|---|---|---|---|---|
ExecPlanId | int | Yes | No | Live execution plan id created for this preparation. | |
PositionId | int | Yes | No | Live position id being exited. | |
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. | |
PositionLegs | dict[str, LiveLeg] | Yes | No | Position legs 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. |