Volume profile
GET/api/v1.0/quote/{symbol}/volume-profileReturns a volume-profile snapshot for the given symbol and time range, including the point of control (POC), value area boundaries (VAH, VAL), and estimated up/down volume per price row. Requires an authenticated user with real-time quote permission for the target market.
Request parameters
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | Yes | Symbol in MARKET.CODE format, e.g. HK.00700, US.AAPL (up to 160 bytes) |
begin_time | integer | query | Yes | Range start timestamp in integer Unix seconds (1 to 253402300799); aligned by the selected K-line interval—check effective_begin_time for actual coverage |
end_time | integer | query | Yes | Range end timestamp in integer Unix seconds (1 to 253402300799), >= begin_time (-1 is not accepted); aligned by the selected K-line interval—check effective_end_time for actual coverage |
ktype | integer | query | No | K-line interval (used as both calculation and display interval), default 2; same values as Current K-line: 1=1m, 2=day, 3=week, 4=month, 5=year, 6=5m, 7=15m, 8=30m, 9=60m, 10=3m, 11=quarter, 14=120m, 15=240m, 26=10m, 29=180m |
autype | integer | query | No | Adjustment type, default 1: 0=none, 1=forward ex-dividend, 2=backward ex-dividend, 3=forward cum-dividend, 4=backward cum-dividend |
layout_mode | string | query | No | Price row layout mode, default ROWS: ROWS targets a row count; TICKS_PER_ROW specifies minimum price ticks per row |
layout_count | integer | query | No | Target row count or ticks per row (depending on layout_mode), range 1–1000, default 100 |
va_percent | integer | query | No | Target value-area percentage of total volume, range 1–100, default 70 (meaning 70%) |
Request example
bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/US.AAPL/volume-profile?begin_time=1793332800&end_time=1793854800&ktype=2&autype=3&layout_count=20" \
-H "Authorization: Bearer <AccessToken>"Response fields
On success, code=0, message="success", and results appear under data; on failure, negative code, message, and trace_id are returned. Fields below describe data.
| Field | Type | Description |
|---|---|---|
code | string | Symbol |
response_type | string | Response type (FULL, UPDATE, or UNKNOWN); this endpoint always requests a full snapshot (typically FULL) |
compute_status | integer | Status bitmask: 1=uncomputable (including no data), 2=full, 4=partial latest subset, 8=merged price rows (combinable with 2 or 4, e.g. 10 = 2 | 8) |
calc_kline_type | object | Actual finer K-line interval used for calculation; null when uncomputable (compute_status=1) |
calc_kline_type.base_type | integer | Base interval unit: 1=second, 2=minute, 3=day, 4=week, 5=month, 6=quarter, 7=year |
calc_kline_type.custom_number | integer | Number of base intervals |
items | object[] | Volume-profile distributions ordered by interval start ascending; empty array when no data |
items[].effective_begin_time | integer | Effective starting K-point timestamp in Unix seconds |
items[].effective_end_time | integer | Effective ending K-point timestamp in Unix seconds |
items[].poc_price | number | Midpoint price of the point-of-control (POC) row |
items[].vah_price | number | Upper price boundary of the highest value-area row (VAH) |
items[].val_price | number | Lower price boundary of the lowest value-area row (VAL) |
items[].rows | object[] | Estimated up/down volume per price row; empty array when no data |
items[].rows[].low_price | number | Lower price boundary of the row |
items[].rows[].high_price | number | Upper price boundary of the row |
items[].rows[].up_volume | string | Estimated volume contributed by up K-lines (close >= open), unscaled decimal quantity string |
items[].rows[].down_volume | string | Estimated volume contributed by down K-lines (close < open), unscaled decimal quantity string |
Response example
The example below keeps the first two price rows from the response:
json
{
"code": 0,
"message": "success",
"data": {
"calc_kline_type": {
"base_type": 2,
"custom_number": 1
},
"code": "US.AAPL",
"compute_status": 2,
"items": [
{
"effective_begin_time": 1793332800,
"effective_end_time": 1793854800,
"poc_price": 343.858003933,
"rows": [
{
"down_volume": "313339.9092150731",
"high_price": 326.585003933,
"low_price": 325.083003933,
"up_volume": "937546.0066791779"
},
{
"down_volume": "1211348.3792388844",
"high_price": 328.087003933,
"low_price": 326.585003933,
"up_volume": "2250629.526155853"
}
],
"vah_price": 353.621003933,
"val_price": 338.601003933
}
],
"response_type": "FULL"
}
}Errors
| code | Description |
|---|---|
| -3 | Missing or invalid parameter, such as invalid symbol format, out-of-range begin_time/end_time, begin_time > end_time, invalid ktype/autype/layout_mode/layout_count/va_percent, or too many price rows |
| -5 | Data service error or request timeout |
| -7 | symbol not found |
| -8 | Unsupported market prefix, instrument category, or K-line interval combination |
| -9 | Unauthenticated user, missing real-time quote permission, or access denied by policy |
| -11 | Rate limit exceeded; back off for Retry-After seconds when provided |
| -13 | Rate-limit service temporarily unavailable |
Notes
- Only regular trading sessions are included. Volume from each finer K-line is distributed uniformly across its high-low range (
close >= opencounts towardup_volume, otherwisedown_volume); these are bar-level estimates rather than tick-level aggressor buy/sell volumes. - The calculation uses up to 10,000 finer bars by default; exceeding this cap covers only the most recent bars and sets
compute_statusbit4.ROWStargetslayout_countrows, while actual row counts may differ slightly; excessive rows may trigger row merging (compute_statusbit8, e.g.10 = 2 | 8) or return-3. - No-volume instruments (such as indices like
HK.800000or FX likeFX.USDCNH) or ranges without data may returncode=0withcompute_status=1,calc_kline_type=null, anditems=[].