akshare 1.15.90__py3-none-any.whl → 1.15.92__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/futures/futures_inventory_99.py +2 -2
- akshare/stock/stock_board_concept_em.py +1 -1
- akshare/stock/stock_fund_em.py +34 -5
- {akshare-1.15.90.dist-info → akshare-1.15.92.dist-info}/METADATA +1 -1
- {akshare-1.15.90.dist-info → akshare-1.15.92.dist-info}/RECORD +9 -9
- {akshare-1.15.90.dist-info → akshare-1.15.92.dist-info}/LICENSE +0 -0
- {akshare-1.15.90.dist-info → akshare-1.15.92.dist-info}/WHEEL +0 -0
- {akshare-1.15.90.dist-info → akshare-1.15.92.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
|
@@ -3000,9 +3000,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
3000
3000
|
1.15.88 fix: fix stock_zh_a_spot_em interface
|
|
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
|
+
1.15.91 fix: fix stock_board_concept_cons_em interface
|
|
3004
|
+
1.15.92 fix: fix stock_main_fund_flow interface
|
|
3003
3005
|
"""
|
|
3004
3006
|
|
|
3005
|
-
__version__ = "1.15.
|
|
3007
|
+
__version__ = "1.15.92"
|
|
3006
3008
|
__author__ = "AKFamily"
|
|
3007
3009
|
|
|
3008
3010
|
import sys
|
|
@@ -55,8 +55,8 @@ def futures_inventory_99(symbol: str = "豆一") -> pd.DataFrame:
|
|
|
55
55
|
url = "https://centerapi.fx168api.com/app/qh/api/stock/trend"
|
|
56
56
|
headers = {
|
|
57
57
|
"Content-Type": "application/json;charset=UTF-8",
|
|
58
|
-
"_pcc": "
|
|
59
|
-
"
|
|
58
|
+
"_pcc": "UA0+njHjAu6S+x0zm3/mS0dfA/bI6hXykkXo+zcU0fnYA3BDzyOhtyzP6rhHrxGHJHbC5PReeQsE0mUqas"
|
|
59
|
+
"osFnO5vMV+esXjRG/PpE7ob4ghzm8A+qNd0MC+mag1ov+aHMrbmfzRn0poqRHG2X7Cm+BfDMtWRU7P//2QvlbDtLg=",
|
|
60
60
|
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
|
|
61
61
|
"Chrome/58.0.3029.110 Safari/537.3",
|
|
62
62
|
"referer": "https://www.99qh.com",
|
|
@@ -295,7 +295,7 @@ def stock_board_concept_hist_min_em(
|
|
|
295
295
|
return temp_df
|
|
296
296
|
|
|
297
297
|
|
|
298
|
-
def stock_board_concept_cons_em(symbol: str = "
|
|
298
|
+
def stock_board_concept_cons_em(symbol: str = "融资融券") -> pd.DataFrame:
|
|
299
299
|
"""
|
|
300
300
|
东方财富-沪深板块-概念板块-板块成份
|
|
301
301
|
https://quote.eastmoney.com/center/boardlist.html#boards-BK06551
|
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=-xtq4U04cTYEluBu148MzMpvsHkFrFSH1nixLGU-jMk,187193
|
|
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
|
|
@@ -116,7 +116,7 @@ akshare/futures/futures_hf_em.py,sha256=jne-wUYr2QTUkDq3qAxYKE0Hm90L3H8qUDu3JavK
|
|
|
116
116
|
akshare/futures/futures_hist_em.py,sha256=23poFID_GE2mWf9NnkJBE3N7FgxNYiqrbTKO0VciS_A,6441
|
|
117
117
|
akshare/futures/futures_hq_sina.py,sha256=eK1gEan4DPvpYmln8-tNnzh_J_733s95DBr--NqNYVA,9576
|
|
118
118
|
akshare/futures/futures_index_ccidx.py,sha256=_kgWioCOpFNn8WUcL5qKHGb3rUHzrbrx2AszprKpBh4,4460
|
|
119
|
-
akshare/futures/futures_inventory_99.py,sha256=
|
|
119
|
+
akshare/futures/futures_inventory_99.py,sha256=pK1nzPNplRexvb2iFnU6Y_4blINTP8z-OFbQYzR3Q0g,2990
|
|
120
120
|
akshare/futures/futures_inventory_em.py,sha256=C5nt4F51WB-oc8o3GrMvEGo0SO2mIq_H1vHVl42vzT0,2340
|
|
121
121
|
akshare/futures/futures_news_shmet.py,sha256=1epZ3MwDc-T2n1ie4SSDfvUaBiMpSL0Q_xb2VoZ_llU,2465
|
|
122
122
|
akshare/futures/futures_roll_yield.py,sha256=RiwN0yYwzYy8zGhmTopBwJ37aUQ7Llwh3eQRzn0apaE,6135
|
|
@@ -231,14 +231,14 @@ akshare/stock/__init__.py,sha256=jSa9260d6aNZajaW68chI2mpPkDSXLOgi3eXrqo4MQ8,82
|
|
|
231
231
|
akshare/stock/cons.py,sha256=0oyUW5Pu-iQ3qgh-TFemM_O5f1fAwVe-PsI4Qa8EYpQ,42956
|
|
232
232
|
akshare/stock/stock_allotment_cninfo.py,sha256=OVjVdWp2XVRNbJvVgtgVVoBmPBJgBB4RyIIgA_9QHM8,6066
|
|
233
233
|
akshare/stock/stock_ask_bid_em.py,sha256=ioVkmRMVs7A7Lj_PboxwIoZINNk73nAko80wIJX4RKU,5510
|
|
234
|
-
akshare/stock/stock_board_concept_em.py,sha256=
|
|
234
|
+
akshare/stock/stock_board_concept_em.py,sha256=zCtHicBUcFN3GN2b5sKd0JV74KVSZKOOHDxS7v9DeCM,14042
|
|
235
235
|
akshare/stock/stock_board_industry_em.py,sha256=AfRVUVZrgSJXaoKAK81Ga-_m3hfv8YZzczBnnBdFq-I,16195
|
|
236
236
|
akshare/stock/stock_cg_equity_mortgage.py,sha256=Pui5aWKKPwGuKjF_GNpejDzsMGNPrxiaJviLz3x2e9I,3426
|
|
237
237
|
akshare/stock/stock_cg_guarantee.py,sha256=ts7qcQhhyN1PHB7Q4XlMn38HhfVvubOvky9RZfmUP94,3844
|
|
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.92.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
|
384
|
+
akshare-1.15.92.dist-info/METADATA,sha256=27bn-67xjX2FMGm21P9rBnZmbIw2XNyl25UOP4YdP9s,13679
|
|
385
|
+
akshare-1.15.92.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
386
|
+
akshare-1.15.92.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
|
387
|
+
akshare-1.15.92.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|