RiskGraphLegGridRow
Leg metadata and live values shown alongside a Risk Graph.
| Field | Type | Required | Nullable | Default | Description |
|---|---|---|---|---|---|
LegKey | str | Yes | No | Stable leg key within the payload. Matches RiskGraphSeries.SeriesKey for the corresponding leg series. | |
LegId | int | No | Yes | Persisted live leg id. Null for ad hoc combo legs or other non-persisted legs. | |
PositionId | int | No | Yes | Persisted live position id that owns the leg. Null when the leg is not tied to a persisted position. | |
PositionName | str | No | Yes | Display name of the owning position when available. | |
LegName | str | Yes | No | Display name of the leg. | |
LiveContract | LiveContract | Yes | No | Live contract represented by the leg. | |
Qty | Decimal | Yes | No | Signed leg quantity. Positive and negative values preserve the live position direction. | |
AvgEntryPrice | Decimal | Yes | No | Average entry price per contract used as the leg cost basis. | |
CurrentPrice | Decimal | No | Yes | Current leg price using the requested pricing mode. Null when the leg is not selected or pricing is unavailable. | |
RunningPnL | Decimal | No | Yes | Unrealized leg PnL using the requested pricing mode. Null when the leg is not selected or pricing is unavailable. | |
RealizedPnL | Decimal | No | Yes | Realized leg PnL tracked by the live position, if any. | |
PnL | Decimal | No | Yes | Total leg PnL used for display. Null when neither live nor realized PnL is available. | |
ImpliedVolatility | Decimal | No | Yes | Current implied volatility for the leg under the requested pricing mode. Null when unavailable or not selected. | |
Delta | Decimal | No | Yes | Current leg delta scaled by contract multiplier and quantity. Null when unavailable or not selected. | |
Gamma | Decimal | No | Yes | Current leg gamma scaled by contract multiplier and quantity. Null when unavailable or not selected. | |
Theta | Decimal | No | Yes | Current leg theta scaled by contract multiplier and quantity. Null when unavailable or not selected. | |
Vega | Decimal | No | Yes | Current leg vega scaled by contract multiplier and quantity. Null when unavailable or not selected. | |
WVega | Decimal | No | Yes | Current leg weighted vega scaled by contract multiplier and quantity. Null when unavailable or not selected. | |
Rho | Decimal | No | Yes | Current leg rho scaled by contract multiplier and quantity. Null when unavailable or not selected. | |
IsEligible | bool | Yes | No | True when the leg is an option contract with the data needed for Risk Graph projection. | |
IsExpired | bool | Yes | No | True when the leg contract is expired at the calculation time. | |
DefaultSelected | bool | Yes | No | True when the server selected the leg for Risk Graph calculation by default. | |
SettlementTimeExchange | datetime | No | Yes | Option settlement time in exchange time. Null for ineligible legs. | |
IsTerminalAtSelectedHorizon | bool | No | No | True when the leg settles on or before the selected expiration horizon. | |
ExclusionReason | str | No | Yes | Human-readable reason the leg was not included in the calculated Risk Graph. Null when no exclusion applies. |