市场
鉴权
签名方式:每个请求用 App Key / Secret 签名。请求头如下:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
Authorization | string · header | 必填 | OpenAPI 后台 上的账户 Access Token,作为原始 token 传入(不带 Bearer 前缀),并参与签名计算。 |
X-Api-Key | string · header | 必填 | 你的 App Key。 |
X-Timestamp | string · header | 必填 | 请求时间戳,单位秒(Unix 时间)。 |
X-Api-Signature | string · header | 必填 | HMAC-SHA256 签名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。 |
行情权限要求免费
开通 OpenAPI 后自动获得,无需额外购买。
获取指定市场的当前情绪温度快照。评分范围 0–100,数值越高表示市场越乐观。
请求
查询参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
market | string | 必填 | 市场代码,`HK`、`US`、`CN`、`SG` 之一。 |
响应
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
temperature | integer | 可选 | 当前市场温度(0–100)。 |
description | string | 可选 | 当前温度的文字描述。 |
valuation | integer | 可选 | 估值分数。 |
sentiment | integer | 可选 | 情绪分数。 |
updated_at | string | 可选 | 更新时间(Unix 时间戳)。 |
响应 JSON 示例
{
"code": 0,
"message": "success",
"data": {
"temperature": 70,
"description": "Warm & rising quickly",
"valuation": 59,
"sentiment": 82,
"updated_at": "1774317902"
}
}错误码
参见错误码文档。