Skip to main content
Read crypto session volume profiles

Overview

This endpoint returns session volume profiles of an OKX perpetual swap, built from every trade Darvas records. For each UTC day, week or calendar month, it gives the taker buy and sell notional, delta and trade count of each price bucket, the session totals, the point of control and the 70 percent value area. By default the open session also includes its newest trades that the stored buckets do not hold yet.

Sessions, buckets and value area

  • Choosing sessions. period_start is any moment of the newest session to return, as ISO 8601, a UTC date (2026-11-24) or Unix milliseconds; without it, the newest session is the current one. period=1D&periods=7 returns the seven days ending with that day.
  • Session totals. Each entry in profiles (oldest first) carries period_start, period_end, bucket_size, buy_notional_usd, sell_notional_usd, total_notional_usd, delta_notional_usd (bought less sold) and trade_count.
  • Point of control and value area. poc_price is the middle of the bucket with the most notional. The value area starts at that bucket and adds the larger neighbour above or below until 70 percent of the session’s notional is inside; value_area_high is the top of its highest bucket and value_area_low the bottom of its lowest. All three are null for a session without trades.
  • Buckets. buckets lists the session’s price buckets lowest first, each with price_from, price_to, the four notional fields in USD and trade_count.
  • Live tail. include_live_tail=false returns only what the stored buckets hold, which keeps the open session stable between calls.
For a profile of any time range on other exchanges or a Darvas aggregated pair, see /crypto/volume-profile/fixed-range. For time-based market profile structure, see /crypto/tpo. The same fine buckets rank the busiest zones in /crypto/large-trades/zones, and per-bar taker volume by price is in /crypto/footprint.

Examples

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

ticker
string

An OKX perpetual swap such as BTC-USDT-SWAP; BTC-USDT-SWAP without it.

Maximum string length: 48
Pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,40}-SWAP$
period
enum<string>
default:1D

The session: a UTC day, a week from Monday, or a calendar month; 1D without it.

Available options:
1D,
1W,
1M
Maximum string length: 2
resolution
enum<string>
default:medium

The bucket size: fine, medium or coarse; medium without it.

Available options:
fine,
medium,
coarse
Maximum string length: 6
period_start
string

A moment of the newest session to return: ISO 8601, a UTC date or Unix milliseconds; now without it.

Maximum string length: 40
Pattern: ^[0-9][0-9T:.+Z-]{0,39}$
periods
integer<int32>
default:1

Sessions to return, the newest ending with period_start (1 to 30; default 1).

Required range: 1 <= x <= 30
include_live_tail
enum<string>
default:true

false to leave out the open session's newest trades the stored buckets do not hold yet; true without it.

Available options:
true,
false
Maximum string length: 5

Response

Read crypto session volume profiles: one page.

The answer of GET /crypto/volume-profile.

ticker
string
required

The perpetual of the profiles.

Maximum string length: 64
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$
Example:

"BTC-USDT-SWAP"

exchange
enum<string>
required

The exchange of the profiles.

Available options:
okx
Example:

"okx"

market_type
enum<string>
required

The market of the profiles.

Available options:
swap
Example:

"swap"

period
enum<string>
required

The volume profile's session length.

Available options:
1D,
1W,
1M
Example:

"1D"

resolution
enum<string>
required

The bucket size.

Available options:
fine,
medium,
coarse
Example:

"medium"

value_area_percent
integer<int64>
required

The share of volume each value area holds, in percent.

Required range: 0 <= x <= 100
Example:

70

profiles
object[]
required

The volume profile of each session, oldest first.

Maximum array length: 30