akshare 1.15.43__tar.gz → 1.15.44__tar.gz
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-1.15.43 → akshare-1.15.44}/PKG-INFO +1 -1
- {akshare-1.15.43 → akshare-1.15.44}/akshare/__init__.py +2 -26
- {akshare-1.15.43 → akshare-1.15.44}/akshare.egg-info/PKG-INFO +1 -1
- {akshare-1.15.43 → akshare-1.15.44}/akshare.egg-info/SOURCES.txt +0 -3
- akshare-1.15.43/akshare/bond/bond_investing.py +0 -139
- akshare-1.15.43/akshare/futures/futures_international.py +0 -170
- akshare-1.15.43/akshare/index/index_investing.py +0 -232
- {akshare-1.15.43 → akshare-1.15.44}/LICENSE +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/README.md +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/air_hebei.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/air_zhenqi.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/crypto.js +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/outcrypto.js +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/air/sunrise_tad.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/article/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/article/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/article/epu_index.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/article/ff_factor.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/article/fred_md.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/article/risk_rv.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bank/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bank/bank_cbirc_2020.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bank/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_cb_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_cb_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_cbond.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_china.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_china_money.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_convert.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_info_cm.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_issue_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_nafmii.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_summary.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_zh_cov.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/bond_zh_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/bond/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/cal/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/cal/rv.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/cost/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/cost/cost_living.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/crypto/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/crypto/crypto_bitcoin_cme.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/crypto/crypto_hold.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/currency/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/currency/currency.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/currency/currency_china_bank_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/currency/currency_safe.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/data/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/data/cninfo.js +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/data/crypto_info.zip +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/data/ths.js +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/datasets.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_australia.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_bank.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_canada.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_china.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_china_hk.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_china_nbs.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_constitute.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_euro.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_finance_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_germany.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_info_ws.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_japan.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_other.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_swiss.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_uk.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/macro_usa.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/economic/marco_cnbs.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/energy/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/energy/energy_carbon.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/energy/energy_oil_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/event/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/event/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/event/migration.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/exceptions.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/file_fold/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/file_fold/calendar.json +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fortune/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fortune/fortune_500.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fortune/fortune_bloomberg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fortune/fortune_forbes_500.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fortune/fortune_hurun.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fortune/fortune_xincaifu_500.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_amac.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_announcement.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_aum_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_etf_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_etf_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_etf_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_fhsp_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_init_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_lof_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_manager.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_portfolio_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_position_lg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_rank_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_rating.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_report_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_scale_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_scale_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fund/fund_xq.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/cot.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_basis.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_comex_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_comm_ctp.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_comm_qihuo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_contract_detail.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_daily_bar.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_foreign.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_hf_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_hq_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_index_ccidx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_inventory_99.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_inventory_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_news_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_news_shmet.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_roll_yield.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_rule.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_settlement_price_sgx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_spot_stock_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_stock_js.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_to_spot.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_warehouse_receipt.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/futures_zh_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/inventory_data.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/receipt.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/requests_fun.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures/symbol_var.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_contract_info_cffex.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_contract_info_czce.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_contract_info_dce.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_contract_info_gfex.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_contract_info_ine.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_contract_info_shfe.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_cot_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_hog.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_index_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/futures_derivative/futures_spot_sys.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fx/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fx/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fx/currency_investing.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fx/fx_quote.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/fx/fx_quote_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/hf/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/hf/hf_sp500.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_cflp.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_cni.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_cx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_drewry.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_eri.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_fear_greed_funddb.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_hog.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_kq_fz.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_kq_ss.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_option_qvix.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_research_fund_sw.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_research_sw.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_spot.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_stock_hk.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_stock_us_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_stock_zh.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_stock_zh_csindex.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_sugar.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_sw.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_yw.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_zh_a_scope.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/index/index_zh_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/interest_rate/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/interest_rate/interbank_rate_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/movie/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/movie/artist_yien.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/movie/jm.js +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/movie/movie_yien.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/movie/video_yien.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/news/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/news/news_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/news/news_cctv.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/news/news_stock.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/nlp/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/nlp/nlp_interface.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_comm_qihuo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_commodity.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_commodity_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_czce.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_daily_stats_sse_szse.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_finance.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_finance_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_lhb_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_premium_analysis_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_risk_analysis_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_risk_indicator_sse.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/option/option_value_analysis_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/other/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/other/other_car_cpca.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/other/other_car_gasgoo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/pro/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/pro/client.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/pro/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/pro/data_pro.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qdii/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qdii/qdii_jsl.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qhkc/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qhkc/qhkc_api.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qhkc_web/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qhkc_web/qhkc_fund.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qhkc_web/qhkc_index.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/qhkc_web/qhkc_tool.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/rate/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/rate/repo_rate.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/reits/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/reits/reits_basic.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/request.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/sport/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/sport/sport_olympic.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/spot/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/spot/spot_hog_soozhu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/spot/spot_price_qh.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/spot/spot_sge.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_allotment_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_ask_bid_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_board_concept_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_board_industry_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_cg_equity_mortgage.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_cg_guarantee.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_cg_lawsuit.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_dividend_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_dzjy_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_fund_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_fund_hold.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_gsrl_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hk_famous.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hk_fhpx_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hk_hot_rank_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hk_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hold_control_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hold_control_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hold_num_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hot_rank_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hot_search_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_hot_up_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_industry.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_industry_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_industry_pe_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_industry_sw.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_info.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_info_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_intraday_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_intraday_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_ipo_summary_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_new_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_news_cx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_profile_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_rank_forecast.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_repurchase_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_share_changes_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_share_hold.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_stop.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_summary.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_us_famous.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_us_js.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_us_pink.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_us_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_weibo_nlp.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_xq.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_a_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_a_special.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_a_tick_tx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_ah_tx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_b_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_kcb_report.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock/stock_zh_kcb_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_a_below_net_asset_statistics.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_a_high_low.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_a_indicator.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_a_pe_and_pb.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_account_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_all_pb.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_analyst_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_board_industry_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_buffett_index_lg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_classify_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_comment_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_concept_futu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_congestion_lg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_cyq_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_disclosure_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_dxsyl_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_ebs_lg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_esg_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_fhps_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_fhps_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_fund_flow.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_gddh_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_gdfx_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_gdhs.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_gdzjc_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_gpzy_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_gxl_lg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hist_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hist_tx.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hk_valuation_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hot_xq.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hsgt_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hsgt_exchange_rate.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_hsgt_min_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_info.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_inner_trade_xq.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_irm_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_jgdy_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_lh_yybpm.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_lhb_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_lhb_sina.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_margin_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_margin_sse.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_margin_szse.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_market_legu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_pankou_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_qsjy_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_report_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_research_report_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_sns_sseinfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_sy_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_technology_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_tfp_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_three_report_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_ttm_lyr.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_value_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_wencai.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_yjbb_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_yjyg_cninfo.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_yjyg_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_yzxdr_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_zdhtmx_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_zf_pg.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_zh_valuation_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_zh_vote_baidu.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/stock_ztb_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_feature/ths.js +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_finance.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_finance_hk.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_finance_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_hold.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_ipo_declare.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_kcb_detail_sse.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_kcb_sse.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_mda_ym.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_notice.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_profit_forecast_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_profit_forecast_hk_etnet.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_profit_forecast_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_recommend.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_register_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_restricted_em.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_zygc.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/stock_fundamental/stock_zyjs_ths.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/tool/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/tool/trade_date_hist.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/cons.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/context.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/demjson.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/func.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/token_process.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare/utils/tqdm.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare.egg-info/dependency_links.txt +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare.egg-info/requires.txt +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/akshare.egg-info/top_level.txt +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/pyproject.toml +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/setup.cfg +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/setup.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/tests/__init__.py +0 -0
- {akshare-1.15.43 → akshare-1.15.44}/tests/test_func.py +0 -0
|
@@ -2953,9 +2953,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
|
|
|
2953
2953
|
1.15.41 fix: fix macro_china_fdi interface
|
|
2954
2954
|
1.15.42 fix: fix get_roll_yield_bar interface
|
|
2955
2955
|
1.15.43 fix: fix macro_china_urban_unemployment interface
|
|
2956
|
+
1.15.44 fix: fix index_detail_hist_adjust_cni interface
|
|
2956
2957
|
"""
|
|
2957
2958
|
|
|
2958
|
-
__version__ = "1.15.
|
|
2959
|
+
__version__ = "1.15.44"
|
|
2959
2960
|
__author__ = "AKFamily"
|
|
2960
2961
|
|
|
2961
2962
|
import sys
|
|
@@ -5274,14 +5275,6 @@ from akshare.economic.macro_china_nbs import (
|
|
|
5274
5275
|
macro_china_nbs_region
|
|
5275
5276
|
)
|
|
5276
5277
|
|
|
5277
|
-
"""
|
|
5278
|
-
全球期货
|
|
5279
|
-
"""
|
|
5280
|
-
from akshare.futures.futures_international import (
|
|
5281
|
-
futures_global_commodity_hist,
|
|
5282
|
-
futures_global_commodity_name_url_map,
|
|
5283
|
-
)
|
|
5284
|
-
|
|
5285
5278
|
"""
|
|
5286
5279
|
外汇
|
|
5287
5280
|
"""
|
|
@@ -5307,23 +5300,6 @@ from akshare.option.option_commodity import (
|
|
|
5307
5300
|
option_gfex_daily,
|
|
5308
5301
|
)
|
|
5309
5302
|
|
|
5310
|
-
"""
|
|
5311
|
-
英为财情-债券
|
|
5312
|
-
"""
|
|
5313
|
-
from akshare.bond.bond_investing import (
|
|
5314
|
-
bond_investing_global,
|
|
5315
|
-
bond_investing_global_country_name_url,
|
|
5316
|
-
)
|
|
5317
|
-
|
|
5318
|
-
"""
|
|
5319
|
-
英为财情-指数
|
|
5320
|
-
"""
|
|
5321
|
-
from akshare.index.index_investing import (
|
|
5322
|
-
index_investing_global,
|
|
5323
|
-
index_investing_global_area_index_name_code,
|
|
5324
|
-
index_investing_global_area_index_name_url,
|
|
5325
|
-
)
|
|
5326
|
-
|
|
5327
5303
|
"""
|
|
5328
5304
|
99期货-期货库存数据
|
|
5329
5305
|
"""
|
|
@@ -36,7 +36,6 @@ akshare/bond/bond_china_money.py
|
|
|
36
36
|
akshare/bond/bond_convert.py
|
|
37
37
|
akshare/bond/bond_em.py
|
|
38
38
|
akshare/bond/bond_info_cm.py
|
|
39
|
-
akshare/bond/bond_investing.py
|
|
40
39
|
akshare/bond/bond_issue_cninfo.py
|
|
41
40
|
akshare/bond/bond_nafmii.py
|
|
42
41
|
akshare/bond/bond_summary.py
|
|
@@ -124,7 +123,6 @@ akshare/futures/futures_foreign.py
|
|
|
124
123
|
akshare/futures/futures_hf_em.py
|
|
125
124
|
akshare/futures/futures_hq_sina.py
|
|
126
125
|
akshare/futures/futures_index_ccidx.py
|
|
127
|
-
akshare/futures/futures_international.py
|
|
128
126
|
akshare/futures/futures_inventory_99.py
|
|
129
127
|
akshare/futures/futures_inventory_em.py
|
|
130
128
|
akshare/futures/futures_news_baidu.py
|
|
@@ -170,7 +168,6 @@ akshare/index/index_drewry.py
|
|
|
170
168
|
akshare/index/index_eri.py
|
|
171
169
|
akshare/index/index_fear_greed_funddb.py
|
|
172
170
|
akshare/index/index_hog.py
|
|
173
|
-
akshare/index/index_investing.py
|
|
174
171
|
akshare/index/index_kq_fz.py
|
|
175
172
|
akshare/index/index_kq_ss.py
|
|
176
173
|
akshare/index/index_option_qvix.py
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
# -*- coding:utf-8 -*-
|
|
3
|
-
"""
|
|
4
|
-
Date: 2021/5/7 13:50
|
|
5
|
-
Desc: 英为财情-利率国债-全球政府债券行情与收益率
|
|
6
|
-
https://cn.investing.com/rates-bonds/
|
|
7
|
-
"""
|
|
8
|
-
import re
|
|
9
|
-
|
|
10
|
-
import pandas as pd
|
|
11
|
-
import requests
|
|
12
|
-
from bs4 import BeautifulSoup
|
|
13
|
-
|
|
14
|
-
from akshare.index.cons import short_headers, long_headers
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def _get_global_country_name_url() -> dict:
|
|
18
|
-
"""
|
|
19
|
-
指数数据国家对应的 URL
|
|
20
|
-
https://cn.investing.com/rates-bonds/
|
|
21
|
-
:return: 指数数据国家对应的 URL
|
|
22
|
-
:rtype: dict
|
|
23
|
-
"""
|
|
24
|
-
url = "https://cn.investing.com/rates-bonds/"
|
|
25
|
-
res = requests.get(url, headers=short_headers, timeout=30)
|
|
26
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
27
|
-
name_url_option_list = soup.find("select", attrs={"name": "country"}).find_all(
|
|
28
|
-
"option"
|
|
29
|
-
)[1:]
|
|
30
|
-
url_list = [item["value"] for item in name_url_option_list]
|
|
31
|
-
name_list = [item.get_text() for item in name_url_option_list]
|
|
32
|
-
name_code_map_dict = {}
|
|
33
|
-
name_code_map_dict.update(zip(name_list, url_list))
|
|
34
|
-
return name_code_map_dict
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
def bond_investing_global_country_name_url(country: str = "中国") -> dict:
|
|
38
|
-
"""
|
|
39
|
-
参考网页: https://cn.investing.com/rates-bonds/
|
|
40
|
-
获取选择国家对应的: 主要指数, 主要行业, 附加指数, 其他指数
|
|
41
|
-
:param country: str 中文国家名称, 对应 get_global_country_name_url 函数返回的国家名称
|
|
42
|
-
:return: dict
|
|
43
|
-
"""
|
|
44
|
-
name_url_dict = _get_global_country_name_url()
|
|
45
|
-
url = f"https://cn.investing.com{name_url_dict[country]}"
|
|
46
|
-
res = requests.get(url, headers=short_headers, timeout=30)
|
|
47
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
48
|
-
url_list = [
|
|
49
|
-
item.find("a")["href"] for item in soup.find_all(attrs={"class": "plusIconTd"})
|
|
50
|
-
]
|
|
51
|
-
name_list = [
|
|
52
|
-
item.find("a").get_text()
|
|
53
|
-
for item in soup.find_all(attrs={"class": "plusIconTd"})
|
|
54
|
-
]
|
|
55
|
-
name_code_map_dict = {}
|
|
56
|
-
name_code_map_dict.update(zip(name_list, url_list))
|
|
57
|
-
return name_code_map_dict
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def bond_investing_global(
|
|
61
|
-
country: str = "中国",
|
|
62
|
-
index_name: str = "中国1年期国债",
|
|
63
|
-
period: str = "每日",
|
|
64
|
-
start_date: str = "20000101",
|
|
65
|
-
end_date: str = "20191017",
|
|
66
|
-
) -> pd.DataFrame:
|
|
67
|
-
"""
|
|
68
|
-
具体国家的具体指数的从 start_date 到 end_date 期间的数据
|
|
69
|
-
https://cn.investing.com/rates-bonds/
|
|
70
|
-
:param country: 对应函数中的国家名称
|
|
71
|
-
:type country: str
|
|
72
|
-
:param index_name: 对应函数中的指数名称
|
|
73
|
-
:type index_name: str
|
|
74
|
-
:param period: choice of {"每日", "每周", "每月"}
|
|
75
|
-
:type period: str
|
|
76
|
-
:param start_date: '2000-01-01', 注意格式
|
|
77
|
-
:type start_date: str
|
|
78
|
-
:param end_date: '2019-10-17', 注意格式
|
|
79
|
-
:type end_date: str
|
|
80
|
-
:return: 指定参数的数据
|
|
81
|
-
:rtype: pandas.DataFrame
|
|
82
|
-
"""
|
|
83
|
-
start_date = "/".join([start_date[:4], start_date[4:6], start_date[6:]])
|
|
84
|
-
end_date = "/".join([end_date[:4], end_date[4:6], end_date[6:]])
|
|
85
|
-
period_map = {"每日": "Daily", "每周": "Weekly", "每月": "Monthly"}
|
|
86
|
-
name_code_dict = bond_investing_global_country_name_url(country)
|
|
87
|
-
temp_url = f"https://cn.investing.com/{name_code_dict[index_name]}-historical-data"
|
|
88
|
-
res = requests.get(temp_url, headers=short_headers, timeout=30)
|
|
89
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
90
|
-
title = soup.find("h2", attrs={"class": "float_lang_base_1"}).get_text()
|
|
91
|
-
data = soup.find_all(text=re.compile("window.histDataExcessInfo"))[0].strip()
|
|
92
|
-
para_data = re.findall(r"\d+", data)
|
|
93
|
-
payload = {
|
|
94
|
-
"curr_id": para_data[0],
|
|
95
|
-
"smlID": para_data[1],
|
|
96
|
-
"header": title,
|
|
97
|
-
"st_date": start_date,
|
|
98
|
-
"end_date": end_date,
|
|
99
|
-
"interval_sec": period_map[period],
|
|
100
|
-
"sort_col": "date",
|
|
101
|
-
"sort_ord": "DESC",
|
|
102
|
-
"action": "historical_data",
|
|
103
|
-
}
|
|
104
|
-
url = "https://cn.investing.com/instruments/HistoricalDataAjax"
|
|
105
|
-
res = requests.post(url, data=payload, headers=long_headers, timeout=60)
|
|
106
|
-
df_data = pd.read_html(res.text)[0]
|
|
107
|
-
df_data.columns = [
|
|
108
|
-
"日期",
|
|
109
|
-
"收盘",
|
|
110
|
-
"开盘",
|
|
111
|
-
"高",
|
|
112
|
-
"低",
|
|
113
|
-
"涨跌幅",
|
|
114
|
-
]
|
|
115
|
-
if period == "每月":
|
|
116
|
-
df_data.index = pd.to_datetime(df_data["日期"], format="%Y年%m月")
|
|
117
|
-
else:
|
|
118
|
-
df_data.index = pd.to_datetime(df_data["日期"], format="%Y年%m月%d日")
|
|
119
|
-
df_data = df_data[["收盘", "开盘", "高", "低", "涨跌幅"]]
|
|
120
|
-
df_data["涨跌幅"] = df_data["涨跌幅"].str.replace("%", "")
|
|
121
|
-
df_data["涨跌幅"] = df_data["涨跌幅"].str.replace(",", "")
|
|
122
|
-
df_data = df_data.astype(float)
|
|
123
|
-
return df_data
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if __name__ == "__main__":
|
|
127
|
-
bond_investing_global_country_name_url_df = bond_investing_global_country_name_url(
|
|
128
|
-
"中国"
|
|
129
|
-
)
|
|
130
|
-
print(bond_investing_global_country_name_url_df)
|
|
131
|
-
|
|
132
|
-
bond_investing_global_df = bond_investing_global(
|
|
133
|
-
country="中国",
|
|
134
|
-
index_name="中国10年期国债",
|
|
135
|
-
period="每日",
|
|
136
|
-
start_date="20100101",
|
|
137
|
-
end_date="20210318",
|
|
138
|
-
)
|
|
139
|
-
print(bond_investing_global_df)
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
# -*- coding:utf-8 -*-
|
|
3
|
-
"""
|
|
4
|
-
Date: 2021/5/10 17:06
|
|
5
|
-
Desc: 提供英为财情-国际大宗商品期货
|
|
6
|
-
https://cn.investing.com/commodities/brent-oil-historical-data
|
|
7
|
-
"""
|
|
8
|
-
import re
|
|
9
|
-
|
|
10
|
-
import pandas as pd
|
|
11
|
-
import requests
|
|
12
|
-
from bs4 import BeautifulSoup
|
|
13
|
-
|
|
14
|
-
from akshare.index.cons import short_headers, long_headers
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def get_sector_symbol_name_url() -> dict:
|
|
18
|
-
"""
|
|
19
|
-
期货所对应板块的 URL
|
|
20
|
-
:return: dict
|
|
21
|
-
{'能源': '/commodities/energy',
|
|
22
|
-
'金属': '/commodities/metals',
|
|
23
|
-
'农业': '/commodities/softs',
|
|
24
|
-
'商品指数': '/indices/commodities-indices'}
|
|
25
|
-
"""
|
|
26
|
-
url = "https://cn.investing.com/commodities/"
|
|
27
|
-
res = requests.get(url, headers=short_headers)
|
|
28
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
29
|
-
name_url_option_list = soup.find_all(attrs={"class": "linkTitle"}) # 去掉-所有国家及地区
|
|
30
|
-
url_list = [item.find("a")["href"] for item in name_url_option_list]
|
|
31
|
-
name_list = [item.get_text() for item in name_url_option_list]
|
|
32
|
-
name_code_map_dict = {}
|
|
33
|
-
name_code_map_dict.update(zip(name_list, url_list))
|
|
34
|
-
return name_code_map_dict
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
def futures_global_commodity_name_url_map(sector: str = "能源") -> dict:
|
|
38
|
-
"""
|
|
39
|
-
参考网页: https://cn.investing.com/commodities/
|
|
40
|
-
获取选择板块对应的: 具体期货品种的 url 地址
|
|
41
|
-
:param sector: 板块, 对应 get_global_country_name_url 品种名称
|
|
42
|
-
:type sector: str
|
|
43
|
-
:return: dict of name-url
|
|
44
|
-
:rtype: dict
|
|
45
|
-
{'伦敦布伦特原油': '/commodities/brent-oil',
|
|
46
|
-
'WTI原油': '/commodities/crude-oil',
|
|
47
|
-
'伦敦汽油': '/commodities/london-gas-oil',
|
|
48
|
-
'天然气': '/commodities/natural-gas?cid=49787',
|
|
49
|
-
'燃料油': '/commodities/heating-oil',
|
|
50
|
-
'碳排放': '/commodities/carbon-emissions',
|
|
51
|
-
'RBOB汽油': '/commodities/gasoline-rbob',
|
|
52
|
-
'布伦特原油': '/commodities/brent-oil?cid=49769',
|
|
53
|
-
'原油': '/commodities/crude-oil?cid=49774'}
|
|
54
|
-
"""
|
|
55
|
-
name_url_dict = get_sector_symbol_name_url()
|
|
56
|
-
url = f"https://cn.investing.com{name_url_dict[sector]}"
|
|
57
|
-
res = requests.post(url, headers=short_headers)
|
|
58
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
59
|
-
url_list = [
|
|
60
|
-
item.find("a")["href"].split("?")[0]
|
|
61
|
-
for item in soup.find_all(attrs={"class": "plusIconTd"})
|
|
62
|
-
]
|
|
63
|
-
name_list = [
|
|
64
|
-
item.find("a").get_text()
|
|
65
|
-
for item in soup.find_all(attrs={"class": "plusIconTd"})
|
|
66
|
-
]
|
|
67
|
-
name_code_map_dict = {}
|
|
68
|
-
name_code_map_dict.update(zip(name_list, url_list))
|
|
69
|
-
return name_code_map_dict
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def futures_global_commodity_hist(
|
|
73
|
-
sector: str = "能源",
|
|
74
|
-
symbol: str = "伦敦布伦特原油",
|
|
75
|
-
start_date: str = "20000101",
|
|
76
|
-
end_date: str = "20191017",
|
|
77
|
-
) -> pd.DataFrame:
|
|
78
|
-
"""
|
|
79
|
-
国际大宗商品的历史量价数据
|
|
80
|
-
https://cn.investing.com/commodities
|
|
81
|
-
:param sector: 板块名称; 调用 futures_global_commodity_name_url_map 函数获取
|
|
82
|
-
:type sector: str
|
|
83
|
-
:param symbol: 品种名称; 通过访问网站查询
|
|
84
|
-
:type symbol: str
|
|
85
|
-
:param start_date: 开始日期
|
|
86
|
-
:type start_date: str
|
|
87
|
-
:param end_date: 结束日期
|
|
88
|
-
:type end_date: str
|
|
89
|
-
:return: 国际大宗商品的历史量价数据
|
|
90
|
-
:rtype: pandas.DataFrame
|
|
91
|
-
"""
|
|
92
|
-
start_date = "/".join([start_date[:4], start_date[4:6], start_date[6:]])
|
|
93
|
-
end_date = "/".join([end_date[:4], end_date[4:6], end_date[6:]])
|
|
94
|
-
name_code_dict = futures_global_commodity_name_url_map(sector)
|
|
95
|
-
temp_url = f"https://cn.investing.com/{name_code_dict[symbol]}-historical-data"
|
|
96
|
-
res = requests.post(temp_url, headers=short_headers)
|
|
97
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
98
|
-
title = soup.find("h2", attrs={"class": "float_lang_base_1"}).get_text()
|
|
99
|
-
res = requests.post(temp_url, headers=short_headers)
|
|
100
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
101
|
-
data = soup.find_all(text=re.compile("window.histDataExcessInfo"))[0].strip()
|
|
102
|
-
para_data = re.findall(r"\d+", data)
|
|
103
|
-
payload = {
|
|
104
|
-
"curr_id": para_data[0],
|
|
105
|
-
"smlID": para_data[1],
|
|
106
|
-
"header": title,
|
|
107
|
-
"st_date": start_date,
|
|
108
|
-
"end_date": end_date,
|
|
109
|
-
"interval_sec": "Daily",
|
|
110
|
-
"sort_col": "date",
|
|
111
|
-
"sort_ord": "DESC",
|
|
112
|
-
"action": "historical_data",
|
|
113
|
-
}
|
|
114
|
-
url = "https://cn.investing.com/instruments/HistoricalDataAjax"
|
|
115
|
-
r = requests.post(url, data=payload, headers=long_headers)
|
|
116
|
-
temp_df = pd.read_html(r.text)[0]
|
|
117
|
-
temp_df["日期"] = pd.to_datetime(temp_df["日期"], format="%Y年%m月%d日")
|
|
118
|
-
if any(temp_df["交易量"].astype(str).str.contains("-")):
|
|
119
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("-")] = temp_df["交易量"][
|
|
120
|
-
temp_df["交易量"].str.contains("-")
|
|
121
|
-
].replace("-", 0)
|
|
122
|
-
if any(temp_df["交易量"].astype(str).str.contains("B")):
|
|
123
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("B").fillna(False)] = (
|
|
124
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("B").fillna(False)]
|
|
125
|
-
.str.replace("B", "")
|
|
126
|
-
.astype(float)
|
|
127
|
-
* 1000000000
|
|
128
|
-
)
|
|
129
|
-
if any(temp_df["交易量"].astype(str).str.contains("M")):
|
|
130
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("M").fillna(False)] = (
|
|
131
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("M").fillna(False)]
|
|
132
|
-
.str.replace("M", "")
|
|
133
|
-
.astype(float)
|
|
134
|
-
* 1000000
|
|
135
|
-
)
|
|
136
|
-
if any(temp_df["交易量"].astype(str).str.contains("K")):
|
|
137
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("K").fillna(False)] = (
|
|
138
|
-
temp_df["交易量"][temp_df["交易量"].str.contains("K").fillna(False)]
|
|
139
|
-
.str.replace("K", "")
|
|
140
|
-
.astype(float)
|
|
141
|
-
* 1000
|
|
142
|
-
)
|
|
143
|
-
temp_df["交易量"] = temp_df["交易量"].astype(float)
|
|
144
|
-
temp_df["涨跌幅"] = pd.DataFrame(
|
|
145
|
-
round(temp_df["涨跌幅"].str.replace("%", "").astype(float) / 100, 6)
|
|
146
|
-
)
|
|
147
|
-
temp_df.name = title
|
|
148
|
-
temp_df.columns.name = None
|
|
149
|
-
temp_df.sort_values(["日期"], ascending=False, inplace=True)
|
|
150
|
-
return temp_df
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
if __name__ == "__main__":
|
|
154
|
-
temp_dict = futures_global_commodity_name_url_map(sector="能源")
|
|
155
|
-
print(temp_dict)
|
|
156
|
-
|
|
157
|
-
futures_global_commodity_hist_df = futures_global_commodity_hist(
|
|
158
|
-
sector="能源", symbol="伦敦布伦特原油", start_date="19700101", end_date="20210510"
|
|
159
|
-
)
|
|
160
|
-
print(futures_global_commodity_hist_df)
|
|
161
|
-
|
|
162
|
-
# futures_global_commodity_hist_df = futures_global_commodity_hist(
|
|
163
|
-
# sector="能源", symbol="伦敦布伦特原油", start_date="1970/01/01", end_date="2021/05/10"
|
|
164
|
-
# )
|
|
165
|
-
# print(futures_global_commodity_hist_df.to_csv("伦敦布伦特原油_19880627_20080319.csv", encoding="gb2312"))
|
|
166
|
-
#
|
|
167
|
-
# futures_global_commodity_hist_df = futures_global_commodity_hist(
|
|
168
|
-
# sector="能源", symbol="伦敦布伦特原油", start_date="2008/03/19", end_date="2021/05/10"
|
|
169
|
-
# )
|
|
170
|
-
# print(futures_global_commodity_hist_df.to_csv("伦敦布伦特原油_20080319_20210510.csv", encoding="gb2312"))
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
# -*- coding:utf-8 -*-
|
|
3
|
-
"""
|
|
4
|
-
Date: 2022/8/8 19:53
|
|
5
|
-
Desc: 英为财情-股票指数-全球股指与期货指数数据接口
|
|
6
|
-
https://cn.investing.com/indices/volatility-s-p-500-historical-data
|
|
7
|
-
"""
|
|
8
|
-
import json
|
|
9
|
-
|
|
10
|
-
import pandas as pd
|
|
11
|
-
import requests
|
|
12
|
-
from bs4 import BeautifulSoup
|
|
13
|
-
|
|
14
|
-
from akshare.index.cons import short_headers
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def _get_global_index_area_name_code() -> dict:
|
|
18
|
-
"""
|
|
19
|
-
全球指数-各国的全球指数数据
|
|
20
|
-
https://cn.investing.com/indices/global-indices?majorIndices=on&primarySectors=on&bonds=on&additionalIndices=on&otherIndices=on&c_id=37
|
|
21
|
-
:return: 国家和代码
|
|
22
|
-
:rtype: dict
|
|
23
|
-
"""
|
|
24
|
-
url = "https://cn.investing.com/indices/global-indices"
|
|
25
|
-
params = {
|
|
26
|
-
"majorIndices": "on",
|
|
27
|
-
"primarySectors": "on",
|
|
28
|
-
"bonds": "on",
|
|
29
|
-
"additionalIndices": "on",
|
|
30
|
-
"otherIndices": "on",
|
|
31
|
-
}
|
|
32
|
-
r = requests.get(url, params=params, headers=short_headers)
|
|
33
|
-
data_text = r.text
|
|
34
|
-
soup = BeautifulSoup(data_text, "lxml")
|
|
35
|
-
name_url_option_list = soup.find_all("option")[1:]
|
|
36
|
-
url_list = [
|
|
37
|
-
item["value"]
|
|
38
|
-
for item in name_url_option_list
|
|
39
|
-
if "c_id" in item["value"]
|
|
40
|
-
]
|
|
41
|
-
url_list_code = [
|
|
42
|
-
item["value"].split("?")[1].split("=")[1]
|
|
43
|
-
for item in name_url_option_list
|
|
44
|
-
if "c_id" in item["value"]
|
|
45
|
-
]
|
|
46
|
-
name_list = [item.get_text() for item in name_url_option_list][
|
|
47
|
-
: len(url_list)
|
|
48
|
-
]
|
|
49
|
-
_temp_df = pd.DataFrame([name_list, url_list_code]).T
|
|
50
|
-
name_code_list = dict(zip(_temp_df.iloc[:, 0], _temp_df.iloc[:, 1]))
|
|
51
|
-
return name_code_list
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def _get_global_country_name_url() -> dict:
|
|
55
|
-
"""
|
|
56
|
-
可获得指数数据国家对应的 URL
|
|
57
|
-
https://cn.investing.com/indices/
|
|
58
|
-
:return: 国家和 URL
|
|
59
|
-
:rtype: dict
|
|
60
|
-
"""
|
|
61
|
-
url = "https://cn.investing.com/indices/"
|
|
62
|
-
res = requests.post(url, headers=short_headers)
|
|
63
|
-
soup = BeautifulSoup(res.text, "lxml")
|
|
64
|
-
name_url_option_list = soup.find(
|
|
65
|
-
"select", attrs={"name": "country"}
|
|
66
|
-
).find_all("option")[
|
|
67
|
-
1:
|
|
68
|
-
] # 去掉-所有国家及地区
|
|
69
|
-
url_list = [item["value"] for item in name_url_option_list]
|
|
70
|
-
name_list = [item.get_text() for item in name_url_option_list]
|
|
71
|
-
name_code_map_dict = {}
|
|
72
|
-
name_code_map_dict.update(zip(name_list, url_list))
|
|
73
|
-
return name_code_map_dict
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
def index_investing_global_area_index_name_code(area: str = "中国") -> dict:
|
|
77
|
-
"""
|
|
78
|
-
指定 area 的所有指数和代码
|
|
79
|
-
https://cn.investing.com/indices/
|
|
80
|
-
:param area: 指定的国家或地区;ak._get_global_country_name_url() 函数返回的国家或地区的名称
|
|
81
|
-
:type area: str
|
|
82
|
-
:return: 指定 area 的所有指数和代码
|
|
83
|
-
:rtype: dict
|
|
84
|
-
"""
|
|
85
|
-
pd.set_option("mode.chained_assignment", None)
|
|
86
|
-
name_url_dict = _get_global_country_name_url()
|
|
87
|
-
url = f"https://cn.investing.com{name_url_dict[area]}?&majorIndices=on&primarySectors=on&additionalIndices=on&otherIndices=on"
|
|
88
|
-
r = requests.get(url)
|
|
89
|
-
soup = BeautifulSoup(r.text, "lxml")
|
|
90
|
-
code_list = [
|
|
91
|
-
item["data-id"]
|
|
92
|
-
for item in soup.find_all("table")[1].find_all(
|
|
93
|
-
"span", attrs={"class": "alertBellGrayPlus"}
|
|
94
|
-
)
|
|
95
|
-
]
|
|
96
|
-
name_list = [
|
|
97
|
-
item.find("a").text
|
|
98
|
-
for item in soup.find_all("td", attrs={"class": "plusIconTd"})
|
|
99
|
-
]
|
|
100
|
-
name_code_map_dict = {}
|
|
101
|
-
name_code_map_dict.update(zip(name_list, code_list))
|
|
102
|
-
return name_code_map_dict
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
def index_investing_global_area_index_name_url(area: str = "中国") -> dict:
|
|
106
|
-
"""
|
|
107
|
-
指定 area 的所有指数和 URL 地址
|
|
108
|
-
https://cn.investing.com/indices/
|
|
109
|
-
:param area: 指定的国家或地区;ak._get_global_country_name_url() 函数返回的国家或地区的名称
|
|
110
|
-
:type area: str
|
|
111
|
-
:return: 指定 area 的所有指数和 URL 地址
|
|
112
|
-
:rtype: dict
|
|
113
|
-
"""
|
|
114
|
-
pd.set_option("mode.chained_assignment", None)
|
|
115
|
-
name_url_dict = _get_global_country_name_url()
|
|
116
|
-
url = f"https://cn.investing.com{name_url_dict[area]}?&majorIndices=on&primarySectors=on&additionalIndices=on&otherIndices=on"
|
|
117
|
-
r = requests.get(url)
|
|
118
|
-
soup = BeautifulSoup(r.text, "lxml")
|
|
119
|
-
code_list = [
|
|
120
|
-
item.find("a")["href"]
|
|
121
|
-
for item in soup.find_all("td", attrs={"class": "plusIconTd"})
|
|
122
|
-
]
|
|
123
|
-
name_list = [
|
|
124
|
-
item.find("a").text
|
|
125
|
-
for item in soup.find_all("td", attrs={"class": "plusIconTd"})
|
|
126
|
-
]
|
|
127
|
-
name_code_map_dict = {}
|
|
128
|
-
name_code_map_dict.update(zip(name_list, code_list))
|
|
129
|
-
return name_code_map_dict
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
def index_investing_global(
|
|
133
|
-
area: str = "中国",
|
|
134
|
-
symbol: str = "上证指数",
|
|
135
|
-
period: str = "每日",
|
|
136
|
-
start_date: str = "20100101",
|
|
137
|
-
end_date: str = "20211031",
|
|
138
|
-
) -> pd.DataFrame:
|
|
139
|
-
"""
|
|
140
|
-
具体国家或地区的从 start_date 到 end_date 期间的数据
|
|
141
|
-
https://cn.investing.com/indices/ftse-epra-nareit-hong-kong-historical-data
|
|
142
|
-
:param area: 对应函数中的国家或地区名称
|
|
143
|
-
:type area: str
|
|
144
|
-
:param symbol: 对应函数中的指数名称
|
|
145
|
-
:type symbol: str
|
|
146
|
-
:param period: choice of {"每日", "每周", "每月"}
|
|
147
|
-
:type period: str
|
|
148
|
-
:param start_date: '20000101', 注意格式
|
|
149
|
-
:type start_date: str
|
|
150
|
-
:param end_date: '20191017', 注意格式
|
|
151
|
-
:type end_date: str
|
|
152
|
-
:return: 指定参数的数据
|
|
153
|
-
:rtype: pandas.DataFrame
|
|
154
|
-
"""
|
|
155
|
-
start_date = "-".join([start_date[:4], start_date[4:6], start_date[6:]])
|
|
156
|
-
end_date = "-".join([end_date[:4], end_date[4:6], end_date[6:]])
|
|
157
|
-
period_map = {"每日": "Daily", "每周": "Weekly", "每月": "Monthly"}
|
|
158
|
-
name_code_dict = index_investing_global_area_index_name_code(area)
|
|
159
|
-
url = f"https://api.investing.com/api/financialdata/historical/{name_code_dict[symbol]}"
|
|
160
|
-
params = {
|
|
161
|
-
"start-date": start_date,
|
|
162
|
-
"end-date": end_date,
|
|
163
|
-
"time-frame": period_map[period],
|
|
164
|
-
"add-missing-rows": "false",
|
|
165
|
-
}
|
|
166
|
-
headers = {
|
|
167
|
-
"accept": "application/json, text/plain, */*",
|
|
168
|
-
"accept-encoding": "gzip, deflate, br",
|
|
169
|
-
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8",
|
|
170
|
-
"cache-control": "no-cache",
|
|
171
|
-
"domain-id": "cn",
|
|
172
|
-
"origin": "https://cn.investing.com",
|
|
173
|
-
"pragma": "no-cache",
|
|
174
|
-
"referer": "https://cn.investing.com/",
|
|
175
|
-
"sec-ch-ua": '"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
|
176
|
-
"sec-ch-ua-mobile": "?0",
|
|
177
|
-
"sec-ch-ua-platform": '"Windows"',
|
|
178
|
-
"sec-fetch-dest": "empty",
|
|
179
|
-
"sec-fetch-mode": "cors",
|
|
180
|
-
"sec-fetch-site": "same-site",
|
|
181
|
-
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjM2NjQ1NzUsImp0aSI6IjIyODA4MDM5MSIsImlhdCI6MTY2MzY2MDk3NSwiaXNzIjoiaW52ZXN0aW5nLmNvbSIsInVzZXJfaWQiOjIyODA4MDM5MSwicHJpbWFyeV9kb21haW5faWQiOiIxIiwiQXV0aG5TeXN0ZW1Ub2tlbiI6IiIsIkF1dGhuU2Vzc2lvblRva2VuIjoiIiwiRGV2aWNlVG9rZW4iOiIiLCJVYXBpVG9rZW4iOiJObmclMkJmMlJyUHpjeWRtdHRaell5TW1JN1pUNWliV1prTURJMVB6czlNeVUySWpVN1lEYzNjV1ZxYWlSZ1kyVjVNamRsWWpRMFptWTFQMkk4TnpCdlBEWXlQbVJrWXo4M01tQnJaMmN3TW1aaU1HVm9ZbWRtWmpBNU5UWTdhRE0lMkJOalUxTW1Cdk56VmxPbW93WUR4bGJUSWdaWGswY0daM05XZGlNamQyYnlnMk9UNSUyRlpEUSUyRllESm1hMjluTURJeFlqRmxQV0l3Wmpjd1pUVXhPenN6S3paOSIsIkF1dGhuSWQiOiIiLCJJc0RvdWJsZUVuY3J5cHRlZCI6ZmFsc2UsIkRldmljZUlkIjoiIiwiUmVmcmVzaEV4cGlyZWRBdCI6MTY2NjE4MDk3NX0.uRLTP1IG3696uxHm3Qq0D8z4o3nfsD3CaIS9cZGjsV0",
|
|
182
|
-
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36",
|
|
183
|
-
}
|
|
184
|
-
r = requests.get(url, params=params, headers=headers)
|
|
185
|
-
r.encoding = "utf-8"
|
|
186
|
-
r = requests.get(url, params=params, headers=headers)
|
|
187
|
-
data_json = r.json()
|
|
188
|
-
df_data = pd.DataFrame(data_json["data"])
|
|
189
|
-
df_data.columns = [
|
|
190
|
-
"-",
|
|
191
|
-
"-",
|
|
192
|
-
"-",
|
|
193
|
-
"日期",
|
|
194
|
-
"-",
|
|
195
|
-
"-",
|
|
196
|
-
"-",
|
|
197
|
-
"-",
|
|
198
|
-
"-",
|
|
199
|
-
"交易量",
|
|
200
|
-
"-",
|
|
201
|
-
"收盘",
|
|
202
|
-
"开盘",
|
|
203
|
-
"高",
|
|
204
|
-
"低",
|
|
205
|
-
"涨跌幅",
|
|
206
|
-
]
|
|
207
|
-
df_data = df_data[["日期", "收盘", "开盘", "高", "低", "交易量", "涨跌幅"]]
|
|
208
|
-
df_data["日期"] = pd.to_datetime(df_data["日期"]).dt.date
|
|
209
|
-
df_data["收盘"] = pd.to_numeric(df_data["收盘"])
|
|
210
|
-
df_data["开盘"] = pd.to_numeric(df_data["开盘"])
|
|
211
|
-
df_data["高"] = pd.to_numeric(df_data["高"])
|
|
212
|
-
df_data["低"] = pd.to_numeric(df_data["低"])
|
|
213
|
-
df_data["交易量"] = pd.to_numeric(df_data["交易量"])
|
|
214
|
-
df_data["涨跌幅"] = pd.to_numeric(df_data["涨跌幅"])
|
|
215
|
-
df_data.sort_values("日期", inplace=True)
|
|
216
|
-
df_data.reset_index(inplace=True, drop=True)
|
|
217
|
-
return df_data
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
if __name__ == "__main__":
|
|
221
|
-
print(index_investing_global_area_index_name_url("香港"))
|
|
222
|
-
|
|
223
|
-
print(index_investing_global_area_index_name_code("香港"))
|
|
224
|
-
|
|
225
|
-
index_investing_global_df = index_investing_global(
|
|
226
|
-
area="中国",
|
|
227
|
-
symbol="富时中国A50指数",
|
|
228
|
-
period="每日",
|
|
229
|
-
start_date="20100101",
|
|
230
|
-
end_date="20220808",
|
|
231
|
-
)
|
|
232
|
-
print(index_investing_global_df)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|