Skip to main content

Overview

Retrieve Open, High, Low, Close, and Volume (OHLCV) data for a specific coin for the current day. This endpoint provides real-time candle data for the ongoing 24-hour period.

Usage

coinpaprika-cli ohlcv-today <coin_id> [OPTIONS]

Arguments

coin_id
string
required
The unique identifier for the coin in format symbol-name (e.g., btc-bitcoin, eth-ethereum)

Options

quote
string
default:"usd"
Quote currency for price data. Common values: usd, btc, eth
output
string
default:"table"
Output format: table or json
raw
boolean
default:"false"
Output raw JSON without metadata wrapper (useful for scripting)

Examples

Get today’s OHLCV for Bitcoin

coinpaprika-cli ohlcv-today btc-bitcoin

Get today’s OHLCV for Ethereum in BTC

coinpaprika-cli ohlcv-today eth-ethereum --quote btc

Get today’s OHLCV as JSON

coinpaprika-cli ohlcv-today btc-bitcoin --output json

Monitor today’s performance

watch -n 60 'coinpaprika-cli ohlcv-today btc-bitcoin'

Response

The command returns OHLCV data for the current (incomplete) day:
[
  {
    "time_open": "2024-01-02T00:00:00Z",
    "time_close": "2024-01-02T14:30:00Z",
    "open": 42500.75,
    "high": 43200.50,
    "low": 42350.25,
    "close": 42950.00,
    "volume": 12500000000,
    "market_cap": 840000000000
  }
]

Response Fields

time_open
string
ISO 8601 timestamp when today’s period started (00:00:00 UTC)
time_close
string
ISO 8601 timestamp of the most recent data point
open
number
Opening price at the start of today
high
number
Highest price so far today
low
number
Lowest price so far today
close
number
Most recent price (current price)
volume
number
Total trading volume accumulated today
market_cap
number
Current market capitalization

Notes

  • This endpoint returns incomplete data for the current day
  • Data updates in real-time as the day progresses
  • The close value represents the current price
  • For the last complete day’s data, use ohlcv-latest
  • All values may be null if data is unavailable
  • Available on free tier
  • ohlcv-latest - Get last full day OHLCV data
  • ohlcv - Get historical OHLCV data
  • ticker - Get current price snapshot

Build docs developers (and LLMs) love