mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-20 20:43:24 +08:00
- Relocate runtime/skills -> skills/; runtime_skills_root() prefers oclaw/skills with fallback to legacy runtime/skills for unmigrated trees. - session-bootstrap hook handler resolves repo root via PROJECT_ROOT. - Update architecture/migration docs and in-tree skill references. Co-authored-by: Cursor <cursoragent@cursor.com>
117 lines
2.2 KiB
Markdown
117 lines
2.2 KiB
Markdown
# 融资融券标的(盘前)
|
||
|
||
**文档ID**: 326
|
||
**原始链接**: https://tushare.pro/document/2?doc_id=326
|
||
|
||
---
|
||
|
||
## 融资融券标的(盘前更新)
|
||
|
||
接口:margin_secs描述:获取沪深京三大交易所融资融券标的(包括ETF),每天盘前更新限量:单次最大6000行数据,可根据股票代码、交易日期、交易所代码循环提取积分:2000积分可调取,5000积分无总量限制,积分越高权限越大,具体参考权限说明
|
||
|
||
输入参数
|
||
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>名称</th>
|
||
<th>类型</th>
|
||
<th>必选</th>
|
||
<th>描述</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>ts_code</td>
|
||
<td>str</td>
|
||
<td>N</td>
|
||
<td>标的代码</td>
|
||
</tr>
|
||
<tr>
|
||
<td>trade_date</td>
|
||
<td>str</td>
|
||
<td>N</td>
|
||
<td>交易日</td>
|
||
</tr>
|
||
<tr>
|
||
<td>exchange</td>
|
||
<td>str</td>
|
||
<td>N</td>
|
||
<td>交易所(SSE上交所 SZSE深交所 BSE北交所)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>start_date</td>
|
||
<td>str</td>
|
||
<td>N</td>
|
||
<td>开始日期</td>
|
||
</tr>
|
||
<tr>
|
||
<td>end_date</td>
|
||
<td>str</td>
|
||
<td>N</td>
|
||
<td>结束日期</td>
|
||
</tr>
|
||
</tbody></table>
|
||
输出参数
|
||
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>名称</th>
|
||
<th>类型</th>
|
||
<th>默认显示</th>
|
||
<th>描述</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>trade_date</td>
|
||
<td>str</td>
|
||
<td>Y</td>
|
||
<td>交易日期</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ts_code</td>
|
||
<td>str</td>
|
||
<td>Y</td>
|
||
<td>标的代码</td>
|
||
</tr>
|
||
<tr>
|
||
<td>name</td>
|
||
<td>str</td>
|
||
<td>Y</td>
|
||
<td>标的名称</td>
|
||
</tr>
|
||
<tr>
|
||
<td>exchange</td>
|
||
<td>str</td>
|
||
<td>Y</td>
|
||
<td>交易所</td>
|
||
</tr>
|
||
</tbody></table>
|
||
接口用法
|
||
|
||
```
|
||
|
||
pro = ts.pro_api()
|
||
|
||
#获取2024年4月17日上交所融资融券标的
|
||
df = pro.margin_secs(trade_date='20240417', exchange='SSE')
|
||
|
||
```
|
||
|
||
数据样例
|
||
|
||
```
|
||
trade_date ts_code name exchange
|
||
0 20240417 510050 .SH 50ETF SSE
|
||
1 20240417 510100 .SH SZ50ETF SSE
|
||
2 20240417 510150 .SH 消费ETF SSE
|
||
3 20240417 510180 .SH 180ETF SSE
|
||
4 20240417 510210 .SH 综指ETF SSE
|
||
... ... ... ... ...
|
||
1781 20240417 688799 .SH 华纳药厂 SSE
|
||
1782 20240417 688800 .SH 瑞可达 SSE
|
||
1783 20240417 688819 .SH 天能股份 SSE
|
||
1784 20240417 688981 .SH 中芯国际 SSE
|
||
1785 20240417 689009 .SH 九号公司 SSE
|
||
|
||
```
|