getChart
Last updated
Last updated
The getChart()
method of Nectar
instances returns a of a market of the given symbol.
symbol: string
A market symbol.
It is a combination of a base ticker, a colon, and a quote ticker.
E.g., ETH_ETHSEPOLIA:USDT_ETHSEPOLIA
interval: KLineInterval
A time period of a single bar.
startTime?: number
Optional
Defaults to 0
The start timestamp of a chart, expressed in seconds.
endTime?: number
Optional
Defaults to Date.now()
The end timestamp of a chart, expressed in seconds.
Kline[]
A candlestick chart.