Volume footprint by bar
GET/api/v1.0/quote/{symbol}/footprintReturns 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
| 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 | Start bar timestamp in integer Unix seconds (1 to 253402300799); must be an actual bar timestamp for the selected interval |
end_time | integer | query | Yes | End 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 |
ktype | integer | query | No | K-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 |
autype | integer | query | No | Adjustment type, default 3: 0=none, 3=forward cum-dividend; other values are unsupported |
ticks_per_row | integer | query | No | Minimum price ticks per row, range 1–1000, default 10; increase this or reduce num if total price rows exceed 20,000 |
va_percent | integer | query | No | Target value-area percentage of total volume, range 1–100, default 70 (meaning 70%) |
num | integer | query | No | Maximum 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.
| Field | Type | Description |
|---|---|---|
code | string | Symbol |
compute_status | integer | Footprint status (distinct from volume-profile bitmasks): 0=normal, 1=unsupported or unavailable |
calc_kline_type | object | Actual finer K-line interval used for calculation; null when uncomputable |
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[] | Footprint distributions ordered by bar time descending; 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 |
has_more | boolean | Whether earlier displayed bars are available |
next_end_time | integer | Next 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
| 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/ticks_per_row/va_percent/num, or too many total 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
- Queries regular trading sessions and full snapshots using
ticks_per_rowlayout. Up/down volume is estimated by distributing finer K-line volume uniformly across its high-low range (close >= openvsclose < open), not tick-level aggressor buy/sell volume. - Both
begin_timeandend_timemust be actual bar timestamps in integer Unix seconds (divide millisecondtime_keyfrom Current K-line by1000). For pagination, keep all other parameters unchanged and passdata.next_end_timeunchanged asend_timewhiledata.has_more=true; stop whenhas_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).