Files
openbb-invest-api/openclaw-skills/macro-analysis/SKILL.md
Yaojia Wang 9b64dfb74e
All checks were successful
continuous-integration/drone/push Build is passing
feat: add OpenClaw trading agents multi-agent debate system
- 5 analysis skills: trade-analyze (orchestrator), market-analysis,
  fundamental-analysis, sentiment-analysis, macro-analysis
- 4 debate agent personas (SOUL.md): invest-bull, invest-bear,
  invest-hawk, invest-dove
- 5 agent operating instructions (AGENTS.md) including invest-analyst
- Deploy script for pushing to remote OpenClaw server
- Uses sessions_spawn for non-blocking agent delegation
- invest-analyst collects data via API, spawns debate agents,
  synthesizes final BUY/SELL/HOLD verdict
2026-03-21 17:06:51 +01:00

2.4 KiB

name, description, user-invocable, metadata
name description user-invocable metadata
macro-analysis Macro environment analysis — rates, inflation, economic indicators, short pressure via openbb-invest-api true
openclaw
emoji requires
🌍
bins
curl

Macro Analysis

Generate a structured macro environment report relevant to a given stock ticker.

Data Collection

Fetch the following endpoints using exec tool:

BASE=https://invest-api.k8s.home

# 1. Macro overview (Fed rate, yields, CPI, unemployment, GDP, VIX)
curl -sk "$BASE/api/v1/macro/overview"

# 2. Yield curve (rate environment and inversion signal)
curl -sk "$BASE/api/v1/fixed-income/yield-curve"

# 3. CPI (inflation trend)
curl -sk "$BASE/api/v1/macro/cpi?country=united_states"

# 4. Consumer sentiment (recession predictor)
curl -sk "$BASE/api/v1/economy/surveys/michigan"

# 5. Short selling pressure on the specific stock
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/volume"

# 6. Short interest and days to cover
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/interest"

Report Structure

## Macro Environment for {TICKER} — {date}

### Interest Rate Environment
- Fed Funds Rate: {rate}%
- 10Y Treasury: {rate}% | 2Y Treasury: {rate}%
- Yield curve: [normal / flat / inverted] — {spread}bps
- Rate outlook: [hawkish / dovish / neutral]

### Inflation
- CPI YoY: {%} — trend [rising / falling / stable]
- PCE (if available): {%}
- Implication: [Fed likely to cut / hold / raise]

### Economic Health
- GDP growth: {%}
- Unemployment: {%}
- VIX: {level} — [low fear <15 / moderate 15-25 / high fear >25]
- Consumer sentiment (Michigan): {value} — [strong / weak / deteriorating]

### Short Pressure on {TICKER}
- Short volume: {%} of total volume — [low <20% / moderate / high >40%]
- Short interest: {shares} ({days_to_cover} days to cover)
- Signal: [short squeeze potential / bears in control / neutral]

### Market Implications for {TICKER}
- Sector sensitivity to rates: [high / moderate / low]
- Macro headwinds: {key risk}
- Macro tailwinds: {key opportunity}

### Signal: [FAVORABLE / UNFAVORABLE / MIXED]
### Confidence: {1-10}
### Key Risk: {one-line macro risk}

Rules

  • Use ONLY data from the API responses — never fabricate economic figures
  • If an endpoint returns an error, note "Data unavailable" for that section
  • Keep the report under 400 words
  • Contextualize macro data for the specific stock's sector (e.g., rate-sensitive sectors like REITs, banks)