agentsclimarketplace

Margin trading details

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/margin-trading-details

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill margin-trading-details

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

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

获取融资融券明细。当用户需要获取 A 股融资融券明细列表,按融资净买入额降序排列,支持分页查询,或了解融资融券明细时使用。

SKILL.md

3.3 KB, as published. Nobody here has run it

获取融资融券明细

接口说明

项目说明
接口名称获取融资融券明细
外部接口/api/v1/market/data/margin-trading-details
请求方式GET / POST
适用场景获取 A 股融资融券明细列表,按融资净买入额降序排列,支持分页查询

请求参数

参数名类型是否必填描述取值示例备注
pageint页码,从 1 开始1必须大于等于 1
page_sizeint每页记录数20必须大于等于 1,建议不超过 100

执行方式

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

# 获取第 1 页,每页 20 条
python <RUN_PY> margin-trading-details --page 1 --page_size 20

# 指定分页参数
python <RUN_PY> margin-trading-details --page 2 --page_size 50

# 自动翻页获取全量数据
python <RUN_PY> margin-trading-details --all

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

响应结构

{
    "items": [
        {
            "date": "2026-03-09",
            "margin_trading_balance": 2440891073,
            "margin_trading_buying_amount": 1423221922,
            "margin_trading_repayment_amount": 874371294,
            "securities_lending_balance_volume": 409500,
            "securities_lending_repayment_volume": 25800,
            "securities_lending_selling_volume": 34500,
            "total_balance": 2453438153,
            "symbol": "600989.SH",
            "symbol_name": "宝丰能源"
        }
    ],
    "total_pages": 99,
    "total_items": 1970
}

顶层字段说明

字段名类型是否可为空说明
itemsArray当前页融资融券明细列表
total_pagesint总页数
total_itemsint总记录数(未分页前)

items 元素字段说明(MarginTradingDetail)

字段名类型是否可为空说明单位
dateString交易日期,格式 YYYY-MM-DD-
margin_trading_balanceint融资余额
margin_trading_buying_amountint融资买入额
margin_trading_repayment_amountint融资偿还额
securities_lending_balance_volumeint融券余量
securities_lending_repayment_volumeint融券偿还量
securities_lending_selling_volumeint融券卖出量
total_balanceint融资融券余额
symbolString标的代码,带市场后缀-
symbol_nameString标的名称-

注意事项

  • pagepage_size 为必填项
  • 返回结果已按融资净买入额margin_trading_buying_amount - margin_trading_repayment_amount)降序排列,无需客户端再排序
  • 如需全量数据,使用 --all 参数自动翻页合并,或按 page 递增循环至 total_pages
  • 金额字段单位为,展示时可按需转换为万元或亿元

Keep looking

Skills are one crate of 328,083. 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.