Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #5274

Merged
merged 4 commits into from
Oct 25, 2024
Merged

Dev #5274

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 25 additions & 19 deletions .github/ISSUE_TEMPLATE/akshare_report.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
---
name: AKShare-问题报告
about: 反馈接口相关的问题
title: AKShare 接口问题报告
name: AKShare-问题报告 | AKShare Issue Report
about: 反馈接口相关的问题 | Interface issue feedback
title: AKShare 接口问题报告 | AKShare Interface Issue Report
labels: bug
assignees: ''

---

> 欢迎加入《数据科学实战》知识星球,交流财经数据与量化投资相关内容,
> 详细信息参考:https://akshare.akfamily.xyz/learn.html
> 欢迎加入《数据科学实战》知识星球,交流财经数据与量化投资相关内容 |
> Welcome to join "Data Science in Practice" Knowledge
> Community for discussions on financial data and quantitative investment.
>
> 详细信息参考 | For detailed information, please visit::https://akshare.akfamily.xyz/learn.html

## 前提
## 前提 | Prerequisites

遇到任何问题,请先将您的 AKShare 版本升级到**最新版**,可以通过如下命令升级:
遇到任何问题,请先将您的 AKShare 版本升级到**最新版**,可以通过如下命令升级 | Before reporting any issues, please upgrade
your AKShare to the **latest version** using the following command::

```
pip install akshare --upgrade # Python 版本需要大于等于 3.8
pip install akshare --upgrade # Python 版本需要大于等于 3.8 | Python version requirement ≥ 3.8
```

## 如何提交问题
## 如何提交问题 | How to Submit an Issue

提交问题的同时,请提交以下相关信息,以更精准的解决问题。
提交问题的同时,请提交以下相关信息,以更精准的解决问题。| Please provide the following information when
submitting an issue for more accurate problem resolution.

**不符合提交规范的 issues 会被关闭!**
**不符合提交规范的 issues 会被关闭!** | **Issues that don't follow these guidelines will be closed!**

**详细问题描述**
**详细问题描述** | Detailed Problem Description

1. 请先详细阅读文档对应接口的使用方式:https://akshare.akfamily.xyz
2. 操作系统版本,目前只支持 64 位操作系统
3. Python 版本,目前只支持 3.8 以上的版本
4. AKShare 版本,请升级到最新版
5. 接口的名称和相应的调用代码
6. 接口报错的截图或描述
7. 期望获得的正确结果
1. 请先详细阅读文档对应接口的使用方式 | Please read the documentation thoroughly for the
relevant interface:https://akshare.akfamily.xyz
2. 操作系统版本,目前只支持 64 位操作系统 | Operating system version (64-bit only supported)
3. Python 版本,目前只支持 3.8 以上的版本 | Python version (must be 3.8 or above)
4. AKShare 版本,请升级到最新版 | AKShare version (please upgrade to latest)
5. 接口的名称和相应的调用代码 | Interface name and corresponding code
6. 接口报错的截图或描述 | Screenshot or description of the error
7. 期望获得的正确结果 | Expected correct results
4 changes: 2 additions & 2 deletions akshare/index/index_stock_zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,13 @@ def stock_zh_index_daily_em(


if __name__ == "__main__":
stock_zh_index_daily_df = stock_zh_index_daily(symbol="sz399905")
stock_zh_index_daily_df = stock_zh_index_daily(symbol="sh000510")
print(stock_zh_index_daily_df)

stock_zh_index_spot_sina_df = stock_zh_index_spot_sina()
print(stock_zh_index_spot_sina_df)

stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="上证系列指数")
stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="中证系列指数")
print(stock_zh_index_spot_em_df)

stock_zh_index_daily_tx_df = stock_zh_index_daily_tx(symbol="sh000919")
Expand Down
78 changes: 39 additions & 39 deletions docs/data/index/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4717,19 +4717,19 @@ print(index_hist_sw_df)
数据示例

```
代码 日期 收盘 ... 最低 成交量 成交额
0 801193 1999-12-30 1000.00 ... 1000.00 0.007658 0.084756
1 801193 2000-01-04 1035.54 ... 1000.64 0.017623 0.199261
2 801193 2000-01-05 1050.67 ... 1023.45 0.033997 0.391641
3 801193 2000-01-06 1096.88 ... 1031.74 0.057862 0.681682
4 801193 2000-01-07 1127.42 ... 1091.98 0.110529 1.353346
... ... ... ... ... ... ...
3921 801193 2024-02-08 5102.26 ... 5051.37 39.101170 334.712816
3922 801193 2024-02-19 5038.90 ... 4951.17 29.566483 257.454494
3923 801193 2024-02-20 5102.32 ... 4989.23 30.294334 278.767743
3924 801193 2024-02-21 5150.54 ... 5034.29 41.888696 399.248119
3925 801193 2024-02-22 5212.20 ... 5106.97 30.215073 297.497838
[3926 rows x 8 columns]
代码 日期 收盘 ... 最低 成交量 成交额
0 801193 1999-12-30 1000.00 ... 1000.00 0.007658 0.084756
1 801193 2000-01-04 1035.54 ... 1000.64 0.017623 0.199261
2 801193 2000-01-05 1050.67 ... 1023.45 0.033997 0.391641
3 801193 2000-01-06 1096.88 ... 1031.74 0.057862 0.681682
4 801193 2000-01-07 1127.42 ... 1091.98 0.110529 1.353346
... ... ... ... ... ... ... ...
4081 801193 2024-10-16 6271.85 ... 6103.77 81.423515 849.555269
4082 801193 2024-10-17 6224.13 ... 6166.22 74.126046 793.383788
4083 801193 2024-10-18 6667.02 ... 6152.42 138.155039 1648.638901
4084 801193 2024-10-21 6532.56 ... 6441.85 103.932491 1157.084810
4085 801193 2024-10-22 6591.44 ... 6472.62 78.312127 848.761688
[4086 rows x 8 columns]
```

