macro-calendar

$npx mdskill add TermiX-official/cryptoclaw/macro-calendar

Tracks macroeconomic events and indicators like Fed rates and CPI to inform crypto market decisions.

  • Helps monitor economic data that impacts cryptocurrency markets for timely insights.
  • Integrates with the FRED API to fetch key series such as FEDFUNDS and CPIAUCSL.
  • Uses latest observations and historical data from FRED to surface relevant economic trends.
  • Presents data through API endpoints, requiring a free FRED API key for access.

SKILL.md

.github/skills/macro-calendarView on GitHub ↗
---
name: macro-calendar
description: Track macroeconomic events, Fed rates, CPI, and economic indicators affecting crypto.
metadata: { "cryptoclaw": { "emoji": "📅", "always": true } }
---

# Economic Calendar & Macro Data

Track macroeconomic events and economic indicators that impact crypto markets.

## Data Sources

### 1. FRED API (Federal Reserve Economic Data)

```
https://api.stlouisfed.org/fred/
```

Free API key: register at https://fred.stlouisfed.org/docs/api/api_key.html

If `FRED_API_KEY` is set, use it. Otherwise, note the data is unavailable and suggest the user register for a free key.

#### Key Series

| Series ID  | Description                    |
| ---------- | ------------------------------ |
| `FEDFUNDS` | Federal Funds Effective Rate   |
| `CPIAUCSL` | Consumer Price Index (CPI)     |
| `UNRATE`   | Unemployment Rate              |
| `GDP`      | Gross Domestic Product         |
| `DGS10`    | 10-Year Treasury Yield         |
| `DGS2`     | 2-Year Treasury Yield          |
| `T10Y2Y`   | 10Y-2Y Spread (yield curve)    |
| `M2SL`     | M2 Money Supply                |
| `WALCL`    | Fed Balance Sheet Total Assets |
| `DEXUSEU`  | USD/EUR Exchange Rate          |

#### Endpoints

Latest observation:

```
GET /fred/series/observations?series_id={id}&sort_order=desc&limit=1&api_key={key}&file_type=json
```

Historical data:

```
GET /fred/series/observations?series_id={id}&observation_start={YYYY-MM-DD}&api_key={key}&file_type=json
```

Series metadata:

```
GET /fred/series?series_id={id}&api_key={key}&file_type=json
```

### 2. Finnhub Economic Calendar

```
https://finnhub.io/api/v1/calendar/economic
```

Free API key: register at https://finnhub.io. Set `FINNHUB_API_KEY`.

#### Endpoint

```
GET /calendar/economic?from={YYYY-MM-DD}&to={YYYY-MM-DD}&token={key}
```

Returns upcoming economic events with:

- `event` — event name
- `country` — country code
- `impact` — `high`, `medium`, `low`
- `actual` / `estimate` / `prev` — data values
- `time` — event timestamp

## Key Events for Crypto

### High Impact

| Event                   | Frequency | Why It Matters                      |
| ----------------------- | --------- | ----------------------------------- |
| FOMC Rate Decision      | 8x/year   | Rate hikes → risk-off → crypto down |
| CPI (Inflation)         | Monthly   | High CPI → more hikes expected      |
| Non-Farm Payrolls (NFP) | Monthly   | Strong jobs → hawkish Fed           |
| GDP                     | Quarterly | Recession fears → flight to safety  |
| PCE Price Index         | Monthly   | Fed's preferred inflation gauge     |

### Medium Impact

| Event               | Frequency | Why It Matters             |
| ------------------- | --------- | -------------------------- |
| PMI (Manufacturing) | Monthly   | Economic health indicator  |
| Retail Sales        | Monthly   | Consumer spending strength |
| Jobless Claims      | Weekly    | Labor market pulse         |
| ISM Services        | Monthly   | Service sector health      |

## Impact on Crypto

General patterns (not financial advice):

- **Rate cuts / dovish Fed** → bullish for crypto (more liquidity)
- **Rate hikes / hawkish Fed** → bearish for crypto (less liquidity)
- **CPI above expectations** → bearish (more hikes coming)
- **CPI below expectations** → bullish (rate cuts possible)
- **Strong jobs data** → mixed (good economy but hawkish Fed)
- **Yield curve inversion** → recession signal, initially bearish then bullish

## Usage Notes

- Always note that macro-to-crypto correlation is not guaranteed
- Present event times in the user's timezone when possible
- For FOMC meetings, note both the date and the press conference time
- Combine with `crypto-news` for full market context
- If no API keys are available, summarize what data would be accessible and suggest registration

## Example Interactions

User: "When is the next Fed meeting?"
→ Check Finnhub calendar for FOMC events, report date and current rate expectations

User: "What's the current CPI?"
→ Fetch FRED series CPIAUCSL, report latest reading and YoY change

User: "Any major economic events this week?"
→ Fetch Finnhub calendar for current week, filter by high impact, list events

User: "How does the yield curve look?"
→ Fetch DGS10, DGS2, T10Y2Y from FRED, report current spread and inversion status

More from TermiX-official/cryptoclaw

SkillDescription
aave-bscInteract with Aave V3 lending protocol on BNB Smart Chain (BSC).
agent-identityRegister and manage on-chain AI agent identity via ERC-8004.
agentic-commerceCreate, fund, and settle on-chain agent jobs via ERC-8183 Agentic Commerce Protocol.
binance-address-infoBinance Web3 official skill — query any wallet address for token holdings, balances, and portfolio data across BSC, Base, and Solana. Sourced from github.com/binance/binance-skills-hub.
binance-market-rankBinance Web3 official skill — crypto market rankings including trending tokens, smart money inflow, social hype, meme ranks, and top trader PnL leaderboards. Sourced from github.com/binance/binance-skills-hub.
binance-meme-rushBinance Web3 official skill — real-time meme token launchpad tracking and AI-powered trending topic discovery on Solana and BSC. Sourced from github.com/binance/binance-skills-hub.
binance-spotBinance official spot trading skill — place orders, manage accounts, and access real-time market data via Binance Spot API. Sourced from github.com/binance/binance-skills-hub.
binance-token-auditBinance Web3 official skill — security audit for token contracts, detecting honeypots, rug pulls, and malicious functions across BSC, Base, Solana, and Ethereum. Sourced from github.com/binance/binance-skills-hub.
binance-token-infoBinance Web3 official skill — search tokens, retrieve metadata, real-time market data, and candlestick charts across BSC, Base, and Solana. Sourced from github.com/binance/binance-skills-hub.
binance-trading-signalBinance Web3 official skill — Smart Money on-chain trading signals tracking professional investor buy/sell activity on BSC and Solana. Sourced from github.com/binance/binance-skills-hub.