ETFs Tracking an Index
GET/api/v1.0/quote/{symbol}/index-related-etfList ETFs tracking a given index, e.g. Hang Seng Index HK.800000. For equities held by ETFs use quote.equity_related_etf; for a single-stock ETF underlying use quote.etf_related_equity.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | yes | Index symbol (path param), e.g. HK.800000 |
page_size | int | query | no | Page size, default 20, max 100 |
page_flag | string | query | no | Pagination cursor; omit on first page, pass back pagination.page_flag |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/index-related-etf?page_size=1&page_flag=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].code | string | ETF symbol |
data.items[].name | string | ETF name |
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": {
"items": [
{
"code": "example",
"name": "example"
}
]
},
"pagination": {
"completed": true,
"page_flag": ""
}
}