Retrieve price data for an asset using the expand parameter
?expand=price
flag to your /assets
or /assets/{idOrSlug}
page to include price data in the response.
Field | Type | Description |
---|---|---|
asset_id | number | Unique identifier for the asset |
usd | number | Current price in US dollars |
btc | number | Current price in Bitcoin |
eth | number | Current price in Ethereum |
sparkline_7d | string | JSON array of price points for 7-day sparkline chart |
updated_at | number | Unix timestamp when the price was last updated |
?expand=markets,ohlcv_last_24_h
)./v1/assets/
or /v1/assets/{idOrSlug}
endpoints.price
and market_cap
are expanded by default in /assets/{idOrSlug}
results unless an explicit ?expand=
flag is provided.The response is of type object
.