Skip to content

Volume footprint by bar ​

GET /api/v1.0/quote/{symbol}/footprint

Returns estimated volume-by-price distributions for each regular-session bar in descending bar-time order (newest first), including POC, 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_timeintegerqueryYesStart bar timestamp in integer Unix seconds (1 to 253402300799); must be an actual bar timestamp for the selected interval
end_timeintegerqueryYesEnd bar timestamp in integer Unix seconds (1 to 253402300799), >= begin_time (-1 is not accepted); must be an actual bar timestamp in seconds or the previous page's next_end_time
ktypeintegerqueryNoK-line 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 3: 0=none, 3=forward cum-dividend; other values are unsupported
ticks_per_rowintegerqueryNoMinimum price ticks per row, range 1–1000, default 10; increase this or reduce num if total price rows exceed 20,000
va_percentintegerqueryNoTarget value-area percentage of total volume, range 1–100, default 70 (meaning 70%)
numintegerqueryNoMaximum displayed bars per page, range 1–1000, default 10

Request example ​

bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/US.AAPL/footprint?begin_time=1793332800&end_time=1793854800&ktype=2&autype=3&num=1&ticks_per_row=1000" \
  -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
compute_statusintegerFootprint status (distinct from volume-profile bitmasks): 0=normal, 1=unsupported or unavailable
calc_kline_typeobjectActual finer K-line interval used for calculation; null when uncomputable
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[]Footprint distributions ordered by bar time descending; 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
has_morebooleanWhether earlier displayed bars are available
next_end_timeintegerNext page end_time in Unix seconds; 0 on the last page (has_more=false); pass back unchanged without subtracting 1

Response example ​

The example below returns one daily bar with two price rows (when has_more=true, pass next_end_time=1793768400 as end_time on the next request):

json
{
  "code": 0,
  "message": "success",
  "data": {
    "calc_kline_type": {
      "base_type": 2,
      "custom_number": 15
    },
    "code": "US.AAPL",
    "compute_status": 0,
    "has_more": true,
    "items": [
      {
        "effective_begin_time": 1793854800,
        "effective_end_time": 1793854800,
        "poc_price": 345,
        "rows": [
          {
            "down_volume": "32192244.649822183",
            "high_price": 350,
            "low_price": 340,
            "up_volume": "13142423.596479956"
          },
          {
            "down_volume": "7687682.287511809",
            "high_price": 360,
            "low_price": 350,
            "up_volume": "4805852.106765043"
          }
        ],
        "vah_price": 350,
        "val_price": 340
      }
    ],
    "next_end_time": 1793768400
  }
}

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/ticks_per_row/va_percent/num, or too many total 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 ​

  • Queries regular trading sessions and full snapshots using ticks_per_row layout. Up/down volume is estimated by distributing finer K-line volume uniformly across its high-low range (close >= open vs close < open), not tick-level aggressor buy/sell volume.
  • Both begin_time and end_time must be actual bar timestamps in integer Unix seconds (divide millisecond time_key from Current K-line by 1000). For pagination, keep all other parameters unchanged and pass data.next_end_time unchanged as end_time while data.has_more=true; stop when has_more=false (next_end_time=0).
  • Options, event contracts, indices, plates, and FX are unsupported; bonds, warrants, and cryptocurrencies require intervals above 1 minute (ktype != 1).