Market

Historical Market Temperature

GEThttps://openapi.longbridge.com/v1/quote/history_market_temperature

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.
Quote Permission RequiredFree

Included with OpenAPI activation — no extra purchase needed.

Get the historical market temperature time series for the specified market within a date range. Each data point contains the daily temperature, valuation, and sentiment scores (all scored 0–100).

>_ CLI
longbridge market-temp [MARKET] --history --start YYYY-MM-DD --end YYYY-MM-DD

Request

Query parameters

NameTypeRequiredDescription
marketstringRequiredMarket code. One of `HK`, `US`, `CN`, `SG`.
start_datestringRequiredStart date in `YYYYMMDD` format (e.g. `20250101`).
end_datestringRequiredEnd date in `YYYYMMDD` format (e.g. `20250110`).

Response

Response properties

NameTypeRequiredDescription
listobject[]OptionalMarket-temperature time series.
└ timestampstringOptionalUnix timestamp of the data point.
└ temperatureintegerOptionalMarket temperature (0–100).
└ valuationintegerOptionalValuation score.
└ sentimentintegerOptionalSentiment score.
typestringOptionalGranularity of the series, e.g. `day`.

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "list": [
      {
        "timestamp": "1735794000",
        "temperature": 58,
        "valuation": 54,
        "sentiment": 61
      },
      {
        "timestamp": "1735880400",
        "temperature": 59,
        "valuation": 56,
        "sentiment": 63
      }
    ],
    "type": "day"
  }
}

Error code

See the Error Codes page for the full list of error codes.