Skip to main content

Current Market Temperature

Get Current Market Temperature

SDK Links

Python
longport.openapi.QuoteContext.market_temperature
Rust
longport::quote::QuoteContext#market_temperature
Go
QuoteContext.MarketTemperature
Node.js
QuoteContext#marketTemperature

Request

HTTP MethodGET
HTTP URL/v1/quote/market_temperature

Parameters

NameTypeRequiredDescription
marketstringYESMarket, currently supports 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": "Temperature is moderate, maintaining stability",
"valuation": 23,
"sentiment": 78,
"updated_at": 1744616612
}
}

Response Status

StatusDescriptionSchema
200SuccessMarketTemperatureResponse
400Parameter ErrorNone

Schemas

MarketTemperatureResponse

NameTypeRequiredDescription
temperatureintegertrueTemperature value
descriptionstringtrueTemperature description
valuationintegertrueMarket valuation
sentimentintegertrueMarket sentiment
updated_atintegertrueUpdate time

Error Codes

Business Error CodeDescriptionTroubleshooting
2601500Server Internal ErrorPlease retry or contact technical support