Skip to content

Volume profile ​

GET /api/v1.0/quote/{symbol}/volume-profile

Returns 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 ​

ParameterTypeInRequiredDescription
symbolstringpathYesSymbol in MARKET.CODE format, e.g. HK.00700, US.AAPL (up to 160 bytes)
begin_timeintegerqueryYesRange start timestamp in integer Unix seconds (1 to 253402300799); aligned by the selected K-line interval—check effective_begin_time for actual coverage
end_timeintegerqueryYesRange 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
ktypeintegerqueryNoK-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
autypeintegerqueryNoAdjustment type, default 1: 0=none, 1=forward ex-dividend, 2=backward ex-dividend, 3=forward cum-dividend, 4=backward cum-dividend
layout_modestringqueryNoPrice row layout mode, default ROWS: ROWS targets a row count; TICKS_PER_ROW specifies minimum price ticks per row
layout_countintegerqueryNoTarget row count or ticks per row (depending on layout_mode), range 1–1000, default 100
va_percentintegerqueryNoTarget 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.

FieldTypeDescription
codestringSymbol
response_typestringResponse type (FULL, UPDATE, or UNKNOWN); this endpoint always requests a full snapshot (typically FULL)
compute_statusintegerStatus 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_typeobjectActual finer K-line interval used for calculation; null when uncomputable (compute_status=1)
calc_kline_type.base_typeintegerBase interval unit: 1=second, 2=minute, 3=day, 4=week, 5=month, 6=quarter, 7=year
calc_kline_type.custom_numberintegerNumber of base intervals
itemsobject[]Volume-profile distributions ordered by interval start ascending; empty array when no data
items[].effective_begin_timeintegerEffective starting K-point timestamp in Unix seconds
items[].effective_end_timeintegerEffective ending K-point timestamp in Unix seconds
items[].poc_pricenumberMidpoint price of the point-of-control (POC) row
items[].vah_pricenumberUpper price boundary of the highest value-area row (VAH)
items[].val_pricenumberLower price boundary of the lowest value-area row (VAL)
items[].rowsobject[]Estimated up/down volume per price row; empty array when no data
items[].rows[].low_pricenumberLower price boundary of the row
items[].rows[].high_pricenumberUpper price boundary of the row
items[].rows[].up_volumestringEstimated volume contributed by up K-lines (close >= open), unscaled decimal quantity string
items[].rows[].down_volumestringEstimated 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 ​

codeDescription
-3Missing 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
-5Data service error or request timeout
-7symbol not found
-8Unsupported market prefix, instrument category, or K-line interval combination
-9Unauthenticated user, missing real-time quote permission, or access denied by policy
-11Rate limit exceeded; back off for Retry-After seconds when provided
-13Rate-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 >= open counts toward up_volume, otherwise down_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_status bit 4. ROWS targets layout_count rows, while actual row counts may differ slightly; excessive rows may trigger row merging (compute_status bit 8, e.g. 10 = 2 | 8) or return -3.
  • No-volume instruments (such as indices like HK.800000 or FX like FX.USDCNH) or ranges without data may return code=0 with compute_status=1, calc_kline_type=null, and items=[].