# 获取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 次请求
  • 分页请求仅首页计入限频统计