Skip to main content
GET
/
v1
/
assets
/
{idOrSlug}
/
ohlcv
Get Asset OHLCV
curl --request GET \
  --url https://api.blockworks.com/v1/assets/{idOrSlug}/ohlcv \
  --header 'x-api-key: <api-key>'
{
  "open": 2991.0164373997,
  "high": 4514.81,
  "low": 4347.24,
  "close": 2972.9752699223,
  "volume": 14018548707.668,
  "updated_at": 1759454319,
  "asset_code": "ETH",
  "asset_slug": "ethereum"
}

Overview

Get the current OHLCV (Open, High, Low, Close, Volume) data for a specific asset over the last 24 hours. This endpoint returns just the OHLCV data block with asset_code and asset_slug included.

Example Request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.blockworks.com/v1/assets/ethereum/ohlcv"

Example Response

{
  "open": 2991.0164373997,
  "high": 4514.81,
  "low": 4347.24,
  "close": 2972.9752699223,
  "volume": 14018548707.668,
  "updated_at": 1759454319,
  "asset_code": "ETH",
  "asset_slug": "ethereum"
}

Response Fields

FieldTypeDescription
opennumberPrice at the start of the trailing 24h window
highnumberHighest price during the trailing 24h window
lownumberLowest price during the trailing 24h window
closenumberPrice at the end of the trailing 24h window
volumenumberTotal traded volume over the trailing 24h window
updated_atnumberUnix timestamp when values were last refreshed
asset_codestringAsset code (e.g., “ETH”)
asset_slugstringAsset slug (e.g., “ethereum”)

Notes

  • This endpoint is equivalent to using ?expand=ohlcv_last_24_h on the /v1/assets/{idOrSlug} endpoint, but returns only the OHLCV data.
  • The response includes asset_code and asset_slug for easy identification.

See also

Authorizations

x-api-key
string
header
required

Path Parameters

idOrSlug
string
required

Response

OHLCV data for the specified asset

open
number | null
required
high
number | null
required
low
number | null
required
close
number | null
required
volume
number | null
required
updated_at
number | null
required

Unix timestamp

asset_code
string
required
Maximum length: 20
asset_slug
string
required
Maximum length: 100
I