CoinMarketCap Get OHLCV values (historical)

CoinMarketCap - Get OHLCV values (historical)

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 sampled using the "interval" parameter. For example with "time_period" set to "daily" you may set "interval" to "2d" to get the daily OHLCV for every other day. You could set "interval" to "monthly" to get the first daily OHLCV for each month, or set it to "yearly" to get the daily OHLCV value against the same date every year. **Interval Options** There are 2 types of time interval formats that may be used for "time_period" and "interval" parameters. For "time_period" these return aggregate OHLCV data from the beginning to end of each interval period. Apply these time intervals to "interval" to adjust how frequently "time_period" is sampled. The first are calendar year and time constants in UTC time: **"daily"** - Calendar day intervals for each UTC day. **"weekly"** - Calendar week intervals for each calendar week. **"monthly"** - Calendar month intervals for each calendar month. **"yearly"** - Calendar year intervals for each calendar year. The second format is relative time: **"d"**: Time periods that repeat every "d" days (86400 second intervals). Supported day intervals are: "1d", "2d", "3d", "7d", "14d", "15d", "30d", "60d", "90d", "365d". **Note:** "time_period" currently only supports the "daily" option. "interval" supports all interval options. **This endpoint is available on the following API plans:** - ~~Starter~~ - ~~Hobbyist~~ - Standard (1 month) - Professional (12 months) - Enterprise (Up to 5 years) **Cache / Update frequency:** Every 24 hours for 1 day OHLCV ranges. Additional OHLCV ranges will be available in the near-term.

Posted on:


curl -v "{streamdata_token}&convert={field_value}&count={field_value}&id={field_value}&interval={field_value}&symbol={field_value}&time_end={field_value}&time_period={field_value}&time_start={field_value}"

Return to Main Page

Submit Your API

Join the gallery to find out how much you can save with