akshare 1.16.73__py3-none-any.whl → 1.16.75__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/qhkc/__init__.py +1 -6
- akshare/qhkc/qhkc_api.py +1 -1
- akshare/qhkc_web/__init__.py +1 -6
- akshare/qhkc_web/qhkc_fund.py +3 -3
- akshare/qhkc_web/qhkc_index.py +10 -8
- akshare/qhkc_web/qhkc_tool.py +5 -4
- akshare/stock/stock_xq.py +7 -4
- {akshare-1.16.73.dist-info → akshare-1.16.75.dist-info}/METADATA +2 -2
- {akshare-1.16.73.dist-info → akshare-1.16.75.dist-info}/RECORD +13 -13
- {akshare-1.16.73.dist-info → akshare-1.16.75.dist-info}/WHEEL +0 -0
- {akshare-1.16.73.dist-info → akshare-1.16.75.dist-info}/licenses/LICENSE +0 -0
- {akshare-1.16.73.dist-info → akshare-1.16.75.dist-info}/top_level.txt +0 -0
akshare/__init__.py
CHANGED
@@ -3082,9 +3082,11 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
3082
3082
|
1.16.71 add: add stock_zh_a_gbjg_em interface
|
3083
3083
|
1.16.72 add: add bond_sh_buy_back_em interface
|
3084
3084
|
1.16.73 fix: fix stock_board_industry_hist_em interface
|
3085
|
+
1.16.74 fix: fix stock_individual_spot_xq interface
|
3086
|
+
1.16.75 fix: fix get_qhkc_index interface
|
3085
3087
|
"""
|
3086
3088
|
|
3087
|
-
__version__ = "1.16.
|
3089
|
+
__version__ = "1.16.75"
|
3088
3090
|
__author__ = "AKFamily"
|
3089
3091
|
|
3090
3092
|
import sys
|
akshare/qhkc/__init__.py
CHANGED
akshare/qhkc/qhkc_api.py
CHANGED
akshare/qhkc_web/__init__.py
CHANGED
akshare/qhkc_web/qhkc_fund.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
# -*- coding:utf-8 -*-
|
3
3
|
"""
|
4
|
-
Date:
|
4
|
+
Date: 2025/4/10 18:00
|
5
5
|
Desc: 奇货可查网站目前已经商业化运营, 特提供奇货可查-资金数据接口, 方便您程序化调用
|
6
6
|
注:期货价格为收盘价; 现货价格来自网络; 基差=现货价格-期货价格; 基差率=(现货价格-期货价格)/现货价格 * 100 %.
|
7
7
|
"""
|
@@ -418,5 +418,5 @@ if __name__ == "__main__":
|
|
418
418
|
# print(df1)
|
419
419
|
# print(df2)
|
420
420
|
|
421
|
-
|
422
|
-
print(
|
421
|
+
get_qhkc_fund_money_change_df = get_qhkc_fund_money_change(20211208)
|
422
|
+
print(get_qhkc_fund_money_change_df)
|
akshare/qhkc_web/qhkc_index.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
# -*- coding:utf-8 -*-
|
3
3
|
"""
|
4
|
-
Date:
|
4
|
+
Date: 2025/4/10 18:00
|
5
5
|
Desc: 奇货可查网站目前已经商业化运营, 特提供奇货可查-指数数据接口, 方便您程序化调用
|
6
6
|
注:期货价格为收盘价; 现货价格来自网络; 基差=现货价格-期货价格; 基差率=(现货价格-期货价格)/现货价格 * 100 %.
|
7
7
|
"""
|
@@ -132,7 +132,7 @@ def get_qhkc_index_trend(name: AnyStr = "奇货商品", url: AnyStr = QHKC_INDEX
|
|
132
132
|
money = item["money"]
|
133
133
|
order_money = item["order_money"]
|
134
134
|
variety = item["variety"]
|
135
|
-
df_temp = df_temp.
|
135
|
+
df_temp = df_temp._append(
|
136
136
|
pd.DataFrame([broker, grade, money, order_money, variety]).T
|
137
137
|
)
|
138
138
|
df_temp.columns = ["broker", "grade", "money", "open_order", "variety"]
|
@@ -187,9 +187,11 @@ def get_qhkc_index_profit_loss(
|
|
187
187
|
|
188
188
|
|
189
189
|
if __name__ == "__main__":
|
190
|
-
|
191
|
-
print(
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
190
|
+
get_qhkc_index_df = get_qhkc_index("奇货谷物")
|
191
|
+
print(get_qhkc_index_df)
|
192
|
+
|
193
|
+
get_qhkc_index_trend_df = get_qhkc_index_trend("奇货贵金属")
|
194
|
+
print(get_qhkc_index_trend_df)
|
195
|
+
|
196
|
+
get_qhkc_index_profit_loss_df = get_qhkc_index_profit_loss("奇货贵金属", end_date="20250410")
|
197
|
+
print(get_qhkc_index_profit_loss_df)
|
akshare/qhkc_web/qhkc_tool.py
CHANGED
@@ -172,7 +172,8 @@ def qhkc_tool_gdp(url: AnyStr = QHKC_TOOL_GDP_URL):
|
|
172
172
|
|
173
173
|
|
174
174
|
if __name__ == "__main__":
|
175
|
-
|
176
|
-
print(
|
177
|
-
|
178
|
-
|
175
|
+
qhkc_tool_foreign_df = qhkc_tool_foreign()
|
176
|
+
print(qhkc_tool_foreign_df)
|
177
|
+
|
178
|
+
qhkc_tool_gdp_df = qhkc_tool_gdp()
|
179
|
+
print(qhkc_tool_gdp_df)
|
akshare/stock/stock_xq.py
CHANGED
@@ -105,21 +105,24 @@ def stock_individual_spot_xq(
|
|
105
105
|
*map(
|
106
106
|
lambda x: column_name_map[x] if x in column_name_map.keys() else x,
|
107
107
|
temp_df.columns,
|
108
|
-
) # 由于传入的symbol可能是个股,可能是指数,也可能是基金,所以这里取列的最大公约数,没有数据的列内容为None
|
108
|
+
) # 由于传入的 symbol 可能是个股,可能是指数,也可能是基金,所以这里取列的最大公约数,没有数据的列内容为 None
|
109
109
|
]
|
110
110
|
temp_df = temp_df[
|
111
111
|
list(
|
112
112
|
filter(
|
113
113
|
lambda x: re.search(pattern="[\u4e00-\u9fa5]", string=x),
|
114
114
|
temp_df.columns,
|
115
|
-
) # 过滤temp_df,留下包含汉字的列
|
115
|
+
) # 过滤 temp_df,留下包含汉字的列
|
116
116
|
)
|
117
117
|
]
|
118
118
|
temp_df = temp_df.T.reset_index()
|
119
119
|
temp_df.columns = ["item", "value"]
|
120
120
|
temp_df.loc[temp_df["item"] == "时间", "value"] = temp_df.loc[
|
121
121
|
temp_df["item"] == "时间", "value"
|
122
|
-
].apply(lambda x: _convert_timestamp(int(x)))
|
122
|
+
].apply(lambda x: _convert_timestamp(int(x)) if x and not pd.isna(x) else None)
|
123
|
+
temp_df.loc[temp_df["item"] == "发行日期", "value"] = temp_df.loc[
|
124
|
+
temp_df["item"] == "发行日期", "value"
|
125
|
+
].apply(lambda x: _convert_timestamp(int(x)) if x and not pd.isna(x) else None)
|
123
126
|
return temp_df
|
124
127
|
|
125
128
|
|
@@ -127,7 +130,7 @@ if __name__ == "__main__":
|
|
127
130
|
stock_individual_spot_xq_df = stock_individual_spot_xq(symbol="BJ430139")
|
128
131
|
print(stock_individual_spot_xq_df)
|
129
132
|
|
130
|
-
stock_individual_spot_xq_df = stock_individual_spot_xq(symbol="
|
133
|
+
stock_individual_spot_xq_df = stock_individual_spot_xq(symbol="SH600000")
|
131
134
|
print(stock_individual_spot_xq_df)
|
132
135
|
|
133
136
|
stock_individual_spot_xq_df = stock_individual_spot_xq(symbol="SPY")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: akshare
|
3
|
-
Version: 1.16.
|
3
|
+
Version: 1.16.75
|
4
4
|
Summary: AKShare is an elegant and simple financial data interface library for Python, built for human beings!
|
5
5
|
Home-page: https://github.com/akfamily/akshare
|
6
6
|
Author: AKFamily
|
@@ -77,7 +77,7 @@ Dynamic: summary
|
|
77
77
|
|
78
78
|
## Overview
|
79
79
|
|
80
|
-
[AKShare](https://github.com/akfamily/akshare) requires Python(64 bit) 3.
|
80
|
+
[AKShare](https://github.com/akfamily/akshare) requires Python(64 bit) 3.9 or higher and
|
81
81
|
aims to simplify the process of fetching financial data.
|
82
82
|
|
83
83
|
**Write less, get more!**
|
@@ -1,4 +1,4 @@
|
|
1
|
-
akshare/__init__.py,sha256=
|
1
|
+
akshare/__init__.py,sha256=mFH9R0cW2wCtgC0g0XKEzcFBrnP5eswX1Jwv3by2mdQ,193144
|
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
|
@@ -217,12 +217,12 @@ akshare/pro/cons.py,sha256=ZXTuihl3Pej84O17YdFG1SqPhfD6dQR34Pp8IKak7oQ,245
|
|
217
217
|
akshare/pro/data_pro.py,sha256=XLpqaZNUPddOBcFK1jBvf4AOYnHJAnoeEitTs0mAA10,831
|
218
218
|
akshare/qdii/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
219
219
|
akshare/qdii/qdii_jsl.py,sha256=-BbTDkrevK65D3x9xSc3v8KJPT88nIuJK9K_9q3UP2A,7920
|
220
|
-
akshare/qhkc/__init__.py,sha256=
|
221
|
-
akshare/qhkc/qhkc_api.py,sha256=
|
222
|
-
akshare/qhkc_web/__init__.py,sha256=
|
223
|
-
akshare/qhkc_web/qhkc_fund.py,sha256=
|
224
|
-
akshare/qhkc_web/qhkc_index.py,sha256=
|
225
|
-
akshare/qhkc_web/qhkc_tool.py,sha256=
|
220
|
+
akshare/qhkc/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
221
|
+
akshare/qhkc/qhkc_api.py,sha256=LsgyPG57HIF3Ot1EjF2M6qWGSwEg1vdPXKgCg4G4Sec,8364
|
222
|
+
akshare/qhkc_web/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
223
|
+
akshare/qhkc_web/qhkc_fund.py,sha256=gDA7noM4BT_3K7CwkYOAJFTo30WwL7bNb7kHxlnJS0E,17455
|
224
|
+
akshare/qhkc_web/qhkc_index.py,sha256=z0Q0y4zrxAzb5Ti3SuN3T8VgsOMRLWUqrvEKWcdJiG4,9227
|
225
|
+
akshare/qhkc_web/qhkc_tool.py,sha256=e6eW2G9fXwDLVwd2qPe7y5kJX8KIU44YZyuL2VZGEMM,9257
|
226
226
|
akshare/rate/__init__.py,sha256=qbRx0IhTYi5ZakakyP1xD7dwHmqqkuAvBh0Z1kQr3MQ,82
|
227
227
|
akshare/rate/repo_rate.py,sha256=lxSEMOeWsf-cVfJfZ7XBfSqOwYYQSJKp3iamCWubfjg,4295
|
228
228
|
akshare/reits/__init__.py,sha256=icmIWDUbQg5O-0SJCvf44FzvypneQrb3D-s540_kFk8,81
|
@@ -281,7 +281,7 @@ akshare/stock/stock_us_js.py,sha256=VleGUb7K-NjmW3jMPRc2jwHXM0CMq4IzVM9kUpwURDQ,
|
|
281
281
|
akshare/stock/stock_us_pink.py,sha256=b48o56E6Ur1Z_50gPvaZo8ZyegePwVJs8z8KMSqHg0U,3035
|
282
282
|
akshare/stock/stock_us_sina.py,sha256=D4fhJgpmvnlVoeSV2wQQ7H6lig8h6vaJp71o88dZhDg,8200
|
283
283
|
akshare/stock/stock_weibo_nlp.py,sha256=-k7gzAusb8_D4l0rc6bOzQ3x4b2dFBXJ2hgOntwEGc8,3266
|
284
|
-
akshare/stock/stock_xq.py,sha256=
|
284
|
+
akshare/stock/stock_xq.py,sha256=KgUxqDVtQJNrRPgBfDDTJdmeSrPKZXRDz_CcJY3iwFE,4887
|
285
285
|
akshare/stock/stock_zh_a_sina.py,sha256=-LbBNkqs2i_AAJ77PylfgXRK26pjResCHfM35_n-7G8,18907
|
286
286
|
akshare/stock/stock_zh_a_special.py,sha256=E2BU73FLyOC-3LcXiLEVQosZ6Vvu6sIgo-Ee66kzzTM,10079
|
287
287
|
akshare/stock/stock_zh_a_tick_tx.py,sha256=-HOilipACz-FEZWlkSXy9lH8A-BpNzuLDcXr_Rv6dYQ,2230
|
@@ -394,10 +394,10 @@ akshare/utils/func.py,sha256=4cwmXFztU86yJNONJ40KJLvsIEQHBbct4iMm3zT2v30,2315
|
|
394
394
|
akshare/utils/multi_decrypt.py,sha256=aWoL2iEPeuXHJg8-n7OtMKixLnIhfzepACgxfrfmQB4,1657
|
395
395
|
akshare/utils/token_process.py,sha256=nGtgnZGRprXJkhLXH8mcUH4TgIFwzsTOb0EaEPa0Euo,667
|
396
396
|
akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
|
397
|
-
akshare-1.16.
|
397
|
+
akshare-1.16.75.dist-info/licenses/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
|
398
398
|
tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
|
399
399
|
tests/test_func.py,sha256=j1MGYbZI2if2j_LY1S4FLsf4qfq4NwVqD5wmRlv5Log,832
|
400
|
-
akshare-1.16.
|
401
|
-
akshare-1.16.
|
402
|
-
akshare-1.16.
|
403
|
-
akshare-1.16.
|
400
|
+
akshare-1.16.75.dist-info/METADATA,sha256=p7PdD8Bi0t-lyJ-pXC3sUuWb68YpzhZdG9czeEH0WyM,12591
|
401
|
+
akshare-1.16.75.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
402
|
+
akshare-1.16.75.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
|
403
|
+
akshare-1.16.75.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|