npm install- Visit: https://fred.stlouisfed.org/docs/api/api_key.html
- Sign up for a free account
- Generate an API key
- Create
.env.localfile in the root directory:
FRED_API_KEY=your_api_key_hereNote: The app will work with the demo key, but it has strict rate limits. Get your own key for production use.
npm run devVisit http://localhost:3000 to see the dashboard.
- Fed Balance Sheet (WALCL): Total assets held by the Federal Reserve
- Treasury General Account (TGA): Treasury's operating account at the Fed
- Reverse Repo (RRP): Overnight reverse repurchase agreements
- US Liquidity: Calculated as
Fed Balance Sheet - TGA - RRP
- Currently uses FRED's NAPM as a proxy
- For accurate ISM PMI, you'll need to:
- Manually update monthly from https://www.ismworld.org/
- Or integrate with a paid data provider (Bloomberg, Quandl, etc.)
The index combines:
- 40%: US Liquidity (z-score normalized)
- 35%: ISM PMI (normalized around 50)
- 25%: Bitcoin price momentum (short vs medium-term)
To test if the index correlates with Bitcoin price:
- The app calculates correlation when historical data is available
- For accurate correlation analysis, you'll need to:
- Store historical index values in a database
- Store historical Bitcoin prices
- Calculate correlation over time periods (30-day, 90-day, etc.)
- FRED API: Check your API key is correct in
.env.local - Bitcoin API: Coinbase API is public and should work without issues
- PMI: If you see placeholder data, that's expected - integrate a real PMI source
- Make sure all dependencies are installed:
npm install - Check TypeScript errors:
npm run build
- The dashboard auto-refreshes every 60 seconds
- Click the "Refresh" button to manually update
- Check browser console for API errors