akshare 1.16.43__py3-none-any.whl → 1.16.45__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.
- akshare/__init__.py +3 -1
- akshare/index/index_stock_zh.py +14 -9
- akshare/index/index_zh_em.py +1 -1
- akshare/news/news_stock.py +1 -1
- akshare/option/option_risk_analysis_em.py +11 -9
- akshare/stock/stock_board_concept_em.py +3 -3
- {akshare-1.16.43.dist-info → akshare-1.16.45.dist-info}/METADATA +1 -1
- {akshare-1.16.43.dist-info → akshare-1.16.45.dist-info}/RECORD +11 -11
- {akshare-1.16.43.dist-info → akshare-1.16.45.dist-info}/LICENSE +0 -0
- {akshare-1.16.43.dist-info → akshare-1.16.45.dist-info}/WHEEL +0 -0
- {akshare-1.16.43.dist-info → akshare-1.16.45.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
@@ -3052,9 +3052,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
3052
3052
|
1.16.41 fix: fix stock_individual_fund_flow_rank interface
|
3053
3053
|
1.16.42 fix: fix stock_concept_fund_flow_hist interface
|
3054
3054
|
1.16.43 fix: fix option_value_analysis_em interface
|
3055
|
+
1.16.44 fix: fix stock_board_concept_hist_em interface
|
3056
|
+
1.16.45 fix: fix option_risk_analysis_em interface
|
3055
3057
|
"""
|
3056
3058
|
|
3057
|
-
__version__ = "1.16.
|
3059
|
+
__version__ = "1.16.45"
|
3058
3060
|
__author__ = "AKFamily"
|
3059
3061
|
|
3060
3062
|
import sys
|
akshare/index/index_stock_zh.py
CHANGED
@@ -466,15 +466,20 @@ if __name__ == "__main__":
|
|
466
466
|
stock_zh_index_spot_sina_df = stock_zh_index_spot_sina()
|
467
467
|
print(stock_zh_index_spot_sina_df)
|
468
468
|
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
469
|
+
stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="沪深重要指数")
|
470
|
+
print(stock_zh_index_spot_em_df)
|
471
|
+
|
472
|
+
stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="上证系列指数")
|
473
|
+
print(stock_zh_index_spot_em_df)
|
474
|
+
|
475
|
+
stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="深证系列指数")
|
476
|
+
print(stock_zh_index_spot_em_df)
|
477
|
+
|
478
|
+
stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="指数成份")
|
479
|
+
print(stock_zh_index_spot_em_df)
|
480
|
+
|
481
|
+
stock_zh_index_spot_em_df = stock_zh_index_spot_em(symbol="中证系列指数")
|
482
|
+
print(stock_zh_index_spot_em_df)
|
478
483
|
|
479
484
|
stock_zh_index_daily_tx_df = stock_zh_index_daily_tx(symbol="sh000919")
|
480
485
|
print(stock_zh_index_daily_tx_df)
|
akshare/index/index_zh_em.py
CHANGED
akshare/news/news_stock.py
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
# -*- coding:utf-8 -*-
|
2
2
|
# !/usr/bin/env python
|
3
3
|
"""
|
4
|
-
Date: 2025/
|
4
|
+
Date: 2025/3/13 21:50
|
5
5
|
Desc: 东方财富网-数据中心-特色数据-期权风险分析
|
6
6
|
https://data.eastmoney.com/other/riskanal.html
|
7
7
|
"""
|
8
8
|
|
9
|
-
import requests
|
10
9
|
import pandas as pd
|
11
10
|
|
11
|
+
from akshare.utils.func import fetch_paginated_data
|
12
|
+
|
12
13
|
|
13
14
|
def option_risk_analysis_em() -> pd.DataFrame:
|
14
15
|
"""
|
@@ -19,21 +20,20 @@ def option_risk_analysis_em() -> pd.DataFrame:
|
|
19
20
|
"""
|
20
21
|
url = "https://push2.eastmoney.com/api/qt/clist/get"
|
21
22
|
params = {
|
22
|
-
"fid": "
|
23
|
+
"fid": "f12",
|
23
24
|
"po": "1",
|
24
|
-
"pz": "
|
25
|
+
"pz": "100",
|
25
26
|
"pn": "1",
|
26
|
-
"np": "
|
27
|
+
"np": "1",
|
27
28
|
"fltt": "2",
|
28
29
|
"invt": "2",
|
29
30
|
"ut": "b2884a393a59ad64002292a3e90d46a5",
|
30
31
|
"fields": "f1,f2,f3,f12,f13,f14,f302,f303,f325,f326,f327,f329,f328,f301,f152,f154",
|
31
32
|
"fs": "m:10",
|
32
33
|
}
|
33
|
-
|
34
|
-
data_json = r.json()
|
35
|
-
temp_df = pd.DataFrame(data_json["data"]["diff"]).T
|
34
|
+
temp_df = fetch_paginated_data(url, params)
|
36
35
|
temp_df.columns = [
|
36
|
+
"-",
|
37
37
|
"-",
|
38
38
|
"最新价",
|
39
39
|
"涨跌幅",
|
@@ -76,7 +76,9 @@ def option_risk_analysis_em() -> pd.DataFrame:
|
|
76
76
|
temp_df["Vega"] = pd.to_numeric(temp_df["Vega"], errors="coerce")
|
77
77
|
temp_df["Rho"] = pd.to_numeric(temp_df["Rho"], errors="coerce")
|
78
78
|
temp_df["Theta"] = pd.to_numeric(temp_df["Theta"], errors="coerce")
|
79
|
-
temp_df["到期日"] = pd.to_datetime(
|
79
|
+
temp_df["到期日"] = pd.to_datetime(
|
80
|
+
temp_df["到期日"], format="%Y%m%d", errors="coerce"
|
81
|
+
).dt.date
|
80
82
|
return temp_df
|
81
83
|
|
82
84
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
# -*- coding:utf-8 -*-
|
3
3
|
"""
|
4
|
-
Date: 2025/3/
|
4
|
+
Date: 2025/3/12 17:00
|
5
5
|
Desc: 东方财富-沪深板块-概念板块
|
6
6
|
https://quote.eastmoney.com/center/boardlist.html#concept_board
|
7
7
|
"""
|
@@ -112,7 +112,7 @@ def stock_board_concept_name_em() -> pd.DataFrame:
|
|
112
112
|
"ut": "bd1d9ddb04089700cf9c27f6f7426281",
|
113
113
|
"fltt": "2",
|
114
114
|
"invt": "2",
|
115
|
-
"fid": "
|
115
|
+
"fid": "f12",
|
116
116
|
"fs": "m:90 t:3 f:!50",
|
117
117
|
"fields": "f2,f3,f4,f8,f12,f14,f15,f16,f17,f18,f20,f21,f24,f25,f22,f33,f11,f62,f128,f124,f107,f104,f105,f136",
|
118
118
|
"_": "1626075887768",
|
@@ -451,7 +451,7 @@ def stock_board_concept_cons_em(symbol: str = "融资融券") -> pd.DataFrame:
|
|
451
451
|
"ut": "bd1d9ddb04089700cf9c27f6f7426281",
|
452
452
|
"fltt": "2",
|
453
453
|
"invt": "2",
|
454
|
-
"fid": "
|
454
|
+
"fid": "f12",
|
455
455
|
"fs": f"b:{stock_board_code} f:!50",
|
456
456
|
"fields": "f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,"
|
457
457
|
"f24,f25,f22,f11,f62,f128,f136,f115,f152,f45",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
akshare/__init__.py,sha256=
|
1
|
+
akshare/__init__.py,sha256=LlUT8S4hhcp3AvSrfHbZtr4Z7WaA9ppZiRqasKLWI90,191000
|
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
|
@@ -172,13 +172,13 @@ akshare/index/index_research_sw.py,sha256=Mm1YtiP-PXhDysJwmFidX3RZSZZ92AyXpjl_tV
|
|
172
172
|
akshare/index/index_spot.py,sha256=meTBTCp2DPVTX_N3qpCLtkI-0q3XhrJ3gndNugRBGKg,1767
|
173
173
|
akshare/index/index_stock_hk.py,sha256=eCtL477XlLpbOvBRWG_ooDlFV4kFRk8na0k2r_rr_GU,9795
|
174
174
|
akshare/index/index_stock_us_sina.py,sha256=IxOk4G49oasv7EfEQenL9-GLuelyUus6c4JPyRlaOzY,1551
|
175
|
-
akshare/index/index_stock_zh.py,sha256=
|
175
|
+
akshare/index/index_stock_zh.py,sha256=gVMgD_sgZwZLOmqj8jyt-oKc7s9bBFCTGqfBMpjvWw0,18060
|
176
176
|
akshare/index/index_stock_zh_csindex.py,sha256=sRVoDD-fitqAMuDs0XPm1oCz2nZ2QTkvNswL1WvXpwo,4164
|
177
177
|
akshare/index/index_sugar.py,sha256=B_Nj9Q6JP-Y_d7myZ0C79izTxxrbuZIp1Vv_CilVMOc,5006
|
178
178
|
akshare/index/index_sw.py,sha256=hETMmFszQb7JDY8UHjLK8szfwkr7Ui_6QcseOoEfxaI,10456
|
179
179
|
akshare/index/index_yw.py,sha256=6FF38kooLQulnMTqAd1__TNWip4XC1VA72k3T049xYc,4319
|
180
180
|
akshare/index/index_zh_a_scope.py,sha256=4Ej2Gnqtd66EBiI67sQZKhblcIJXdD5CoMIJYD_KwYU,1367
|
181
|
-
akshare/index/index_zh_em.py,sha256=
|
181
|
+
akshare/index/index_zh_em.py,sha256=DqtBrJEzmmydiGLpNw9i8JZ_8Azd8X_U6AELFNY04Xo,15973
|
182
182
|
akshare/interest_rate/__init__.py,sha256=O6dl1roEQUWwtXgRpa6wOABUU7MH0YmFDrkfhBpYOX4,81
|
183
183
|
akshare/interest_rate/interbank_rate_em.py,sha256=iKvmWxM4bpl9JgHNvavq0yhzMRq69BPEON1cGcWJrf4,4549
|
184
184
|
akshare/movie/__init__.py,sha256=YzijIIzvGpcc9hORC6qJSEK6vkjH5c4Docb5tQq2iHs,82
|
@@ -189,7 +189,7 @@ akshare/movie/video_yien.py,sha256=2JsyKTwiP4RTuDNzQR6d9V9fzMnByH2ATJFzdtPyXSQ,3
|
|
189
189
|
akshare/news/__init__.py,sha256=wMQSX_sI4rN8LxN8pTxQ2m7AJDkrYykmNFKSponTt0I,83
|
190
190
|
akshare/news/news_baidu.py,sha256=WjrRWkPZRdJ00o4w3M_rB8s2Yxd2OWdDRCJm8QCIOeU,8276
|
191
191
|
akshare/news/news_cctv.py,sha256=MRODE1qilypQijyCZedgC1Ctju_3ySdJlhT2nuJcuwc,7389
|
192
|
-
akshare/news/news_stock.py,sha256=
|
192
|
+
akshare/news/news_stock.py,sha256=5FsV9c6Vd_6qQ7GIApYOZ3EJ2GouVfBVcTCg21dj6PM,2896
|
193
193
|
akshare/nlp/__init__.py,sha256=F-1D7ifZQ4RiE2zsQuPc4Aj_C7RhqxGPvObcRNcLPGs,79
|
194
194
|
akshare/nlp/nlp_interface.py,sha256=PyZjT3PkuTbloop-JwLwZ2kNi22zdO-r_pRUWQ5SmgM,1856
|
195
195
|
akshare/option/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
|
@@ -204,7 +204,7 @@ akshare/option/option_finance.py,sha256=7rnEeHo-7Sddrs36Q4c99CXL_9m8IJzw9S1Aqh3B
|
|
204
204
|
akshare/option/option_finance_sina.py,sha256=Pzsrl_NKN99nWPSAirq7ushGwSfd738ISVYeCHxMZXE,37843
|
205
205
|
akshare/option/option_lhb_em.py,sha256=VHrV2BWAPE7tj8q7J5Crjm-sey8QarYd1lgxKbkX2CQ,9090
|
206
206
|
akshare/option/option_premium_analysis_em.py,sha256=E0_RVSnEcUBlicHv1GdWG5gJYzCgqx6uTXY81y4LY5c,2543
|
207
|
-
akshare/option/option_risk_analysis_em.py,sha256=
|
207
|
+
akshare/option/option_risk_analysis_em.py,sha256=OcmZ42Ewg9XCJkNDt8uLjtF9akmKsEdoF9Zu97Hz4eE,2587
|
208
208
|
akshare/option/option_risk_indicator_sse.py,sha256=W1_mGrk8M9pbbadzSAy5euWMEGn4-cVWBc8Jk_I2WmI,2484
|
209
209
|
akshare/option/option_value_analysis_em.py,sha256=KIzLJxax1P8SuIUFD0CnnEpTntSnaObwYotGn28DgoY,2658
|
210
210
|
akshare/other/__init__.py,sha256=guH4GLhFcE_5iaMHOHtgK7QKa0i7esYdmZFfJMG6E10,82
|
@@ -236,7 +236,7 @@ akshare/stock/__init__.py,sha256=jSa9260d6aNZajaW68chI2mpPkDSXLOgi3eXrqo4MQ8,82
|
|
236
236
|
akshare/stock/cons.py,sha256=0oyUW5Pu-iQ3qgh-TFemM_O5f1fAwVe-PsI4Qa8EYpQ,42956
|
237
237
|
akshare/stock/stock_allotment_cninfo.py,sha256=OVjVdWp2XVRNbJvVgtgVVoBmPBJgBB4RyIIgA_9QHM8,6066
|
238
238
|
akshare/stock/stock_ask_bid_em.py,sha256=bo7VNkp1PmK4Z-GPZuVn_I-IAdzeW8cs3W_75KodxCg,3368
|
239
|
-
akshare/stock/stock_board_concept_em.py,sha256=
|
239
|
+
akshare/stock/stock_board_concept_em.py,sha256=JzOrto9qALG8XAlb8EvsKW14uDAcCckahFBc_R_-uBI,18118
|
240
240
|
akshare/stock/stock_board_industry_em.py,sha256=h9sQsprP8pqC6hkp9OQ8b9oWiaLqF_18Mt-X3h1ULhI,18755
|
241
241
|
akshare/stock/stock_cg_equity_mortgage.py,sha256=Pui5aWKKPwGuKjF_GNpejDzsMGNPrxiaJviLz3x2e9I,3426
|
242
242
|
akshare/stock/stock_cg_guarantee.py,sha256=ts7qcQhhyN1PHB7Q4XlMn38HhfVvubOvky9RZfmUP94,3844
|
@@ -389,8 +389,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
|
|
389
389
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
390
390
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
391
391
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
392
|
-
akshare-1.16.
|
393
|
-
akshare-1.16.
|
394
|
-
akshare-1.16.
|
395
|
-
akshare-1.16.
|
396
|
-
akshare-1.16.
|
392
|
+
akshare-1.16.45.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
393
|
+
akshare-1.16.45.dist-info/METADATA,sha256=kpRwFQizLDZmEHrIpUdUWr0yBlNCnK7obzi6HVvMDxE,13653
|
394
|
+
akshare-1.16.45.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
395
|
+
akshare-1.16.45.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
396
|
+
akshare-1.16.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|