Price & Volume Chart
Description
Returns data points for a coin's price and volume chart.
Note: Depth and granularity depend on the plan: Basic — up to 30d at 5m/15m/1h, up to 1y at 1d; Advanced — up to 30d at 5m/15m/1h, up to 2y at 1d; Pro — up to 90d at 5m/15m/1h, up to 5y at 1d; Business — up to 1y at 5m/15m/1h, full history at 1d.
Tip: With no parameters, returns the last 7 days at 1h.
Access
- Available from: Basic
- Cost: 1 credit per request
Request
- Base URL: https://api.cryptorank.io
- URL: https://api.cryptorank.io/v3/currencies/{id}/sparkline
- Auth: API key in header X-Api-Key
Path parameters
Coin ID. See: GET /v3/currencies/map.
Query parameters
Window start. Defaults to 7d before to. Accepted: ISO 8601, bare date (YYYY-MM-DD), or Unix timestamp in seconds/milliseconds.
Window end. Defaults to now. Accepted: ISO 8601, bare date (YYYY-MM-DD), or Unix timestamp in seconds/milliseconds. Bare dates resolve to end-of-day UTC.
Step between points. Depth allowed per interval depends on your plan.
Order by time.
Response
Example response
{
"data": [
{
"price": "65000.5",
"time": 1715000000000,
"volume": "28000000000"
}
],
"status": {
"timestamp": 1780000000000,
"usedCredits": 1
}
}Changes
No recorded changes to this operation across all 1 revision of this API.