skills/tushare-data-1.0.5/references/数据接口/股票数据/资金流向数据/行业资金流向(THS).md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

74 lines
2.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 同花顺行业资金流向THS
----
接口moneyflow_ind_ths
描述:获取同花顺行业资金流向,每日盘后更新
限量单次最大可调取5000条数据可以根据日期和代码循环提取全部数据
积分5000积分可以调取具体请参阅[积分获取办法](https://tushare.pro/document/1?doc_id=13)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | N | 代码
trade_date | str | N | 交易日期(YYYYMMDD格式下同)
start_date | str | N | 开始日期
end_date | str | N | 结束日期
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
trade_date | str | Y | 交易日期
ts_code | str | Y | 板块代码
industry | str | Y | 板块名称
lead_stock | str | Y | 领涨股票名称
close | float | Y | 收盘指数
pct_change | float | Y | 指数涨跌幅
company_num | int | Y | 公司数量
pct_change_stock | float | Y | 领涨股涨跌幅
close_price | float | Y | 领涨股最新价
net_buy_amount | float | Y | 流入资金(亿元)
net_sell_amount | float | Y | 流出资金(亿元)
net_amount | float | Y | 净额(亿元)
<br>
<br>
**接口示例**
```python
#获取当日所有同花顺行业资金流向
df = pro.moneyflow_ind_ths(trade_date='20240927')
```
<br>
<br>
**数据示例**
trade_date ts_code industry close company_num net_buy_amount net_sell_amount net_amount
0 20240927 881267.TI 能源金属 15021.70 16 490.00 46.00 3.00
1 20240927 881273.TI 白酒 3251.85 20 1890.00 179.00 10.00
2 20240927 881279.TI 光伏设备 5940.19 70 1120.00 94.00 17.00
3 20240927 881157.TI 证券 1407.41 50 3680.00 319.00 49.00
4 20240927 877137.TI 软件开发 1375.49 137 2260.00 204.00 22.00
.. ... ... ... ... ... ... ... ...
85 20240927 881148.TI 港口航运 901.87 37 190.00 20.00 -1.00
86 20240927 881105.TI 煤炭开采加工 2271.57 34 220.00 26.00 -4.00
87 20240927 881169.TI 贵金属 2141.46 12 240.00 32.00 -8.00
88 20240927 881149.TI 公路铁路运输 1224.59 31 210.00 29.00 -7.00
89 20240927 877035.TI 银行 1080.14 84 1190.00 159.00 -40.00
[90 rows x 8 columns]