ETFs Holding a Stock
GET/api/v1.0/quote/{symbol}/related-etfLook up ETFs holding a given equity as a constituent along with the stock's weight in each ETF. To look up the single underlying equity of a single-stock ETF use quote.etf_related_equity.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | yes | Equity symbol (path param), e.g. US.NVDA / US.AAPL / HK.00700 |
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/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, e.g. US.SPY |
data.items[].name | string | ETF name |
data.items[].weight_pct | number | Weight of the equity in the ETF (percent, unscaled by 100) |
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",
"weight_pct": "example"
}
]
},
"pagination": {
"completed": true,
"page_flag": ""
}
}