ETF Portfolio Allocation
GET/api/v1.0/quote/{symbol}/etf/investment-distributionGet ETF investment portfolio breakdown across asset classes (ASSETS_BREAKDOWN), sectors (SECTORS), regions (REGIONS), credit ratings (CREDIT_RATING), currencies (CURRENCY), and duration (DURATION).
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | yes | ETF symbol (path param), e.g. US.SPY / US.QQQ / HK.02800 |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/etf/investment-distribution' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.distributions | object[] | |
data.distributions[].distribution_type | integer | Breakdown dimension type |
data.distributions[].update_time | integer | Update timestamp in milliseconds |
data.distributions[].items | object | |
data.distributions[].items[].name | string | Category name |
data.distributions[].items[].weight_pct | number | Weight in percent |
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": {
"distributions": [
{
"distribution_type": 0,
"update_time": 0,
"items": "example"
}
]
}
}