akshare 1.17.11__py3-none-any.whl → 1.17.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of akshare might be problematic. Click here for more details.
- akshare/__init__.py +2 -1
- akshare/futures/cons.py +1 -0
- akshare/futures/receipt.py +6 -6
- {akshare-1.17.11.dist-info → akshare-1.17.12.dist-info}/METADATA +1 -1
- {akshare-1.17.11.dist-info → akshare-1.17.12.dist-info}/RECORD +8 -8
- {akshare-1.17.11.dist-info → akshare-1.17.12.dist-info}/WHEEL +0 -0
- {akshare-1.17.11.dist-info → akshare-1.17.12.dist-info}/licenses/LICENSE +0 -0
- {akshare-1.17.11.dist-info → akshare-1.17.12.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -3118,9 +3118,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
3118
3118
|
1.17.9 fix: fix stock_zh_ab_comparison_em interface
|
|
3119
3119
|
1.17.10 fix: fix get_shfe_daily interface
|
|
3120
3120
|
1.17.11 fix: fix stock_individual_spot_xq interface
|
|
3121
|
+
1.17.12 fix: fix get_receipt interface
|
|
3121
3122
|
"""
|
|
3122
3123
|
|
|
3123
|
-
__version__ = "1.17.
|
|
3124
|
+
__version__ = "1.17.12"
|
|
3124
3125
|
__author__ = "AKFamily"
|
|
3125
3126
|
|
|
3126
3127
|
import sys
|
akshare/futures/cons.py
CHANGED
|
@@ -326,6 +326,7 @@ DCE_RECEIPT_URL = "http://www.dce.com.cn/publicweb/quotesdata/wbillWeeklyQuotes.
|
|
|
326
326
|
|
|
327
327
|
SHFE_RECEIPT_URL_1 = "http://tsite.shfe.com.cn/data/dailydata/%sdailystock.html"
|
|
328
328
|
SHFE_RECEIPT_URL_2 = "http://tsite.shfe.com.cn/data/dailydata/%sdailystock.dat"
|
|
329
|
+
SHFE_RECEIPT_URL_20250701 = "https://www.shfe.com.cn/data/tradedata/future/dailydata/%sdailystock.dat"
|
|
329
330
|
CZCE_RECEIPT_URL_1 = "http://www.czce.com.cn/cn/exchange/jyxx/sheet/sheet%s.html"
|
|
330
331
|
CZCE_RECEIPT_URL_2 = "http://www.czce.com.cn/cn/exchange/%s/datawhsheet/%s.htm"
|
|
331
332
|
CZCE_RECEIPT_URL_3 = (
|
akshare/futures/receipt.py
CHANGED
|
@@ -86,9 +86,9 @@ def get_shfe_receipt_1(
|
|
|
86
86
|
"""
|
|
87
87
|
上海期货交易所-注册仓单数据-类型1
|
|
88
88
|
适用 20081006 至 20140518(包括)、20100126、20101029日期交易所格式混乱,直接回复脚本中 pandas.DataFrame, 20100416、20130821日期交易所数据丢失
|
|
89
|
-
:param date: 开始日期 format:YYYY-MM-DD 或 YYYYMMDD 或 datetime.date
|
|
89
|
+
:param date: 开始日期 format:YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象为空时为当天
|
|
90
90
|
:type date: str
|
|
91
|
-
:param vars_list: 合约品种如RB、AL
|
|
91
|
+
:param vars_list: 合约品种如RB、AL等列表为空时为所有商品
|
|
92
92
|
:type vars_list: list
|
|
93
93
|
:return: 注册仓单数据-类型1
|
|
94
94
|
:rtype: pandas.DataFrame
|
|
@@ -102,7 +102,7 @@ def get_shfe_receipt_1(
|
|
|
102
102
|
)
|
|
103
103
|
if date not in calendar:
|
|
104
104
|
warnings.warn(f"{date.strftime('%Y%m%d')}非交易日")
|
|
105
|
-
return
|
|
105
|
+
return pd.DataFrame()
|
|
106
106
|
if date == "20100126":
|
|
107
107
|
shfe_20100126["date"] = date
|
|
108
108
|
return shfe_20100126
|
|
@@ -175,8 +175,8 @@ def get_shfe_receipt_2(
|
|
|
175
175
|
)
|
|
176
176
|
if date not in calendar:
|
|
177
177
|
warnings.warn("%s 非交易日" % date.strftime("%Y%m%d"))
|
|
178
|
-
return
|
|
179
|
-
url = cons.
|
|
178
|
+
return pd.DataFrame()
|
|
179
|
+
url = cons.SHFE_RECEIPT_URL_20250701 % date
|
|
180
180
|
r = requests_link(url, encoding="utf-8", headers=cons.shfe_headers)
|
|
181
181
|
try:
|
|
182
182
|
context = r.json()
|
|
@@ -598,5 +598,5 @@ def get_receipt(
|
|
|
598
598
|
|
|
599
599
|
|
|
600
600
|
if __name__ == "__main__":
|
|
601
|
-
get_receipt_df = get_receipt(start_date="
|
|
601
|
+
get_receipt_df = get_receipt(start_date="20250630", end_date="20250630")
|
|
602
602
|
print(get_receipt_df)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=igT8btMNMVJahLTvKIv21xk1TSf0usemEs5za-yecEc,194955
|
|
2
2
|
akshare/datasets.py,sha256=rKuRNZrqi6IMsZ9nyvO3Rx02js0tH3zMLjz8HQNAoPQ,963
|
|
3
3
|
akshare/exceptions.py,sha256=WEJjIhSmJ_xXNW6grwV4nufE_cfmmyuhmueVGiN1VAg,878
|
|
4
4
|
akshare/request.py,sha256=HtFFf9MhfEibR-ETWe-1Tts6ELU4VKSqA-ghaXjegQM,4252
|
|
@@ -107,7 +107,7 @@ akshare/fund/fund_scale_em.py,sha256=Fl4ru-j1h99-aEcWZAW6Rd-lvslQ456R0RPdIYPoogE
|
|
|
107
107
|
akshare/fund/fund_scale_sina.py,sha256=A0qIzWBQdE3IGS9-cxO9_FNpuH-BAG5HhPk5KzTFTFc,8167
|
|
108
108
|
akshare/fund/fund_xq.py,sha256=AxMZB-940bNY7-BatVLZiseHNxiWA17hQzTfuxGibPU,11306
|
|
109
109
|
akshare/futures/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
|
|
110
|
-
akshare/futures/cons.py,sha256=
|
|
110
|
+
akshare/futures/cons.py,sha256=YOVRhZHhsfNWZCJzxmGBiPCes-WnKDcqwOaPbCAO4-w,17736
|
|
111
111
|
akshare/futures/cot.py,sha256=GptYlcw4lyHOhW8M5hW55sNMk_fz3swjikhaSJqAmYo,58624
|
|
112
112
|
akshare/futures/futures_basis.py,sha256=LOM7_gM1ahwOO7q7o9leEe5FaA-kShbO5x8kWVWI3zE,15691
|
|
113
113
|
akshare/futures/futures_comex_em.py,sha256=NPwOCD6lZUDL4wlGxvbmmJIFkQlW427ERO0vTux13WU,3172
|
|
@@ -132,7 +132,7 @@ akshare/futures/futures_stock_js.py,sha256=sAao7ZcqBovdEo4wrVt2K6kXK2rf1_kT_StQd
|
|
|
132
132
|
akshare/futures/futures_to_spot.py,sha256=0MCVcZoZoOMd7DSR357K2UHoRBCeHyONyRCu8oWVWuw,12841
|
|
133
133
|
akshare/futures/futures_warehouse_receipt.py,sha256=wF98kwKsIc0GCcwgwoup2m76Pg800HdXY29Wf1jvDNc,9116
|
|
134
134
|
akshare/futures/futures_zh_sina.py,sha256=wFFiPdud7a6HUHxohlQmN0FsnrvsadTYhbq0cZT4dpo,26191
|
|
135
|
-
akshare/futures/receipt.py,sha256=
|
|
135
|
+
akshare/futures/receipt.py,sha256=L7VipbeOulGzlwzy5-O1IAIpTzrfgms-ga3PtHZk694,23516
|
|
136
136
|
akshare/futures/requests_fun.py,sha256=w4inzqYjrAiRx_E3oszbcJwrRJR3MKpm5Rkropdusoo,2893
|
|
137
137
|
akshare/futures/symbol_var.py,sha256=RK9Nm0yKrCM_64Q7S9wnlAv2UWhcHeJpQ2qA2qqDkNA,5621
|
|
138
138
|
akshare/futures_derivative/__init__.py,sha256=COFyP01gIUhWs4EBr6hwL73B7IWePIzg7vP7oEY3G3I,82
|
|
@@ -392,10 +392,10 @@ akshare/utils/func.py,sha256=4cwmXFztU86yJNONJ40KJLvsIEQHBbct4iMm3zT2v30,2315
|
|
|
392
392
|
akshare/utils/multi_decrypt.py,sha256=aWoL2iEPeuXHJg8-n7OtMKixLnIhfzepACgxfrfmQB4,1657
|
|
393
393
|
akshare/utils/token_process.py,sha256=nGtgnZGRprXJkhLXH8mcUH4TgIFwzsTOb0EaEPa0Euo,667
|
|
394
394
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
395
|
-
akshare-1.17.
|
|
395
|
+
akshare-1.17.12.dist-info/licenses/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
396
396
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
397
397
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
|
398
|
-
akshare-1.17.
|
|
399
|
-
akshare-1.17.
|
|
400
|
-
akshare-1.17.
|
|
401
|
-
akshare-1.17.
|
|
398
|
+
akshare-1.17.12.dist-info/METADATA,sha256=-IfIPNguoCaNmo5zqjBQrj2s9Jd0rz3_Eo1UpIRzZ3c,11902
|
|
399
|
+
akshare-1.17.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
400
|
+
akshare-1.17.12.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
401
|
+
akshare-1.17.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|