Skip to content

Commit

Permalink
Date (#4367)
Browse files Browse the repository at this point in the history
* add version 1.12.4

* fix tool_trade_date_hist_sina

* update date
  • Loading branch information
albertandking authored Dec 27, 2023
1 parent 167a360 commit e56551e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
3 changes: 2 additions & 1 deletion akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2616,9 +2616,10 @@
1.12.1 fix: fix futures_comm_info interface
1.12.2 fix: fix hurun_rank interface
1.12.3 fix: fix stock_gdfx_free_holding_teamwork_em interface
1.12.4 fix: fix tool_trade_date_hist_sina interface
"""

__version__ = "1.12.3"
__version__ = "1.12.4"
__author__ = "AKFamily"

import sys
Expand Down
4 changes: 2 additions & 2 deletions akshare/tool/trade_date_hist.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2023/5/29 22:27
Date: 2023/12/27 22:27
Desc: 新浪财经-交易日历
https://finance.sina.com.cn/realstock/company/klc_td_sh.txt
此处可以用来更新 calendar.json 文件,注意末尾没有 "," 号
Expand All @@ -17,7 +17,7 @@

def tool_trade_date_hist_sina() -> pd.DataFrame:
"""
交易日历-历史数据
新浪财经-交易日历-历史数据
https://finance.sina.com.cn/realstock/company/klc_td_sh.txt
:return: 交易日历
:rtype: pandas.DataFrame
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@

## 更新说明详情

1.12.4 fix: fix tool_trade_date_hist_sina interface

1. 修复 tool_trade_date_hist_sina 接口

1.12.3 fix: fix stock_gdfx_free_holding_teamwork_em interface

1. 修复 stock_gdfx_free_holding_teamwork_em 接口
Expand Down Expand Up @@ -3273,6 +3277,8 @@

## 版本更新说明

1.12.4 fix: fix tool_trade_date_hist_sina interface

1.12.3 fix: fix stock_gdfx_free_holding_teamwork_em interface

1.12.2 fix: fix hurun_rank interface
Expand Down
15 changes: 8 additions & 7 deletions docs/data/tool/tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

描述: 新浪财经-股票交易日历数据

限量: 单次返回从 1990-12-19 到 2023-12-29 之间的股票交易日历数据, 这里补充 1992-05-04 进入交易日
限量: 单次返回从 1990-12-19 到 2024-12-31 之间的股票交易日历数据, 这里补充 1992-05-04 进入交易日

输入参数

Expand All @@ -20,7 +20,7 @@

| 名称 | 类型 | 描述 |
|------------|--------|-----------------------------------------------------------|
| trade_date | object | 从 1990-12-19 至 2023-12-29 的股票交易日数据; 这里补充 1992-05-04 进入交易日 |
| trade_date | object | 从 1990-12-19 至 2024-12-31 的股票交易日数据; 这里补充 1992-05-04 进入交易日 |

接口示例

Expand All @@ -41,9 +41,10 @@ print(tool_trade_date_hist_sina_df)
3 1990-12-24
4 1990-12-25
...
7823 2022-12-26
7824 2022-12-27
7825 2022-12-28
7826 2022-12-29
7827 2022-12-30
8308 2024-12-25
8309 2024-12-26
8310 2024-12-27
8311 2024-12-30
8312 2024-12-31
[8313 rows x 1 columns]
```
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. 本文档更新时间:**2023-12-25**
1. 本文档更新时间:**2023-12-27**
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. 如果您的问题未能在文档中找到答案,您也可以加入 **AKShare-VIP QQ 群**: 为了提高问答质量,此群为收费群(一杯咖啡钱即可入群,赠送[《AKShare-初阶-使用教学》](https://zmj.xet.tech/s/wck86)视频课),可以添加 **AKShare-小助手** QQ:1254836886,由小助手邀请入群! ![](https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/readme/qrcode/qr_code_1254836886.jpg)
Expand Down

0 comments on commit e56551e

Please sign in to comment.