Skip to Content

Current Market Temperature

Get Current Market Temperature

Request

HTTP MethodGET
HTTP URL/v1/quote/market_temperature

Parameters

NameTypeRequiredDescription
marketstringYESMarket, currently supports US, HK, SG, CN

Request Example

python
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

json
{
  "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