## GET /openapi/v1/rwa/history

One real-world asset's price, market cap and 24-hour volume over time, by day or by hour.

### Query parameters

| Parameter | Type | Default | Notes |
|:--|:--|:--|:--|
| `id` | integer | required | The asset's id from `/rwa`. A crypto asset's id is a `404` here |
| `interval`, `time_start`, `time_end` | string | `1d`, none, now | See [History: what the endpoints share](#history-what-the-endpoints-share) |

### Response

```json
{
  "code": 0,
  "message": "success",
  "message_key": "SUCCESS",
  "result": {
    "id": 90001,
    "interval": "1d",
    "points": [
      {
        "time": "2026-10-18T00:00:00Z",
        "price": "2641",
        "market_cap": null,
        "volume_24h": null
      },
      {
        "time": "2026-10-19T00:00:00Z",
        "price": "2650.12",
        "market_cap": "1234567890",
        "volume_24h": "45678901"
      }
    ]
  }
}
```

#### Fields

| Field | Type | Notes |
|:--|:--|:--|
| `id`, `interval` | number, string | What you asked for |
| `points[].time` | string | RFC3339 UTC: the start of the hour, or midnight for a day |
| `points[].price` | string | USD, never `null` |
| `points[].market_cap`, `points[].volume_24h` | string or `null` | USD; `null` where we have a price only |

Each point is the last value we recorded in its hour or day. Our older history was filled in
from price records, so those points carry a price only and can be days apart; we fill in
nothing between them. New points arrive every hour, and the newest ones can still be revised for a while after; today's daily point appears once the day is
over.

### Examples

```bash
# An asset's daily prices since the start of the year
curl -H "X-Api-Key: <your-api-key>" \
  "https://open-api.coinworldcap.com/openapi/v1/rwa/history?id=90001&time_start=2026-01-01T00:00:00Z"
```

| HTTP status | `code` | When |
|:--|:--|:--|
| 400 | 40000 | `id` missing or not a positive integer; a parameter the shared history rules refuse |
| 404 | 40400 | No RWA we list with that `id`: it does not exist, it is a crypto asset's id, or the asset has been delisted — the same ids `/rwa/info` answers `404` for |

The other errors are in [Errors](#errors).
