# UBS Gold Two-Way Quote

UBS Gold 99.99% buy and sell prices side by side, with the dealer spread calculated per bar size.

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

**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. |

**Example request**

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

**Example response**

```json
{
  "data": {
    "vendor": "ubs",
    "bars": [
      {
        "grams": 1,
        "sell_idr": 2555000,
        "buy_idr": 2365000,
        "sell_per_gram_idr": 2555000,
        "buy_per_gram_idr": 2365000,
        "spread_idr": 190000,
        "spread_percent": 7.44
      }
    ]
  },
  "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"
  }
}
```