akshare 1.15.20__py3-none-any.whl → 1.15.21__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/futures_daily_bar.py +5 -3
- {akshare-1.15.20.dist-info → akshare-1.15.21.dist-info}/METADATA +1 -1
- {akshare-1.15.20.dist-info → akshare-1.15.21.dist-info}/RECORD +7 -7
- {akshare-1.15.20.dist-info → akshare-1.15.21.dist-info}/WHEEL +1 -1
- {akshare-1.15.20.dist-info → akshare-1.15.21.dist-info}/LICENSE +0 -0
- {akshare-1.15.20.dist-info → akshare-1.15.21.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -2930,9 +2930,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
2930
2930
|
1.15.18 fix: fix stock_share_hold_change_sse indicator
|
|
2931
2931
|
1.15.19 fix: fix stock_share_hold_change_szse indicator
|
|
2932
2932
|
1.15.20 fix: fix rv_from_stock_zh_a_hist_min_em indicator
|
|
2933
|
+
1.15.21 fix: fix get_futures_daily indicator
|
|
2933
2934
|
"""
|
|
2934
2935
|
|
|
2935
|
-
__version__ = "1.15.
|
|
2936
|
+
__version__ = "1.15.21"
|
|
2936
2937
|
__author__ = "AKFamily"
|
|
2937
2938
|
|
|
2938
2939
|
import sys
|
|
@@ -668,11 +668,13 @@ def get_futures_daily(
|
|
|
668
668
|
df_list = list()
|
|
669
669
|
while start_date <= end_date:
|
|
670
670
|
df = f(date=str(start_date).replace("-", ""))
|
|
671
|
-
if
|
|
671
|
+
if not df.empty:
|
|
672
672
|
df_list.append(df)
|
|
673
673
|
start_date += datetime.timedelta(days=1)
|
|
674
674
|
|
|
675
|
-
if len(df_list)
|
|
675
|
+
if len(df_list) == 0:
|
|
676
|
+
return pd.DataFrame()
|
|
677
|
+
elif len(df_list) > 0:
|
|
676
678
|
temp_df = pd.concat(df_list).reset_index(drop=True)
|
|
677
679
|
temp_df = temp_df[~temp_df["symbol"].str.contains("efp")]
|
|
678
680
|
return temp_df
|
|
@@ -680,7 +682,7 @@ def get_futures_daily(
|
|
|
680
682
|
|
|
681
683
|
if __name__ == "__main__":
|
|
682
684
|
get_futures_daily_df = get_futures_daily(
|
|
683
|
-
start_date="
|
|
685
|
+
start_date="20240101", end_date="20240101", market="DCE"
|
|
684
686
|
)
|
|
685
687
|
print(get_futures_daily_df)
|
|
686
688
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=kZ1m2-OHKCI5xXz2lfc0MLGiOtR71Y2pnlCEve0WsUA,183752
|
|
2
2
|
akshare/datasets.py,sha256=-qdwaQjgBlftX84uM74KJqCYJYkQ50PV416_neA4uls,995
|
|
3
3
|
akshare/exceptions.py,sha256=WEJjIhSmJ_xXNW6grwV4nufE_cfmmyuhmueVGiN1VAg,878
|
|
4
4
|
akshare/request.py,sha256=HtFFf9MhfEibR-ETWe-1Tts6ELU4VKSqA-ghaXjegQM,4252
|
|
@@ -111,7 +111,7 @@ akshare/futures/futures_comex_em.py,sha256=V-mkKQkH5N8PyaZWKdyggb2lTnY8DDDxiUPt-
|
|
|
111
111
|
akshare/futures/futures_comm_ctp.py,sha256=V8TEKO0R0i6LfE8DDFqrMA3JGwNlpmaQCvvMugKZ1I8,1004
|
|
112
112
|
akshare/futures/futures_comm_qihuo.py,sha256=uQfabZ63qME8sTaxUbIUVQBVi8yTaPPDhD7voR9PEx0,10504
|
|
113
113
|
akshare/futures/futures_contract_detail.py,sha256=auwzNdaoFi5hoJY6rNkO54v5FD2gmEkQu7B90yEDtkc,1175
|
|
114
|
-
akshare/futures/futures_daily_bar.py,sha256=
|
|
114
|
+
akshare/futures/futures_daily_bar.py,sha256=X3Lx2Bo_oeruLNSW1uGshuNTfDZd8a05p51J2966nOw,25281
|
|
115
115
|
akshare/futures/futures_foreign.py,sha256=oSIoAg5oy-CIlPWHkQffcvZGu02Y2GWOrt-6aPA53Xg,2059
|
|
116
116
|
akshare/futures/futures_hf_em.py,sha256=OEUltaq1LKabl9eTQoNxswnl1BLKpB27eiIHwbu_Rh4,3178
|
|
117
117
|
akshare/futures/futures_hq_sina.py,sha256=eK1gEan4DPvpYmln8-tNnzh_J_733s95DBr--NqNYVA,9576
|
|
@@ -383,8 +383,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
|
|
|
383
383
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
|
384
384
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
|
385
385
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
|
386
|
-
akshare-1.15.
|
|
387
|
-
akshare-1.15.
|
|
388
|
-
akshare-1.15.
|
|
389
|
-
akshare-1.15.
|
|
390
|
-
akshare-1.15.
|
|
386
|
+
akshare-1.15.21.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
387
|
+
akshare-1.15.21.dist-info/METADATA,sha256=ro5R5nJrKj_SNlSQOtbWvo3aIvftW0Z-GLLJu-Jo4UU,14259
|
|
388
|
+
akshare-1.15.21.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
389
|
+
akshare-1.15.21.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
390
|
+
akshare-1.15.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|