Skip to content

Commit

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

* update date

* fix stock_zt_pool_strong_em
  • Loading branch information
albertandking authored Nov 29, 2023
1 parent 836a0a1 commit 843668d
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 34 deletions.
3 changes: 2 additions & 1 deletion akshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2596,9 +2596,10 @@
1.11.80 fix: fix stock_cash_flow_sheet_by_report_em interface
1.11.81 fix: fix stock_gdfx_free_holding_detail_em interface
1.11.82 fix: fix bond_zh_us_rate interface
1.11.83 fix: fix stock_zt_pool_strong_em interface
"""

__version__ = "1.11.82"
__version__ = "1.11.83"
__author__ = "AKFamily"

import sys
Expand Down
38 changes: 24 additions & 14 deletions akshare/stock_feature/stock_ztb_em.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2023/11/7 17:00
Date: 2023/11/29 17:00
Desc: 首页-行情中心-涨停板行情-涨停股池
https://quote.eastmoney.com/ztb/detail#type=ztgc
Expand All @@ -20,10 +20,12 @@
import requests


def stock_zt_pool_em(date: str = "20220426") -> pd.DataFrame:
def stock_zt_pool_em(date: str = "20231129") -> pd.DataFrame:
"""
东方财富网-行情中心-涨停板行情-涨停股池
https://quote.eastmoney.com/ztb/detail#type=ztgc
:param date: 交易日
:type date: str
:return: 涨停股池
:rtype: pandas.DataFrame
"""
Expand Down Expand Up @@ -103,14 +105,16 @@ def stock_zt_pool_em(date: str = "20220426") -> pd.DataFrame:
return temp_df


def stock_zt_pool_previous_em(date: str = "20210521") -> pd.DataFrame:
def stock_zt_pool_previous_em(date: str = "20231129") -> pd.DataFrame:
"""
东方财富网-行情中心-涨停板行情-昨日涨停股池
https://quote.eastmoney.com/ztb/detail#type=zrzt
:param date: 交易日
:type date: str
:return: 昨日涨停股池
:rtype: pandas.DataFrame
"""
url = "http://push2ex.eastmoney.com/getYesterdayZTPool"
url = "https://push2ex.eastmoney.com/getYesterdayZTPool"
params = {
"ut": "7eea3edcaed734bea9cbfc24409ed989",
"dpt": "wz.ztzt",
Expand Down Expand Up @@ -177,10 +181,12 @@ def stock_zt_pool_previous_em(date: str = "20210521") -> pd.DataFrame:
return temp_df


def stock_zt_pool_strong_em(date: str = "20210521") -> pd.DataFrame:
def stock_zt_pool_strong_em(date: str = "20231129") -> pd.DataFrame:
"""
东方财富网-行情中心-涨停板行情-强势股池
https://quote.eastmoney.com/ztb/detail#type=qsgc
:param date: 交易日
:type date: str
:return: 强势股池
:rtype: pandas.DataFrame
"""
Expand Down Expand Up @@ -251,10 +257,12 @@ def stock_zt_pool_strong_em(date: str = "20210521") -> pd.DataFrame:
return temp_df


def stock_zt_pool_sub_new_em(date: str = "20231107") -> pd.DataFrame:
def stock_zt_pool_sub_new_em(date: str = "20231129") -> pd.DataFrame:
"""
东方财富网-行情中心-涨停板行情-次新股池
https://quote.eastmoney.com/ztb/detail#type=cxgc
:param date: 交易日
:type date: str
:return: 次新股池
:rtype: pandas.DataFrame
"""
Expand Down Expand Up @@ -330,10 +338,12 @@ def stock_zt_pool_sub_new_em(date: str = "20231107") -> pd.DataFrame:
return temp_df


def stock_zt_pool_zbgc_em(date: str = "20231107") -> pd.DataFrame:
def stock_zt_pool_zbgc_em(date: str = "20231129") -> pd.DataFrame:
"""
东方财富网-行情中心-涨停板行情-炸板股池
https://quote.eastmoney.com/ztb/detail#type=zbgc
:param date: 交易日
:type date: str
:return: 炸板股池
:rtype: pandas.DataFrame
"""
Expand Down Expand Up @@ -409,7 +419,7 @@ def stock_zt_pool_zbgc_em(date: str = "20231107") -> pd.DataFrame:
return temp_df


def stock_zt_pool_dtgc_em(date: str = "20231106") -> pd.DataFrame:
def stock_zt_pool_dtgc_em(date: str = "20231129") -> pd.DataFrame:
"""
东方财富网-行情中心-涨停板行情-跌停股池
https://quote.eastmoney.com/ztb/detail#type=dtgc
Expand Down Expand Up @@ -497,20 +507,20 @@ def stock_zt_pool_dtgc_em(date: str = "20231106") -> pd.DataFrame:


