GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - divamvak/Finance-Supervisor: Multi-agent market-intelligence system: a LangGraph Supervisor orchestrates 4 specialist agents that fetch real-time market data (Yahoo Finance, CoinGecko) and analyze it from different angles.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
reports
reports
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
agents.py
agents.py
 
 
requirements.txt
requirements.txt
 
 
supervisor.py
supervisor.py
 
 

Repository files navigation

Finance Supervisor — Market Intelligence Agent

A multi-agent financial research system built with LangGraph Supervisor. Ask a question in natural language and a team of 4 specialist agents fetches real-time data, analyzes it from different angles, and produces a structured Markdown investment report.

What it does

Natural language query
        ↓
   Supervisor LLM
   (orchestrates the team)
        ↓
┌─────────────────┐  ┌──────────────────┐  ┌──────────────────┐
│ Fundamental     │  │ Technical        │  │ Sentiment        │
│ Analyst         │  │ Analyst          │  │ Analyst          │
│ P/E, margins,   │  │ Price history,   │  │ News headlines,  │
│ ATH, tokenomics │  │ trend, volatility│  │ market themes    │
└─────────────────┘  └──────────────────┘  └──────────────────┘
        ↓
   Report Writer
   (synthesizes all findings)
        ↓
   Markdown report with:
   - Executive summary
   - Comparative data table
   - Per-asset analysis
   - Risk assessment
   - Investment recommendation

Project structure

finance-deep-agent/
├── tools/
│   ├── stock_tools.py    ← yfinance tools (price, fundamentals, history, news)
│   └── crypto_tools.py   ← CoinGecko tools (price, fundamentals, history)
├── agents.py             ← 4 specialist agents defined with create_react_agent
├── supervisor.py         ← Supervisor graph + CLI entry point
├── reports/              ← Generated reports saved here
└── requirements.txt

Setup

uv venv
uv pip install -r requirements.txt

Create a .env file:

ANTHROPIC_API_KEY=your-key-here

# Optional: LangSmith tracing
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=your-langsmith-key
LANGCHAIN_PROJECT=finance-supervisor

Usage

Interactive

python supervisor.py

Direct query

python supervisor.py -q "Analyze AAPL for long-term investment"
python supervisor.py -q "Compare MSFT vs NVDA"
python supervisor.py -q "Compare BTC vs ETH — which is better for 2026?"
python supervisor.py -q "Compare AAPL vs BTC vs ETH"

Reports are saved automatically to reports/.

The 4 agents

Agent Tools Role
fundamental_analyst get_stock_price, get_stock_fundamentals, get_crypto_price, get_crypto_fundamentals Valuation, P/E, margins, ATH, tokenomics
technical_analyst get_stock_history, get_crypto_history Price trends, momentum, volatility
sentiment_analyst get_asset_news Recent news headlines, market themes
report_writer (none) Synthesizes all findings into a Markdown report

How it works

The system uses the Supervisor pattern from langgraph-supervisor:

  1. The Supervisor LLM receives the user query and decides which agent to call first
  2. Each specialist agent runs independently with only the tools it needs
  3. After all 3 analysts finish, the Report Writer reads the full conversation and synthesizes the final report
  4. The supervisor returns the report writer's output as the final result

Unlike a single ReAct agent that does everything, each specialist here has a focused context — fewer tools, clearer role, better output quality.

Supported assets

  • Stocks: any valid ticker (AAPL, MSFT, NVDA, TSLA, ...)
  • Crypto: BTC, ETH, BNB, SOL, XRP, ADA, DOGE, DOT, AVAX, MATIC (or any CoinGecko id)

Tech stack

  • LangGraph — agent graph runtime
  • langgraph-supervisor — supervisor orchestration pattern
  • LangChain Anthropic — Claude Haiku
  • yfinance — Yahoo Finance data (stocks + news)
  • httpx — CoinGecko API calls (crypto)

About

Multi-agent market-intelligence system: a LangGraph Supervisor orchestrates 4 specialist agents that fetch real-time market data (Yahoo Finance, CoinGecko) and analyze it from different angles.

Topics

ai-agentsfinancelanggraphlangsmithmulti-agentpythonsupervisor-agent

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.