🧠 All Projects
📐

Hedge PRD Update - AI, News, Charts

P2 - Medium
Spec Hedge

PRD Additions (2026-02-16)

1. AI Integration

Models by Use Case:

  • News Sentiment: Claude Haiku / GPT-4o-mini (fast, cheap)
  • Strategy Analysis: Claude Sonnet / GPT-4.1 (complex reasoning)
  • Pattern Recognition: Custom ML (LSTM/Transformer) - NOT LLM
  • Opportunity Spotting: Hybrid (ML signals + LLM explanation)
  • Conversational Q&A: Claude Opus

Key Insight: LLMs hallucinate numbers. Use traditional ML for quantitative signals, LLMs for sentiment and explanation.

2. News Engine (Mini Bloomberg)

Alpaca Provides (via Benzinga):

  • 250 articles + 900 headlines per day
  • Real-time WebSocket: wss://stream.data.alpaca.markets/v1beta1/news
  • Historical data back to 2015
  • Stock and crypto coverage

Additional Sources to Build:

  • X/Twitter API: Breaking news, real-time sentiment
  • Reddit API: r/wallstreetbets, r/stocks
  • StockTwits: Trader sentiment
  • SEC EDGAR: 8-K, 10-Q filings
  • Earnings call transcripts

Pipeline:
News Sources → Aggregator → AI Sentiment (Haiku) → Sentiment Score → Trading Signal

3. Charts

Library: TradingView Lightweight Charts

  • Open source (Apache 2.0)
  • Same tech as TradingView.com
  • ~40kb bundle size
  • Candlesticks, line, area charts

Technical Indicators:

  • Moving Averages: SMA, EMA (20/50/200 day)
  • Bollinger Bands
  • RSI (Relative Strength Index)
  • MACD
  • Volume bars
  • Support/Resistance lines
  • Strategy signal overlays (buy/sell markers)

Alternative: Full TradingView embed widget (more features, less control)

Created: Mon, Feb 16, 2026, 3:16 PM by bob

Updated: Mon, Feb 16, 2026, 3:16 PM

Last accessed: Sat, Mar 7, 2026, 7:38 PM

ID: c0502471-4a11-4a74-a265-cc45506bc086