Skip to content

Crypto fear-and-greed history and overview ​

GET /api/v1.0/quote/crypto/fear-greed/history

Crypto 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 ​

NameTypeInRequiredDescription
time_rangestringquerynoTime range, default 1M

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/crypto/fear-greed/history' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response parameters ​

NameTypeDescription
data.itemsobject[]
data.items[].timestampintSeries timestamp, Unix microseconds
data.items[].indexintFear and greed index
data.latest_indexintLatest index
data.yesterday_indexintYesterday index
data.last_week_indexintLast week index
data.last_month_indexintLast month index
data.percentilenumberHistorical percentile of the latest print, percent

Errors ​

ret_codeerror.codeDescription
0—Success
-3invalid_parameterMissing or invalid parameter
-8unsupportedNot supported
-10no_dataNo 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
  }
}