agentsclimarketplace

Southbound

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

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

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

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

SKILL.md

3.2 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

查询南向资金交易数据

接口说明

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

请求参数

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

执行方式

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

python <RUN_PY> southbound --date 20250101

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

响应结构

{
    "code": 0,
    "message": "success",
    "data": {
        "date": "20250101",
        "currency": "HKD",
        "total": {
            "buy_amount": "100.00",
            "sell_amount": "80.00",
            "net_buy_amount": "20.00",
            "trade_count": 15
        },
        "channels": {
            "SH_HK": {
                "buy_amount": "60.00",
                "sell_amount": "50.00",
                "net_buy_amount": "10.00",
                "trade_count": 8
            },
            "SZ_HK": {
                "buy_amount": "40.00",
                "sell_amount": "30.00",
                "net_buy_amount": "10.00",
                "trade_count": 7
            }
        }
    }
}

顶层字段说明

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

data 字段说明

字段名类型是否可为空说明
datestring否交易日期
currencystring否币种(HKD)
totalobject否南向合计数据
total.buy_amountstring否买入额
total.sell_amountstring否卖出额
total.net_buy_amountstring否净买入额
total.trade_countint否成交笔数
channelsobject否分市场通道数据

channels 字段说明

字段名类型是否可为空说明
SH_HKobject否港股通(沪)数据
SH_HK.buy_amountstring否买入额
SH_HK.sell_amountstring否卖出额
SH_HK.net_buy_amountstring否净买入额
SH_HK.trade_countint否成交笔数
SZ_HKobject否港股通(深)数据
SZ_HK.buy_amountstring否买入额
SZ_HK.sell_amountstring否卖出额
SZ_HK.net_buy_amountstring否净买入额
SZ_HK.trade_countint否成交笔数

注意事项

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

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.