Cumulative Stock Connect Flows
GET/api/v1.0/quote/stock-connect/cumulativeCumulative 1/5/20/60-day Stock Connect net inflow for a single channel. Today's realtime value may be absent off-session; amounts in yuan. For intraday use quote.stock_connect_intraday.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
channel | string | query | yes | Single channel: SH / SZ / HK_SH / HK_SZ |
data_kind | string | query | no | QUOTA (default) / NET_TURNOVER / TRADING_AMOUNT |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/stock-connect/cumulative?channel=1&data_kind=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.channel_id | integer | Server channel id |
data.flow_in_1d | string | Today net inflow in yuan (may be absent off-session) |
data.flow_in_5d | string | 5-day cumulative net inflow in yuan |
data.flow_in_20d | string | 20-day cumulative net inflow in yuan |
data.flow_in_60d | string | 60-day cumulative net inflow in yuan |
data.update_time | integer | Today data update unix seconds |
data.cumulative_time | integer | Cumulative data as-of unix seconds |
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": {
"channel_id": 0,
"flow_in_1d": "example",
"flow_in_5d": "example",
"flow_in_20d": "example",
"flow_in_60d": "example",
"update_time": 0,
"cumulative_time": 0
}
}