oclaw/skills/tushare-finance/reference/接口文档/股票开户数据(停).md
oliver beb52006d8 refactor: move bundled skills tree to repo root skills/
- 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>
2026-05-10 11:35:57 +08:00

123 lines
2.9 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.

# 股票开户数据(停)
**文档ID**: 164
**原始链接**: https://tushare.pro/document/2?doc_id=164
---
## 股票账户开户数据
接口:stk_account描述:获取股票账户开户数据,统计周期为一周积分:600积分可调取,具体请参阅积分获取办法
注:此数据官方已经停止更新。
输入参数
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody><tr>
<td>date</td>
<td>str</td>
<td>N</td>
<td>日期</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>date</td>
<td>str</td>
<td>Y</td>
<td>统计周期</td>
</tr>
<tr>
<td>weekly_new</td>
<td>float</td>
<td>Y</td>
<td>本周新增(万)</td>
</tr>
<tr>
<td>total</td>
<td>float</td>
<td>Y</td>
<td>期末总账户数(万)</td>
</tr>
<tr>
<td>weekly_hold</td>
<td>float</td>
<td>Y</td>
<td>本周持仓账户数(万)</td>
</tr>
<tr>
<td>weekly_trade</td>
<td>float</td>
<td>Y</td>
<td>本周参与交易账户数(万)</td>
</tr>
</tbody></table>
接口使用
```
pro = ts.pro_api()
df = pro.stk_account(start_date='20180101', end_date='20181231')
```
数据示例
```
date weekly_new total weekly_hold weekly_trade
0 20181228 20.81 14650.44 None None
1 20181221 21.04 14629.63 None None
2 20181214 21.21 14608.59 None None
3 20181207 22.28 14587.38 None None
4 20181130 23.56 14565.10 None None
5 20181123 24.16 14541.54 None None
6 20181116 24.57 14517.38 None None
7 20181109 24.11 14492.81 None None
8 20181102 23.97 14468.70 None None
9 20181026 26.00 14444.73 None None
10 20181019 24.13 14418.73 None None
11 20181012 25.30 14394.60 None None
12 20180928 20.09 14369.30 None None
13 20180921 23.24 14349.21 None None
14 20180914 24.08 14325.97 None None
15 20180907 23.58 14301.89 None None
16 20180831 24.06 14278.31 None None
17 20180824 23.12 14254.25 None None
18 20180817 23.04 14231.12 None None
19 20180810 23.96 14208.09 None None
20 20180803 24.22 14184.12 None None
```
数据说明:从2017年2月10日开始,中国证券登记结算公司停止了发布本周持仓账户数和本周交易账户数;另外,2015年5月8日之前的数据结构也不同,具体请参阅股票开户旧数据接口。