# FRED Series

Any of the St. Louis Fed's ~800,000 economic series — Fed funds, CPI, unemployment, GDP — by series id, newest first.

- Method: `GET`
- Path: `/v1/finance/fred`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `series_id` | string | required | A FRED series id — `DGS10` for the 10-year, `CPIAUCSL` for CPI. |
| `limit` | integer | optional | How many observations, 1-1000. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/finance/fred \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "series_id": "DGS10",
    "observations": [
      { "date": "2026-08-20", "value": 4.7 },
      { "date": "2026-08-19", "value": 4.71 }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-21T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-22T04:05:00.000Z"
  }
}
```