Skip to main content
GET
cURL
3 credits per request

  • rwaId: Asset ID from /rwa/assets.
  • range: 1h, 24h (default), 1w, 1m, 3m, 6m, 1y, or all.
  • metric: price (default), marketCap, or volume.
  • currency: Defaults to USD.
Point timestamps are Unix milliseconds. Missing observations are omitted; availableFrom describes returned coverage. Rolling 24h volume is not summed across buckets. Long ranges are sampled.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Path Parameters

rwaId
string
required

RWA asset ID returned by /rwa/assets. This is separate from a cryptocurrency coinId.

Example:

"gold"

Query Parameters

currency
string
default:USD

Uppercase currency code from /currencies. Monetary values use this currency; percentages and quantities are unchanged.

range
enum<string>
default:24h

Asset history uses native chart ranges, which differ from aggregate history ranges.

Available options:
1h,
24h,
1w,
1m,
3m,
6m,
1y,
all
metric
enum<string>
default:price
Available options:
price,
marketCap,
volume

Response

currency
string
required
Example:

"USD"

updatedAt
string<date-time> | null
required

Publication/section update time, never request time.

isStale
boolean
required

Whether the upstream publication/section has exceeded its freshness threshold.

range
enum<string>
required
Available options:
1h,
24h,
1w,
1m,
3m,
6m,
1y,
all
metric
enum<string>
required
Available options:
price,
marketCap,
volume
resolution
enum<string>
required
Available options:
5m,
1h,
1d
points
object[]
required

Sampled available observations. Missing values are omitted. Volume is rolling 24h volume, not summed bucket volume.

available
boolean
required
availableFrom
string<date-time> | null
required

First returned observation, or null when there is no coverage.