> ## 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 Python SDK

## Overview

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

## Methods

### get\_historical\_bars(symbol, from\_date, to\_date, resolution)

```python theme={null}
bars = client.chart.get_historical_bars(
    symbol="AAPL",
    from_date="2025-01-01",
    to_date="2025-01-15",
    resolution="1D"
)

for bar in bars:
    print(f"{bar.timestamp}: O:{bar.open} H:{bar.high} L:{bar.low} C:{bar.close} V:{bar.volume}")
```

### get\_quotes(symbols)

```python theme={null}
quotes = client.chart.get_quotes(["AAPL", "GOOGL"])
for quote in quotes:
    print(f"{quote.symbol}: ${quote.price}")
```

### get\_symbol\_info(symbol)

```python theme={null}
info = client.chart.get_symbol_info("AAPL")
```

### get\_config()

```python theme={null}
config = client.chart.get_config()
print(f"Supported resolutions: {config.supported_resolutions}")
```

### get\_server\_time()

```python theme={null}
timestamp = client.chart.get_server_time()
```

## Examples

### Plot Price History

```python theme={null}
import matplotlib.pyplot as plt

bars = client.chart.get_historical_bars(
    symbol="AAPL",
    from_date="2024-01-01",
    to_date="2025-01-01",
    resolution="1D"
)

dates = [bar.timestamp for bar in bars]
closes = [bar.close for bar in bars]

plt.plot(dates, closes)
plt.title("AAPL Price History")
plt.show()
```
