Table of Contents

Method GetLatestCandlestickUpdate

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

GetLatestCandlestickUpdate(SymbolPair, CandleWidth)

Gets the latest candlestick update for the given candle width and symbol pair.

CandleUpdate GetLatestCandlestickUpdate(SymbolPair symbolPair, CandleWidth candleWidth)

Parameters

symbolPair SymbolPair

Symbol pair to retrieve the candlestick update for.

candleWidth CandleWidth

Width of the candle to retrieve.

Returns

CandleUpdate

Returns the latest candlestick update with the given candle width.

Exceptions

NotFoundException

Thrown if the method is called after the candlestick subscription was disposed.

MalfunctionException

Thrown if an internal error occurred.

InvalidArgumentException

Thrown if the set does not contain a subscription for the given symbol pair.

InvalidStateException

Thrown if the method is called while batch monitoring operation is active for the given candle width.

NotFoundException

Thrown if the method is called after the candlestick subscription was disposed.

MalfunctionException

Thrown if an internal error occurred.