Retrieve historical data for a specific asset
Changed onRetrieve historical data for a specific asset by slug (id). 'interval' is REQUIRED (one of m1, m5, m15, m30, h1, h2, h6, h12, d1). 'start' and 'end' (UNIX ms) must be provided together — sending 'start' alone returns HTTP 400. Omit both to get the most recent window.
Request
- Base URLhttps://rest.coincap.io/v3
- Auth
- HTTP bearer
- or API key in query parameter apiKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The slug of the asset
Query parameters
interval choices m1 m5 m15 m30 h1 h2 h6 h12 d1
UNIX time in milliseconds. Omitting will return the most recent asset history.
The end timestamp for the historical data.
Response
Historical data for the asset
Changes
- breaking
the
queryrequest parameterintervalwas restricted to a list of enum values - info
the endpoint scheme security
apiKeywas added to the API - info
added the new enum value
d1to thequeryrequest parameterinterval - info
added the new enum value
h1to thequeryrequest parameterinterval - info
added the new enum value
h12to thequeryrequest parameterinterval - info
added the new enum value
h2to thequeryrequest parameterinterval - info
added the new enum value
h6to thequeryrequest parameterinterval - info
added the new enum value
m1to thequeryrequest parameterinterval - info
added the new enum value
m15to thequeryrequest parameterinterval - info
added the new enum value
m30to thequeryrequest parameterinterval - info
added the new enum value
m5to thequeryrequest parameterinterval
- breaking