# Daily prices

> Daily bars — open, high, low, close, volume — newest first.

Source: https://wiseview.ai/docs/api/prices-daily

`GET https://api.wiseview.ai/v1/prices/{symbol}/daily`

Daily bars — open, high, low, close, volume — newest first. Without dates, about the last six months; with from and to, up to 400 bars of that window.

Each call counts against your allowance.

## Parameters

| Name | In | Type | What it does |
| --- | --- | --- | --- |
| `symbol` (required) | path | ticker | Stock ticker, like AAPL. |
| `from` | query | date, YYYY-MM-DD | First day, like 2025-01-02. |
| `to` | query | date, YYYY-MM-DD | Last day, like 2025-12-31. |

## Answer

`data`, abridged — real answers carry more fields:

```json
{
  "bars": [
    {
      "date": "2026-10-20",
      "open": 250.1,
      "high": 253.1,
      "low": 249.8,
      "close": 252.29,
      "volume": 48211092
    }
  ],
  "totalAvailable": 1,
  "truncated": false
}
```

## Samples

```bash
curl "https://api.wiseview.ai/v1/prices/AAPL/daily" \
  -H "Authorization: Bearer $WISEVIEW_API_KEY"
```

```python
import os
import requests

response = requests.get(
    "https://api.wiseview.ai/v1/prices/AAPL/daily",
    headers={"Authorization": f"Bearer {os.environ['WISEVIEW_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript
const response = await fetch("https://api.wiseview.ai/v1/prices/AAPL/daily", {
  headers: { "Authorization": `Bearer ${process.env.WISEVIEW_API_KEY}` },
});
if (!response.ok) throw new Error(`WiseView answered ${response.status}`);
console.log(await response.json());
```
