# 千股千评意愿度

- 接口：stock_comment_desire_em
- 路径：/api/v1/market/data/stock-comment/desire
- 方法：GET
- 描述：查询单只 A 股的千股千评「市场热度-市场参与意愿」序列。按交易日返回该标的的市场参与意愿指数、5 日参与意愿及其变化值。返回结构包含 code、message 和 data，data 含 symbol、total 及 items 数组。
- 数据范围：单标的历史日序列（最近约 3 个月 / 58 个交易日，按 `trade_date` 倒序，最新一期以最近交易日为基准）
- 单次限量：单标的历史全量返回，无分页参数
- 提示：
  - `participation_wish` 为当日参与意愿，`participation_wish_5days` 为 5 日参与意愿。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| symbol | string | Y | 证券代码 |

## 输出参数

成功响应外层固定为 `code`、`message`、`data`：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| code | integer | Y | 状态码 |
| message | string | Y | 状态信息 |
| data | object | Y | 意愿度数据（见下） |

data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| symbol | string | Y | 证券代码 |
| total | integer | Y | 序列总条数 |
| items | array | Y | 意愿度序列 |

items 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| trade_date | string | Y | 交易日 |
| security_code | string | Y | 证券代码 |
| participation_wish | string | Y | 市场参与意愿 |
| participation_wish_5days | string | Y | 5 日参与意愿 |
| participation_wish_change | string | Y | 参与意愿变化 |
| participation_wish_5days_change | string | Y | 5 日参与意愿变化 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/stock-comment/desire?symbol=600000"
```

Python（[`ftshare`](https://github.com/FTShare-Lab/FTShare-python-sdk.git) SDK，方法 `market.stock_comment_desire_em`，默认返回 pandas `DataFrame`）：

```python
import ftshare as ft

market = ft.market_api()

# symbol 必填（个股代码），返回参与意愿时间序列
df = market.stock_comment_desire_em(symbol="600519")
print(df.shape, list(df.columns))
# (20, 6) ['trade_date', 'security_code', 'participation_wish', 'participation_wish_5days', 'participation_wish_change', 'participation_wish_5days_change']

# 返回原始 JSON
payload = market.stock_comment_desire_em(symbol="600519", raw=True)
```


## 数据样例

| symbol | trade_date | security_code | participation_wish | participation_wish_5days | participation_wish_change | participation_wish_5days_change |
|--------|------------|---------------|--------------------|--------------------------|---------------------------|---------------------------------|
| 600519 | 2026-08-17 | 600519 | 46.9200 | 46.6400 | 5.1500 | -2.0200 |
| 600519 | 2026-08-14 | 600519 | 41.7700 | 48.6700 | -12.9700 | -1.1800 |
| 600519 | 2026-08-13 | 600519 | 54.7400 | 49.8500 | 5.7500 | 1.5300 |
