Table of Contents

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 ExchangeSymbolPair

Exchange symbol pair of the candlesticks.

candleWidth CandleWidth

Width of candlesticks.

startTime DateTime

UTC timestamp of the start of the time frame for which the candlestick data was retrieved.

endTime DateTime

UTC 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.