跳轉到內容

歷史市場溫度

該接口用於獲取歷史市場溫度。

CLI安裝 CLI

bash
# 港股 2025 年 Q1 歷史溫度
longbridge market-temp HK --history --start 2025-01-01 --end 2025-03-31
# 美股 2025 年 1 月歷史溫度
longbridge market-temp US --history --start 2025-01-01 --end 2025-01-31
# A 股 2025 年上半年歷史溫度
longbridge market-temp CN --history --start 2025-01-01 --end 2025-06-30

Request

HTTP MethodGET
HTTP URL/v1/quote/history_market_temperature

Parameters

NameTypeRequiredDescription
marketstringYES市場,目前支持 US、HK、SG、CN
start_datestringYES開始日期,最小到 2016 年,比如:20240101
end_datestringYES結束日期,比如:20250101

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

json
{
  "code": 0,
  "data": {
    "type": "month",
    "list": [
      {
        "timestamp": 1580486400,
        "temperature": 36,
        "valuation": 12,
        "sentiment": 46
      },
      {
        "timestamp": 1582992000,
        "temperature": 36,
        "valuation": 12,
        "sentiment": 46
      }
    ]
  }
}

Response Status

StatusDescriptionSchema
200返回成功HistoryMarketTemperatureResponse
400參數錯誤None

Schemas

HistoryMarketTemperatureResponse

NameTypeRequiredDescription
listobject[]true列表
∟timestampintegertrue時間戳
∟temperatureintegertrue溫度值
∟valuationintegertrue估值值
∟sentimentintegertrue情緒值
typestringtrue數據顆粒度
day: 日;week: 周;month: 月

錯誤碼

業務錯誤碼描述排查建議
2601500服務端內部錯誤請重試或聯繫技術人員處理