Crypto fear-and-greed history and overview
GET/api/v1.0/quote/crypto/fear-greed/historyCrypto fear-and-greed history and overview. time_range: 24H / 1W / 1M / 3M / 1Y / ALL. Returns overview (latest / yesterday / last week / last month) and the index series.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
time_range | string | query | no | Time range, default 1M |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/crypto/fear-greed/history' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].timestamp | int | Series timestamp, Unix microseconds |
data.items[].index | int | Fear and greed index |
data.latest_index | int | Latest index |
data.yesterday_index | int | Yesterday index |
data.last_week_index | int | Last week index |
data.last_month_index | int | Last month index |
data.percentile | number | Historical percentile of the latest print, percent |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"timestamp": 1710000000000000,
"index": 0
}
],
"latest_index": 0,
"yesterday_index": 0,
"last_week_index": 0,
"last_month_index": 0,
"percentile": 1.2
}
}