跳转到主要内容
GET
/
api
/
market-data
/
market
/
temperature
获取市场温度
curl --request GET \
  --url https://openapi.fcontext.com/api/market-data/market/temperature \
  --header 'x-api-key: <api-key>'
{
  "temperature": {
    "market": 123,
    "temperature": 123,
    "timestamp": "2023-11-07T05:31:56Z",
    "records": [
      {}
    ]
  }
}

授权

x-api-key
string
header
必填

在账户设置中生成的 Financial Context key。请以 x-api-key: <key> 形式发送。

查询参数

market
string
默认值:HK

市场代码。支持 HK(默认)、USCN/SH/SZSG

history
boolean
默认值:false

是否返回历史序列。

start
string<date>

历史开始日期 YYYY-MM-DD。省略时,默认使用结束日期前 30 天。

end
string<date>

历史结束日期 YYYY-MM-DD。省略时,默认使用当前日期。

响应

市场温度

temperature
object

市场温度快照或历史序列数据。