if __name__ == "__main__":
stock_zt_pool_em_df = stock_zt_pool_em(date="20231107")
stock_zt_pool_em_df = stock_zt_pool_em(date="20231129")
print(stock_zt_pool_em_df)

stock_zt_pool_previous_em_df = stock_zt_pool_previous_em(date="20231107")
stock_zt_pool_previous_em_df = stock_zt_pool_previous_em(date="20231129")
print(stock_zt_pool_previous_em_df)

stock_zt_pool_strong_em_df = stock_zt_pool_strong_em(date="20231107")
stock_zt_pool_strong_em_df = stock_zt_pool_strong_em(date="20231129")
print(stock_zt_pool_strong_em_df)

stock_zt_pool_sub_new_em_df = stock_zt_pool_sub_new_em(date="20231107")
stock_zt_pool_sub_new_em_df = stock_zt_pool_sub_new_em(date="20231129")
print(stock_zt_pool_sub_new_em_df)

stock_zt_pool_zbgc_em_df = stock_zt_pool_zbgc_em(date="20231107")
stock_zt_pool_zbgc_em_df = stock_zt_pool_zbgc_em(date="20231129")
print(stock_zt_pool_zbgc_em_df)

stock_zt_pool_dtgc_em_df = stock_zt_pool_dtgc_em(date="20231103")
stock_zt_pool_dtgc_em_df = stock_zt_pool_dtgc_em(date="20231129")
print(stock_zt_pool_dtgc_em_df)
11 changes: 11 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@

## 更新说明详情

1.11.83 fix: fix stock_zt_pool_strong_em interface

1. 修复 stock_zt_pool_em 接口
2. 修复 stock_zt_pool_previous_em 接口
3. 修复 stock_zt_pool_strong_em 接口
4. 修复 stock_zt_pool_sub_new_em 接口
5. 修复 stock_zt_pool_zbgc_em 接口
6. 修复 stock_zt_pool_dtgc_em 接口

1.11.82 fix: fix bond_zh_us_rate interface

1. 修复 bond_zh_us_rate 接口
Expand Down Expand Up @@ -3181,6 +3190,8 @@

## 版本更新说明

1.11.83 fix: fix stock_zt_pool_strong_em interface

1.11.82 fix: fix bond_zh_us_rate interface

1.11.81 fix: fix stock_gdfx_free_holding_detail_em interface
Expand Down
36 changes: 18 additions & 18 deletions docs/data/stock/stock.md
Original file line number Diff line number Diff line change
Expand Up @@ -21096,17 +21096,17 @@ print(stock_board_change_em_df)

接口: stock_zt_pool_em

目标地址: http://quote.eastmoney.com/ztb/detail#type=ztgc
目标地址: https://quote.eastmoney.com/ztb/detail#type=ztgc

描述: 东方财富网-行情中心-涨停板行情-涨停股池

限量: 单次返回所有涨停股池数据; 该接口只能返回近期的数据
限量: 单次返回指定 date 的涨停股池数据; 该接口只能获取近期的数据

