# 獲取FedWatch點陣圖

get_fed_watch_dot_plot()

  • 介紹

    獲取 CME 利率點陣圖數據。返回美聯儲各 FOMC 委員對未來各年份聯邦基金利率預期的投票分佈,包含每個利率水平的投票人數、中位數利率以及當前聯邦基金利率。

  • 返回

    參數 類型 說明
    ret RET_CODE 接口調用結果
    data pd.DataFrame 當 ret == RET_OK,返回數據
    str 當 ret != RET_OK,返回錯誤描述
    • 數據格式如下:
      字段 類型 說明
      year int 預測年份,如 2025、2026、2027
      rate float 預期利率(%),如 4.125 表示 4.125%
      vote_count int 在該利率水平投票的委員人數
      is_median bool 是否爲該年份的中位數利率
      median_rate float 該年份中位數利率(%)
      current_rate float 當前聯邦基金利率(%)
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_fed_watch_dot_plot()
if ret == RET_OK:
    print(data)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
  • Output
year   rate  vote_count  is_median  median_rate  current_rate
0  2026  3.375           1      False        3.875          3.63
1  2026  3.625           8      False        3.875          3.63
1
2
3

接口限制

  • 30 秒內最多 60 次請求
  • 分頁請求僅首頁計入限頻統計