Interface ITickerSubscriptionSet
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1.MarketData
- Assembly
- WhalesSecret.TradeScriptLib.dll
Set of ticker subscriptions.
public interface ITickerSubscriptionSet : IAsyncDisposable
- Inherited Members
- Extension Methods
Remarks
The implementation is thread-safe.
Methods
- GetLatestTicker(SymbolPair)
Gets the latest ticker for the subscription specified by its symbol pair.
- GetNewerTickerAsync(SymbolPair, CancellationToken)
Gets a newer ticker than the last one previously returned by this method or by GetLatestTicker(SymbolPair) from the subscription specified by the given symbol pair. If no such ticker is available, the method waits until a new ticker update arrives.
- StartBatchMonitoring(CancellationToken)
Starts a batch monitoring operation on all subscriptions in the set. After this method is called, the caller can use WhenAnyNewTickerAsync().
- TryRemoveSubscription(SymbolPair, out ITickerSubscription?)
Removes the given symbol pair from this subscription set.
- TryRemoveSubscriptionSubsetAsync(IReadOnlyList<SymbolPair>)
Removes the given symbol pairs from this subscription set.
- WhenAnyNewTickerAsync()
Waits for a new ticker on any subscription in the set.