Skip to main content

SignalR Reference: Data Hub

Data Hub: snapshots and server-streaming market and portfolio data

  • Hub URL: /hubs/data/v1

Snapshot methods return an API envelope (MesoLiveApiResponse<T>). Stream methods yield items until cancelled or disconnected.

Envelope fields: MesoLiveApiResponse

note

Stream methods send updates via a bounded channel. If the client can't keep up, older updates may be dropped.

StreamPositionData

Stream live prices/greeks/pnl updates for a position (and optionally its legs/leg groups).

Args model: StreamPositionDataArgs

FieldTypeRequiredNullableDefaultDescription
PositionIdintYesNoLive position id to stream.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
PnlFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for PnL.
IncludePositionLiveDataIncludeYesNoWhich blocks to include for the position itself.
IncludeLegsLiveDataIncludeYesNoWhich blocks to include for legs belonging to the position.
IncludeLegGroupsLiveDataIncludeYesNoWhich blocks to include for leg groups belonging to the position.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Yields (stream): PositionDataEntry

FieldTypeRequiredNullableDefaultDescription
PositionPricesLivePricesYesYesLive prices for the position. null when IncludePosition does not include Prices.
PositionGreeksLiveGreeksYesYesLive greeks for the position. null when IncludePosition does not include Greeks.
PositionPnLsLivePnLYesYesLive PnL for the position. null when IncludePosition does not include PnL.
LegPricesdict[int, LivePrices]YesYesPer-leg live prices keyed by live leg id. null when IncludeLegs does not include Prices.
LegGreeksdict[int, LiveGreeks]YesYesPer-leg live greeks keyed by live leg id. null when IncludeLegs does not include Greeks.
LegPnLsdict[int, LivePnL]YesYesPer-leg live PnL keyed by live leg id. null when IncludeLegs does not include PnL.
LegGroupPricesdict[int, LivePrices]YesYesPer-leg-group live prices keyed by leg group id. null when IncludeLegGroups does not include Prices.
LegGroupGreeksdict[int, LiveGreeks]YesYesPer-leg-group live greeks keyed by leg group id. null when IncludeLegGroups does not include Greeks.
LegGroupPnLsdict[int, LivePnL]YesYesPer-leg-group live PnL keyed by leg group id. null when IncludeLegGroups does not include PnL.

GetPositionSnapshot

Get a point-in-time snapshot of prices/greeks/pnl for a position (and optionally its legs/leg groups).

Args model: GetPositionSnapshotArgs

FieldTypeRequiredNullableDefaultDescription
PositionIdintYesNoLive position id to snapshot.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
PnlFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for PnL.
IncludePositionLiveDataIncludeYesNoWhich blocks to include for the position itself.
IncludeLegsLiveDataIncludeYesNoWhich blocks to include for legs belonging to the position.
IncludeLegGroupsLiveDataIncludeYesNoWhich blocks to include for leg groups belonging to the position.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Returns (payload): GetPositionSnapshotResult

FieldTypeRequiredNullableDefaultDescription
PositionPricesLivePricesYesYesLive prices for the position. null when IncludePosition does not include Prices.
PositionGreeksLiveGreeksYesYesLive greeks for the position. null when IncludePosition does not include Greeks.
PositionPnLsLivePnLYesYesLive PnL for the position. null when IncludePosition does not include PnL.
LegPricesdict[int, LivePrices]YesYesPer-leg live prices keyed by live leg id. null when IncludeLegs does not include Prices.
LegGreeksdict[int, LiveGreeks]YesYesPer-leg live greeks keyed by live leg id. null when IncludeLegs does not include Greeks.
LegPnLsdict[int, LivePnL]YesYesPer-leg live PnL keyed by live leg id. null when IncludeLegs does not include PnL.
LegGroupPricesdict[int, LivePrices]YesYesPer-leg-group live prices keyed by leg group id. null when IncludeLegGroups does not include Prices.
LegGroupGreeksdict[int, LiveGreeks]YesYesPer-leg-group live greeks keyed by leg group id. null when IncludeLegGroups does not include Greeks.
LegGroupPnLsdict[int, LivePnL]YesYesPer-leg-group live PnL keyed by leg group id. null when IncludeLegGroups does not include PnL.

