/// <summary> /// Gets the list of instrument references for a symbol. /// </summary> /// <param name="connection"><see cref="IOpenfeedConnection"/>.</param> /// <param name="marketId">Market ID for which to obtain the <see cref="InstrumentReferenceResponse"/>.</param> /// <param name="ct"><see cref="CancellationToken"/>.</param> /// <returns><see cref="InstrumentReferenceResponse"/>.</returns> public static Task <InstrumentReferenceResponse> GetInstrumentReferenceAsync(this IOpenfeedConnection connection, long marketId, CancellationToken ct) => connection.GetInstrumentReferenceAsync(new InstrumentReferenceRequest { MarketId = marketId }, ct);
/// <summary> /// Gets the list of instrument references for a symbol. /// </summary> /// <param name="connection"><see cref="IOpenfeedConnection"/>.</param> /// <param name="symbol">Symbol for which to obtain the <see cref="InstrumentReferenceResponse"/>.</param> /// <param name="ct"><see cref="CancellationToken"/>.</param> /// <returns><see cref="InstrumentReferenceResponse"/>.</returns> public static Task <InstrumentReferenceResponse> GetInstrumentReferenceAsync(this IOpenfeedConnection connection, string symbol, CancellationToken ct) => connection.GetInstrumentReferenceAsync(new InstrumentReferenceRequest { Symbol = symbol }, ct);