Historical market breadth
GET/api/v1.0/quote/{symbol}/plate-indicatorRetrieve historical constituent indicators for a plate or index in ascending bar order, including total constituents, advances/declines, 52-week highs/lows, and stocks above MA200. Requires login and real-time quote permission for the target market.
Request parameters
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | Yes | Plate or index symbol in MARKET.CODE format, e.g. US..SPX (up to 32 bytes); coverage varies by instrument |
ktype | integer | query | No | Bar interval, defaulting to 2 (day): 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 |
begin_time | integer | query | Yes | Inclusive start in Unix microseconds (1–9007199254000000), rounded up to whole seconds |
end_time | integer | query | Yes | Inclusive end in Unix microseconds (1–9007199254000000), rounded down to whole seconds; returns -3 if the rounded interval is empty |
page_flag | string | query | No | Pagination cursor (whole-second Unix microsecond string); omit on the first page, then pass back the previous page_flag unchanged with identical filters (up to 16 bytes) |
page_size | integer | query | No | Maximum bars per page, 1–1000, default 100 |
fields | string[] | query | No | Indicators to return, repeated by key (e.g. fields=rise_count&fields=fall_count), 1–6 items from total_stock, rise_count, fall_count, new_high_52w, new_low_52w, stock_ma200; omit for all six |
Request example
bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/US..SPX/plate-indicator?begin_time=1793332800000000&end_time=1793854800000000&ktype=2&page_size=2" \
-H "Authorization: Bearer <AccessToken>"Response fields
Fields under data. This endpoint uses the code / message response envelope (code=0 indicates success).
| Field | Type | Description |
|---|---|---|
code | string | Requested plate or index symbol |
items | object[] | Indicator bars ordered by time ascending; empty array when no data |
items[].time | integer | Bar time in Unix microseconds |
items[].time_zone | integer | UTC offset in hours, e.g. -4 or -5 |
items[].total_stock | string | Total constituents as an integer string; omitted when unsupported or absent, "0" for a measured zero |
items[].rise_count | string | Rising constituents as an integer string; omitted when unsupported or absent, "0" for a measured zero |
items[].fall_count | string | Falling constituents as an integer string; omitted when unsupported or absent, "0" for a measured zero |
items[].new_high_52w | string | Constituents at 52-week highs as an integer string; omitted when unsupported or absent, "0" for a measured zero |
items[].new_low_52w | string | Constituents at 52-week lows as an integer string; omitted when unsupported or absent, "0" for a measured zero |
items[].stock_ma200 | string | Constituents above MA200 as an integer string; omitted when unsupported or absent, "0" for a measured zero |
completed | boolean | Whether all pages have been returned; stop paging when true |
page_flag | string | Next-page cursor (microsecond cursor string); empty string when completed is true, otherwise pass back unchanged |
Response example
json
{
"code": 0,
"message": "success",
"data": {
"code": "US..SPX",
"completed": false,
"items": [
{
"fall_count": "275",
"new_high_52w": "0",
"new_low_52w": "0",
"rise_count": "228",
"stock_ma200": "308",
"time": 1793332800000000,
"time_zone": -4,
"total_stock": "503"
},
{
"fall_count": "155",
"new_high_52w": "0",
"new_low_52w": "0",
"rise_count": "347",
"stock_ma200": "331",
"time": 1793595600000000,
"time_zone": -5,
"total_stock": "503"
}
],
"page_flag": "1793682000000000"
}
}Errors
| code | Description |
|---|---|
| -3 | Missing or invalid parameter, page_flag not a whole-second cursor within the requested range, or empty interval after second rounding |
| -5 | Backend query or service error |
| -7 | symbol does not resolve to a known plate or index |
| -8 | Unsupported market prefix, instrument, or bar interval |
| -9 | Not logged in or missing real-time quote permission for the target market |
| -11 | Rate limit exceeded |
Notes
- Because the backend operates at second precision, the effective inclusive range is
[ceil(begin_time / 1e6), floor(end_time / 1e6)]. - Error responses return
{code, message, trace_id}withoutdata.