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}`);} Copy
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}`);}
Closing price.
Highest price during the bar.
Lowest price during the bar.
Opening price.
Bar start time (Unix seconds).
Volume during the bar.
An OHLCV candlestick bar.
Example