# 获取历史市场温度

`GET` `/v1/quote/history_market_temperature`

> **行情权限要求 · 免费**
> 开通 OpenAPI 后自动获得，无需额外购买。
> _OpenAPI 行情权限独立于 App/Web 行情权限_

获取指定市场在日期范围内的历史市场温度时间序列，每个数据点包含当日情绪温度、估值和情绪分项评分（均为 0–100 分制）。

## Parameters

### Query Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `market` | string | Yes | 市场代码，`HK`、`US`、`CN`、`SG` 之一。 |
| `start_date` | string | Yes | 起始日期，`YYYYMMDD` 格式（如 `20250101`）。 |
| `end_date` | string | Yes | 结束日期，`YYYYMMDD` 格式（如 `20250110`）。 |

## Request Example

```bash
curl --request GET \
  --url 'https://openapi.longbridge.com/v1/quote/history_market_temperature?market=<market>&start_date=<start_date>&end_date=<end_date>' \
  --header 'Authorization: Bearer <access_token>'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `list` | object[] | No | 市场温度时间序列。 |
| `└ timestamp` | string | No | 数据点的 Unix 时间戳。 |
| `└ temperature` | integer | No | 市场温度（0–100）。 |
| `└ valuation` | integer | No | 估值分数。 |
| `└ sentiment` | integer | No | 情绪分数。 |
| `type` | string | No | 序列粒度，如 `day`。 |

### Response JSON Example

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