Read crypto session volume profiles
curl --request GET \
--url https://api.darvas.app/v1/crypto/volume-profile \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/volume-profile"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/volume-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT-SWAP",
"exchange": "okx",
"market_type": "swap",
"period": "1D",
"resolution": "medium",
"value_area_percent": 70,
"profiles": [
{
"period_start": "2026-11-28T00:00:00.000Z",
"period_end": "2026-11-29T00:00:00.000Z",
"bucket_size": 50,
"buy_notional_usd": 1820500000.4,
"sell_notional_usd": 1790200000.1,
"total_notional_usd": 3610700000.5,
"delta_notional_usd": 30300000.3,
"trade_count": 912400,
"poc_price": 97525,
"value_area_high": 98150,
"value_area_low": 96900,
"buckets": [
{
"price_from": 97500,
"price_to": 97550,
"buy_notional_usd": 18250000.5,
"sell_notional_usd": 16120000.2,
"total_notional_usd": 34370000.7,
"delta_notional_usd": 2130000.3,
"trade_count": 8412
}
]
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Crypto Profiles & Structure
Crypto Volume Profile, POC & Value Area API
Compute session and rolling crypto volume profiles with Point of Control (POC), Value Area High/Low (VAH/VAL) and buy/sell volume per price bin.
Read crypto session volume profiles
curl --request GET \
--url https://api.darvas.app/v1/crypto/volume-profile \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/volume-profile"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/volume-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT-SWAP",
"exchange": "okx",
"market_type": "swap",
"period": "1D",
"resolution": "medium",
"value_area_percent": 70,
"profiles": [
{
"period_start": "2026-11-28T00:00:00.000Z",
"period_end": "2026-11-29T00:00:00.000Z",
"bucket_size": 50,
"buy_notional_usd": 1820500000.4,
"sell_notional_usd": 1790200000.1,
"total_notional_usd": 3610700000.5,
"delta_notional_usd": 30300000.3,
"trade_count": 912400,
"poc_price": 97525,
"value_area_high": 98150,
"value_area_low": 96900,
"buckets": [
{
"price_from": 97500,
"price_to": 97550,
"buy_notional_usd": 18250000.5,
"sell_notional_usd": 16120000.2,
"total_notional_usd": 34370000.7,
"delta_notional_usd": 2130000.3,
"trade_count": 8412
}
]
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}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.| Coverage | Details |
|---|---|
| Markets | OKX perpetual swaps such as BTC-USDT-SWAP (default) and ETH-USDT-SWAP; other tickers return 400 |
| Sessions | period: 1D (default, a UTC day), 1W (a week from Monday) or 1M (a calendar month) |
| Bucket size | resolution: fine, medium (default) or coarse, scaled to the market’s volatility |
| History | periods from 1 to 30 sessions (default 1), ending with the session that holds period_start |
| Value area | 70 percent of each session’s notional |
| MCP tool | get_crypto_volume_profile on the data API MCP server |
Sessions, buckets and value area
- Choosing sessions.
period_startis 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=7returns the seven days ending with that day. - Session totals. Each entry in
profiles(oldest first) carriesperiod_start,period_end,bucket_size,buy_notional_usd,sell_notional_usd,total_notional_usd,delta_notional_usd(bought less sold) andtrade_count. - Point of control and value area.
poc_priceis 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_highis the top of its highest bucket andvalue_area_lowthe bottom of its lowest. All three arenullfor a session without trades. - Buckets.
bucketslists the session’s price buckets lowest first, each withprice_from,price_to, the four notional fields in USD andtrade_count. - Live tail.
include_live_tail=falsereturns only what the stored buckets hold, which keeps the open session stable between calls.
/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
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
vp = requests.get(
"https://api.darvas.app/v1/crypto/volume-profile",
headers=headers,
params={"ticker": "BTC-USDT-SWAP", "period": "1D", "periods": 5, "resolution": "fine"},
).json()
for profile in vp["profiles"]:
print(
profile["period_start"][:10],
"POC:", profile["poc_price"],
"VAL:", profile["value_area_low"],
"VAH:", profile["value_area_high"],
"delta USD:", profile["delta_notional_usd"],
)
today = vp["profiles"][-1]
busiest = sorted(today["buckets"], key=lambda b: b["total_notional_usd"], reverse=True)[:3]
for bucket in busiest:
print(bucket["price_from"], bucket["price_to"], bucket["total_notional_usd"], bucket["trade_count"])
# Four weekly ETH perpetual profiles ending with the week of 24 November 2026, stored buckets only
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/crypto/volume-profile?ticker=ETH-USDT-SWAP&period=1W&periods=4&period_start=2026-11-24&resolution=coarse&include_live_tail=false"
Authorizations
apiKeybearerKey
Query Parameters
Response
Read crypto session volume profiles: one page.
The answer of GET /crypto/volume-profile.