akshare 1.15.82__py3-none-any.whl → 1.15.84__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 +3 -1
- akshare/option/option_commodity.py +3 -3
- akshare/stock/stock_summary.py +3 -3
- {akshare-1.15.82.dist-info → akshare-1.15.84.dist-info}/METADATA +1 -1
- {akshare-1.15.82.dist-info → akshare-1.15.84.dist-info}/RECORD +8 -8
- {akshare-1.15.82.dist-info → akshare-1.15.84.dist-info}/LICENSE +0 -0
- {akshare-1.15.82.dist-info → akshare-1.15.84.dist-info}/WHEEL +0 -0
- {akshare-1.15.82.dist-info → akshare-1.15.84.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -2992,9 +2992,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
2992
2992
|
1.15.80 fix: fix option_gfex_vol_daily interface
|
|
2993
2993
|
1.15.81 fix: fix bank_fjcf_table_detail interface
|
|
2994
2994
|
1.15.82 fix: fix stock_individual_spot_xq interface
|
|
2995
|
+
1.15.83 fix: fix stock_szse_sector_summary interface
|
|
2996
|
+
1.15.84 fix: fix option_dce_daily interface
|
|
2995
2997
|
"""
|
|
2996
2998
|
|
|
2997
|
-
__version__ = "1.15.
|
|
2999
|
+
__version__ = "1.15.84"
|
|
2998
3000
|
__author__ = "AKFamily"
|
|
2999
3001
|
|
|
3000
3002
|
import sys
|
|
@@ -51,7 +51,7 @@ def option_dce_daily(
|
|
|
51
51
|
day = convert_date(trade_date) if trade_date is not None else datetime.date.today()
|
|
52
52
|
if day.strftime("%Y%m%d") not in calendar:
|
|
53
53
|
warnings.warn("%s非交易日" % day.strftime("%Y%m%d"))
|
|
54
|
-
return
|
|
54
|
+
return pd.DataFrame(), pd.DataFrame()
|
|
55
55
|
url = DCE_DAILY_OPTION_URL
|
|
56
56
|
payload = {
|
|
57
57
|
"dayQuotes.variety": "all",
|
|
@@ -120,7 +120,7 @@ def option_dce_daily(
|
|
|
120
120
|
elif symbol == "黄大豆2号期权":
|
|
121
121
|
result_one_df, result_two_df = (
|
|
122
122
|
table_df[table_df["商品名称"] == "豆二"],
|
|
123
|
-
another_df[another_df.iloc[:, 0].str.contains("b")],
|
|
123
|
+
another_df[another_df.iloc[:, 0].str.contains(r"^b\d")],
|
|
124
124
|
)
|
|
125
125
|
elif symbol == "豆油期权":
|
|
126
126
|
result_one_df, result_two_df = (
|
|
@@ -623,7 +623,7 @@ if __name__ == "__main__":
|
|
|
623
623
|
print(option_dce_daily_two)
|
|
624
624
|
|
|
625
625
|
option_dce_daily_one, option_dce_daily_two = option_dce_daily(
|
|
626
|
-
symbol="
|
|
626
|
+
symbol="黄大豆2号期权", trade_date="20250207"
|
|
627
627
|
)
|
|
628
628
|
print(option_dce_daily_one)
|
|
629
629
|
print(option_dce_daily_two)
|
akshare/stock/stock_summary.py
CHANGED
|
@@ -90,7 +90,7 @@ def stock_szse_area_summary(date: str = "202203") -> pd.DataFrame:
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
def stock_szse_sector_summary(
|
|
93
|
-
symbol: str = "当月", date: str = "
|
|
93
|
+
symbol: str = "当月", date: str = "202501"
|
|
94
94
|
) -> pd.DataFrame:
|
|
95
95
|
"""
|
|
96
96
|
深圳证券交易所-统计资料-股票行业成交数据
|
|
@@ -126,7 +126,7 @@ def stock_szse_sector_summary(
|
|
|
126
126
|
)
|
|
127
127
|
)
|
|
128
128
|
date_format = "-".join([date[:4], date[4:]])
|
|
129
|
-
url = f"
|
|
129
|
+
url = f"https://www.szse.cn/market/periodical/month/{date_url_dict[date_format]}"
|
|
130
130
|
r = requests.get(url)
|
|
131
131
|
r.encoding = "utf8"
|
|
132
132
|
soup = BeautifulSoup(r.text, features="lxml")
|
|
@@ -637,7 +637,7 @@ if __name__ == "__main__":
|
|
|
637
637
|
print(stock_szse_area_summary_df)
|
|
638
638
|
|
|
639
639
|
stock_szse_sector_summary_df = stock_szse_sector_summary(
|
|
640
|
-
symbol="当月", date="
|
|
640
|
+
symbol="当月", date="202501"
|
|
641
641
|
)
|
|
642
642
|
print(stock_szse_sector_summary_df)
|
|
643
643
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=o1uZeVCdRGvAAElUw8GTKhYtXRijGA74sslqqVXJq5Y,186799
|
|
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
|
|
@@ -190,7 +190,7 @@ akshare/nlp/nlp_interface.py,sha256=PyZjT3PkuTbloop-JwLwZ2kNi22zdO-r_pRUWQ5SmgM,
|
|
|
190
190
|
akshare/option/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
|
|
191
191
|
akshare/option/cons.py,sha256=zTRZ62RFwOcAKfmso-7nZJtT3a8Dt1nQbNnEjSqgjpI,4811
|
|
192
192
|
akshare/option/option_comm_qihuo.py,sha256=kjbdp-94KJJJi1ex5U03abtlgviqwP0Aahb6FwddPkk,3128
|
|
193
|
-
akshare/option/option_commodity.py,sha256=
|
|
193
|
+
akshare/option/option_commodity.py,sha256=uN_Dci9Tp_PtiOPrv9aupr7bZa0NeU2ArHAzTgkx9uw,25793
|
|
194
194
|
akshare/option/option_commodity_sina.py,sha256=r6qK_K7w3A6Uqp5ZtBb4pW7vH04oMyeCEZLLGqi0jpA,7776
|
|
195
195
|
akshare/option/option_czce.py,sha256=L4i7TVKcOns5ZKoqq-mrSykdx3SGwu6OL4eI77-A_lc,1812
|
|
196
196
|
akshare/option/option_daily_stats_sse_szse.py,sha256=Ip_vE81qbEGt4ocbtWfUT7XGu0HWU0zKkzauZeq9RJA,4962
|
|
@@ -268,7 +268,7 @@ akshare/stock/stock_repurchase_em.py,sha256=XVAUD_yd48wqxbMbfU0Ne2SNFOSG9NBklUhf
|
|
|
268
268
|
akshare/stock/stock_share_changes_cninfo.py,sha256=siy4PiZgYuNQn5jUUg2G7CyZ_yvuXNi3MVUDFhe5npY,4923
|
|
269
269
|
akshare/stock/stock_share_hold.py,sha256=sKiWH69n8_MQohi0qZ3Br-WQRq9I7S0USrb-tMVinb0,11028
|
|
270
270
|
akshare/stock/stock_stop.py,sha256=8HyazJAFj-s12ujUtrxO8VPXyA5bF9-3eNEj0qzGwMg,1185
|
|
271
|
-
akshare/stock/stock_summary.py,sha256=
|
|
271
|
+
akshare/stock/stock_summary.py,sha256=CkUB2Y4ZcNtNbyKb1hJZDG9KvlvqMDNvcPwLN7iO7AQ,22891
|
|
272
272
|
akshare/stock/stock_us_famous.py,sha256=enx_-EzEJWAhrMVQZaN83ETY_YEWO2xEStRm6z3upO0,3655
|
|
273
273
|
akshare/stock/stock_us_js.py,sha256=wwZpRvVHqjxwd0cb2O5vtRW8Zw90Kdl5O4XNwoevN64,2502
|
|
274
274
|
akshare/stock/stock_us_pink.py,sha256=jgkEjPm_qa4zSN1MH0unHJopSkcF-8Rqlp5Kus2KaQ8,3062
|
|
@@ -380,8 +380,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
|
|
|
380
380
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
381
381
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
382
382
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
|
383
|
-
akshare-1.15.
|
|
384
|
-
akshare-1.15.
|
|
385
|
-
akshare-1.15.
|
|
386
|
-
akshare-1.15.
|
|
387
|
-
akshare-1.15.
|
|
383
|
+
akshare-1.15.84.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
384
|
+
akshare-1.15.84.dist-info/METADATA,sha256=j05TVxGHRmqso8R0AWOgucJpgAJPaGm_XJi8oqaPxeU,13679
|
|
385
|
+
akshare-1.15.84.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
386
|
+
akshare-1.15.84.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
387
|
+
akshare-1.15.84.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|