getChart
Usage
import { KLineInterval, Nectar } from "@wasd3rplay/nectar-sdk";
const nectar = new Nectar();
const symbol = "WETH_ETHSEPOLIA:USDT_ETHSEPOLIA";
const now = Date.now() / 1000;
const chart = await nectar.getChart(symbol, KLineInterval.DAY_1, {
startTime: now - 60 * 60 * 24 * 7, // 1 week ago
endTime: now,
});Parameters
Options
Returns
Last updated