Get OHLCV values (historical)
GET {{baseUrl}}/v1/cryptocurrency/ohlcv/historical?id=<get>&symbol=<get>&time_period=<>&time_start=<>&time_end=<>&count=<>&interval=<>&convert=<>
Return an interval of historic OHLCV (Open, High, Low, Close, Volume) market quotes for a cryptocurrency.
Technical Details
One OHLCV quote will be returned for every time_period
between your time_start
and time_end
.
If a time_start
is not supplied, the time_period
will be applied in reverse from time_end
.
If time_end
is not supplied, it defaults to the current time.
If you don't need every time_period
between your dates you may adjust the frequency that time_period
is sam
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_period | string | Time period to return OHLCV data for. The default is "daily". Additional options will be available in the future. See the main endpoint description for details. | |
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. |