Method GetLatestClosedCandlestick
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1.MarketData
- Assembly
- WhalesSecret.TradeScriptLib.dll
GetLatestClosedCandlestick(SymbolPair, CandleWidth)
Gets the latest closed candlestick for the given candle width and symbol pair.
Candle GetLatestClosedCandlestick(SymbolPair symbolPair, CandleWidth candleWidth)
Parameters
symbolPair
SymbolPairSymbol pair to retrieve the candlestick for.
candleWidth
CandleWidthWidth 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.
- 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.