StreamLegData

Stream live prices/greeks/pnl updates for a single leg.

Args model: StreamLegDataArgs

FieldTypeRequiredNullableDefaultDescription
LegIdintYesNoLive leg id to stream.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
PnlFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for PnL.
IncludeLiveDataIncludeYesNoWhich blocks to include for the leg.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Yields (stream): LegDataEntry

FieldTypeRequiredNullableDefaultDescription
LegPricesLivePricesYesYesLive prices for the leg. null when Include does not include Prices.
LegGreeksLiveGreeksYesYesLive greeks for the leg. null when Include does not include Greeks.
LegPnLsLivePnLYesYesLive PnL for the leg. null when Include does not include PnL.

GetLegSnapshot

Get a point-in-time snapshot of prices/greeks/pnl for a single leg.

Args model: GetLegSnapshotArgs

FieldTypeRequiredNullableDefaultDescription
LegIdintYesNoLive leg id to snapshot.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
PnlFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for PnL.
IncludeLiveDataIncludeYesNoWhich blocks to include for the leg.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Returns (payload): GetLegSnapshotResult

FieldTypeRequiredNullableDefaultDescription
LegPricesLivePricesYesYesLive prices for the leg. null when Include does not include Prices.
LegGreeksLiveGreeksYesYesLive greeks for the leg. null when Include does not include Greeks.
LegPnLsLivePnLYesYesLive PnL for the leg. null when Include does not include PnL.

StreamLegsData

Stream live prices/greeks/pnl updates for multiple legs.

Args model: StreamLegsDataArgs

FieldTypeRequiredNullableDefaultDescription
LegIdslist[int]YesNoLive leg ids to stream.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
PnlFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for PnL.
IncludeLiveDataIncludeYesNoWhich blocks to include for the legs.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Yields (stream): LegsDataEntry

FieldTypeRequiredNullableDefaultDescription
LegPricesdict[int, LivePrices]YesYesPer-leg live prices keyed by live leg id. null when Include does not include Prices.
LegGreeksdict[int, LiveGreeks]YesYesPer-leg live greeks keyed by live leg id. null when Include does not include Greeks.
LegPnLsdict[int, LivePnL]YesYesPer-leg live PnL keyed by live leg id. null when Include does not include PnL.

GetLegsSnapshot

Get a point-in-time snapshot of prices/greeks/pnl for multiple legs.

Args model: GetLegsSnapshotArgs

FieldTypeRequiredNullableDefaultDescription
LegIdslist[int]YesNoLive leg ids to snapshot.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
PnlFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for PnL.
IncludeLiveDataIncludeYesNoWhich blocks to include for the legs.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Returns (payload): GetLegsSnapshotResult

FieldTypeRequiredNullableDefaultDescription
LegPricesdict[int, LivePrices]YesYesPer-leg live prices keyed by live leg id. null when Include does not include Prices.
LegGreeksdict[int, LiveGreeks]YesYesPer-leg live greeks keyed by live leg id. null when Include does not include Greeks.
LegPnLsdict[int, LivePnL]YesYesPer-leg live PnL keyed by live leg id. null when Include does not include PnL.

StreamComboContractsData

Stream live quotes for an arbitrary combo specified by its component contracts.

note

Provider is required by the server for this method.

Args model: StreamComboContractsDataArgs

FieldTypeRequiredNullableDefaultDescription
ComboLegsdict[str, ComboLegSpec]YesNoCombo legs keyed by leg name. Values include contract + quantity (ratio) for aggregation.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
IncludeLiveDataIncludeYesNoWhich blocks to include for the combo (contract-level and aggregated).
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Yields (stream): ComboContractsDataEntry

