akshare 1.15.91__py3-none-any.whl → 1.15.93__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/fund/fund_etf_em.py +15 -2
- akshare/stock/stock_fund_em.py +34 -5
- {akshare-1.15.91.dist-info → akshare-1.15.93.dist-info}/METADATA +1 -1
- {akshare-1.15.91.dist-info → akshare-1.15.93.dist-info}/RECORD +8 -8
- {akshare-1.15.91.dist-info → akshare-1.15.93.dist-info}/LICENSE +0 -0
- {akshare-1.15.91.dist-info → akshare-1.15.93.dist-info}/WHEEL +0 -0
- {akshare-1.15.91.dist-info → akshare-1.15.93.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -3001,9 +3001,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
3001
3001
|
1.15.89 fix: fix stock_individual_info_em interface
|
|
3002
3002
|
1.15.90 fix: fix stock_financial_analysis_indicator interface
|
|
3003
3003
|
1.15.91 fix: fix stock_board_concept_cons_em interface
|
|
3004
|
+
1.15.92 fix: fix stock_main_fund_flow interface
|
|
3005
|
+
1.15.93 fix: fix fund_etf_spot_em interface
|
|
3004
3006
|
"""
|
|
3005
3007
|
|
|
3006
|
-
__version__ = "1.15.
|
|
3008
|
+
__version__ = "1.15.93"
|
|
3007
3009
|
__author__ = "AKFamily"
|
|
3008
3010
|
|
|
3009
3011
|
import sys
|
akshare/fund/fund_etf_em.py
CHANGED
|
@@ -66,7 +66,7 @@ def fund_etf_spot_em() -> pd.DataFrame:
|
|
|
66
66
|
url = "https://88.push2.eastmoney.com/api/qt/clist/get"
|
|
67
67
|
params = {
|
|
68
68
|
"pn": "1",
|
|
69
|
-
"pz": "
|
|
69
|
+
"pz": "200",
|
|
70
70
|
"po": "1",
|
|
71
71
|
"np": "1",
|
|
72
72
|
"ut": "bd1d9ddb04089700cf9c27f6f7426281",
|
|
@@ -87,7 +87,20 @@ def fund_etf_spot_em() -> pd.DataFrame:
|
|
|
87
87
|
}
|
|
88
88
|
r = requests.get(url, timeout=15, params=params)
|
|
89
89
|
data_json = r.json()
|
|
90
|
-
|
|
90
|
+
total_page = math.ceil(data_json["data"]["total"] / 200)
|
|
91
|
+
temp_list = []
|
|
92
|
+
tqdm = get_tqdm()
|
|
93
|
+
for page in tqdm(range(1, total_page + 1), leave=False):
|
|
94
|
+
params.update(
|
|
95
|
+
{
|
|
96
|
+
"pn": page,
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
r = requests.get(url, params=params, timeout=15)
|
|
100
|
+
data_json = r.json()
|
|
101
|
+
inner_temp_df = pd.DataFrame(data_json["data"]["diff"])
|
|
102
|
+
temp_list.append(inner_temp_df)
|
|
103
|
+
temp_df = pd.concat(temp_list, ignore_index=True)
|
|
91
104
|
temp_df.rename(
|
|
92
105
|
columns={
|
|
93
106
|
"f12": "代码",
|
akshare/stock/stock_fund_em.py
CHANGED
|
@@ -6,6 +6,7 @@ Desc: 东方财富网-数据中心-资金流向
|
|
|
6
6
|
https://data.eastmoney.com/zjlx/detail.html
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
import math
|
|
9
10
|
import json
|
|
10
11
|
import time
|
|
11
12
|
from functools import lru_cache
|
|
@@ -13,6 +14,8 @@ from functools import lru_cache
|
|
|
13
14
|
import pandas as pd
|
|
14
15
|
import requests
|
|
15
16
|
|
|
17
|
+
from akshare.utils.tqdm import get_tqdm
|
|
18
|
+
|
|
16
19
|
|
|
17
20
|
def stock_individual_fund_flow(
|
|
18
21
|
stock: str = "600094", market: str = "sh"
|
|
@@ -147,7 +150,7 @@ def stock_individual_fund_flow_rank(indicator: str = "5日") -> pd.DataFrame:
|
|
|
147
150
|
params = {
|
|
148
151
|
"fid": indicator_map[indicator][0],
|
|
149
152
|
"po": "1",
|
|
150
|
-
"pz": "
|
|
153
|
+
"pz": "200",
|
|
151
154
|
"pn": "1",
|
|
152
155
|
"np": "1",
|
|
153
156
|
"fltt": "2",
|
|
@@ -158,7 +161,20 @@ def stock_individual_fund_flow_rank(indicator: str = "5日") -> pd.DataFrame:
|
|
|
158
161
|
}
|
|
159
162
|
r = requests.get(url, params=params)
|
|
160
163
|
data_json = r.json()
|
|
161
|
-
|
|
164
|
+
total_page = math.ceil(data_json["data"]["total"] / 200)
|
|
165
|
+
temp_list = []
|
|
166
|
+
tqdm = get_tqdm()
|
|
167
|
+
for page in tqdm(range(1, total_page + 1), leave=False):
|
|
168
|
+
params.update(
|
|
169
|
+
{
|
|
170
|
+
"pn": page,
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
r = requests.get(url, params=params, timeout=15)
|
|
174
|
+
data_json = r.json()
|
|
175
|
+
inner_temp_df = pd.DataFrame(data_json["data"]["diff"])
|
|
176
|
+
temp_list.append(inner_temp_df)
|
|
177
|
+
temp_df = pd.concat(temp_list, ignore_index=True)
|
|
162
178
|
temp_df.reset_index(inplace=True)
|
|
163
179
|
temp_df["index"] = range(1, len(temp_df) + 1)
|
|
164
180
|
if indicator == "今日":
|
|
@@ -1170,7 +1186,7 @@ def stock_main_fund_flow(symbol: str = "全部股票") -> pd.DataFrame:
|
|
|
1170
1186
|
params = {
|
|
1171
1187
|
"fid": "f184",
|
|
1172
1188
|
"po": "1",
|
|
1173
|
-
"pz": "
|
|
1189
|
+
"pz": "200",
|
|
1174
1190
|
"pn": "1",
|
|
1175
1191
|
"np": "1",
|
|
1176
1192
|
"fltt": "2",
|
|
@@ -1181,8 +1197,21 @@ def stock_main_fund_flow(symbol: str = "全部股票") -> pd.DataFrame:
|
|
|
1181
1197
|
}
|
|
1182
1198
|
r = requests.get(url, params=params, timeout=15)
|
|
1183
1199
|
data_json = r.json()
|
|
1184
|
-
|
|
1185
|
-
|
|
1200
|
+
total_page = math.ceil(data_json["data"]["total"] / 200)
|
|
1201
|
+
temp_list = []
|
|
1202
|
+
tqdm = get_tqdm()
|
|
1203
|
+
for page in tqdm(range(1, total_page + 1), leave=False):
|
|
1204
|
+
params.update(
|
|
1205
|
+
{
|
|
1206
|
+
"pn": page,
|
|
1207
|
+
}
|
|
1208
|
+
)
|
|
1209
|
+
r = requests.get(url, params=params, timeout=15)
|
|
1210
|
+
data_json = r.json()
|
|
1211
|
+
inner_temp_df = pd.DataFrame(data_json["data"]["diff"])
|
|
1212
|
+
temp_list.append(inner_temp_df)
|
|
1213
|
+
temp_df = pd.concat(temp_list, ignore_index=True)
|
|
1214
|
+
temp_df["序号"] = range(1, len(temp_df) + 1)
|
|
1186
1215
|
temp_df.rename(
|
|
1187
1216
|
columns={
|
|
1188
1217
|
"index": "序号",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
akshare/__init__.py,sha256=
|
|
1
|
+
akshare/__init__.py,sha256=pLRcn57d-L-a8Rvet-SX5fDjoW0qd_zTD8FnvKWe2Ts,187237
|
|
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
|
|
@@ -86,7 +86,7 @@ akshare/fund/fund_amac.py,sha256=Dml3EgpJhmVgkttb0OdaWN41ynOCIbJ0-1qAPDWF0oo,338
|
|
|
86
86
|
akshare/fund/fund_announcement.py,sha256=g5rcIC9vQ4HapZd0b7cDbFYzHu9V6bOKhwxRHVfmv8k,1848
|
|
87
87
|
akshare/fund/fund_aum_em.py,sha256=dy1R1-0X48H8S-LPiuggNA5M-6MvQ08fnp5bytvCGPQ,3518
|
|
88
88
|
akshare/fund/fund_em.py,sha256=nX0VA5JeiF-zRr1J10X-U9-pJj5KFDUAbovN1DWjvTo,40450
|
|
89
|
-
akshare/fund/fund_etf_em.py,sha256=
|
|
89
|
+
akshare/fund/fund_etf_em.py,sha256=a2h_htijqERVaplRYt3D8GALGFh8w3uLtlRo9y4aLaI,18319
|
|
90
90
|
akshare/fund/fund_etf_sina.py,sha256=YV2KrqKMF_h8kgrywvWvRJx2oy62lhgizvHFk40E4Rk,7042
|
|
91
91
|
akshare/fund/fund_etf_ths.py,sha256=vb_jy0h2-Kz2dNWUrwBYxPB0MAotv0KZgnFhE98ohSM,3432
|
|
92
92
|
akshare/fund/fund_fee_em.py,sha256=rkA2qVEhuWBUTFlvEP-zY_4Fw7_vL9cDx9hR-P38yDk,4157
|
|
@@ -238,7 +238,7 @@ akshare/stock/stock_cg_guarantee.py,sha256=ts7qcQhhyN1PHB7Q4XlMn38HhfVvubOvky9RZ
|
|
|
238
238
|
akshare/stock/stock_cg_lawsuit.py,sha256=6Y92pPw0JgyrInteqHuU07G1jwmdX2wjaDtrJN8y6Hg,4129
|
|
239
239
|
akshare/stock/stock_dividend_cninfo.py,sha256=_vipLQu94qBDoPkaIWZKRFA0mFfgroUMnn5EdLcjAc4,3195
|
|
240
240
|
akshare/stock/stock_dzjy_em.py,sha256=QMo2w-_I9UnmCr1IXk_InFeW5ok_GpRE9HdWFDUdGyM,22556
|
|
241
|
-
akshare/stock/stock_fund_em.py,sha256=
|
|
241
|
+
akshare/stock/stock_fund_em.py,sha256=zo21Thdwp1IonjZLHKdr5X2g1I1kzSEz_wORNEqp2F8,49800
|
|
242
242
|
akshare/stock/stock_fund_hold.py,sha256=iFEmRFber7MF6aPi0QOJxpvYjO7I26KouUvC-xTQdCk,6056
|
|
243
243
|
akshare/stock/stock_gsrl_em.py,sha256=oy5vO681ZPTEehZgz10T8jgIQ8dNm_E7MXGr1PGoHqI,1951
|
|
244
244
|
akshare/stock/stock_hk_famous.py,sha256=g-p1cdRibei9fw2HEMPyarLP-wT4bFwIK7Mxi77jH9E,3015
|
|
@@ -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.93.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
384
|
+
akshare-1.15.93.dist-info/METADATA,sha256=1BlzSPJYYXMrwnTGzRxw8eTGD84cTjh24MUVkRjq1yY,13679
|
|
385
|
+
akshare-1.15.93.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
386
|
+
akshare-1.15.93.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
387
|
+
akshare-1.15.93.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|