Commands Overview
OHLCV commands provide candlestick data for charting and technical analysis:ohlcv- Historical OHLCV data (paid feature)ohlcv-latest- Latest full day OHLCVohlcv-today- Today’s incomplete OHLCV
Historical OHLCV
PAID FEATURE: Requires Starter plan or higher. See pricing plans.
Arguments
<COIN_ID>- Coin identifier (e.g.,btc-bitcoin)
Options
--start <DATE>- Start date in ISO format (e.g.,2024-01-01) [Required]--end <DATE>- End date in ISO format (optional)--interval <INTERVAL>- Time interval (default:24h)--limit <NUMBER>- Maximum number of results (default:50)--quote <CURRENCY>- Quote currency (default:usd)
Available Intervals
5m- 5 minutes (requires paid plan)15m- 15 minutes (requires paid plan)30m- 30 minutes (requires paid plan)1h- 1 hour (requires paid plan)6h- 6 hours (requires paid plan)12h- 12 hours (requires paid plan)24h- 24 hours (1 day)
Examples
Response Fields
time_open- Candle open time (ISO 8601)time_close- Candle close time (ISO 8601)open- Opening pricehigh- Highest price in periodlow- Lowest price in periodclose- Closing pricevolume- Trading volume in periodmarket_cap- Market cap at close
Latest OHLCV
Arguments
<COIN_ID>- Coin identifier
Options
--quote <CURRENCY>- Quote currency (default:usd)
Examples
Use Case
Get the most recent complete 24-hour candle without specifying dates:Today’s OHLCV
Arguments
<COIN_ID>- Coin identifier
Options
--quote <CURRENCY>- Quote currency (default:usd)
Examples
Use Case
Track intraday performance:The “today” candle is incomplete and updates throughout the day.
Practical Examples
Build a Price Chart
Calculate Daily Returns
Find High/Low Range
Intraday Trading Data
Volume Analysis
Supported Quote Currencies
usd- US Dollar (most common)btc- Bitcoineth- Ethereum- Other major cryptocurrencies
Data Availability
Free Tier
- Daily OHLCV: Up to 1 year back
- Hourly OHLCV: Last 24 hours only
- Intervals: 24h only
- Ticker History: Not available
Paid Plans (Starter+)
- Full historical data: All available history
- 5-minute intervals: Detailed intraday data
- All intervals: 5m, 15m, 30m, 1h, 6h, 12h, 24h
- Ticker history: Included
coinpaprika-cli plans for details.
Comparison: OHLCV vs Ticker History
| Feature | OHLCV | Ticker History |
|---|---|---|
| Data Type | Candlestick (OHLCV) | Price snapshots |
| Best For | Charting, technical analysis | Time-series analysis |
| Fields | Open, high, low, close, volume | Price, volume, market cap |
| Intervals | 5m to 24h | 5m to 30d |
| Free Tier | Latest/today only | Not available |
| Paid Plans | Full history | Full history |
When to Use Each
Use OHLCV when:- Building price charts
- Performing technical analysis
- Need high/low ranges
- Calculating candlestick patterns
- Need exact timestamps
- Tracking market cap changes
- Comparing multiple metrics
- Building time-series models
API Details
- Historical OHLCV:
/coins/{coin_id}/ohlcv/historical(paid) - Latest OHLCV:
/coins/{coin_id}/ohlcv/latest - Today OHLCV:
/coins/{coin_id}/ohlcv/today - Method: GET
- Rate Limit: Counts toward your monthly limit
Related Commands
ticker-history- Historical price snapshotsticker- Real-time price dataplans- View pricing plans