Table of Contents

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<IOrderBookSubscriptionSet?> 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<IOrderBookSubscriptionSet>

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 given symbolPairs was present in this subscription set, the return value is null.

Exceptions

InvalidStateException

Thrown if the method is called while batch monitoring operation is active.