# 现金流支持股票代码

- 接口：get_cashflow_stock_code
- 路径：/api/v2/market/data/finance/cashflow-stock-code
- 方法：GET
- 描述：获取所有有现金流量表数据的股票代码与名称列表，**不分页**，一次返回全量。用于前端在调 `finance/cashflow` 前枚举可查询的标的。无请求参数。
- 数据范围：最新快照（当前现金流量表数据中所有出现过的股票代码集合）
- 单次限量：无分页，一次性返回全部支持标的
- 提示：
  - 无入参。
  - 返回 `stock_code` 格式为 6 位数字 + 交易所后缀（如 `000001.SZ`）。

## 输入参数

无。


## 输出参数
成功响应外层固定为 `code`、`message`、`data`：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| code | integer | Y | HTTP 状态码；成功固定为 200 |
| message | string | Y | 成功固定为 `success`；失败时为中文错误信息 |
| data | object / null | Y | 成功时为业务数据对象；失败时为 `null`。其字段如下 |


data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| items | array | Y | 股票代码与名称列表 |

items 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| stock_code | string | Y | A 股代码（如 000001.SZ） |
| stock_name | string | Y | 股票名称 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v2/market/data/finance/cashflow-stock-code"
```


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

```python
import ftshare as ft

market = ft.market_api()
df = market.cashflow_stock_code()
print(df)
```

## 数据样例

| stock_code | stock_name |
|------------|------------|
| 000001.SZ | 平安银行 |
| 000002.SZ | 万科A |
| 000004.SZ | *ST国华 |
| ... | ... |
