> ## Documentation Index
> Fetch the complete documentation index at: https://finance.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Chart

> Get historical chart data and real-time quotes with the JavaScript SDK

## Overview

The Chart API provides historical OHLCV data, real-time quotes, and charting configuration.

## Methods

### getHistoricalBars(params)

```javascript theme={null}
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)

```javascript theme={null}
const quotes = await client.chart.getQuotes(['AAPL', 'GOOGL']);
```

### getSymbolInfo(symbol)

```javascript theme={null}
const info = await client.chart.getSymbolInfo('AAPL');
```

### getConfig()

```javascript theme={null}
const config = await client.chart.getConfig();
```

### getServerTime()

```javascript theme={null}
const timestamp = await client.chart.getServerTime();
```

## TypeScript Types

```typescript theme={null}
interface Bar {
  timestamp: Date;
  open: number;
  high: number;
  low: number;
  close: number;
  volume: number;
}
```
