Table of Contents

Method StartBatchMonitoring

Namespace
WhalesSecret.TradeScriptLib.API.TradingV1.MarketData
Assembly
WhalesSecret.TradeScriptLib.dll

StartBatchMonitoring(CancellationToken)

Starts a batch monitoring operation on all subscriptions in the set. After this method is called, the caller can use WhenAnyNewOrderBookAsync().

IAsyncDisposable StartBatchMonitoring(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token that allows the caller to cancel the operation.

Returns

IAsyncDisposable

Object that must be disposed to terminate the started batch monitoring operation.

Exceptions

InvalidStateException

Thrown if:

  • the subscription set is empty, or
  • the method is called while another class method that may change the internal state of any subscription in the set is in progress, or
  • the method has been called before the previously started batch monitoring finished.