当前市场温度
获取当前市场温度
SDK Links
Python |
Rust |
Go |
Node.js |
Request
HTTP Method | GET |
HTTP URL | /v1/quote/market_temperature |
Parameters
Name | Type | Required | Description |
---|---|---|---|
market | string | YES | 市场,目前支持 US、HK、SG、CN |
Request Example
from longport.openapi import QuoteContext, Config, Market
config = Config.from_env()
ctx = QuoteContext(config)
resp = ctx.market_temperature(Market.US)
print(resp)
Response
Response Headers
- Content-Type: application/json
Response Example
{
"code": 0,
"data": {
"temperature": 50,
"description": "温度适宜,保持平稳",
"valuation": 23,
"sentiment": 78,
"updated_at": 1744616612
}
}
Response Status
Status | Description | Schema |
---|---|---|
200 | 返回成功 | MarketTemperatureResponse |
400 | 参数错误 | None |
Schemas
MarketTemperatureResponse
Name | Type | Required | Description |
---|---|---|---|
temperature | integer | true | 温度值 |
description | string | true | 温度描述 |
valuation | integer | true | 市场估值 |
sentiment | integer | true | 市场情绪 |
updated_at | integer | true | 更新时间 |
错误码
业务错误码 | 描述 | 排查建议 |
---|---|---|
2601500 | 服务端内部错误 | 请重试或联系技术人员处理 |