Method TryRemoveSubscription
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1.MarketData
- Assembly
- WhalesSecret.TradeScriptLib.dll
TryRemoveSubscription(SymbolPair, out ICandlestickSubscription?)
Removes the given symbol pair from this subscription set.
bool TryRemoveSubscription(SymbolPair symbolPair, out ICandlestickSubscription? subscription)
Parameters
symbolPair
SymbolPairSymbol pair of the subscription to remove.
subscription
ICandlestickSubscriptionIf 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.