Constructor CandlestickData
- Namespace
- WhalesSecret.TradeScriptLib.Entities.MarketData
- Assembly
- WhalesSecret.TradeScriptLib.dll
CandlestickData(ExchangeSymbolPair, CandleWidth, DateTime, DateTime, IReadOnlyList<Candle>, DateOnly?, DateOnly?)
Creates a new instance of the object.
public CandlestickData(ExchangeSymbolPair exchangeSymbolPair, CandleWidth candleWidth, DateTime startTime, DateTime endTime, IReadOnlyList<Candle> candles, DateOnly? listingDate, DateOnly? delistingDate)
Parameters
exchangeSymbolPair
ExchangeSymbolPairExchange symbol pair of the candlesticks.
candleWidth
CandleWidthWidth of candlesticks.
startTime
DateTimeUTC timestamp of the start of the time frame for which the candlestick data was retrieved.
endTime
DateTimeUTC timestamp of the end of the time frame for which the candlestick data was retrieved. Every returned candlestick starts before this timestamp, but may end after this timestamp.
candles
IReadOnlyList<Candle>List of candlesticks within the given time frame. If no data is available for some of the requested candlesticks, empty candlesticks are put in their place.
listingDate
DateOnly?Date when the symbol pair was listed on the exchange, or
null
if this information is not known.delistingDate
DateOnly?Date when the symbol pair was delisted on the exchange (i.e. data are not available for this date), or
null
if this information is not known.