#### 申万指数分时行情
Expand Down Expand Up @@ -4770,19 +4770,19 @@ print(index_min_sw_df)
数据示例

```
代码 名称 价格 日期 时间
0 801001 申万50 2844.33 2024-05-22 09:30:00
1 801001 申万50 2844.94 2024-05-22 09:30:10
2 801001 申万50 2844.49 2024-05-22 09:30:20
3 801001 申万50 2844.61 2024-05-22 09:30:30
4 801001 申万50 2846.72 2024-05-22 09:30:40
... ... ... ... ... ...
1426 801001 申万50 2849.59 2024-05-22 14:58:20
1427 801001 申万50 2849.59 2024-05-22 14:58:40
1428 801001 申万50 2849.59 2024-05-22 14:58:50
1429 801001 申万50 2849.59 2024-05-22 14:59:30
1430 801001 申万50 2849.59 2024-05-22 14:59:50
[1431 rows x 5 columns]
代码 名称 价格 日期 时间
0 801001 申万50 3076.03 2024-10-23 09:30:00
1 801001 申万50 3074.62 2024-10-23 09:30:10
2 801001 申万50 3072.27 2024-10-23 09:30:20
3 801001 申万50 3070.98 2024-10-23 09:30:30
4 801001 申万50 3068.14 2024-10-23 09:30:40
.. ... ... ... ... ...
968 801001 申万50 3105.32 2024-10-23 13:41:20
969 801001 申万50 3104.96 2024-10-23 13:41:30
970 801001 申万50 3105.10 2024-10-23 13:41:40
971 801001 申万50 3104.75 2024-10-23 13:41:50
972 801001 申万50 3104.46 2024-10-23 13:42:00
[973 rows x 5 columns]
```

#### 申万指数成分股
Expand Down Expand Up @@ -4823,19 +4823,19 @@ print(index_component_sw_df)
数据示例

```
序号 证券代码 证券名称 最新权重 计入日期
0 1 000001 平安银行 1.2094 2023-07-03
1 2 000002 万科A 1.1122 2023-07-03
2 3 000063 中兴通讯 1.1810 2023-07-03
3 4 000333 美的集团 3.5702 2023-07-03
4 5 000568 泸州老窖 2.2004 2023-07-03
.. ... ... ... ... ...
95 96 603259 药明康德 1.1730 2024-01-02
96 97 603501 韦尔股份 0.9789 2024-01-02
97 98 688041 海光信息 0.7525 2024-01-02
98 99 688111 金山办公 0.7395 2024-01-02
99 100 688981 中芯国际 1.0983 2024-01-02
[100 rows x 5 columns]
序号 证券代码 证券名称 最新权重 计入日期
0 1 000001 平安银行 1.2094 2023-07-03
1 2 000002 万科A 1.1122 2023-07-03
2 3 000063 中兴通讯 1.1810 2023-07-03
3 4 000333 美的集团 3.5702 2023-07-03
4 5 000568 泸州老窖 2.2004 2023-07-03
.. ... ... ... ... ...
145 146 601919 中远海控 0.6996 2024-07-01
146 147 603259 药明康德 1.2209 2024-07-01
147 148 603993 洛阳钼业 0.7059 2024-07-01
148 149 688041 海光信息 1.2586 2024-07-01
149 150 688111 金山办公 0.6166 2024-07-01
[150 rows x 5 columns]
```

#### 申万指数分析-日报表
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
**风险提示**:[AKShare](https://github.com/akfamily/akshare) 开源财经数据接口库所采集的数据皆来自公开的数据源,不涉及任何个人隐私数据和非公开数据。
同时本项目提供的数据接口及相关数据仅用于学术研究,任何个人、机构及团体使用本项目的数据接口及相关数据请注意商业风险。

1. 本文档更新时间:**2024-10-23**;
1. 本文档更新时间:**2024-10-25**;
2. 如有 [AKShare](https://github.com/akfamily/akshare) 库、文档及数据的相关问题,请在 [AKShare Issues](https://github.com/akfamily/akshare/issues) 中提 Issues;
3. 欢迎关注 **数据科学实战** 微信公众号;<div><img src="https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/readme/qrcode/ds.png"></div>
4. **知识星球【数据科学实战】** 2024 全新改版,聚焦于量化投资内容,欢迎加入 **知识星球【数据科学实战】** 高质量社区,里面有丰富的视频课程、问答、文章、书籍及代码等内容:
Expand Down