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

68 lines
2.1 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.

## 股本情况(盘前)
----
接口stk_premarket
描述:每日开盘前获取当日股票的股本情况,包括总股本和流通股本,涨跌停价格等。
限量单次最大8000条数据可循环提取
权限:与积分无关,需单独[开权限](https://tushare.pro/document/1?doc_id=290)
<br>
<br>
**输入参数**
名称 | 类型 | 必选 | 描述
---- | ----- | ---- | ----
ts_code | str | N | 股票代码
trade_date | str | N | 交易日期(YYYYMMDD格式下同)
start_date | str | N | 开始日期
end_date | str | N | 结束日期
<br>
<br>
**输出参数**
名称 | 类型 | 默认显示 | 描述
--- | ---- | ---- | ----
trade_date | str | Y | 交易日期
ts_code | str | Y | TS股票代码
total_share | float | Y | 总股本(万股)
float_share | float | Y | 流通股本(万股)
pre_close | float | Y | 昨日收盘价
up_limit | float | Y | 今日涨停价
down_limit | float | Y | 今日跌停价
<br>
<br>
**接口示例**
```python
pro = ts.pro_api()
#获取某一日盘前所有股票当日的最新股本
df = pro.stk_premarket(trade_date='20240603')
```
<br>
<br>
**数据示例**
trade_date ts_code total_share float_share pre_close up_limit down_limit
0 20240603 001387.SZ 17778.8000 4355.7297 17.000 18.700 15.300
1 20240603 600460.SH 166407.1845 166407.1845 18.790 20.670 16.910
2 20240603 603052.SH 13484.8000 4096.4000 30.270 33.300 27.240
3 20240603 603269.SH 22053.6977 22053.6977 10.140 11.150 9.130
4 20240603 001339.SZ 24974.4000 7157.2575 29.210 32.130 26.290
... ... ... ... ... ... ... ...
5335 20240603 603567.SH 94196.3592 93954.0524 12.340 13.570 11.110
5336 20240603 301188.SZ 23245.0244 15044.4508 17.740 21.290 14.190
5337 20240603 603939.SH 101057.9797 100811.6102 45.060 49.570 40.550
5338 20240603 300441.SZ 65225.6868 63480.0236 6.460 7.750 5.170
5339 20240603 920002.BJ 3175.2120 475.0000 None 77.840 41.920