市場
鑑權
簽名方式:每個請求用 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"
}
}錯誤碼
參見錯誤碼文檔。