-
β Client Implementation (
live_monitoring/enrichment/apis/cme_fedwatch_client.py)- Google Cloud Workload Identity Federation authentication
- Correct API endpoints configured
- Token exchange logic implemented
- Error handling and logging
-
β API Endpoints
- Base URL:
https://markets.api.cmegroup.com/fedwatch/v1 /forecasts- Get FedWatch probability forecasts/meetings- Get FOMC meetings
- Base URL:
-
β Test Scripts
test_cme_fedwatch.py- Full API testsetup_cme_live.py- Setup automationquick_get_token.sh- Token acquisition helper
-
β Documentation
BRING_CME_LIVE.md- Complete setup guideCME_FEDWATCH_ENDPOINTS.md- API endpoint reference
ONE THING: Get the identity token from Google Cloud
# Install gcloud CLI
# macOS: https://cloud.google.com/sdk/docs/install-sdk#mac
# After installation:
gcloud auth login
./quick_get_token.sh- Go to Google Cloud Console
- Navigate to IAM & Admin > Workload Identity Federation
- Generate identity token for audience:
//iam.googleapis.com/projects/282603793014/locations/global/workloadIdentityPools/iamwip-cmegroup/providers/customer-federation - Save to
/tmp/token:{ "id_token": "<your_generated_token>" }
If you can't generate the token:
- Ask CME support for token generation instructions
- Verify your API credentials are correct
- Check if IP whitelist is required
python3 test_cme_fedwatch.pyExpected Output:
β
Token file loaded
β
Credentials initialized
β
Access token obtained
β
Successfully fetched FedWatch Intraday data
β
Parsed probabilities:
cut_25bp: 15.2%
hold: 78.5%
hike_25bp: 6.3%
from live_monitoring.enrichment.apis.cme_fedwatch_client import CMEFedWatchClient
# Initialize (reads token from /tmp/token automatically)
client = CMEFedWatchClient()
# Get current FedWatch probabilities
data = client.get_fedwatch_intraday()
probs = client.parse_probabilities(data)
# Get cut probability
cut_prob = client.get_cut_probability()
print(f"Rate cut probability: {cut_prob:.1f}%")The client is ready to use in:
live_monitoring/pipeline/components/fed_monitor.pylive_monitoring/agents/economic/fed_shift_predictor.py
- API ID:
api_fjk - Token:
552615 - Access Code:
093639 - Base URL:
https://markets.api.cmegroup.com/fedwatch/v1 - Token File:
/tmp/token(needs to be created)
Get the identity token using one of the methods above, then run:
python3 test_cme_fedwatch.pyOnce that works, the CME FedWatch API is LIVE and ready to use! π