refactor: comprehensive skill rewrite with professional analyst perspective
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Coverage: 19% → 67% of API endpoints (88/131) market-analysis: 5 → 15 endpoints (all 14 technical indicators + historical) - Added: ADX, Stochastic, Keltner, Donchian, Aroon, CCI, Fib, A/D, Cones, VWAP - Added confluence/divergence analysis guidance fundamental-analysis: 5 → 12 endpoints - Added: summary (all-in-one), CAPM, Sortino, Omega, estimates, share-statistics, institutional, dividends, calendar/earnings - Added institutional ownership and earnings catalyst flagging sentiment-analysis: 5 → 16 endpoints - Added: reddit-sentiment, social-sentiment, shorts/ftd, darkpool/otc, share-statistics, institutional, congress/trades - Restructured as smart money vs retail noise hierarchy macro-analysis: 6 → 23 endpoints - Added: treasury-rates, effr, sofr, spreads, hqm, tips-yields, pce, gdp, unemployment, money-measures, cli, sloos, nonfarm-payrolls, empire-state, central-bank-holdings, fomc-documents, sp500-multiples - Added business cycle positioning framework trade-analyze: updated data collection to use /summary endpoint AGENTS.md (all 4 debate agents): updated for sessions_spawn protocol SOUL.md (all 4): removed unavailable memory_search, REPLY_SKIP refs deploy.sh: fixed nvm loading for SSH
This commit is contained in:
@@ -1,35 +1,54 @@
|
|||||||
---
|
---
|
||||||
name: fundamental-analysis
|
name: fundamental-analysis
|
||||||
description: Fundamental analysis report — valuation, growth, analyst consensus, financial health via openbb-invest-api
|
description: Professional fundamental analysis — valuation, growth quality, financial health, risk metrics, institutional positioning via openbb-invest-api
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
metadata: { "openclaw": { "emoji": "📋", "requires": { "bins": ["curl"] } } }
|
metadata: { "openclaw": { "emoji": "📋", "requires": { "bins": ["curl"] } } }
|
||||||
---
|
---
|
||||||
|
|
||||||
# Fundamental Analysis
|
# Fundamental Analysis
|
||||||
|
|
||||||
Generate a structured fundamental analysis report for a given stock ticker.
|
Generate a professional-grade fundamental analysis. Think like a buy-side equity analyst.
|
||||||
|
|
||||||
## Data Collection
|
## Data Collection
|
||||||
|
|
||||||
Fetch the following endpoints using `exec` tool:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
BASE=https://invest-api.k8s.home
|
BASE=https://invest-api.k8s.home
|
||||||
|
|
||||||
# 1. Key metrics (PE, PB, ROE, EPS, beta, dividend yield)
|
# Company overview (quote + profile + metrics + financials in one call)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/metrics"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/summary"
|
||||||
|
|
||||||
# 2. Financial statements (income, balance sheet, cash flow)
|
# Analyst consensus estimates
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/financials"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/estimates"
|
||||||
|
|
||||||
# 3. Analyst price targets (consensus, high, low)
|
# Analyst upgrades/downgrades with price targets
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/upgrades"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/upgrades"
|
||||||
|
|
||||||
# 4. Analyst recommendations (buy/hold/sell counts)
|
# Analyst buy/hold/sell counts
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/recommendations"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/recommendations"
|
||||||
|
|
||||||
# 5. Risk metrics (Sharpe, volatility, max drawdown)
|
# Quantitative risk: Sharpe, volatility, max drawdown
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/performance?days=365"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/performance?days=365"
|
||||||
|
|
||||||
|
# CAPM: beta, alpha, systematic vs idiosyncratic risk
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/capm"
|
||||||
|
|
||||||
|
# Sortino ratio (downside risk — better than Sharpe for asymmetric returns)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/sortino?days=365"
|
||||||
|
|
||||||
|
# Omega ratio (full distribution gain/loss)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/omega?days=365"
|
||||||
|
|
||||||
|
# Share statistics (float, shares outstanding, short % of float)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/share-statistics"
|
||||||
|
|
||||||
|
# Institutional holders (13F — who's buying/selling)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/institutional"
|
||||||
|
|
||||||
|
# Dividend history (if applicable)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/dividends"
|
||||||
|
|
||||||
|
# Upcoming earnings date
|
||||||
|
curl -sk "$BASE/api/v1/calendar/earnings?start_date=$(date +%Y-%m-%d)&end_date=$(date -d '+30 days' +%Y-%m-%d 2>/dev/null || date -v+30d +%Y-%m-%d)"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Report Structure
|
## Report Structure
|
||||||
@@ -38,41 +57,60 @@ curl -sk "$BASE/api/v1/stock/{TICKER}/performance?days=365"
|
|||||||
## {TICKER} Fundamental Analysis — {date}
|
## {TICKER} Fundamental Analysis — {date}
|
||||||
|
|
||||||
### Valuation
|
### Valuation
|
||||||
- P/E: {value} vs sector average — [cheap / fair / expensive]
|
- P/E: {value} vs S&P 500 avg (~22) — [cheap / fair / rich]
|
||||||
- P/B: {value}
|
- P/B: {value}
|
||||||
- PEG: {value if available}
|
- EV/EBITDA: {if available}
|
||||||
- Current price vs analyst consensus target: {price} vs {target} ({upside/downside}%)
|
- Price vs consensus target: ${current} vs ${target} ({upside/downside}%)
|
||||||
|
- Price target range: ${low} — ${high}
|
||||||
|
|
||||||
### Growth & Profitability
|
### Growth Quality
|
||||||
- Revenue YoY growth: {%}
|
- Revenue YoY: {%} — trend [accelerating / decelerating / stable]
|
||||||
- EPS YoY growth: {%}
|
- EPS YoY: {%}
|
||||||
- ROE: {%} — [strong >15% / moderate / weak <5%]
|
- ROE: {%} — [excellent >20% / strong >15% / moderate >10% / weak <10%]
|
||||||
- Net margin: {%}
|
- ROA: {%}
|
||||||
|
- Net margin: {%} — [expanding / compressing]
|
||||||
|
- Forward estimates: {consensus EPS for next quarter/year}
|
||||||
|
|
||||||
### Financial Health
|
### Financial Health
|
||||||
- Debt-to-Equity: {ratio}
|
- Debt-to-Equity: {ratio} — [conservative <0.5 / moderate / leveraged >1.5]
|
||||||
- Current Ratio: {ratio}
|
- Current Ratio: {ratio} — [healthy >1.5 / tight <1.0]
|
||||||
- Free Cash Flow trend: [positive/negative/declining]
|
- Free Cash Flow: {trend and magnitude}
|
||||||
|
- Cash position: {if available}
|
||||||
### Analyst Consensus
|
|
||||||
- Ratings: {buy} buy / {hold} hold / {sell} sell
|
|
||||||
- Recent upgrades/downgrades: {summary}
|
|
||||||
- Price target range: ${low} — ${high} (consensus ${target})
|
|
||||||
|
|
||||||
### Risk Profile
|
### Risk Profile
|
||||||
- Beta: {value} — [low <0.8 / market ~1.0 / high >1.2]
|
- Beta: {value} — [defensive <0.8 / market ~1.0 / aggressive >1.2]
|
||||||
- Sharpe ratio (1Y): {value}
|
- CAPM alpha: {%} — [outperforming / underperforming vs market]
|
||||||
|
- Sharpe (1Y): {value} — [poor <0.5 / good >1.0 / excellent >2.0]
|
||||||
|
- Sortino (1Y): {value} — [context vs Sharpe]
|
||||||
- Max drawdown (1Y): {%}
|
- Max drawdown (1Y): {%}
|
||||||
- Dividend yield: {%} (if applicable)
|
- Omega ratio: {value}
|
||||||
|
|
||||||
|
### Institutional & Ownership
|
||||||
|
- Float: {shares} ({% of total})
|
||||||
|
- Short % of float: {%} — [low <5% / moderate / high >15%]
|
||||||
|
- Top institutional holders: {names if available}
|
||||||
|
- Recent institutional activity: [net buying / net selling / stable]
|
||||||
|
|
||||||
|
### Analyst Consensus
|
||||||
|
- Ratings: {strong buy} strong buy / {buy} buy / {hold} hold / {sell} sell
|
||||||
|
- Recent actions: {last 2-3 upgrades/downgrades with firm names}
|
||||||
|
- Upcoming earnings: {date if within 30 days — FLAG if within 7 days}
|
||||||
|
|
||||||
|
### Dividend (if applicable)
|
||||||
|
- Yield: {%}
|
||||||
|
- Payout ratio: {%}
|
||||||
|
- Growth streak: {years}
|
||||||
|
|
||||||
### Signal: [BULLISH / BEARISH / NEUTRAL]
|
### Signal: [BULLISH / BEARISH / NEUTRAL]
|
||||||
### Confidence: {1-10}
|
### Confidence: {1-10}
|
||||||
### Key Risk: {one-line risk factor}
|
### Key Risk: {one-line}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
- Use ONLY data from the API responses — never fabricate financial figures
|
- Use ONLY data from API responses
|
||||||
- If an endpoint returns an error, note "Data unavailable" for that section
|
- Compare metrics to sector peers, not just absolute thresholds
|
||||||
- Keep the report under 400 words
|
- Flag **earnings within 7 days** as a major catalyst/risk
|
||||||
- Compare metrics to reasonable benchmarks (S&P 500 average PE ~22, ROE ~15%)
|
- Sortino > Sharpe for stocks with asymmetric return profiles
|
||||||
|
- High short interest + upcoming catalyst = potential squeeze
|
||||||
|
- Keep under 500 words
|
||||||
|
|||||||
@@ -1,37 +1,84 @@
|
|||||||
---
|
---
|
||||||
name: macro-analysis
|
name: macro-analysis
|
||||||
description: Macro environment analysis — rates, inflation, economic indicators, short pressure via openbb-invest-api
|
description: Professional macro environment analysis — rates, inflation, labor, leading indicators, credit conditions, sector implications via openbb-invest-api
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
metadata: { "openclaw": { "emoji": "🌍", "requires": { "bins": ["curl"] } } }
|
metadata: { "openclaw": { "emoji": "🌍", "requires": { "bins": ["curl"] } } }
|
||||||
---
|
---
|
||||||
|
|
||||||
# Macro Analysis
|
# Macro Analysis
|
||||||
|
|
||||||
Generate a structured macro environment report relevant to a given stock ticker.
|
Generate a professional-grade macro environment report. Think like a macro strategist at a multi-asset fund.
|
||||||
|
|
||||||
## Data Collection
|
## Data Collection
|
||||||
|
|
||||||
Fetch the following endpoints using `exec` tool:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
BASE=https://invest-api.k8s.home
|
BASE=https://invest-api.k8s.home
|
||||||
|
|
||||||
# 1. Macro overview (Fed rate, yields, CPI, unemployment, GDP, VIX)
|
# Headline indicators (Fed rate, yields, CPI, unemployment, GDP, VIX)
|
||||||
curl -sk "$BASE/api/v1/macro/overview"
|
curl -sk "$BASE/api/v1/macro/overview"
|
||||||
|
|
||||||
# 2. Yield curve (rate environment and inversion signal)
|
# Yield curve (rate environment, inversion = recession signal)
|
||||||
curl -sk "$BASE/api/v1/fixed-income/yield-curve"
|
curl -sk "$BASE/api/v1/fixed-income/yield-curve"
|
||||||
|
|
||||||
# 3. CPI (inflation trend)
|
# Full treasury rates (4W to 30Y)
|
||||||
|
curl -sk "$BASE/api/v1/fixed-income/treasury-rates"
|
||||||
|
|
||||||
|
# Effective Federal Funds Rate with percentiles
|
||||||
|
curl -sk "$BASE/api/v1/fixed-income/effr"
|
||||||
|
|
||||||
|
# SOFR (key benchmark rate)
|
||||||
|
curl -sk "$BASE/api/v1/fixed-income/sofr"
|
||||||
|
|
||||||
|
# Credit spreads (stress indicator)
|
||||||
|
curl -sk "$BASE/api/v1/fixed-income/spreads?series=tcm"
|
||||||
|
|
||||||
|
# Corporate bond yields (credit quality)
|
||||||
|
curl -sk "$BASE/api/v1/fixed-income/hqm"
|
||||||
|
|
||||||
|
# TIPS real yields (inflation expectations)
|
||||||
|
curl -sk "$BASE/api/v1/fixed-income/tips-yields"
|
||||||
|
|
||||||
|
# CPI inflation
|
||||||
curl -sk "$BASE/api/v1/macro/cpi?country=united_states"
|
curl -sk "$BASE/api/v1/macro/cpi?country=united_states"
|
||||||
|
|
||||||
# 4. Consumer sentiment (recession predictor)
|
# PCE (Fed's preferred inflation measure)
|
||||||
|
curl -sk "$BASE/api/v1/macro/pce"
|
||||||
|
|
||||||
|
# GDP
|
||||||
|
curl -sk "$BASE/api/v1/macro/gdp?gdp_type=real"
|
||||||
|
|
||||||
|
# Unemployment
|
||||||
|
curl -sk "$BASE/api/v1/macro/unemployment?country=united_states"
|
||||||
|
|
||||||
|
# Money supply
|
||||||
|
curl -sk "$BASE/api/v1/macro/money-measures"
|
||||||
|
|
||||||
|
# Composite Leading Indicator (recession predictor)
|
||||||
|
curl -sk "$BASE/api/v1/macro/cli?country=united_states"
|
||||||
|
|
||||||
|
# Consumer sentiment (recession leading indicator)
|
||||||
curl -sk "$BASE/api/v1/economy/surveys/michigan"
|
curl -sk "$BASE/api/v1/economy/surveys/michigan"
|
||||||
|
|
||||||
# 5. Short selling pressure on the specific stock
|
# Lending conditions (strongest recession signal)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/volume"
|
curl -sk "$BASE/api/v1/economy/surveys/sloos"
|
||||||
|
|
||||||
# 6. Short interest and days to cover
|
# Employment detail
|
||||||
|
curl -sk "$BASE/api/v1/economy/surveys/nonfarm-payrolls"
|
||||||
|
|
||||||
|
# Manufacturing outlook
|
||||||
|
curl -sk "$BASE/api/v1/economy/surveys/empire-state"
|
||||||
|
|
||||||
|
# Fed balance sheet
|
||||||
|
curl -sk "$BASE/api/v1/economy/central-bank-holdings"
|
||||||
|
|
||||||
|
# FOMC documents (policy direction)
|
||||||
|
curl -sk "$BASE/api/v1/economy/fomc-documents?year=2026"
|
||||||
|
|
||||||
|
# S&P 500 valuation context
|
||||||
|
curl -sk "$BASE/api/v1/index/sp500-multiples?series=pe_ratio"
|
||||||
|
|
||||||
|
# Short pressure on the specific stock
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/volume"
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/interest"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/interest"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -40,41 +87,57 @@ curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/interest"
|
|||||||
```
|
```
|
||||||
## Macro Environment for {TICKER} — {date}
|
## Macro Environment for {TICKER} — {date}
|
||||||
|
|
||||||
### Interest Rate Environment
|
### Rate Environment
|
||||||
- Fed Funds Rate: {rate}%
|
- Fed Funds Rate: {rate}% | EFFR: {rate}%
|
||||||
- 10Y Treasury: {rate}% | 2Y Treasury: {rate}%
|
- SOFR: {rate}%
|
||||||
- Yield curve: [normal / flat / inverted] — {spread}bps
|
- 2Y: {rate}% | 10Y: {rate}% | 30Y: {rate}%
|
||||||
- Rate outlook: [hawkish / dovish / neutral]
|
- Yield curve (10Y-2Y): {spread}bps — [normal / flat / inverted]
|
||||||
|
- Credit spreads: [tight = risk-on / widening = stress]
|
||||||
|
- TIPS real yield: {rate}% — [positive = tight policy / negative = accommodative]
|
||||||
|
- Rate outlook: [hawkish / dovish / neutral] based on FOMC tone
|
||||||
|
|
||||||
### Inflation
|
### Inflation
|
||||||
- CPI YoY: {%} — trend [rising / falling / stable]
|
- CPI YoY: {%} — trend [rising / falling / stable]
|
||||||
- PCE (if available): {%}
|
- PCE YoY: {%} — Fed target 2%, current gap: {bps}
|
||||||
- Implication: [Fed likely to cut / hold / raise]
|
- Money supply (M2): [growing / contracting]
|
||||||
|
- Implication: Fed likely to [cut / hold / raise]
|
||||||
|
|
||||||
### Economic Health
|
### Labor Market
|
||||||
- GDP growth: {%}
|
- Unemployment: {%} — [tight <4% / balanced / loosening >5%]
|
||||||
- Unemployment: {%}
|
- Nonfarm payrolls: {latest change}
|
||||||
- VIX: {level} — [low fear <15 / moderate 15-25 / high fear >25]
|
- Avg hourly earnings: {YoY %} — wage inflation [hot / moderate / cooling]
|
||||||
- Consumer sentiment (Michigan): {value} — [strong / weak / deteriorating]
|
|
||||||
|
|
||||||
### Short Pressure on {TICKER}
|
### Business Cycle Position
|
||||||
- Short volume: {%} of total volume — [low <20% / moderate / high >40%]
|
- GDP growth: {%} — [expansion / slowing / contraction]
|
||||||
- Short interest: {shares} ({days_to_cover} days to cover)
|
- CLI: {value} — [above 100 = expansion / below 100 = contraction / direction?]
|
||||||
- Signal: [short squeeze potential / bears in control / neutral]
|
- Michigan sentiment: {value} — [confident / cautious / pessimistic]
|
||||||
|
- Empire State: {value} — [expanding >0 / contracting <0]
|
||||||
|
- SLOOS: lending standards [tightening = recession risk / easing = expansion]
|
||||||
|
|
||||||
### Market Implications for {TICKER}
|
### Liquidity & Central Bank
|
||||||
- Sector sensitivity to rates: [high / moderate / low]
|
- Fed balance sheet: [expanding (QE) / shrinking (QT) / stable]
|
||||||
- Macro headwinds: {key risk}
|
- Corporate bond yields (HQM): AAA {%}, A {%} — credit stress level
|
||||||
- Macro tailwinds: {key opportunity}
|
|
||||||
|
### Market Valuation Context
|
||||||
|
- S&P 500 P/E: {value} vs historical avg (~18) — [cheap / fair / expensive]
|
||||||
|
- VIX: {level} — [complacent <15 / normal 15-20 / fearful 20-30 / panic >30]
|
||||||
|
|
||||||
|
### Implications for {TICKER}
|
||||||
|
- Sector rate sensitivity: [high / moderate / low] (e.g., REITs, banks, tech duration)
|
||||||
|
- Macro headwinds: {1-2 specific risks}
|
||||||
|
- Macro tailwinds: {1-2 specific opportunities}
|
||||||
|
- Short pressure: volume {%}, interest {days to cover}
|
||||||
|
|
||||||
### Signal: [FAVORABLE / UNFAVORABLE / MIXED]
|
### Signal: [FAVORABLE / UNFAVORABLE / MIXED]
|
||||||
### Confidence: {1-10}
|
### Confidence: {1-10}
|
||||||
### Key Risk: {one-line macro risk}
|
### Key Risk: {one-line macro risk for this stock}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
- Use ONLY data from the API responses — never fabricate economic figures
|
- **Yield curve inversion is the strongest recession predictor** — flag it prominently
|
||||||
- If an endpoint returns an error, note "Data unavailable" for that section
|
- **SLOOS tightening precedes recessions by 6-12 months** — critical leading indicator
|
||||||
- Keep the report under 400 words
|
- **CLI below 100 and falling = recession warning**
|
||||||
- Contextualize macro data for the specific stock's sector (e.g., rate-sensitive sectors like REITs, banks)
|
- **VIX > 30 = fear** — contrarian buy signal for quality stocks
|
||||||
|
- Contextualize for the specific stock's sector sensitivity
|
||||||
|
- Keep under 600 words (macro requires more context than other analyses)
|
||||||
|
|||||||
@@ -1,69 +1,102 @@
|
|||||||
---
|
---
|
||||||
name: market-analysis
|
name: market-analysis
|
||||||
description: Technical analysis report for a stock — trend, momentum, volatility, volume signals via openbb-invest-api
|
description: Professional technical analysis — trend structure, momentum, volatility regime, volume profile, support/resistance via openbb-invest-api
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
metadata: { "openclaw": { "emoji": "📊", "requires": { "bins": ["curl"] } } }
|
metadata: { "openclaw": { "emoji": "📊", "requires": { "bins": ["curl"] } } }
|
||||||
---
|
---
|
||||||
|
|
||||||
# Market Analysis
|
# Market Analysis (Technical)
|
||||||
|
|
||||||
Generate a structured technical analysis report for a given stock ticker.
|
Generate a professional-grade technical analysis report. Think like a prop desk trader.
|
||||||
|
|
||||||
## Data Collection
|
## Data Collection
|
||||||
|
|
||||||
Fetch the following endpoints using `exec` tool (all require `-sk` flag for self-signed TLS):
|
Fetch ALL of the following using `exec` tool. Run them in a single command joined by `&&`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
BASE=https://invest-api.k8s.home
|
BASE=https://invest-api.k8s.home
|
||||||
|
|
||||||
# 1. Composite technical indicators (RSI, MACD, SMA, EMA, Bollinger Bands)
|
# Core technicals (RSI, MACD, SMA, EMA, Bollinger)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/technical"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical"
|
||||||
|
|
||||||
# 2. Ichimoku Cloud (trend system)
|
# Trend system
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/ichimoku"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/ichimoku"
|
||||||
|
|
||||||
# 3. Historical prices (6 months for trend context)
|
# Trend strength
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/historical?days=180"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/adx"
|
||||||
|
|
||||||
# 4. ATR (volatility measure)
|
# Overbought/oversold oscillator
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/stoch"
|
||||||
|
|
||||||
|
# Volatility
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/atr"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/atr"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/kc"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/cones"
|
||||||
|
|
||||||
# 5. OBV (volume confirmation)
|
# Volume analysis
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/obv"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/obv"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/ad"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/vwap"
|
||||||
|
|
||||||
|
# Support/resistance
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/fib"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/donchian"
|
||||||
|
|
||||||
|
# Trend direction change
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/aroon"
|
||||||
|
|
||||||
|
# Cyclical analysis
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical/cci"
|
||||||
|
|
||||||
|
# Price history for context
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/historical?days=180"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Report Structure
|
## Report Structure
|
||||||
|
|
||||||
Produce a concise report in this format:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
## {TICKER} Technical Analysis — {date}
|
## {TICKER} Technical Analysis — {date}
|
||||||
|
|
||||||
### Price Trend
|
### Trend Structure
|
||||||
- SMA 20/50/200 alignment: [golden cross / death cross / neutral]
|
- Primary trend: [uptrend / downtrend / range-bound]
|
||||||
- Price position: [above/below] 50-day SMA
|
- SMA 20/50/200 alignment: [bullish stacking / bearish stacking / tangled]
|
||||||
- Ichimoku: price [above/below] cloud, [bullish/bearish] TK cross
|
- Ichimoku: price vs cloud, TK cross, Chikou confirmation
|
||||||
|
- ADX: {value} — trend strength [no trend <20 / trending 20-40 / strong >40]
|
||||||
|
- Aroon: up {value} / down {value} — [new uptrend / new downtrend / consolidation]
|
||||||
|
|
||||||
### Momentum
|
### Momentum
|
||||||
- RSI(14): {value} — [overbought >70 / oversold <30 / neutral]
|
- RSI(14): {value} — [overbought >70 / oversold <30 / divergence?]
|
||||||
- MACD: signal line [bullish/bearish] crossover, histogram [expanding/contracting]
|
- MACD: histogram {value}, signal cross [bullish/bearish], momentum [accelerating/decelerating]
|
||||||
|
- Stochastic: %K {value}, %D {value} — [overbought >80 / oversold <20 / cross?]
|
||||||
|
- CCI: {value} — [overbought >100 / oversold <-100 / neutral]
|
||||||
|
|
||||||
### Volatility
|
### Volatility Regime
|
||||||
- Bollinger Bands: price at [upper/middle/lower] band, bandwidth [wide/narrow]
|
- ATR(14): {value} — vs 20-day avg [expanding/contracting]
|
||||||
- ATR(14): {value} — trend [expanding/contracting] vs 20-day average
|
- Bollinger bandwidth: [squeeze / normal / expansion]
|
||||||
|
- Keltner Channels: price position [above upper / within / below lower]
|
||||||
|
- Volatility Cones: current IV vs historical quantiles [cheap / fair / expensive]
|
||||||
|
|
||||||
### Volume
|
### Volume Profile
|
||||||
- OBV: [confirming/diverging] from price trend
|
- OBV trend: [confirming price / bearish divergence / bullish divergence]
|
||||||
- Recent volume vs 20-day average: [above/below] by {%}
|
- A/D Line: [accumulation / distribution / neutral]
|
||||||
|
- VWAP: price vs VWAP [above = bullish bias / below = bearish bias]
|
||||||
|
|
||||||
|
### Key Levels
|
||||||
|
- Fibonacci retracements: 23.6% ${}, 38.2% ${}, 50% ${}, 61.8% ${}
|
||||||
|
- Donchian: upper ${}, lower ${}, midline ${}
|
||||||
|
- Nearest support: ${}
|
||||||
|
- Nearest resistance: ${}
|
||||||
|
|
||||||
### Signal: [BULLISH / BEARISH / NEUTRAL]
|
### Signal: [BULLISH / BEARISH / NEUTRAL]
|
||||||
### Confidence: {1-10}
|
### Confidence: {1-10}
|
||||||
### Key Risk: {one-line risk factor}
|
### Timeframe: [intraday / swing / position]
|
||||||
|
### Key Risk: {one-line, e.g. "bearish divergence on RSI + volume declining"}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
- Use ONLY data from the API responses — never fabricate indicator values
|
- Use ONLY data from API responses — never fabricate indicator values
|
||||||
- If an endpoint returns an error or empty data, note "Data unavailable" for that section
|
- If an endpoint fails, note "Data unavailable" and continue
|
||||||
- Keep the report under 400 words
|
- Look for **confluence** — multiple indicators agreeing strengthens the signal
|
||||||
- End with a clear directional signal and confidence score
|
- Look for **divergences** — price vs RSI, price vs OBV, price vs A/D
|
||||||
|
- Keep under 500 words
|
||||||
|
|||||||
@@ -1,35 +1,59 @@
|
|||||||
---
|
---
|
||||||
name: sentiment-analysis
|
name: sentiment-analysis
|
||||||
description: Sentiment analysis report — news sentiment, insider activity, social media, analyst actions via openbb-invest-api
|
description: Professional sentiment analysis — multi-source sentiment scoring, insider flow, smart money tracking, social signals via openbb-invest-api
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
metadata: { "openclaw": { "emoji": "🎭", "requires": { "bins": ["curl"] } } }
|
metadata: { "openclaw": { "emoji": "🎭", "requires": { "bins": ["curl"] } } }
|
||||||
---
|
---
|
||||||
|
|
||||||
# Sentiment Analysis
|
# Sentiment Analysis
|
||||||
|
|
||||||
Generate a structured sentiment analysis report for a given stock ticker.
|
Generate a professional-grade sentiment report. Think like a sentiment quant — track smart money, not retail noise.
|
||||||
|
|
||||||
## Data Collection
|
## Data Collection
|
||||||
|
|
||||||
Fetch the following endpoints using `exec` tool:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
BASE=https://invest-api.k8s.home
|
BASE=https://invest-api.k8s.home
|
||||||
|
|
||||||
# 1. Composite sentiment score (aggregated from multiple sources)
|
# Composite sentiment score (aggregated multi-source)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/sentiment"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/sentiment"
|
||||||
|
|
||||||
# 2. Per-article news sentiment scores (bullish/bearish)
|
# Per-article news sentiment (Alpha Vantage)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/news-sentiment?limit=20"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/news-sentiment?limit=30"
|
||||||
|
|
||||||
# 3. Insider trades (SEC Form 4 — buys vs sells)
|
# Insider trades (SEC Form 4 — CEO/CFO buys and sells)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/insider-trades"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/insider-trades"
|
||||||
|
|
||||||
# 4. SEC insider filings
|
# SEC insider filings (detailed Form 4)
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/sec-insider"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/sec-insider"
|
||||||
|
|
||||||
# 5. Recent upgrades/downgrades
|
# Recent upgrades/downgrades
|
||||||
curl -sk "$BASE/api/v1/stock/{TICKER}/upgrades"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/upgrades"
|
||||||
|
|
||||||
|
# Analyst recommendations count
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/recommendations"
|
||||||
|
|
||||||
|
# Reddit sentiment and mentions
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/reddit-sentiment"
|
||||||
|
|
||||||
|
# Social sentiment (Finnhub — Reddit + Twitter)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/social-sentiment"
|
||||||
|
|
||||||
|
# Institutional holders (13F — smart money positions)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/institutional"
|
||||||
|
|
||||||
|
# Short selling pressure
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/volume"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/interest"
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/ftd"
|
||||||
|
|
||||||
|
# Dark pool activity (institutional block trades)
|
||||||
|
curl -sk "$BASE/api/v1/darkpool/{TICKER}/otc"
|
||||||
|
|
||||||
|
# Share statistics (float, short % of float)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/share-statistics"
|
||||||
|
|
||||||
|
# Congress trades (political insider trading)
|
||||||
|
curl -sk "$BASE/api/v1/regulators/congress/trades"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Report Structure
|
## Report Structure
|
||||||
@@ -37,32 +61,58 @@ curl -sk "$BASE/api/v1/stock/{TICKER}/upgrades"
|
|||||||
```
|
```
|
||||||
## {TICKER} Sentiment Analysis — {date}
|
## {TICKER} Sentiment Analysis — {date}
|
||||||
|
|
||||||
### Overall Sentiment Score
|
### Composite Sentiment
|
||||||
- Composite: {score} (-1.0 to +1.0) — [strongly bearish / bearish / neutral / bullish / strongly bullish]
|
- Score: {value} (-1.0 to +1.0) — [strongly bearish / bearish / neutral / bullish / strongly bullish]
|
||||||
- Source breakdown: news {score}, analyst {score}, social {score}
|
- Breakdown: news {score}, analysts {score}, upgrades {score}, social {score}
|
||||||
|
|
||||||
### News Sentiment
|
### News Flow
|
||||||
- Articles analyzed: {count}
|
- Articles analyzed: {count}
|
||||||
- Bullish: {count} ({%}) | Neutral: {count} ({%}) | Bearish: {count} ({%})
|
- Sentiment distribution: {bullish}% bullish / {neutral}% neutral / {bearish}% bearish
|
||||||
- Key headlines: {top 2-3 relevant headlines with sentiment}
|
- Dominant themes: {top 2-3 topics}
|
||||||
|
- Notable headlines: {1-2 most impactful}
|
||||||
|
|
||||||
### Insider Activity (last 90 days)
|
### Smart Money Signals
|
||||||
- Net insider transactions: {net buy/sell}
|
#### Insider Activity (last 90 days)
|
||||||
- Notable trades: {largest insider buy or sell with name and title}
|
- Net insider transactions: {count buys} buys / {count sells} sells = {net}
|
||||||
- Signal: [insiders buying = bullish / insiders selling = bearish / mixed]
|
- Notable: {largest trade with name, title, amount}
|
||||||
|
- Signal: [strong buy signal / selling for diversification / red flag]
|
||||||
|
|
||||||
|
#### Institutional Flow
|
||||||
|
- Major holders: {top 3 names if available}
|
||||||
|
- Recent 13F activity: [net accumulation / net distribution / stable]
|
||||||
|
|
||||||
|
#### Congress Trades
|
||||||
|
- Any recent trades in {TICKER}: [yes — details / none found]
|
||||||
|
|
||||||
|
### Short Selling Intelligence
|
||||||
|
- Short volume: {%} of daily volume — [normal <25% / elevated 25-40% / extreme >40%]
|
||||||
|
- Short interest: {shares} ({days_to_cover} days to cover)
|
||||||
|
- Short % of float: {%} — [low <5% / moderate / crowded >15%]
|
||||||
|
- Fails-to-deliver: {trend} — [rising = naked shorting concern / stable / declining]
|
||||||
|
- Dark pool volume: {%} of total — [normal / elevated institutional activity]
|
||||||
|
- Squeeze potential: [low / moderate / high] based on short interest + days to cover + catalyst
|
||||||
|
|
||||||
### Analyst Actions (last 30 days)
|
### Analyst Actions (last 30 days)
|
||||||
- Upgrades: {count} | Downgrades: {count}
|
- Upgrades: {count} | Downgrades: {count}
|
||||||
- Notable: {most recent significant upgrade/downgrade with firm name}
|
- Most significant: {firm, action, price target}
|
||||||
|
- Consensus shift: [improving / deteriorating / stable]
|
||||||
|
|
||||||
|
### Social & Retail
|
||||||
|
- Reddit mentions rank: #{rank} in WSB/stocks
|
||||||
|
- Reddit sentiment: {bullish/bearish/mixed}
|
||||||
|
- Social media buzz: [trending up / stable / fading]
|
||||||
|
- ⚠️ Note: Social sentiment is a contrarian indicator at extremes
|
||||||
|
|
||||||
### Signal: [BULLISH / BEARISH / NEUTRAL]
|
### Signal: [BULLISH / BEARISH / NEUTRAL]
|
||||||
### Confidence: {1-10}
|
### Confidence: {1-10}
|
||||||
### Key Risk: {one-line sentiment risk}
|
### Key Insight: {the single most actionable sentiment finding}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
- Use ONLY data from the API responses — never fabricate sentiment scores
|
- **Smart money > retail noise**: Weight insider buys and institutional flow higher than Reddit
|
||||||
- If an endpoint returns an error, note "Data unavailable" for that section
|
- Insider buying is a strong signal (insiders buy for one reason: they expect the price to go up)
|
||||||
- Keep the report under 400 words
|
- Insider selling is a weak signal (insiders sell for many reasons: taxes, diversification, estate planning)
|
||||||
- Insider buying is a stronger signal than insider selling (insiders sell for many reasons, but buy for one)
|
- High short interest alone is not bearish — combine with catalyst for squeeze assessment
|
||||||
|
- Congress trades within 30 days of legislation = potential MNPI concern
|
||||||
|
- Keep under 500 words
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: trade-analyze
|
name: trade-analyze
|
||||||
description: "Deep trading analysis with multi-agent debate. Use sessions_spawn to delegate to invest-bull, invest-bear, invest-hawk, invest-dove. Triggered by /trade-analyze or deep analysis requests."
|
description: "Deep trading analysis with multi-agent debate. Collects comprehensive data, spawns Bull/Bear/Hawk/Dove agents for debate, outputs final verdict. Use when user says /trade-analyze or wants deep analysis."
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
metadata: { "openclaw": { "emoji": "⚖️", "requires": { "bins": ["curl"] } } }
|
metadata: { "openclaw": { "emoji": "⚖️", "requires": { "bins": ["curl"] } } }
|
||||||
---
|
---
|
||||||
@@ -9,68 +9,93 @@ metadata: { "openclaw": { "emoji": "⚖️", "requires": { "bins": ["curl"] } }
|
|||||||
|
|
||||||
**You are the judge. Debate agents work in the background via sessions_spawn. Only YOU post to Discord.**
|
**You are the judge. Debate agents work in the background via sessions_spawn. Only YOU post to Discord.**
|
||||||
|
|
||||||
**IMPORTANT: Use `sessions_spawn` (NOT sessions_send). sessions_send will timeout due to gateway architecture.**
|
**IMPORTANT: Use `sessions_spawn` (NOT sessions_send — it will timeout).**
|
||||||
|
|
||||||
## Step 1: Collect Data
|
## Step 1: Collect Data
|
||||||
|
|
||||||
Run these curl commands using the `exec` tool:
|
Run these curl commands using `exec`. Combine into one command for speed:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -sk "https://invest-api.k8s.home/api/v1/stock/{TICKER}/technical"
|
BASE=https://invest-api.k8s.home
|
||||||
curl -sk "https://invest-api.k8s.home/api/v1/stock/{TICKER}/metrics"
|
|
||||||
curl -sk "https://invest-api.k8s.home/api/v1/stock/{TICKER}/sentiment"
|
# All-in-one summary (quote + profile + metrics + financials)
|
||||||
curl -sk "https://invest-api.k8s.home/api/v1/macro/overview"
|
curl -sk "$BASE/api/v1/stock/{TICKER}/summary"
|
||||||
|
|
||||||
|
# Technical composite (RSI, MACD, SMA, EMA, Bollinger + signals)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/technical"
|
||||||
|
|
||||||
|
# Composite sentiment (news + analysts + reddit + upgrades)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/sentiment"
|
||||||
|
|
||||||
|
# Macro overview (Fed rate, yields, CPI, unemployment, GDP, VIX)
|
||||||
|
curl -sk "$BASE/api/v1/macro/overview"
|
||||||
|
|
||||||
|
# Analyst price targets and recent upgrades/downgrades
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/upgrades"
|
||||||
|
|
||||||
|
# Short selling pressure
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/shorts/volume"
|
||||||
|
|
||||||
|
# CAPM risk decomposition
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/capm"
|
||||||
|
|
||||||
|
# Sortino ratio (downside risk)
|
||||||
|
curl -sk "$BASE/api/v1/stock/{TICKER}/sortino?days=365"
|
||||||
```
|
```
|
||||||
|
|
||||||
Summarize key data points (under 500 words).
|
Summarize key data points into a concise data package (under 600 words) covering:
|
||||||
|
- Price, PE, ROE, revenue growth, beta
|
||||||
|
- RSI, MACD, SMA alignment, Bollinger position
|
||||||
|
- Sentiment score, insider activity, analyst consensus
|
||||||
|
- Fed rate, yield curve, VIX
|
||||||
|
- Short interest, CAPM alpha
|
||||||
|
- Sortino ratio
|
||||||
|
|
||||||
## Step 2: Bull Case
|
## Step 2: Bull Case
|
||||||
|
|
||||||
Use the `sessions_spawn` tool:
|
Use `sessions_spawn`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"task": "You are the Bull Researcher. Based on the following data for {TICKER}, build your bullish investment thesis with 3-5 specific data-backed arguments. Keep under 400 words.\n\nData:\n{data summary}",
|
"task": "You are the Bull Researcher for {TICKER}. Build your bullish thesis with 3-5 data-backed arguments. Include entry price, target, and timeframe. Under 400 words.\n\nData:\n{data package}",
|
||||||
"agentId": "invest-bull",
|
"agentId": "invest-bull",
|
||||||
"label": "bull-{TICKER}"
|
"label": "bull-{TICKER}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
sessions_spawn returns immediately with `{ status: "accepted", runId }`. The result will be announced back to you automatically when Bull finishes. **Wait for the announce before proceeding.**
|
**Wait for announce before proceeding.**
|
||||||
|
|
||||||
## Step 3: Bear Case
|
## Step 3: Bear Case
|
||||||
|
|
||||||
After receiving Bull's result, use `sessions_spawn`:
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"task": "You are the Bear Researcher. For {TICKER}, Bull argued:\n\n{Bull's argument}\n\nBuild your bearish counter-argument with 3-5 specific data-backed points. Keep under 400 words.",
|
"task": "You are the Bear Researcher for {TICKER}. Bull argued:\n\n{Bull's argument}\n\nCounter with 3-5 data-backed bearish points. Under 400 words.",
|
||||||
"agentId": "invest-bear",
|
"agentId": "invest-bear",
|
||||||
"label": "bear-{TICKER}"
|
"label": "bear-{TICKER}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Wait for Bear's announce.
|
**Wait for announce.**
|
||||||
|
|
||||||
## Step 4: Bull Rebuttal (FINAL)
|
## Step 4: Bull Rebuttal (FINAL)
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"task": "You are the Bull Researcher. Bear responded:\n\n{Bear's argument}\n\nThis is your FINAL rebuttal. Counter Bear's strongest point. Keep under 300 words.",
|
"task": "FINAL rebuttal for {TICKER}. Bear argued:\n\n{Bear's argument}\n\nCounter Bear's strongest point. State your final conviction. Under 300 words.",
|
||||||
"agentId": "invest-bull",
|
"agentId": "invest-bull",
|
||||||
"label": "bull-final-{TICKER}"
|
"label": "bull-final-{TICKER}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**STOP Bull/Bear debate after this. Maximum 3 spawns for Bull/Bear.**
|
**STOP Bull/Bear after this. Maximum 3 spawns.**
|
||||||
|
|
||||||
## Step 5: Hawk Risk
|
## Step 5: Hawk Risk
|
||||||
|
|
||||||
Formulate a trading proposal, then:
|
Formulate a preliminary trading proposal based on the debate, then:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"task": "You are the Hawk (aggressive) Risk Analyst. Evaluate this {TICKER} trading proposal. Propose position size, entry, stop-loss with specific numbers.\n\nProposal: {direction, entry, stop, target}",
|
"task": "Aggressive risk assessment for {TICKER}. Propose position size, entry, stop-loss, target with exact numbers.\n\nProposal: {BUY/SELL at $X, stop $Y, target $Z}\nBull case: {summary}\nBear case: {summary}",
|
||||||
"agentId": "invest-hawk",
|
"agentId": "invest-hawk",
|
||||||
"label": "hawk-{TICKER}"
|
"label": "hawk-{TICKER}"
|
||||||
}
|
}
|
||||||
@@ -80,15 +105,15 @@ Formulate a trading proposal, then:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"task": "You are the Dove (conservative) Risk Analyst. Hawk proposed:\n\n{Hawk response}\n\nEvaluate from capital preservation perspective. Propose safer sizing.\n\nKeep under 300 words.",
|
"task": "Conservative risk assessment for {TICKER}. Hawk proposed:\n\n{Hawk's response}\n\nPropose safer position sizing and entry strategy. Under 300 words.",
|
||||||
"agentId": "invest-dove",
|
"agentId": "invest-dove",
|
||||||
"label": "dove-{TICKER}"
|
"label": "dove-{TICKER}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 7: Final Verdict (ONLY output to Discord)
|
## Step 7: Final Verdict
|
||||||
|
|
||||||
After all spawns complete, synthesize and output:
|
After ALL 5 spawns complete, synthesize and output this **single message** to Discord:
|
||||||
|
|
||||||
```
|
```
|
||||||
# ⚖️ Trading Verdict: {TICKER}
|
# ⚖️ Trading Verdict: {TICKER}
|
||||||
@@ -97,7 +122,18 @@ After all spawns complete, synthesize and output:
|
|||||||
## Confidence: {1-10}/10
|
## Confidence: {1-10}/10
|
||||||
|
|
||||||
### Summary
|
### Summary
|
||||||
{2-3 sentences}
|
{2-3 sentences — the core thesis}
|
||||||
|
|
||||||
|
### 📊 Data Snapshot
|
||||||
|
| Metric | Value | Signal |
|
||||||
|
|--------|-------|--------|
|
||||||
|
| Price | ${} | - |
|
||||||
|
| P/E | {} | {cheap/fair/rich} |
|
||||||
|
| RSI | {} | {OB/OS/neutral} |
|
||||||
|
| MACD | {} | {bull/bear cross} |
|
||||||
|
| Sentiment | {} | {bull/bear/neutral} |
|
||||||
|
| Short Interest | {}% | {low/mod/high} |
|
||||||
|
| VIX | {} | {fear level} |
|
||||||
|
|
||||||
### Entry Plan
|
### Entry Plan
|
||||||
| Item | Value |
|
| Item | Value |
|
||||||
@@ -107,34 +143,42 @@ After all spawns complete, synthesize and output:
|
|||||||
| Stop-loss | ${price} ({%} risk) |
|
| Stop-loss | ${price} ({%} risk) |
|
||||||
| Target | ${price} ({%} upside) |
|
| Target | ${price} ({%} upside) |
|
||||||
| Position | {%} of portfolio |
|
| Position | {%} of portfolio |
|
||||||
|
| Timeframe | {weeks/months} |
|
||||||
|
| Risk:Reward | {ratio} |
|
||||||
|
|
||||||
### 🐂 Bull Case
|
### 🐂 Bull Case
|
||||||
1. {point}
|
1. {strongest data-backed point}
|
||||||
2. {point}
|
2. {second point}
|
||||||
3. {point}
|
3. {third point}
|
||||||
|
|
||||||
### 🐻 Bear Case
|
### 🐻 Bear Case
|
||||||
1. {point}
|
1. {strongest data-backed point}
|
||||||
2. {point}
|
2. {second point}
|
||||||
3. {point}
|
3. {third point}
|
||||||
|
|
||||||
### Risk Assessment
|
### Risk Assessment
|
||||||
| Analyst | Position | Stop | View |
|
| Analyst | Position | Stop | Strategy |
|
||||||
|---------|----------|------|------|
|
|---------|----------|------|----------|
|
||||||
| 🦅 Hawk | {%} | ${} | {line} |
|
| 🦅 Hawk | {%} | ${} | {approach} |
|
||||||
| 🕊️ Dove | {%} | ${} | {line} |
|
| 🕊️ Dove | {%} | ${} | {approach} |
|
||||||
| **Final** | **{%}** | **${}** | **{why}** |
|
| **Adopted** | **{%}** | **${}** | **{rationale}** |
|
||||||
|
|
||||||
|
### ⚠️ Catalysts & Risks
|
||||||
|
- Upcoming: {earnings date, ex-div date, FOMC meeting if relevant}
|
||||||
|
- Key risk: {single biggest risk}
|
||||||
|
- Key catalyst: {single biggest upside trigger}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 8: Save to Memory
|
## Step 8: Save to Memory
|
||||||
|
|
||||||
Write decision to today's memory log.
|
Write decision summary to today's memory log.
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
1. **Use `sessions_spawn`** with `agentId` — NOT sessions_send (it will timeout)
|
1. **Use `sessions_spawn`** with `agentId` — NOT sessions_send
|
||||||
2. **Wait for each announce** before spawning the next agent
|
2. **Wait for each announce** before spawning next
|
||||||
3. **Only YOU post to Discord** — spawn agents are silent
|
3. **Only YOU post to Discord** — spawn agents are silent
|
||||||
4. **Max spawns**: Bull(2) + Bear(1) + Hawk(1) + Dove(1) = 5 total
|
4. **Max 5 spawns**: Bull(2) + Bear(1) + Hawk(1) + Dove(1)
|
||||||
5. If spawn times out, skip and continue
|
5. If spawn times out, note it and continue
|
||||||
6. **Never use @ mentions**
|
6. **Never use @ mentions**
|
||||||
|
7. The verdict should be ONE comprehensive message, not multiple
|
||||||
|
|||||||
Reference in New Issue
Block a user