Table of Contents

Method GetLatestClosedCandlestick

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

GetLatestClosedCandlestick(CandleWidth)

Gets the latest closed candlestick for the given candle width and the exchange symbol pair of this subscription; or fail if the given candle width has not been initialized.

Candle GetLatestClosedCandlestick(CandleWidth candleWidth)

Parameters

candleWidth CandleWidth

Width of the candle to retrieve.

Returns

Candle

Returns the latest closed candlestick 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.