An OHLCV candlestick bar.

const bars = await client.getBars("fFUEL/fUSDC", "1h", fromTs, toTs);
for (const bar of bars) {
console.log(`${new Date(bar.time * 1000).toISOString()}: O=${bar.open} C=${bar.close}`);
}
interface Bar {
    close: string;
    high: string;
    low: string;
    open: string;
    time: number;
    volume: string;
}

Properties

close: string

Closing price.

high: string

Highest price during the bar.

low: string

Lowest price during the bar.

open: string

Opening price.

time: number

Bar start time (Unix seconds).

volume: string

Volume during the bar.