agentsclimarketplace

Stock capital flows

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/stock-capital-flows

查询 A 股股票资金流向(主力净流入)。支持当前实时快照,或指定日期的 15 分钟切片快照(默认日终 time=1530)。Use when user asks about 资金流向, 主力净流入, 超大单/大单/中单/小单净流入, 15分钟资金流, 个股资金流排名, capital flow, money flow, stock capital flows.From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-capital-flows

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

4.1 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

查询 A 股股票资金流向(实时快照 / 15 分钟切片)

接口说明

项目说明
接口名称对外接口-查询股票资金流向
外部接口GET /api/v1/market/data/stock-capital-flows
请求方式GET
适用场景分页查询 A 股股票资金流向;不传 date 返回当前实时快照,传入 date 可指定 15 分钟切片(默认 time=1530 日终)。仅返回 A 股(不含 ETF/指数),按主力净流入降序排列。

请求参数

参数名类型是否必填描述取值示例备注
datestring否查询日期20260616格式 YYYYMMDD;不传=实时快照
timestring否15 分钟切片时刻1530格式 HHMM,分钟须为 00/15/30/45;仅与 date 同时有效,默认 1530(日终)
symbolstring否只查指定标的601138.SH外部格式(如 601138.SH);逐页扫描定位,找到即停,返回其全市场排名与单条记录。不传则按分页/全量返回
pageint否页码1从 1 开始,默认 1
page_sizeint否每页条数50默认 50

执行方式

# 当前实时快照(分页)
python scripts/handler.py --page 1 --page-size 50
# 历史 15 分钟切片(默认 time=1530 日终)
python scripts/handler.py --date 20260616 --page 1 --page-size 50
# 指定切片时刻(如 10:15)
python scripts/handler.py --date 20260616 --time 1015 --page 1 --page-size 50
# 全量自动翻页拉取某日日终资金流
python scripts/handler.py --date 20260616 --all
# 只查某只票某切片(逐页定位,返回排名+记录)
python scripts/handler.py --date 20260616 --symbol 601138.SH
# 只查某只票当前实时快照
python scripts/handler.py --symbol 601138.SH

响应结构

{
  "items": [
    {
      "net_inflow_extra_large": "123456789.0000",
      "net_inflow_large": "98765432.1000",
      "net_inflow_main": "222222221.1000",
      "net_inflow_medium": "-50000000.0000",
      "net_inflow_small": "-172222221.1000",
      "symbol": "600000.SH",
      "symbol_name": "浦发银行",
      "ts_nanos": 1747037400000000000
    }
  ],
  "total_pages": 100,
  "total_items": 5000
}

字段说明(CapitalFlowResponse)

字段名类型是否可为空说明
net_inflow_extra_largestring否超大单净流入,单位元
net_inflow_largestring否大单净流入,单位元
net_inflow_mainstring否主力净流入,单位元;公式 = 超大单净流入 + 大单净流入
net_inflow_mediumstring否中单净流入,单位元
net_inflow_smallstring否小单净流入,单位元
symbolstring否标的代码,外部格式如 600000.SH、000001.SZ
symbol_namestring是标的名称
ts_nanosint否快照时间戳(纳秒)

注意事项

  • 不传 date:返回 data-api 当前内存中的实时资金流向快照。
  • 传入 date:返回该日指定 15 分钟切片快照,默认 time=1530(日终);time 分钟须为 00/15/30/45。
  • 金额字段在 JSON 中以字符串形式返回(Decimal 序列化),单位元。
  • symbol 为外部代码格式(如 600000.SH),与 data-api 内部 600000.XSHG 格式不同。
  • 仅返回 A 股股票(不含 ETF、指数等);列表按 net_inflow_main 降序排列。
  • 本接口响应带短期缓存(失败重试策略约 5 秒),相同 query 在缓存有效期内可能返回相同结果。
  • --all 自动翻页拉取全量;全市场约 5000+ 条,按需使用以免响应过大。

What ships with it: 1 file

5.5 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.