Stock Connect Flow Rankings
GET/api/v1.0/quote/stock-connect/rankStock Connect per-stock net-inflow ranking. market=SH / SZ / HK; period_type DAY/WEEK/MONTH/QUARTER; default sort by net-inflow amount desc. Omit date to use the latest session. Amounts in yuan.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
market | string | query | yes | Market: SH / SZ / HK |
period_type | string | query | no | Period: DAY (default) / WEEK / MONTH / QUARTER |
sort_field | string | query | no | Sort: SHARES / AMOUNT (default) / RATIO |
sort_dir | string | query | no | Sort direction, default DESC |
date | string | query | no | Query date yyyy-MM-dd; omit for now |
limit | int | query | no | Page size, default 20, max 100 |
page_flag | string | query | no | Pagination cursor; omit on first page |
Example
bash
curl -X GET 'https://webapi.futunn.com/api/v1.0/quote/stock-connect/rank?market=1&period_type=1&sort_field=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.update_time | integer | Ranking as-of unix seconds |
data.items[].code | string | Symbol, e.g. SH.600519 |
data.items[].name | string | Stock name |
data.items[].net_inflow_shares | integer | Net inflow shares |
data.items[].net_inflow_amount | string | Net inflow amount in yuan |
data.items[].inflow_ratio | string | Net inflow shares / float (0~1) |
pagination.completed | string | True when this is the last page |
pagination.page_flag | string | Next page cursor |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -7 | invalid_symbol | Unknown symbol |
| -8 | unsupported | Market or product is not supported |
| -9 | permission_denied | Missing permission |
| -10 | no_data | No data |
| -11 | rate_limited | Too many requests |
Sample
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"update_time": "example",
"items": [
{
"code": "example",
"name": "example",
"net_inflow_shares": 0,
"net_inflow_amount": "example",
"inflow_ratio": "example"
}
]
},
"pagination": {
"completed": true,
"page_flag": ""
}
}