# Gold Intraday Series

The day's gold curve at half-hour resolution — USD per ounce and gram, the USD/IDR rate, and rupiah per gram.

- Method: `GET`
- Path: `/v1/gold/history`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `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. |
| `limit` | integer | optional | Return only the most recent N points. |

**Example request**

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

**Example response**

```json
{
  "data": {
    "date": "2026-08-18",
    "points": [
      {
        "time": "17:00",
        "usd_per_ounce": 4364.1,
        "usd_per_gram": 140.31,
        "idr_per_usd": 17875,
        "idr_per_gram": 2508022.81
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-18T16:32:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-18T17:10:15.000Z"
  }
}
```