1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        AKShare-指數(shù)數(shù)據(jù)-全球指數(shù)

        共 5818字,需瀏覽 12分鐘

         ·

        2021-09-14 14:12

        作者寄語

        本次更新主要是修復(fù)了之前全球指數(shù)接口的部分bug,另外新增了一個(gè)通過 URL 地址來獲取指數(shù)數(shù)據(jù)的接口,該接口的實(shí)用性相對(duì)于之前的接口更強(qiáng),用下就知道了!

        更新接口

        • "index_investing_global" # 全球指數(shù)數(shù)據(jù)
        • "index_investing_global_from_url" # 全球指數(shù)數(shù)據(jù)-URL版

        全球指數(shù)數(shù)據(jù)

        接口: index_investing_global

        目標(biāo)地址: https://cn.investing.com/indices/

        描述: 獲取世界主要國(guó)家的各種指數(shù), 該接口需要通過代理訪問; 由于涉及國(guó)家和指數(shù)(1000 + 個(gè)指數(shù))具體參見國(guó)家-指數(shù)目錄具體的調(diào)用方式可以參照:

        1. 先查詢指數(shù)所在的國(guó)家名稱;
        2. 復(fù)制網(wǎng)頁上國(guó)家名稱(推薦復(fù)制), 如 美國(guó);
        3. 復(fù)制所顯示的具體指數(shù)名稱(推薦復(fù)制, 如果英文中間有空格, 也需要保留空格), 如 美元指數(shù); 也可以調(diào)用 ak.index_investing_global_country_name_url("美國(guó)") 獲取需要國(guó)家的具體指數(shù)名稱
        4. 在安裝 AKShare 后輸入, 如 ak.index_investing_global(country="美國(guó)", index_name="VIX恐慌指數(shù)", period="每月", start_date="2005-01-01", end_date="2020-06-05");
        5. 稍后就可以獲得所需數(shù)據(jù).

        限量: 單次返回某一個(gè)國(guó)家的具體某一個(gè)指數(shù), 建議用 for 循環(huán)獲取多個(gè)國(guó)家的多個(gè)指數(shù), 注意不要大量獲取, 以免給對(duì)方服務(wù)器造成壓力!

        輸入?yún)?shù)

        名稱類型描述
        countrystrcountry="美國(guó)"
        index_namestrindex_name="美元指數(shù)"; 可以通過 ak.index_investing_global_country_name_url("美國(guó)") 獲取
        periodstrperiod="每月"; choice of {"每日", "每周", "每月"}
        start_datestrstart_date='20000101'
        end_datestrend_date='20191017'

        輸出參數(shù)

        名稱類型描述
        日期object日期
        收盤float64收盤價(jià)
        開盤float64開盤價(jià)
        float64最高價(jià)
        float64最低價(jià)
        交易量float64交易量

        接口示例

        import akshare as ak
        index_investing_global_df = ak.index_investing_global(country="中國(guó)", index_name="富時(shí)中國(guó)A50指數(shù)", period="每日", start_date="20000101", end_date="20210909")
        print(index_investing_global_df)

        數(shù)據(jù)示例

               日期        收盤        開盤         高         低  交易量
        0     2010-05-19   9047.81   9106.26   9191.26   8929.31  0.0
        1     2010-05-20   8924.33   9047.81   9143.00   8905.52  0.0
        2     2010-05-21   9026.51   8924.33   9030.58   8686.36  0.0
        3     2010-05-24   9317.78   9026.51   9375.71   9026.51  0.0
        4     2010-05-25   9077.53   9317.78   9317.78   9050.91  0.0
                  ...       ...       ...       ...       ...  ...
        2783  2021-09-03  15136.65  15093.72  15247.63  14902.02  0.0
        2784  2021-09-06  15388.35  15136.65  15462.80  15087.18  0.0
        2785  2021-09-07  15544.89  15388.35  15600.47  15283.45  0.0
        2786  2021-09-08  15397.64  15544.89  15589.33  15347.35  0.0
        2787  2021-09-09  15366.34  15397.64  15402.02  15256.98  0.0

        全球指數(shù)數(shù)據(jù)-URL版

        接口: index_investing_global_from_url

        目標(biāo)地址: https://www.investing.com/indices/ftse-epra-nareit-eurozone

        描述: 世界主要國(guó)家的各種指數(shù), 該接口需要通過代理訪問; 該接口只需要輸入相應(yīng)指數(shù)的 URL 地址

        限量: 單次返回某一個(gè)國(guó)家的具體某一個(gè)指數(shù), 建議用 for 循環(huán)獲取多個(gè)國(guó)家的多個(gè)指數(shù), 注意不要大量獲取, 以免給對(duì)方服務(wù)器造成壓力!

        輸入?yún)?shù)

        名稱類型描述
        urlstrurl="https://www.investing.com/indices/ftse-epra-nareit-eurozone"; 具體指數(shù)的頁面 URL 地址
        periodstrperiod="每月"; choice of {"每日", "每周", "每月"}
        start_datestrstart_date='20000101'
        end_datestrend_date='20191017'

        輸出參數(shù)

        名稱類型描述
        日期object日期
        收盤float64收盤價(jià)
        開盤float64開盤價(jià)
        float64最高價(jià)
        float64最低價(jià)
        交易量float64交易量

        接口示例

        import akshare as ak
        index_investing_global_df = ak.index_investing_global_from_url(url="https://www.investing.com/indices/ftse-epra-nareit-hong-kong", period="每日", start_date="19900101", end_date="20210909")
        print(index_investing_global_df)

        數(shù)據(jù)示例

               日期       收盤       開盤        高        低  交易量
        0     2010-05-18  1601.97  1582.11  1605.89  1571.07  0.0
        1     2010-05-19  1577.06  1583.19  1594.69  1569.45  0.0
        2     2010-05-20  1568.02  1585.58  1585.65  1541.22  0.0
        3     2010-05-21  1565.46  1564.88  1565.74  1562.59  0.0
        4     2010-05-24  1611.90  1555.62  1615.30  1555.62  0.0
                  ...      ...      ...      ...      ...  ...
        2959  2021-09-03  1803.02  1813.51  1819.92  1767.47  0.0
        2960  2021-09-06  1792.55  1797.30  1799.81  1790.49  0.0
        2961  2021-09-07  1798.50  1797.41  1802.65  1790.11  0.0
        2962  2021-09-08  1799.42  1793.50  1806.87  1793.24  0.0
        2963  2021-09-09  1803.44  1794.91  1819.65  1794.91  0.0


        瀏覽 110
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            极品人妻疯狂3p超刺激 | 日本男狂揉吃奶胸60分钟视频 | 91干熟女 | 成人毛片一区二区三区 | 台湾gay无套gaygay无套 | 成人免费A级毛片免费视频 | 一区二区三区A∨亂伦 | 在线观看成人无码片 | 娇妻颤抖高潮h | 久久久久99精品成人网站 |