Method TryRemoveSubscriptionSubsetAsync
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1.MarketData
- Assembly
- WhalesSecret.TradeScriptLib.dll
TryRemoveSubscriptionSubsetAsync(IReadOnlyList<SymbolPair>)
Removes the given symbol pairs from this subscription set.
Task<ITickerSubscriptionSet?> TryRemoveSubscriptionSubsetAsync(IReadOnlyList<SymbolPair> symbolPairs)
Parameters
symbolPairs
IReadOnlyList<SymbolPair>List of symbol pairs of the subscriptions to remove. Symbol pairs not in the set are ignored.
Returns
- Task<ITickerSubscriptionSet>
If at least one of the given
symbolPairs
was present in this subscription set and removed, this is the newly formed subscription subset. The caller is responsible for disposing the removed subscription subset. If none of the givensymbolPairs
was present in this subscription set, the return value isnull
.
Exceptions
- InvalidStateException
Thrown if the method is called while batch monitoring operation is active.