Method RequestSubscription
RequestSubscription(ref InstrumentId, SubscriptionType, uint?, TimeSpan?)
Request a subscription to a security to receive updates.
public (bool, RequestSubscriptionResponse) RequestSubscription(ref InstrumentId instrumentId, SubscriptionType subscriptionType, uint? rateInMs = null, TimeSpan? timeout = null)
Parameters
instrumentId
InstrumentIdThe instrument id struct object as received in the SecurityDefinitionEventData
subscriptionType
SubscriptionTypeA bitwise flag that configures the subscription type. Subscriptions can be either Realtime or Conflated. SubscriptionType
rateInMs
uint?The rate upon which data will be sent (only valid for SubscriptionType.Conflated subscriptions)
timeout
TimeSpan?Time limit after which the Request will be cancelled.
Returns
- (bool, RequestSubscriptionResponse)
A tuple where the first element is a boolean indicating whether the call was successful or not (timeout) and the object RequestSubscriptionResponse