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

# Daily exchange-rate history API

> Get observed daily closes for a rate ID and date range, with retention rules, available dates, and JSON response.

The fixed date range in this example is illustrative. When running the request, `from` must fall within the plan's retention and the series must have observations; outside retention the API returns `403 history_out_of_retention`. Free allows up to 3 days.

```bash curl theme={null}
curl "https://api.cotizave.com/v2/fx/CO/rates/co-trm/history?from=2026-10-01&to=2026-10-03&granularity=daily" \
  -H "X-API-Key: $COTIZAVE_API_KEY"
```

```json theme={null}
{
  "id": "co-trm",
  "market": "co_trm",
  "base": "USD",
  "quote": "COP",
  "from": "2026-10-01",
  "to": "2026-10-03",
  "granularity": "daily",
  "count": 2,
  "next_cursor": null,
  "points": [
    {
      "date": "2026-10-01",
      "mid": 3888.2,
      "updated_at": "2026-10-01T00:00:00Z",
      "fetched_at": "2026-10-01T12:00:00Z"
    },
    {
      "date": "2026-10-02",
      "mid": 3894.8,
      "updated_at": "2026-10-02T00:00:00Z",
      "fetched_at": "2026-10-02T12:00:00Z"
    }
  ]
}
```

The series contains only observed days; gaps are not filled. `next_cursor` is `null` for daily history.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.