๐ฎ The Contrarian Oracle
An Autonomous Multi-Agent OSINT System for Financial Narrative Deconstruction
What Is This?
The Contrarian Oracle uses 4 collaborative AI agents (built with CrewAI) to perform a "Red Team" analysis on any stock ticker. It identifies the dominant market narrative, actively searches for contradicting evidence, and produces a Divergence Score (0-100) that quantifies how much hidden risk the mainstream narrative is ignoring.
โ ๏ธ This is NOT a price prediction tool. It is an information arbitrage system.
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ STREAMLIT UI (app.py) โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโ โ
โ โ Sidebar โ โ Charts โ โ Agent โ โ Report โ โ
โ โ Controls โ โ (Plotly) โ โ Stream โ โ View โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CREW ORCHESTRATION โ
โ (src/crew/oracle_crew.py) โ
โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Agent 1: โ โ Agent 2: โ (Independent) โ
โ โ Trend โ โ Sentiment โ โ
โ โ Scraper โ โ Synthesizer โ โ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โ
โ โ โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโ โ
โ โ Agent 3: โ (Receives 1 + 2) โ
โ โ Contrarian โ โ
โ โ Skeptic โ โ
โ โโโโโโโโฌโโโโโโโโ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโ โ
โ โ Agent 4: โ (Receives 1 + 2 + 3) โ
โ โ Final โ โ
โ โ Arbitrator โ โ
โ โโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ TOOLS LAYER โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโ โ
โ โ yfinance โ โ DuckDuck โ โ SEC โ โ FRED โ โ
โ โ Tool โ โ Go News โ โ EDGAR โ โ Macro โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ RAG (ChromaDB + Sentence-Transformers)โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SCORING ENGINE โ
โ (src/scoring/divergence_calculator.py) โ
โ โ
โ Score = 0.25รTechnical + 0.20รSentiment โ
โ + 0.25รInsider + 0.15รFundamental โ
โ + 0.15รMacro โ
โ โ
โ 0-20: Consensus Aligned โ 61-80: High Alert โ
โ 21-40: Minor Cracks โ 81-100: Extreme Divergence โ
โ 41-60: Significant Div. โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
|