Table of Contents

Method TryRemoveSubscription

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

TryRemoveSubscription(SymbolPair, out ITickerSubscription?)

Removes the given symbol pair from this subscription set.

bool TryRemoveSubscription(SymbolPair symbolPair, out ITickerSubscription? subscription)

Parameters

symbolPair SymbolPair

Symbol pair of the subscription to remove.

subscription ITickerSubscription

If the function succeeds, this is filled with the removed subscription. The caller is responsible for disposing the removed subscription.

Returns

bool

true if the subscription was removed from the set, false otherwise.

Exceptions

InvalidStateException

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