Documentation Index
Fetch the complete documentation index at: https://finance.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Chart API provides historical OHLCV data, real-time quotes, and charting configuration.
Methods
getHistoricalBars(params)
const bars = await client.chart.getHistoricalBars({
symbol: 'AAPL',
fromDate: '2025-01-01',
toDate: '2025-01-15',
resolution: '1D'
});
bars.forEach(bar => {
console.log(`${bar.timestamp}: O:${bar.open} H:${bar.high} L:${bar.low} C:${bar.close} V:${bar.volume}`);
});
getQuotes(symbols)
const quotes = await client.chart.getQuotes(['AAPL', 'GOOGL']);
getSymbolInfo(symbol)
const info = await client.chart.getSymbolInfo('AAPL');
getConfig()
const config = await client.chart.getConfig();
getServerTime()
const timestamp = await client.chart.getServerTime();
TypeScript Types
interface Bar {
timestamp: Date;
open: number;
high: number;
low: number;
close: number;
volume: number;
}