Skip to main content

Downloads

A Python Implementation of the CME FedWatch Tool Methodology


This public repository exists solely to explain how the CME FedWatch tool calculates FOMC rate move probabilities. Please note that the content in this repository is for informational purposes only and should not be regarded as investment advice.


What is the CME FedWatch Tool?

CME FedWatch tool is provided by the Chicago Mercantile Exchange (CME) and is used to estimate the probabilities of Federal Open Market Committee (FOMC) rate moves. The FOMC meetings are where decisions about interest rates are made, and the CME FedWatch Tool helps market participants assess the likelihood of rate changes based on fed funds futures prices. If you are not familar with the tool, take a look at the tool's demo video and also the CME FedWatch Webpage to find out what is the likelihood that the Fed will change the Federal target rate at upcoming FOMC meetings, according to interest rate traders, in real time. You can also find the tools's methodology, which is briefly described here.

What is PyFedWatch?

PyFedWatch is a Python implementation of the CME FedWatch Tool. It is packaged to enable Python developers to access and utilize the functionality of the CME FedWatch Tool programmatically. PyFedWatch is designed to provide Python users with a way to estimate FOMC rate move probabilities using Python code. In summary, the CME FedWatch Tool is a financial tool offered by the CME, while PyFedWatch is a Python package that replicates similar functionality, allowing developers to work with FOMC rate move probabilities within the Python programming environment.

PyFedWatch Scope

The scope of PyFedWatch is focused solely on the implementation of the FedWatch methodology. Providing the fed funds futures pricing data and FOMC meetings data is beyond the scope of this package. However, we have included sample data to demonstrate how the package can be used in practice. The package does not offer up-to-date data preparation as part of its functionality. PyFedWatch follows a methodology that differs slightly from the one described on the CME website but provides the same probabilities as the tool displayed on the website.

PyFedWatch Installation

You can easily install PyFedWatch using the Python package manager pip and by running the following command:

pip install pyfedwatch

PyfedWatch Outputs

PyFedWatch generates two significant outputs when provided with fed funds futures pricing data and FOMC meeting dates. The first output is an FOMC calendar, which includes all the necessary months for which the futures contract pricing data is required in the FedWatch calculations. The second output is a dataframe that presents rate expectations. In addition to these primary outputs, PyFedWatch also provides several intermediate outputs that can be valuable for gaining a deeper understanding of the methodology.


FOMC Calendar:

import pyfedwatch as fw
fomc = fw.fomc.FOMC(watch_date = '2023-03-10',
                    fomc_dates = fomc_dates,
                    num_upcoming = 9)
fig = fomc.plot_fomc_calendar()


Calculated probabilities of target rates for the upcoming 9 FOMC meetings with a watch date of March 10, 2023:

import pyfedwatch as fw
fedwatch = fw.fedwatch.FedWatch(watch_date = '2023-03-10',
                                fomc_dates = fomc_dates,
                                num_upcoming = 9,
                                user_func = read_price_history,
                                path = '../data/contracts')
fedwatch.generate_hike_info(rate_cols=True).style.format("{:.1%}").background_gradient(axis=1)

Contact Information

You can contact me via email: a.rahimi.aut@gmail.com

Metadata

Release files for pyfedwatch 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfedwatch 1.2.0
File Size Uploaded
pyfedwatch-1.2.0.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfedwatch 1.2.0
File Interpreter ABI Platform
pyfedwatch-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / pyfedwatch-1.2.0.tar.gz

Download URL pyfedwatch-1.2.0.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
760058b091ed776ae5fd3f7cccd7f24aebe095f29f264370b35c2e26ff98d920
BLAKE2b-256 checksum
How to use checksums
07d4a98734af53a3bfe07fdd0a4796ef4f6978d333aa83c7a228413073149d33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pyfedwatch-1.2.0-py3-none-any.whl

Download URL pyfedwatch-1.2.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
add6fe5a8d866f854cf02d7ed4d5281face81b78e920468d3f6e69d9b24ff7f7
BLAKE2b-256 checksum
How to use checksums
9b83bc5b133619e64e13a281be0307ca0954a678817267f95df9092c873a2226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page