ETF Indicator Analysis
GET/api/v1.0/quote/{symbol}/etf/indicator-analysisETF quantitative analysis: profit ability, risk resistance and price/performance with indicator rows. period: 1=1y 2=3y 3=5y. Percentages and numeric indicators are returned as actual values.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | yes | ETF symbol (path param), e.g. US.VOO / US.SPY |
period | int | query | no | Window: 1=1y (default) / 2=3y / 3=5y |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/etf/indicator-analysis?period=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.update_time | integer | Update time, unix seconds |
data.items[].strategy | integer | Strategy: PROFIT / ANTI_RISK / PRICE_PERF |
data.items[].beat_peer_pct | string | Percent beating peers |
data.items[].rank | integer | Peer rank |
data.items[].rank_count | integer | Peer count |
data.items[].indicators | object | Indicator rows under this strategy |
data.items[].indicators[].name_id | string | Indicator name lang id or raw name |
data.items[].indicators[].value | string | Value. Percent /1e7, numeric /1e9 |
data.items[].indicators[].mean | string | Peer mean, same scale as value |
data.items[].indicators[].value_type | integer | PERCENT or NUMBER |
data.items[].indicators[].rank | integer | Peer rank |
data.items[].indicators[].rank_count | integer | Peer count |
data.items[].indicators[].is_excellent | string | Whether marked excellent |
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": {
"update_time": "example",
"items": [
{
"strategy": 0,
"beat_peer_pct": "example",
"rank": 0,
"rank_count": 0,
"indicators": "example"
}
]
}
}