akshare 1.16.64__py3-none-any.whl → 1.16.66__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/air/cons.py +1 -0
- akshare/air/crypto.js +1 -1
- akshare/air/outcrypto.js +1 -1
- akshare/article/cons.py +1 -0
- akshare/article/epu_index.py +4 -3
- akshare/article/ff_factor.py +19 -8
- akshare/article/fred_md.py +4 -1
- akshare/article/risk_rv.py +3 -8
- akshare/bond/bond_cb_sina.py +1 -0
- akshare/bond/bond_cbond.py +19 -14
- akshare/bond/bond_em.py +34 -15
- akshare/bond/bond_summary.py +38 -37
- akshare/bond/bond_zh_cov.py +0 -6
- akshare/bond/cons.py +14 -11
- akshare/crypto/__init__.py +1 -1
- akshare/crypto/crypto_bitcoin_cme.py +7 -7
- akshare/crypto/crypto_hold.py +4 -1
- akshare/currency/currency.py +1 -0
- akshare/currency/currency_china_bank_sina.py +6 -3
- akshare/data/__init__.py +1 -1
- akshare/data/cninfo.js +1 -1
- akshare/economic/cons.py +10 -3
- akshare/economic/macro_australia.py +0 -7
- akshare/economic/macro_canada.py +92 -81
- akshare/economic/macro_china.py +0 -34
- akshare/economic/macro_china_hk.py +0 -1
- akshare/economic/macro_euro.py +103 -56
- akshare/economic/macro_germany.py +1 -1
- akshare/economic/macro_japan.py +0 -1
- akshare/economic/macro_other.py +1 -6
- akshare/economic/macro_swiss.py +2 -3
- akshare/economic/macro_uk.py +1 -1
- akshare/economic/macro_usa.py +0 -2
- akshare/energy/energy_carbon.py +0 -1
- akshare/energy/energy_oil_em.py +1 -2
- akshare/event/cons.py +1 -0
- akshare/forex/forex_em.py +0 -1
- akshare/fortune/fortune_bloomberg.py +6 -3
- akshare/fortune/fortune_forbes_500.py +3 -6
- akshare/fortune/fortune_hurun.py +2 -1
- akshare/fortune/fortune_xincaifu_500.py +17 -14
- akshare/fund/fund_announcement.py +1 -0
- akshare/fund/fund_aum_em.py +47 -35
- akshare/fund/fund_em.py +0 -7
- akshare/fund/fund_etf_em.py +0 -5
- akshare/fund/fund_fhsp_em.py +27 -20
- akshare/fund/fund_init_em.py +8 -5
- akshare/fund/fund_lof_em.py +0 -5
- akshare/fund/fund_manager.py +18 -7
- akshare/fund/fund_portfolio_em.py +0 -1
- akshare/fund/fund_position_lg.py +19 -8
- akshare/fund/fund_rank_em.py +0 -3
- akshare/fund/fund_rating.py +28 -9
- akshare/fund/fund_scale_em.py +24 -13
- akshare/futures/futures_comex_em.py +1 -0
- akshare/futures/futures_contract_detail.py +11 -8
- akshare/futures/futures_inventory_em.py +0 -2
- akshare/futures/futures_rule.py +5 -1
- akshare/futures/futures_settlement_price_sgx.py +21 -6
- akshare/futures/futures_stock_js.py +0 -1
- akshare/futures/receipt.py +279 -153
- akshare/futures/requests_fun.py +16 -3
- akshare/futures_derivative/cons.py +100 -103
- akshare/futures_derivative/futures_contract_info_cffex.py +53 -39
- akshare/futures_derivative/futures_contract_info_dce.py +16 -9
- akshare/futures_derivative/futures_contract_info_gfex.py +43 -31
- akshare/futures_derivative/futures_index_sina.py +25 -13
- akshare/fx/cons.py +12 -7
- akshare/fx/fx_quote.py +1 -0
- akshare/fx/fx_quote_baidu.py +2 -1
- akshare/hf/__init__.py +1 -1
- akshare/hf/hf_sp500.py +8 -7
- akshare/index/index_eri.py +1 -0
- akshare/index/index_global_em.py +0 -1
- akshare/index/index_kq_fz.py +17 -14
- akshare/index/index_kq_ss.py +1 -0
- akshare/index/index_stock_hk.py +0 -1
- akshare/index/index_stock_zh.py +0 -3
- akshare/index/index_sugar.py +18 -4
- akshare/index/index_zh_em.py +0 -15
- akshare/interest_rate/interbank_rate_em.py +0 -1
- akshare/movie/jm.js +0 -1
- akshare/news/__init__.py +1 -1
- akshare/news/news_stock.py +0 -1
- akshare/option/option_commodity_sina.py +22 -26
- akshare/option/option_daily_stats_sse_szse.py +0 -1
- akshare/option/option_em.py +0 -1
- akshare/option/option_lhb_em.py +0 -1
- akshare/option/option_risk_indicator_sse.py +0 -1
- akshare/other/__init__.py +1 -1
- akshare/pro/__init__.py +0 -1
- akshare/pro/client.py +6 -4
- akshare/pro/cons.py +3 -2
- akshare/pro/data_pro.py +6 -5
- akshare/qhkc/qhkc_api.py +63 -21
- akshare/qhkc_web/qhkc_fund.py +1 -0
- akshare/qhkc_web/qhkc_index.py +1 -0
- akshare/qhkc_web/qhkc_tool.py +55 -54
- akshare/rate/__init__.py +1 -1
- akshare/rate/repo_rate.py +36 -32
- akshare/reits/__init__.py +1 -1
- akshare/reits/reits_basic.py +44 -2
- akshare/sport/__init__.py +1 -1
- akshare/sport/sport_olympic.py +1 -0
- akshare/spot/__init__.py +1 -1
- akshare/stock/cons.py +19 -12
- akshare/stock/stock_board_concept_em.py +0 -6
- akshare/stock/stock_board_industry_em.py +0 -6
- akshare/stock/stock_dzjy_em.py +1 -1
- akshare/stock/stock_fund_em.py +0 -2
- akshare/stock/stock_fund_hold.py +1 -2
- akshare/stock/stock_gsrl_em.py +1 -0
- akshare/stock/stock_hk_famous.py +0 -1
- akshare/stock/stock_hk_fhpx_ths.py +2 -1
- akshare/stock/stock_hk_hot_rank_em.py +1 -0
- akshare/stock/stock_hold_control_em.py +0 -2
- akshare/stock/stock_hot_up_em.py +4 -1
- akshare/stock/stock_hsgt_em.py +0 -2
- akshare/stock/stock_industry.py +1 -0
- akshare/stock/stock_info.py +0 -2
- akshare/stock/stock_info_em.py +0 -1
- akshare/stock/stock_repurchase_em.py +7 -2
- akshare/stock/stock_share_hold.py +0 -1
- akshare/stock/stock_stop.py +0 -1
- akshare/stock/stock_summary.py +0 -2
- akshare/stock/stock_us_famous.py +0 -1
- akshare/stock/stock_us_js.py +3 -2
- akshare/stock/stock_us_pink.py +0 -1
- akshare/stock/stock_weibo_nlp.py +18 -20
- akshare/stock/stock_zh_a_special.py +0 -3
- akshare/stock/stock_zh_a_tick_tx.py +11 -3
- akshare/stock_a/stock_board_concept_name_em.py +0 -1
- akshare/stock_a/stock_zh_a_spot.py +0 -1
- akshare/stock_feature/cons.py +1 -0
- akshare/stock_feature/stock_account_em.py +0 -1
- akshare/stock_feature/stock_all_pb.py +2 -1
- akshare/stock_feature/stock_analyst_em.py +0 -3
- akshare/stock_feature/stock_buffett_index_lg.py +7 -6
- akshare/stock_feature/stock_classify_sina.py +3 -6
- akshare/stock_feature/stock_comment_em.py +0 -2
- akshare/stock_feature/stock_congestion_lg.py +2 -1
- akshare/stock_feature/stock_dxsyl_em.py +116 -71
- akshare/stock_feature/stock_gdzjc_em.py +16 -5
- akshare/stock_feature/stock_gxl_lg.py +3 -2
- akshare/stock_feature/stock_hist_em.py +0 -20
- akshare/stock_feature/stock_hist_tx.py +10 -8
- akshare/stock_feature/stock_hot_xq.py +4 -6
- akshare/stock_feature/stock_hsgt_em.py +0 -2
- akshare/stock_feature/stock_hsgt_exchange_rate.py +0 -2
- akshare/stock_feature/stock_hsgt_min_em.py +13 -16
- akshare/stock_feature/stock_inner_trade_xq.py +0 -1
- akshare/stock_feature/stock_lhb_em.py +0 -1
- akshare/stock_feature/stock_margin_em.py +0 -1
- akshare/stock_feature/stock_margin_sse.py +0 -2
- akshare/stock_feature/stock_pankou_em.py +0 -2
- akshare/stock_feature/stock_qsjy_em.py +13 -4
- akshare/stock_feature/stock_research_report_em.py +0 -1
- akshare/stock_feature/stock_yjyg_cninfo.py +4 -1
- akshare/stock_feature/stock_yjyg_em.py +1 -1
- akshare/stock_feature/stock_zh_vote_baidu.py +4 -1
- akshare/stock_feature/stock_ztb_em.py +0 -6
- akshare/stock_fundamental/__init__.py +1 -1
- akshare/stock_fundamental/stock_hold.py +26 -17
- akshare/stock_fundamental/stock_ipo_declare.py +1 -0
- akshare/stock_fundamental/stock_kcb_detail_sse.py +10 -10
- akshare/stock_fundamental/stock_kcb_sse.py +26 -25
- akshare/stock_fundamental/stock_profit_forecast_hk_etnet.py +64 -41
- akshare/stock_fundamental/stock_recommend.py +20 -4
- akshare/utils/demjson.py +2007 -1336
- akshare/utils/token_process.py +6 -5
- {akshare-1.16.64.dist-info → akshare-1.16.66.dist-info}/METADATA +12 -35
- {akshare-1.16.64.dist-info → akshare-1.16.66.dist-info}/RECORD +176 -176
- {akshare-1.16.64.dist-info → akshare-1.16.66.dist-info}/WHEEL +0 -0
- {akshare-1.16.64.dist-info → akshare-1.16.66.dist-info}/licenses/LICENSE +0 -0
- {akshare-1.16.64.dist-info → akshare-1.16.66.dist-info}/top_level.txt +0 -0
akshare/utils/token_process.py
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Date: 2020/2/13 21:22
|
5
5
|
Desc: 存储和读取 Token 文件
|
6
6
|
"""
|
7
|
+
|
7
8
|
import os
|
8
9
|
|
9
10
|
import pandas as pd
|
@@ -12,22 +13,22 @@ from akshare.pro import cons
|
|
12
13
|
|
13
14
|
|
14
15
|
def set_token(token):
|
15
|
-
df = pd.DataFrame([token], columns=[
|
16
|
-
user_home = os.path.expanduser(
|
16
|
+
df = pd.DataFrame([token], columns=["token"])
|
17
|
+
user_home = os.path.expanduser("~")
|
17
18
|
fp = os.path.join(user_home, cons.TOKEN_F_P)
|
18
19
|
df.to_csv(fp, index=False)
|
19
20
|
|
20
21
|
|
21
22
|
def get_token():
|
22
|
-
user_home = os.path.expanduser(
|
23
|
+
user_home = os.path.expanduser("~")
|
23
24
|
fp = os.path.join(user_home, cons.TOKEN_F_P)
|
24
25
|
if os.path.exists(fp):
|
25
26
|
df = pd.read_csv(fp)
|
26
|
-
return str(df.iloc[0][
|
27
|
+
return str(df.iloc[0]["token"])
|
27
28
|
else:
|
28
29
|
print(cons.TOKEN_ERR_MSG)
|
29
30
|
return
|
30
31
|
|
31
32
|
|
32
|
-
if __name__ ==
|
33
|
+
if __name__ == "__main__":
|
33
34
|
pass
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: akshare
|
3
|
-
Version: 1.16.
|
3
|
+
Version: 1.16.66
|
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
|
@@ -53,16 +53,12 @@ Dynamic: requires-dist
|
|
53
53
|
Dynamic: requires-python
|
54
54
|
Dynamic: summary
|
55
55
|
|
56
|
-
|
57
|
-
|
56
|
+
**资源分享**:对于想了解更多财经数据与量化投研的小伙伴,推荐一个专注于财经数据和量化研究的知识社区。
|
57
|
+
该社区提供相关文档和视频学习资源,汇集了各类财经数据源和量化投研工具的使用经验。
|
58
|
+
有兴趣深入学习的朋友可点此[了解更多](https://t.zsxq.com/ZCxUG),也推荐大家关注微信公众号【数据科学实战】。
|
58
59
|
|
59
|
-
|
60
|
-
|
61
|
-
**更多视频教程已经发布:《AKShare-初阶-使用教学》、《AKShare-初阶-实战应用》、《AKShare-源码解析》、《开源项目巡礼》**,
|
62
|
-
详情请关注【数据科学实战】公众号,查看更多课程信息!
|
63
|
-
|
64
|
-
**广告推广**:期魔方是一款非常专业本地化期货量化终端,无需部署或搭建环境,可直接调用及时和历史数据做回测实盘,
|
65
|
-
支持开箱即用的机器学习训练,策略投研、回测均免费,详情请[访问期魔方官网](https://qmfquant.com)。
|
60
|
+
**工具推荐**:期魔方是一款本地化期货量化分析工具,适合数据分析爱好者使用。无需复杂部署,支持数据分析和机器学习功能,研究功能免费开放。
|
61
|
+
如需了解更多信息可访问[期魔方](https://qmfquant.com/)。
|
66
62
|
|
67
63
|

|
68
64
|
|
@@ -178,21 +174,6 @@ Output:
|
|
178
174
|
|
179
175
|

|
180
176
|
|
181
|
-
## Communication
|
182
|
-
|
183
|
-
Welcome to join the **数据科学实战** knowledge planet to learn more about quantitative investment,
|
184
|
-
please visit [数据科学实战](https://akshare.akfamily.xyz/learn.html) for more information:
|
185
|
-
|
186
|
-
<div>
|
187
|
-
<img alt="data science" src="https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/akshare/readme/qrcode/data_scientist.png">
|
188
|
-
</div>
|
189
|
-
|
190
|
-
Pay attention to **数据科学实战** WeChat Official Accounts to get the [AKShare](https://github.com/akfamily/akshare) updated info:
|
191
|
-
|
192
|
-
<div>
|
193
|
-
<img alt="ds" src="https://github.com/akfamily/akshare/blob/main/assets/images/ds.png">
|
194
|
-
</div>
|
195
|
-
|
196
177
|
## Features
|
197
178
|
|
198
179
|
- **Easy of use**: Just one line code to fetch the data;
|
@@ -268,6 +249,12 @@ Special thanks [FuShare](https://github.com/LowinLi/fushare) for the opportunity
|
|
268
249
|
|
269
250
|
Special thanks [TuShare](https://github.com/waditu/tushare) for the opportunity of learning from the project;
|
270
251
|
|
252
|
+
Thanks for the data provided by [东方财富网站](http://data.eastmoney.com);
|
253
|
+
|
254
|
+
Thanks for the data provided by [新浪财经网站](https://finance.sina.com.cn);
|
255
|
+
|
256
|
+
Thanks for the data provided by [金十数据网站](https://www.jin10.com/);
|
257
|
+
|
271
258
|
Thanks for the data provided by [生意社网站](http://www.100ppi.com/);
|
272
259
|
|
273
260
|
Thanks for the data provided by [中国银行间市场交易商协会网站](http://www.nafmii.org.cn/);
|
@@ -276,12 +263,8 @@ Thanks for the data provided by [99期货网站](http://www.99qh.com/);
|
|
276
263
|
|
277
264
|
Thanks for the data provided by [中国外汇交易中心暨全国银行间同业拆借中心网站](http://www.chinamoney.com.cn/chinese/);
|
278
265
|
|
279
|
-
Thanks for the data provided by [金十数据网站](https://www.jin10.com/);
|
280
|
-
|
281
266
|
Thanks for the data provided by [和讯财经网站](http://www.hexun.com/);
|
282
267
|
|
283
|
-
Thanks for the data provided by [新浪财经网站](https://finance.sina.com.cn/);
|
284
|
-
|
285
268
|
Thanks for the data provided by [DACHENG-XIU 网站](https://dachxiu.chicagobooth.edu/);
|
286
269
|
|
287
270
|
Thanks for the data provided by [上海证券交易所网站](http://www.sse.com.cn/assortment/options/price/);
|
@@ -304,8 +287,6 @@ Thanks for the data provided by [Timeanddate 网站](https://www.timeanddate.com
|
|
304
287
|
|
305
288
|
Thanks for the data provided by [河北省空气质量预报信息发布系统网站](http://110.249.223.67/publish/);
|
306
289
|
|
307
|
-
Thanks for the data provided by [南华期货网站](http://www.nanhua.net/nhzc/varietytrend.html);
|
308
|
-
|
309
290
|
Thanks for the data provided by [Economic Policy Uncertainty 网站](http://www.nanhua.net/nhzc/varietytrend.html);
|
310
291
|
|
311
292
|
Thanks for the data provided by [申万指数网站](http://www.swsindex.com/idx0120.aspx?columnid=8832);
|
@@ -322,8 +303,6 @@ Thanks for the data provided by [北京市碳排放权电子交易平台网站](
|
|
322
303
|
|
323
304
|
Thanks for the data provided by [国家金融与发展实验室网站](http://www.nifd.cn/);
|
324
305
|
|
325
|
-
Thanks for the data provided by [东方财富网站](http://data.eastmoney.com/jgdy/);
|
326
|
-
|
327
306
|
Thanks for the data provided by [义乌小商品指数网站](http://www.ywindex.com/Home/Product/index/);
|
328
307
|
|
329
308
|
Thanks for the data provided by [百度迁徙网站](https://qianxi.baidu.com/?from=shoubai#city=0);
|
@@ -334,8 +313,6 @@ Thanks for the data provided by [Currencyscoop 网站](https://currencyscoop.com
|
|
334
313
|
|
335
314
|
Thanks for the data provided by [新加坡交易所网站](https://www.sgx.com/zh-hans/research-education/derivatives);
|
336
315
|
|
337
|
-
Thanks for the tutorials provided by [微信公众号: Python大咖谈](https://upload-images.jianshu.io/upload_images/3240514-61004f2c71be4a0b.png).
|
338
|
-
|
339
316
|
## Backer and Sponsor
|
340
317
|
|
341
318
|
<a href="https://www.jetbrains.com/?from=albertandking/akshare" target="_blank">
|