输入参数

| 名称 | 类型 | 描述 |
|------|-----|-----------------|
| date | str | date='20210525' |
| date | str | date='20231129' |

输出参数

Expand Down Expand Up @@ -21201,17 +21201,17 @@ print(stock_zt_pool_em_df)

接口: stock_zt_pool_previous_em

目标地址: http://quote.eastmoney.com/ztb/detail#type=zrzt
目标地址: https://quote.eastmoney.com/ztb/detail#type=zrzt

描述: 东方财富网-行情中心-涨停板行情-昨日涨停股池

限量: 单次返回所有昨日涨停股池数据
限量: 单次返回指定 date 的昨日涨停股池数据; 该接口只能获取近期的数据

输入参数

| 名称 | 类型 | 描述 |
|------|-----|-----------------|
| date | str | date='20210521' |
| date | str | date='20231129' |

输出参数

Expand Down Expand Up @@ -21263,17 +21263,17 @@ print(stock_zt_pool_previous_em_df)

接口: stock_zt_pool_strong_em

目标地址: http://quote.eastmoney.com/ztb/detail#type=qsgc
目标地址: https://quote.eastmoney.com/ztb/detail#type=qsgc

描述: 东方财富网-行情中心-涨停板行情-强势股池

限量: 单次返回所有昨日涨停股池数据
限量: 单次返回指定 date 的强势股池数据;该接口只能获取近期的数据

输入参数

| 名称 | 类型 | 描述 |
|------|-----|-----------------|
| date | str | date='20210521' |
| date | str | date='20231129' |

输出参数

Expand Down Expand Up @@ -21326,17 +21326,17 @@ print(stock_zt_pool_strong_em_df)

接口: stock_zt_pool_sub_new_em

目标地址: http://quote.eastmoney.com/ztb/detail#type=cxgc
目标地址: https://quote.eastmoney.com/ztb/detail#type=cxgc

描述: 东方财富网-行情中心-涨停板行情-次新股池

限量: 单次返回所有次新股池数据
限量: 单次返回指定 date 的次新股池数据;该接口只能获取近期的数据

输入参数

| 名称 | 类型 | 描述 |
|------|-----|-----------------|
| date | str | date='20210521' |
| date | str | date='20231129' |

输出参数

Expand Down Expand Up @@ -21389,17 +21389,17 @@ print(stock_zt_pool_sub_new_em_df)

接口: stock_zt_pool_zbgc_em

目标地址: http://quote.eastmoney.com/ztb/detail#type=zbgc
目标地址: https://quote.eastmoney.com/ztb/detail#type=zbgc

描述: 东方财富网-行情中心-涨停板行情-炸板股池

限量: 单次返回所有炸板股池数据
限量: 单次返回指定 date 的炸板股池数据;该接口只能获取近期的数据

输入参数

| 名称 | 类型 | 描述 |
|------|-----|-----------------|
| date | str | date='20210525' |
| date | str | date='20231129' |

输出参数

Expand Down Expand Up @@ -21458,17 +21458,17 @@ print(stock_zt_pool_zbgc_em_df)

接口: stock_zt_pool_dtgc_em

目标地址: http://quote.eastmoney.com/ztb/detail#type=zbgc
目标地址: https://quote.eastmoney.com/ztb/detail#type=zbgc

描述: 东方财富网-行情中心-涨停板行情-跌停股池

限量: 单次返回所有跌停股池数据; 该接口只能获取近 30 天的数据
限量: 单次返回指定 date 的跌停股池数据;该接口只能获取近期的数据

输入参数

| 名称 | 类型 | 描述 |
|------|-----|-----------------|
| date | str | date='20231106' |
| date | str | date='20231129' |

输出参数

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. 本文档更新时间:**2023-11-28**
1. 本文档更新时间:**2023-11-29**
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 843668d

Please # to comment.