Get market quotes (historical)
GET {{baseUrl}}/v1/cryptocurrency/quotes/historical?id=<get>&symbol=<get>&time_start=<>&time_end=<>&count=<>&interval=<>&convert=<>
Returns an interval of historic market quotes for any cryptocurrency based on time and interval parameters.
Technical Details
A historic quote for every interval
period between your time_start
and time_end
will be returned.
If a time_start
is not supplied, the interval
will be applied in reverse from time_end
.
If time_end
is not supplied, it defaults to the current time.
At each interval
period, the historic quote that is closest in time to the requested time will be returne
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
id | string | One or more comma-separated CoinMarketCap cryptocurrency IDs. Example: "1,2" | |
symbol | string | Alternatively pass one or more comma-separated cryptocurrency symbols. Example: "BTC,ETH". At least one "id" or "symbol" is required. | |
time_start | string | Timestamp (Unix or ISO 8601) to start returning OHLCV time periods for. | |
time_end | string | Timestamp (Unix or ISO 8601) to stop returning OHLCV time periods for (exclusive). Optional, if not passed we'll default to the current time. | |
count | string | Optionally limit the number of time periods to return results for. The default is 10 items. The current query limit is 10000 items. | |
interval | string | Optionally adjust the interval that "time_period" is sampled. See main endpoint description for available options. | |
convert | string | Pass up to 32 comma-separated fiat or cryptocurrency symbols to convert the source amount to. |