Table of Contents

Interface ITickerSubscription

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

Represents ticker subscription of a single symbol pair.

public interface ITickerSubscription : IAsyncDisposable
Inherited Members
Extension Methods

Remarks

The implementation is thread-safe.

Warning: Do not run multiple asynchronous methods in this class simultaneously. It may lead to unexpected results as the subscription is meant to provide a continuous series of updates and there is a single information per subscription about the last update that the subscription consumed.

Methods

GetLatestTicker()

Gets the latest ticker.

GetNewerTickerAsync(CancellationToken)

Gets a newer ticker than the last one previously returned by this method or by GetLatestTicker(). If no such ticker is available, the method waits until a new ticker update arrives.