# Crypto Prices

Prices for any of thousands of coins, with market cap and 24-hour change — the global board, by coin id.

- Method: `GET`
- Path: `/v1/crypto/prices`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `ids` | string | required | Comma-separated CoinGecko ids. |
| `vs` | string | optional | Comma-separated quote currencies. |
| `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/crypto/prices \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "coins": [
      {
        "id": "bitcoin",
        "prices": [
          { "currency": "usd", "price": 77407, "market_cap": 1540000000000, "change_24h_pct": -0.5 }
        ]
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-21T14:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-21T14:07:00.000Z"
  }
}
```