PreparePositionExitResult
Completed result for a position-exit preparation job on the Control Hub endpoint.
| Field | Type | Required | Nullable | Default | Description |
|---|---|---|---|---|---|
ExecPlanId | int | Yes | No | Live execution plan id created for the prepared exit. | |
PositionId | int | Yes | No | Existing live position id being exited. | |
PositionName | str | Yes | No | Existing live position name. | |
StrategyId | int | Yes | No | Strategy id associated with the position. | |
StrategyName | str | Yes | No | Strategy name at preparation time. | |
BrokerAccountId | str | Yes | No | Broker account id used for preparation. | |
OrderLegs | list[ExecPlanLegRef] | Yes | No | Stable execution-plan leg references to use for orders, paper fills, and per-leg quote data. | |
LegGroups | dict[int, list[str]] | Yes | No | Execution-plan leg ids grouped by leg group id. | |
LegGroupQtys | dict[int, ExecutionPlanLegGroupQtys] | Yes | No | Planned signed leg quantities and group quantities keyed by leg group id. | |
Vars | dict[str, Decimal] | Yes | No | Prepared strategy variables keyed by variable name. | |
LegGreeks | dict[str, LiveGreeks] | Yes | No | Live greeks keyed by execution-plan leg id. | |
LegPrices | dict[str, LivePrices] | Yes | No | Live prices keyed by execution-plan leg id. | |
LegGroupGreeks | dict[int, LiveGreeks] | Yes | No | Aggregate greeks keyed by leg group id. | |
LegGroupPrices | dict[int, LivePrices] | Yes | No | Aggregate prices keyed by leg group id. | |
PositionGreeks | LiveGreeks | Yes | No | Aggregate greeks after the prepared exit. | |
PositionPrice | LivePrices | Yes | No | Aggregate price for the prepared exit. | |
UnderlyingPrice | LivePrices | Yes | No | Latest underlying price snapshot used during preparation. |