agentsclimarketplace

Northbound

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/northbound

查询北向资金交易数据。当用户需要查询指定交易日北向资金(沪股通、深股通)交易汇总数据,或了解北向资金交易数据时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill northbound

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

SKILL.md

2.3 KB, 745 tokens by cl100k_base, as published. Nobody here has run it

查询北向资金交易数据

接口说明

项目说明
接口名称查询北向资金交易数据
外部接口/api/v1/market/data/northbound
请求方式GET
适用场景查询指定交易日北向资金(沪股通、深股通)交易汇总数据

请求参数

参数名类型是否必填描述取值示例备注
datestring是交易日期20250101格式 YYYYMMDD

执行方式

通过根目录的 run.py 调用(推荐):

python <RUN_PY> northbound --date 20250101

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径,参见主 SKILL.md 的「调用方式」说明。

响应结构

{
    "code": 0,
    "message": "success",
    "data": {
        "date": "20250101",
        "currency": "CNY",
        "total_amount": "100.50",
        "channels": {
            "SH": { "amount": "60.00", "trade_count": 10 },
            "SZ": { "amount": "40.50", "trade_count": 8 }
        }
    }
}

顶层字段说明

字段名类型是否可为空说明
codeint否业务状态码,0 表示成功
messagestring否状态说明
dataobject否北向资金数据

data 字段说明

字段名类型是否可为空说明
datestring否交易日期
currencystring否币种(CNY)
total_amountstring否北向资金合计成交额
channelsobject否分市场通道数据

channels 字段说明

字段名类型是否可为空说明
SHobject否沪股通数据
SH.amountstring否成交额
SH.trade_countint否成交笔数
SZobject否深股通数据
SZ.amountstring否成交额
SZ.trade_countint否成交笔数

注意事项

  • date 为必填参数,格式 YYYYMMDD
  • 金额类字段以字符串格式返回
  • 响应为信封结构(code / message / data)

What ships with it: 1 file

1.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.