市場

當前市場情緒

GEThttps://openapi.longbridge.com/v1/quote/market_temperature

鑑權

簽名方式:每個請求用 App Key / Secret 簽名。請求頭如下:

名稱類型必填說明
Authorizationstring · header必填OpenAPI 後台 上的賬戶 Access Token,作為原始 token 傳入(不帶 Bearer 前綴),並參與簽名計算。
X-Api-Keystring · header必填你的 App Key。
X-Timestampstring · header必填請求時間戳,單位秒(Unix 時間)。
X-Api-Signaturestring · header必填HMAC-SHA256 簽名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。
行情權限要求免費

開通 OpenAPI 後自動獲得,無需額外購買。

獲取指定市場的當前情緒溫度快照。評分範圍 0–100,數值越高表示市場越樂觀。

>_ CLI
longbridge market-temp [MARKET]

請求

查詢參數

名稱類型必填說明
marketstring必填市場代碼,`HK`、`US`、`CN`、`SG` 之一。

響應

響應欄位

名稱類型必填說明
temperatureinteger可選當前市場溫度(0–100)。
descriptionstring可選當前溫度的文字描述。
valuationinteger可選估值分數。
sentimentinteger可選情緒分數。
updated_atstring可選更新時間(Unix 時間戳)。

響應 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "temperature": 70,
    "description": "Warm & rising quickly",
    "valuation": 59,
    "sentiment": 82,
    "updated_at": "1774317902"
  }
}

錯誤碼

參見錯誤碼文檔。