GET /api/data-api/v3/cryptocurrency/quote-by-timestamp
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cmc/api/data-api/v3/cryptocurrency/quote-by-timestampCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeCurrent converted price plus a server timestamp. No client timestamp parameter exists.
name=quote_by_timestamp. No timestamp request param. The payload timestamp is now. convertQuotes[0].price is the current price.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
id | query | str | required | Route-specific id. Coin routes use 1 for BTC; exchange reserves use 270 for Binance. example: 1 |
slug | query | str | required | URL slug such as bitcoin or binance. example: bitcoin |
convertId | query | str | required | Quote convert id. 2781 is USD on these public routes. example: 2781 |
Response
type: object
data key: convertQuotes
pagination: none
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/api/data-api/v3/cryptocurrency/quote-by-timestamp?id=1&slug=bitcoin&convertId=2781"