ETF Style Box
GET/api/v1.0/quote/{symbol}/etf/style-boxGet Morningstar investment style box classification for an ETF (Large/Mid/Small Cap x Value/Blend/Growth for equities, or High/Medium/Low Credit Quality x Limited/Moderate/Extensive Interest-Rate Sensitivity for bonds).
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/style-box' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].style_type | integer | Style box enum code (1~9 bond style box, 10~18 equity style box) |
data.items[].style_name | integer | Readable style box enum name |
data.items[].update_time | integer | Update timestamp in milliseconds |
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": [
{
"style_type": 0,
"style_name": 0,
"update_time": 0
}
]
}
}