skills/tushare-data-1.0.5/references/数据接口/股票数据/两融及转融通/融资融券交易汇总.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

82 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 融资融券交易汇总
----
接口margin
描述:获取融资融券每日交易汇总数据
限量单次请求最大返回4000行数据可根据日期循环
权限2000积分可获得本接口权限积分越高权限越大具体参考[权限说明](https://tushare.pro/document/1?doc_id=290)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
trade_date | str | N | 交易日期格式YYYYMMDD下同
start_date | str | N | 开始日期
end_date | str | N | 结束日期
exchange_id | str | N | 交易所代码SSE上交所SZSE深交所BSE北交所
**输出参数**
<br>
<br>
名称 | 类型 | 描述
--- | ---- | ----
trade_date | str | 交易日期
exchange_id | str | 交易所代码SSE上交所SZSE深交所BSE北交所
rzye | float | 融资余额(元)
rzmre | float | 融资买入额(元)
rzche | float | 融资偿还额(元)
rqye | float | 融券余额(元)
rqmcl | float | 融券卖出量(股,份,手)
rzrqye | float | 融资融券余额(元)
rqyl | float | 融券余量(股,份,手)
<br>
<br>
**接口使用**
```python
pro = ts.pro_api()
df = pro.margin(trade_date='20180802')
```
或者
```python
df = pro.query('margin', trade_date='20180802', exchange_id='SSE')
```
**数据样例**
trade_date exchange_id rzye rzmre rzche \
0 20180802 SZSE 3.495054e+11 1.347549e+10 1.463921e+10
1 20180802 SSE 5.311746e+11 1.484584e+10 1.573947e+10
rqye rqmcl rzrqye
0 1.083380e+09 24418046.0 3.505888e+11
1 6.029618e+09 83721012.0 5.372042e+11
**说明**
融资融券数据从证券交易所网站直接获取,提供了有记录以来的全部汇总和明细数据。
根据交所网站提示:数据根据券商申报的数据汇总,由券商保证数据的真实、完整、准确。
其中:
本日融资余额(元)=前日融资余额+本日融资买入-本日融资偿还额
本日融券余量(股)=前日融券余量+本日融券卖出量-本日融券买入量-本日现券偿还量
本日融券余额(元)=本日融券余量×本日收盘价
本日融资融券余额(元)=本日融资余额+本日融券余额
2014年9月22日起“融资融券交易总量”数据包含调出标的证券名单的证券的融资融券余额