βββββββββββββββββββββββ βββββββ βββββββ βββ βββ ββββββββββ βββ
ββββββββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββ ββββ
ββββββ ββββββ βββ βββ βββββββββββ ββββββ ββββββ βββββββ
ββββββ ββββββ βββ βββ βββββββ βββ ββββββ ββββββ βββββ
βββ ββββββββββββββββ βββ ββββββββββββββββββββββββββββ βββ
βββ βββββββββββββββ βββ βββββββ βββββββββββ βββββββ βββ
ββββββββββββββββ ββββββ βββββββ βββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββ
βββ βββββββββββββββββββ βββββββββ ββββββββ
βββ βββββββββββββββββββ βββββββββ ββββββββ
βββ βββ ββββββ ββββββββββββββββββββββ βββ
βββ βββ ββββββ ββββββββββ βββββββββββ βββ
A command-line tool for analyzing Federal Reserve policy patterns and their market impact. Find historical analogues to current economic conditions, track FOMC meeting timing, and explore how different assets have performed during similar Fed policy periods.
What it's good at: Historical pattern matching, Fed meeting tracking, seeing what happened before
What it's not: Real-time trading system, guaranteed predictions, professional trading advice
π Historical Pattern Matching: Compare current economic conditions to past periods and see what the Fed did next
π FOMC Meeting Tracker: See when the next Fed meeting is and get context on volatility patterns around Fed events
πΉ Market Expectations: Compare what markets are pricing vs what the Fed has projected
π― Cross-Asset Analysis: See how bonds, stocks, and other assets performed during similar Fed policy periods
π Trading Ideas: Get specific trade recommendations with entry/exit levels based on historical patterns
npx fed-policy-cli
npm install -g fed-policy-cli
# Show welcome screen and commands
npx fed-policy-cli
# Fetch latest economic data (required first step)
npx fed-policy-cli update-data --api-key YOUR_FRED_API_KEY
# Analyze current market conditions
npx fed-policy-cli analyze --template balanced-economic
# Market expectations analysis
npx fed-policy-cli market-expectations
# Cross-asset analysis during Fed cycles
npx fed-policy-cli cross-asset-analysis
The tool works without any setup, but you can get more data with free API keys:
- FRED API Key (free): Get from FRED Economic Data for economic data
- Alpha Vantage API Key (free): Get from Alpha Vantage for real VIX data
Put them in a .env
file:
FRED_API_KEY=your_fred_api_key_here
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here
Getting Started
update-data
- Download latest economic data (do this first)list-templates
- See available economic analysis templates
Main Analysis
analyze
- Find historical periods similar to todaymarket-expectations
- See what markets expect vs Fed projectionscross-asset-analysis
- How assets performed in similar periodscorrelate
- See how economic indicators relate to each other
FOMC & Volatility
fomc-volatility
- When's the next Fed meeting and what's volatility doingtrading-recommendations
- Get specific trade ideas based on historical patterns
Advanced
simulate
- Interactive what-if scenario modelingbacktest
- See how strategies performed historically
# Find periods similar to high inflation + unemployment (stagflation)
npx fed-policy-cli analyze --template stagflation-hunt
# Analyze a specific historical period (e.g., 2008 financial crisis)
npx fed-policy-cli analyze --target-period "2008-01 to 2009-12" --template financial-crisis
# Export analysis results to CSV
npx fed-policy-cli analyze --template balanced-economic --export-csv results.csv
# Export to JSON for programmatic use
npx fed-policy-cli analyze --template inflation-regime --export-json analysis.json
# See what the market expects vs Fed projections
npx fed-policy-cli market-expectations
# When's the next FOMC meeting and what's volatility doing?
npx fed-policy-cli fomc-volatility
# How did assets perform during similar Fed policy periods?
npx fed-policy-cli cross-asset-analysis
# Get specific trade ideas based on historical patterns
npx fed-policy-cli trading-recommendations
- Federal Reserve - Economic data and FOMC meeting schedule
- Alpha Vantage - Market data including VIX (with free API key)
- Treasury Department - Yield curve data
- Traders - See what happened to assets during similar Fed policy periods
- Researchers - Explore historical Fed policy patterns and market reactions
- Students - Learn about Fed policy through historical examples
- Anyone curious about Fed policy and market relationships
Analyze any specific historical period instead of just recent months:
# Analyze the 2008 financial crisis
npx fed-policy-cli analyze --target-period "2008-01 to 2009-12" --template financial-crisis
# Study the Volcker era inflation fight
npx fed-policy-cli analyze --target-period "1979-01 to 1982-12" --template inflation-regime
# Compare dot-com bubble to today
npx fed-policy-cli analyze --target-period "1999-01 to 2001-12" --template balanced-economic
Export your analysis results for further processing or sharing:
# Export to CSV (auto-generated filename)
npx fed-policy-cli analyze --template stagflation-hunt --export-csv
# Export to specific CSV file
npx fed-policy-cli analyze --template financial-crisis --export-csv analysis-results.csv
# Export to JSON with full metadata
npx fed-policy-cli analyze --template balanced-economic --export-json data.json
# Export both formats
npx fed-policy-cli analyze --template recession-early-warning --export-csv --export-json
Template | Focus | Key Indicators |
---|---|---|
stagflation-hunt |
High inflation + unemployment | UNRATE, CPIAUCSL, DFF |
financial-crisis |
Financial stress periods | UNRATE, T10Y2Y, DFF, ICSA |
policy-tightening |
Fed tightening cycles | DFF, CPIAUCSL, UNRATE |
recession-early-warning |
Recession precursors | T10Y2Y, ICSA, GDPC1 |
inflation-regime |
Inflationary periods | CPIAUCSL, PCEPI, DFF |
balanced-economic |
Equal weight analysis | All indicators |
UNRATE
- Unemployment RateCPIAUCSL
- CPI InflationDFF
- Federal Funds RatePCEPI
- PCE Core InflationGDPC1
- Real GDP GrowthT10Y2Y
- 10-2 Year Treasury SpreadICSA
- Initial Jobless Claims
DCOILWTICO
- WTI Crude OilPOILBREUSDM
- Brent Crude OilDTWEXBGS
- USD IndexPCOPPUSDM
- Copper Price
TLT
- 20+ Year Treasury BondsSPY
- S&P 500XLF
- Financial SectorHYG
- High Yield BondsGLD
- Gold
$ npx fed-policy-cli
Shows you the main commands and quick start options. Try:
npx fed-policy-cli analyze --template stagflation-hunt
- Find periods similar to high inflationnpx fed-policy-cli market-expectations
- See market vs Fed expectationsnpx fed-policy-cli fomc-volatility
- When's the next Fed meeting?
$ npx fed-policy-cli market-expectations
βββββββββββββββ MARKET EXPECTATIONS ANALYSIS βββββββββββββββ
ββββββββββββββββββββ EXECUTIVE SUMMARY βββββββββββββββββββββ
π― Market positioning 46bp hawkish vs Fed guidance
Key Takeaways:
β’ Significant hawkish divergence creates trading opportunity
β’ Yield curve inversion signals recession risk (0.49bp 2s10s)
β’ Fed targets 3.40% by 2027
Timeframe: Next 6-18 months
Confidence: ββββββββββ 1%
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββ Yield Curve Snapshot ββββ
3M: 4.42% 2Y: 3.86% 10Y: 4.35% 30Y: 4.86%
2s10s: +0.49bp β οΈ INVERTED
ββββ Market vs Fed Divergence ββββ
Market Rate: 3.86% | Fed Target: 3.40%
π +46bp HAWKISH BIAS
ββββ Trading Signals ββββ
1. YIELD CURVE PLAY
Yield curve inverted (0bp). Consider recession protection trades.
Confidence: ββββββββ 1%
Last updated: 2025-07-10 | Data: FRED Treasury yields + FOMC dot plot projections
See when the next Fed meeting is and get context on volatility:
$ npx fed-policy-cli fomc-volatility
ποΈ Next FOMC Meeting: Dec 17, 2024 (T-14 days)
Expected Move: ~1.8% (based on current volatility)
ββββ Current Volatility Levels ββββ
SPY Volatility: 18.2% (+2.1% vs 30-day avg)
TLT Volatility: 10.9% (+1.3% vs 30-day avg)
ββββ FOMC Timing Context ββββ
Days to FOMC: 14
Current Phase: PRE-FOMC
Vol Regime: NORMAL
Recommended Focus: General volatility monitoring
Note: Enhanced options analysis available with market data subscriptions
Get specific trade ideas based on historical patterns:
$ npx fed-policy-cli trading-recommendations
ββββ TRADING RECOMMENDATIONS ββββ
1. TLT - BUY (Bonds)
Expected Return: +12.3% | Confidence: 78% | 6-12 months
Entry: $94.50 - $96.20 (wait for pullback)
Stop Loss: $91.80
Target: $107.50
Why: Similar Fed easing periods showed 8.2% avg returns
Risk: Duration sensitivity to rate changes
2. SPY - HOLD (Equities)
Expected Return: +6.1% | Confidence: 62% | 3-9 months
Entry: $445.20 (immediate)
Stop Loss: $425.80
Target: $472.60
Why: Mixed signals in current environment
MIT
- GitHub Issues: fed-policy-cli/issues
- Documentation: Run
npx fed-policy-cli help