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

2.2 KiB
Raw Permalink Blame History

个股资金流向THS


接口moneyflow_ths 描述:获取同花顺个股资金流向数据,每日盘后更新 限量单次最大6000可根据日期或股票代码循环提取数据 积分用户需要至少5000积分才可以调取具体请参阅积分获取办法



输入参数

名称 类型 必选 描述
ts_code str N 股票代码
trade_date str N 交易日期YYYYMMDD格式下同
start_date str N 开始日期
end_date str N 结束日期


输出参数

名称 类型 默认显示 描述
trade_date str Y 交易日期
ts_code str Y 股票代码
name str Y 股票名称
pct_change float Y 涨跌幅
latest float Y 最新价
net_amount float Y 资金净流入(万元)
net_d5_amount float Y 5日主力净额(万元)
buy_lg_amount float Y 今日大单净流入额(万元)
buy_lg_amount_rate float Y 今日大单净流入占比(%)
buy_md_amount float Y 今日中单净流入额(万元)
buy_md_amount_rate float Y 今日中单净流入占比(%)
buy_sm_amount float Y 今日小单净流入额(万元)
buy_sm_amount_rate float Y 今日小单净流入占比(%)


接口示例


pro = ts.pro_api()

#获取单日全部股票数据
df = pro.moneyflow_ths(trade_date='20241011')

#获取单个股票数据
df = pro.moneyflow_ths(ts_code='002149.SZ', start_date='20241001', end_date='20241011')


	trade_date ts_code  name  pct_change  ...  buy_md_amount  buy_md_amount_rate  buy_sm_amount  buy_sm_amount_rate
0   20241011  002149.SZ  西部材料        2.47  ...         -589.0                5.43         -191.0                1.76
1   20241010  002149.SZ  西部材料        1.22  ...        -2732.0               15.38        -1031.0                5.81
2   20241009  002149.SZ  西部材料        7.00  ...        -1941.0                9.25        -2079.0                9.90
3   20241008  002149.SZ  西部材料        5.17  ...        -2985.0                7.93        -2507.0                6.66