FieldTypeRequiredNullableDefaultDescription
ComboContractPricesdict[str, LivePrices]YesYesPer-leg contract prices keyed by combo leg name. null when Include does not include Prices.
ComboContractGreeksdict[str, LiveGreeks]YesYesPer-leg contract greeks keyed by combo leg name. null when Include does not include Greeks.
ComboPricesLivePricesNoYesAggregated combo prices across legs using provided quantities. null when Include does not include Prices.
ComboGreeksLiveGreeksNoYesAggregated combo greeks across legs using provided quantities. null when Include does not include Greeks.

GetComboContractsSnapshot

Get a point-in-time snapshot of quotes for an arbitrary combo specified by its component contracts.

note

Provider is required by the server for this method.

Args model: GetComboContractsSnapshotArgs

FieldTypeRequiredNullableDefaultDescription
ComboLegsdict[str, ComboLegSpec]YesNoCombo legs keyed by leg name. Values include contract + quantity (ratio) for aggregation.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
IncludeLiveDataIncludeYesNoWhich blocks to include for the combo (contract-level and aggregated).
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Returns (payload): GetComboContractsSnapshotResult

FieldTypeRequiredNullableDefaultDescription
ComboContractPricesdict[str, LivePrices]YesYesPer-leg contract prices keyed by combo leg name. null when Include does not include Prices.
ComboContractGreeksdict[str, LiveGreeks]YesYesPer-leg contract greeks keyed by combo leg name. null when Include does not include Greeks.
ComboPricesLivePricesNoYesAggregated combo prices across legs using provided quantities. null when Include does not include Prices.
ComboGreeksLiveGreeksNoYesAggregated combo greeks across legs using provided quantities. null when Include does not include Greeks.

StreamContractData

Stream live quotes for a single contract.

note

Provider is required by the server for this method.

Args model: StreamContractDataArgs

FieldTypeRequiredNullableDefaultDescription
ContractLiveContractYesNoContract to stream quotes for.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
IncludeLiveDataIncludeYesNoWhich blocks to include for the contract.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Yields (stream): ContractDataEntry

FieldTypeRequiredNullableDefaultDescription
ContractPricesLivePricesYesYesLive prices for the contract. null when Include does not include Prices.
ContractGreeksLiveGreeksYesYesLive greeks for the contract. null when Include does not include Greeks.

GetContractSnapshot

Get a point-in-time snapshot of quotes for a single contract.

note

Provider is required by the server for this method.

Args model: GetContractSnapshotArgs

FieldTypeRequiredNullableDefaultDescription
ContractLiveContractYesNoContract to snapshot quotes for.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
GreekFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for greeks.
IncludeLiveDataIncludeYesNoWhich blocks to include for the contract.
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Returns (payload): GetContractSnapshotResult

FieldTypeRequiredNullableDefaultDescription
ContractPricesLivePricesYesYesLive prices for the contract. null when Include does not include Prices.
ContractGreeksLiveGreeksYesYesLive greeks for the contract. null when Include does not include Greeks.

StreamUnderlyingData

Stream live quotes for an underlying (e.g. SPX, GLD).

note

Provider is required by the server for this method.

Args model: StreamUnderlyingDataArgs

FieldTypeRequiredNullableDefaultDescription
UnderlyingLiveUnderlyingYesNoUnderlying to stream quotes for.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Yields (stream): UnderlyingDataEntry

FieldTypeRequiredNullableDefaultDescription
UnderlyingPricesLivePricesYesNoLive prices for the underlying.

GetUnderlyingSnapshot

Get a point-in-time snapshot of quotes for an underlying (e.g. SPX, GLD).

note

Provider is required by the server for this method.

Args model: GetUnderlyingSnapshotArgs

FieldTypeRequiredNullableDefaultDescription
UnderlyingLiveUnderlyingYesNoUnderlying to snapshot quotes for.
PriceFieldsLiveQuoteFieldsNoNoLiveQuoteFields.AllQuote fields to include for prices (bid/ask/last/mark).
ProviderDataProviderTypeNoYesOptional override for which market data provider to use. null = server default.

Returns (payload): GetUnderlyingSnapshotResult

FieldTypeRequiredNullableDefaultDescription
UnderlyingPricesLivePricesYesNoLive prices for the underlying.