Skip to main content

AI agents and tools for the retail investor

Project description

๐Ÿค– Navam Invest

AI-Powered Investment Advisor for Retail Investors

PyPI version Python Version License: MIT Downloads Code style: black

Features โ€ข Quick Start โ€ข Agents โ€ข API Sources โ€ข Examples โ€ข Documentation


๐Ÿ†• What's New in v0.1.27

Earnings Whisperer Agent - Specialized earnings analysis and trading opportunities:

  • โœจ New Agent: Earnings Whisperer for earnings surprise analysis, post-earnings drift detection, and momentum tracking
  • โœจ 14 Specialized Tools: Earnings data (Yahoo), market analysis, analyst coverage, SEC 8-K filings, news
  • โœจ 5-Step Framework: History analysis, drift detection, analyst tracking, calendar monitoring, catalyst integration
  • โœจ TUI Command: /earnings to switch to Earnings Whisperer agent
  • โœจ Pattern Recognition: Consistent beaters, accelerating beats, drift opportunities, quality issues

Analysis Capabilities:

  • Earnings Momentum: Identify stocks with 3+ consecutive quarters beating estimates
  • Post-Earnings Drift: Detect underreaction opportunities (1-3 days after earnings)
  • Analyst Revisions: Track estimate changes and rating upgrades post-earnings
  • Earnings Quality: Flag revenue misses vs. EPS beats, non-recurring items
  • Trading Signals: BUY (drift play), HOLD (wait), SELL (negative momentum)

Previous Release: v0.1.26 - Yahoo Finance + Enhanced SEC EDGAR Integration


๐Ÿ“– Overview

navam-invest brings institutional-grade portfolio intelligence to individual retail investors. Built with LangGraph and powered by Anthropic's Claude, it provides specialized AI agents that collaborate through multi-agent workflows for equity research, systematic screening, macro analysis, and portfolio managementโ€”all accessible through an interactive terminal interface.

Why Navam Invest?

  • ๐ŸŽฏ Multi-Agent Workflows: Coordinated agent collaboration for comprehensive analysis
  • ๐Ÿค– Specialized Agents: 7 purpose-built agents (Quill, Earnings Whisperer, Screen Forge, Macro Lens, Atlas, Portfolio, Research)
  • ๐Ÿ“Š Institutional Data: Yahoo Finance + Enhanced EDGAR + 8 premium APIs (all free tiers)
  • ๐Ÿ”’ Privacy-First: Run locally with your own API keysโ€”your data stays yours
  • ๐Ÿ’ก Transparent: Full audit trails and explainable AI reasoning with real-time streaming
  • ๐Ÿ†“ Zero Additional Cost: Yahoo Finance + EDGAR tools require no API keys
  • ๐Ÿ”ง Extensible: Modular architecture makes it easy to add new agents and workflows

โœจ Features

๐Ÿค– Specialized AI Agents (Powered by LangGraph)

Quill - Equity Research โญ Enhanced v0.1.26

Deep fundamental analysis & thesis building

NEW Capabilities:

  • โœจ Real-time earnings trends & surprises (Yahoo Finance)
  • โœจ Analyst consensus & price targets (Yahoo Finance)
  • โœจ Institutional ownership tracking (Yahoo Finance)
  • โœจ Material event detection (8-K filings)
  • โœจ XBRL structured data extraction
  • โœจ Insider transaction patterns (Form 4)

Core Capabilities:

  • Investment thesis development
  • DCF & comparable company valuation
  • 5-year historical fundamentals (Tiingo)
  • Quarterly earnings tracking
  • SEC filings analysis (10-K, 10-Q, 8-K)
  • Company-specific news validation
  • Dividend history & yield analysis
  • 36 specialized tools (up from 22)

Command: /quill

Use Case: "Analyze AAPL with focus on recent earnings trends and analyst sentiment"

Screen Forge - Equity Screening

Systematic stock discovery & idea generation

Enhanced Capabilities (v0.1.26):

  • โœจ Earnings momentum screening (consistent beats)
  • โœจ Analyst upgrade activity filtering

Core Capabilities:

  • Multi-factor screening (value, growth, quality)
  • Systematic candidate identification
  • Weekly watchlist generation
  • Factor-based ranking systems
  • Sentiment validation (Finnhub + Yahoo)
  • Integration with Quill for deep-dives
  • 15 specialized tools (up from 10)

Command: /screen

Use Case: "Screen for stocks with consistent earnings beats and analyst upgrades"

Earnings Whisperer - Earnings Analyst โญ NEW v0.1.27

Earnings surprise analysis & post-earnings drift

Core Capabilities:

  • Historical earnings surprise tracking (4-8 quarters)
  • Post-earnings drift detection (1-3 day momentum)
  • Analyst estimate revision monitoring
  • Earnings quality assessment (revenue vs. EPS beats)
  • Upcoming earnings calendar with probability scoring
  • Earnings momentum patterns (consistent beaters)
  • Trading signals (BUY/HOLD/SELL on earnings)
  • 14 specialized tools

Command: /earnings

Use Case: "Analyze NVDA earnings history - is there a post-earnings drift opportunity?"

Macro Lens - Market Strategist

Top-down macro analysis & regime identification

Enhanced Capabilities (v0.1.26):

  • โœจ Market indices tracking (S&P 500, Nasdaq, VIX)
  • โœจ Historical index data for regime analysis

Core Capabilities:

  • Economic cycle regime analysis (4 phases)
  • Yield curve interpretation & recession signals
  • Sector allocation guidance based on macro
  • Factor recommendations (value/growth, size)
  • Inflation, growth, employment tracking
  • Fed policy and interest rate analysis
  • 13 specialized tools (up from 11)

Command: /macro

Use Case: "What's the current macro regime and which sectors should I overweight?"

Atlas - Investment Strategist

Strategic asset allocation & portfolio construction

Core Capabilities:

  • Investment Policy Statement (IPS) development
  • Strategic asset allocation frameworks
  • Risk tolerance profiling (Conservative/Moderate/Aggressive)
  • Macro-driven tactical tilts
  • Rebalancing strategies (threshold, calendar, tax-aware)
  • Portfolio construction guidance
  • 12 specialized tools

Command: /atlas

Use Case: "Create an IPS for moderate risk tolerance with $100k portfolio"

Portfolio Analysis (Legacy)

Comprehensive portfolio tools

  • Real-time stock quotes & metrics
  • Company fundamentals & financial ratios
  • News & social sentiment analysis
  • SEC filings & institutional holdings
  • Multi-criteria stock screening
  • Local file reading (CSV, JSON, Excel)
  • 24 tools (backward compatible)

Command: /portfolio

Use Case: "What's the current price and fundamentals of MSFT?"

Market Research (Legacy)

Top-down macro analysis

  • Macroeconomic indicators (GDP, CPI, unemployment)
  • Treasury yield curves & spreads
  • Federal Reserve data (FRED)
  • Economic regime detection
  • Debt-to-GDP analysis
  • Market news & sentiment
  • 10 tools

Command: /research

Use Case: "Show me the Treasury yield curve and economic indicators"

Note: Will be phased out in favor of Macro Lens agent in v0.2.0

๐Ÿ”€ Multi-Agent Workflows

Coordinated agent collaboration combining specialized expertise:

Investment Analysis Workflow

Sequential Orchestration: Quill โ†’ Macro Lens โ†’ Synthesis

How it works:

  1. Quill performs bottom-up fundamental analysis

    • Business overview & competitive position
    • Financial health (5-year trends)
    • Valuation (P/E, P/B, DCF fair value)
    • NEW: Earnings trends, analyst sentiment
    • Investment thesis with catalysts
  2. Macro Lens validates timing with top-down analysis

    • Receives Quill's thesis via shared state
    • Assesses current macro regime
    • Evaluates sector positioning
    • Validates entry point timing
    • NEW: Market indices regime correlation
  3. Synthesis combines both perspectives

    • Overall rating: BUY/HOLD/SELL
    • Confidence level: High/Medium/Low
    • Key reasoning from both agents
    • Risk warning & suggested action

Command: /analyze <SYMBOL>

Example:

/analyze AAPL

๐Ÿ“Š Quill analyzing fundamentals...
  โ†’ get_quote: $227.45, P/E 36x, Market Cap $3.5T
  โ†’ get_earnings_history: Beat by $0.15 last 3 quarters
  โ†’ get_analyst_recommendations: 42 Buy, 8 Hold, 2 Sell
  โ†’ get_institutional_holders: BlackRock 6.8%, Vanguard 8.2%

๐ŸŒ Macro Lens validating timing...
  โ†’ get_market_indices: S&P 500 +12% YTD, VIX 14.2
  โ†’ get_treasury_yield_curve: 10Y-2Y inverted -0.54%

๐ŸŽฏ Final Recommendation: HOLD - Medium Confidence
Apple shows strong fundamentals (earnings beats, analyst
support) but late-cycle macro timing suggests cautious
positioning. Dollar-cost average on dips below $210.

๐Ÿ“Š Data Sources (32 Tools Across 9 APIs)

Data Source Tools Purpose Cost New in v0.1.26
Yahoo Finance ๐Ÿ†• 11 Real-time quotes, earnings, analyst ratings, ownership FREE โœ…
SEC EDGAR ๐Ÿ”„ 9 Corporate filings (10-K, 10-Q, 8-K), XBRL, insider transactions FREE โœ… 4 new
Tiingo 4 Historical fundamentals (5yr), quarterly data 50 symbols/hr
Finnhub 5 News/social/insider sentiment, analyst ratings 60 calls/min
Alpha Vantage 2 Stock prices, company overviews 25-500 calls/day
FRED (St. Louis Fed) 2 Economic indicators, macro data Unlimited
U.S. Treasury 4 Yield curves, treasury rates Unlimited
NewsAPI.org 3 Market news, headlines 1,000 calls/day
Anthropic Claude - AI reasoning (Sonnet 4.5) Pay-as-you-go

Total Free Data: 3 out of 9 sources require no API key! (Yahoo Finance, SEC, Treasury) Optional APIs: 5 premium data sources for enhanced coverage (all have free tiers)

๐Ÿ’ฌ Interactive Terminal UI

  • Chat Interface: Natural language interaction with specialized agents
  • Real-time Streaming: Watch agents think and reason live
  • Multi-Agent Progress: See workflow transitions and agent collaboration
  • Granular Tool Tracking: Watch which tools are called with what arguments
  • Markdown Rendering: Beautiful formatted output with tables
  • Agent Switching: /quill, /screen, /macro, /atlas, /portfolio, /research
  • Workflow Commands: /analyze <SYMBOL> for multi-agent analysis
  • Command Palette: Quick access to common actions
  • File Reading: Analyze local portfolio files
  • ๐Ÿ“„ Auto-Save Reports: All agent reports automatically saved to reports/ directory with timestamps

๐Ÿ—๏ธ Built on Modern Tech

LangGraph (Multi-Agent Orchestration) โ†’ LangChain (Tools) โ†’ Anthropic Claude (Reasoning)
     โ†“
Textual (Terminal UI) + Typer (CLI) + httpx (Async HTTP) + yfinance (Market Data)

Architecture Highlights:

  • Multi-Agent Workflows: Sequential orchestration with shared state
  • Specialized Agents: Purpose-built agents with focused tool sets
  • Tools Registry: Agent-specific tool mappings for optimal performance
  • ReAct Pattern: Reasoning + Acting for transparent decision-making
  • Async/Await: Non-blocking I/O for responsive UI
  • Type Safety: Full type hints with MyPy strict mode

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.9+ (3.13 recommended)
  • pip package manager
  • API keys (see Configuration)

Installation

Option 1: Install from PyPI (Recommended)

pip install navam-invest

Option 2: Install from Source

git clone https://github.com/navam-io/navam-invest.git
cd navam-invest
python3 -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e ".[dev]"

Configuration

  1. Copy environment template:

    cp .env.example .env
    
  2. Add your API keys to .env:

    # Required
    ANTHROPIC_API_KEY=sk-ant-...
    
    # Optional (but recommended for full functionality)
    ALPHA_VANTAGE_API_KEY=your_key_here
    TIINGO_API_KEY=your_key_here
    FINNHUB_API_KEY=your_key_here
    FRED_API_KEY=your_key_here
    NEWSAPI_API_KEY=your_key_here
    
    # No keys needed for Yahoo Finance, SEC EDGAR, U.S. Treasury!
    
  3. Verify API Keys (use /api command in chat to check status):

    navam invest
    > /api
    # Shows status table with โœ… working / โŒ failed / โšช not configured
    
  4. Get API Keys (all have free tiers):

    Service Link Free Tier Required?
    Anthropic โญ console.anthropic.com Pay-as-you-go ($3-15/M tokens) โœ… Required
    Yahoo Finance ๐Ÿ†• - Unlimited, no key needed โœ… Built-in
    SEC EDGAR - Unlimited, no key needed โœ… Built-in
    U.S. Treasury - Unlimited, no key needed โœ… Built-in
    Alpha Vantage alphavantage.co/support/#api-key 25 calls/day Optional
    Tiingo tiingo.com 50 symbols/hr, 5yr history Optional
    Finnhub finnhub.io/register 60 calls/min Optional
    FRED fredaccount.stlouisfed.org/apikeys Unlimited Optional
    NewsAPI.org newsapi.org/register 1,000 calls/day Optional

Usage

Launch the Interactive Interface

navam invest

This opens an interactive chat interface with 7 specialized AI agents and multi-agent workflows.

Slash Commands

Command Description
/api Check API connectivity and status of all data providers
/help Show all available commands
/examples Show example prompts for current agent
/clear Clear chat history
/quit Exit the application

๐Ÿ“„ Automatic Report Saving

All agent-generated reports are automatically saved to the reports/ directory in your working folder:

  • ๐Ÿ“Š Investment Analysis (/analyze): Complete multi-section reports with Quill fundamentals, Macro Lens validation, and final recommendation
  • ๐Ÿ” Agent Responses: All substantial agent responses (>200 chars) automatically saved as markdown files
  • ๐Ÿ“ Organized Naming: Reports use descriptive names with timestamps: {symbol}_{report_type}_{timestamp}.md
  • ๐Ÿ’พ Full Context: Reports include metadata (date, symbol, query) and formatted markdown content

Example: After /analyze AAPL, you'll see:

๐Ÿ“„ Report saved to: /path/to/working-dir/reports/AAPL_analysis_20251008_143022.md

Report Structure for /analyze:

  • Investment Analysis Report header with metadata
  • Fundamental Analysis (Quill) section
  • Macro Validation (Macro Lens) section
  • Final Recommendation section

Supported Report Types:

  • analysis - Multi-agent investment analysis workflow
  • equity_research - Quill equity research reports
  • portfolio - Portfolio analysis reports
  • research - Market research and macro analysis
  • screening - Stock screening results
  • macro_analysis - Macro regime analysis
  • earnings - Earnings surprise analysis

Agent Selection Commands

Command Agent/Workflow Description
/analyze <SYMBOL> Investment Analysis Workflow Multi-agent fundamental + macro analysis
/quill Quill (Equity Research) Deep fundamental analysis & thesis building โญ 36 tools
/earnings Earnings Whisperer Earnings surprise analysis & post-earnings drift โญ NEW v0.1.27
/screen Screen Forge Systematic stock screening & idea generation
/macro Macro Lens Top-down macro analysis & regime identification
/atlas Atlas (Investment Strategist) Strategic asset allocation & IPS development
/portfolio Portfolio Analysis Comprehensive stock & portfolio tools (legacy)
/research Market Research Macroeconomic analysis & treasury data (legacy)
/examples - Show example queries for current agent/workflow
/help - Show all commands
/clear - Clear chat history
/quit - Exit application

๐Ÿ’ก Example Interactions

Quill - Equity Research (with Yahoo Finance) ๐Ÿ†•

๐Ÿ“ˆ Earnings & Analyst Sentiment Analysis
You: /quill
You: Analyze AAPL with focus on recent earnings trends and analyst sentiment

Quill (Equity Research):
  โ†’ get_quote(symbol=AAPL)
  โœ“ AAPL: $227.45, +1.2% (+$2.70), P/E 36x, Market Cap $3.5T

  โ†’ get_earnings_history(symbol=AAPL)
  โœ“ Earnings history retrieved

  โ†’ get_analyst_recommendations(symbol=AAPL)
  โœ“ Analyst ratings retrieved

  โ†’ get_institutional_holders(symbol=AAPL)
  โœ“ Institutional ownership retrieved

**Apple Inc. (AAPL) - Earnings & Sentiment Analysis**

**Earnings Trends** (Last 4 Quarters):

| Quarter | EPS Actual | EPS Estimate | Surprise | Surprise % |
|---------|------------|--------------|----------|------------|
| Q4 2024 | $1.64 | $1.60 | $0.04 | +2.5% |
| Q3 2024 | $1.40 | $1.35 | $0.05 | +3.7% |
| Q2 2024 | $1.53 | $1.50 | $0.03 | +2.0% |
| Q1 2024 | $2.18 | $2.10 | $0.08 | +3.8% |

**Key Observation**: Apple has beaten analyst estimates for 4 consecutive
quarters with an average surprise of +3.0%. This demonstrates consistent
execution and conservative guidance from management.

**Upcoming Earnings**:
- **Date**: January 30, 2025 (estimated)
- **EPS Estimate**: $2.23 (range: $2.18 - $2.28)
- **Revenue Estimate**: $124.5B

**Analyst Sentiment**:

**Ratings Distribution** (52 analysts):
- **Buy/Overweight**: 42 (81%)
- **Hold/Neutral**: 8 (15%)
- **Sell/Underweight**: 2 (4%)

**Price Targets**:
- **Mean Target**: $248 (+9% upside)
- **Median Target**: $245 (+7.7% upside)
- **High Target**: $275 (+21% upside)
- **Low Target**: $180 (-21% downside)

**Recent Rating Changes** (Last 30 days):
- **Wedbush**: Maintained Outperform, raised target $260 โ†’ $275
- **Morgan Stanley**: Upgraded Neutral โ†’ Overweight, target $240 โ†’ $260
- **JPMorgan**: Maintained Overweight, raised target $245 โ†’ $265

**Institutional Ownership**:

**Top 5 Holders** (Total: 58.2% institutional ownership):
1. **Vanguard Group**: 8.2% ($287B) - Increased 2.1M shares Q3
2. **BlackRock**: 6.8% ($238B) - Increased 1.5M shares Q3
3. **Berkshire Hathaway**: 5.8% ($203B) - Maintained position
4. **State Street**: 4.1% ($144B) - Increased 850K shares Q3
5. **Fidelity**: 2.3% ($81B) - Decreased 300K shares Q3

**Sentiment Analysis**:

**Bullish Indicators**:
- โœ… 4 consecutive earnings beats (avg +3% surprise)
- โœ… 81% analyst buy ratings (strong consensus)
- โœ… Recent analyst upgrades (3 in last month)
- โœ… Institutional accumulation (+4.4M shares Q3 from top holders)
- โœ… Mean price target implies +9% upside

**Cautionary Signals**:
- โš ๏ธ High valuation (36x P/E vs. 28x 5-year avg)
- โš ๏ธ Fidelity reduced position (-300K shares)
- โš ๏ธ Wide price target range ($180-$275, $95 spread)

**Investment Recommendation**: **BUY on Dips**

Apple demonstrates strong fundamental momentum with consistent earnings
beats and positive analyst sentiment. However, current valuation (36x P/E)
is elevated. Recommend accumulating on any pullback to $210-215 range
(30-31x P/E) for better risk/reward.

**Upcoming Catalysts**:
1. **Q1 FY25 Earnings** (Jan 30, 2025) - iPhone 16 holiday sales reveal
2. **Vision Pro Expansion** (International launch scheduled Q1 2025)
3. **AI Features Rollout** (iOS 18.2+ with enhanced Siri capabilities)

**Risk Factors**:
- China demand softness (18% of revenue)
- DOJ antitrust case (App Store at risk)
- Valuation multiple compression if growth disappoints

**Data Sources**:
- Real-time quote: Yahoo Finance
- Earnings history: Yahoo Finance (4 quarters)
- Analyst ratings: Yahoo Finance (52 analysts)
- Institutional ownership: Yahoo Finance (13F filings)

Multi-Agent Workflow: Investment Analysis

๐Ÿ“Š Complete Investment Analysis (Fundamental + Macro)
You: /analyze MSFT

Investment Analysis Workflow: Starting multi-agent analysis...

๐Ÿ“Š Quill analyzing fundamentals...
  โ†’ get_quote
  โ†’ get_financials
  โ†’ get_earnings_history
  โ†’ get_analyst_recommendations
  โœ“ Fundamental analysis complete

๐ŸŒ Macro Lens validating timing...
  โ†’ get_key_macro_indicators
  โ†’ get_treasury_yield_curve
  โ†’ get_market_indices
  โœ“ Macro validation complete

๐ŸŽฏ Synthesizing recommendation...

Final Recommendation:

**Overall Rating: BUY - Medium Confidence**

**Key Reasoning**:
Microsoft demonstrates exceptional fundamental quality with 42% ROE,
$87B annual free cash flow, and strong competitive moats in cloud
(Azure) and enterprise software. Recent earnings show consistent beats
(+4.2% avg surprise last 4 quarters) with 89% analyst buy ratings.
Current valuation of 31x P/E is reasonable given 15% revenue growth.

However, macro timing presents headwindsโ€”we're in late expansion phase
with inverted yield curve (-0.54%) signaling recession risk within 12
months. Tech sector (Nasdaq -8% from highs) showing vulnerability.

**Suggested Action**:
Consider accumulating MSFT on dips rather than full position immediately.
Dollar-cost average over 3-6 months to capture potential volatility from
macro headwinds. Microsoft's defensive characteristics (enterprise
subscriptions, cloud infrastructure) should outperform cyclical tech
peers in downturn.

**Risk Warning**:
Monitor enterprise cloud spending trends and Microsoft Azure growth rates.
If Azure growth decelerates below 25% YoY, fundamental thesis weakens.
Macro risk: Recession could compress P/E multiple to 24-26x (historical
trough), implying 15-20% downside risk from current levels.

**Data Sources**:
- Fundamentals: Yahoo Finance (earnings, analysts, quotes, financials), Tiingo (historical)
- Macro: FRED (GDP, CPI, unemployment), U.S. Treasury (yield curve)
- Market: Yahoo Finance (indices), NewsAPI (sentiment)

Screen Forge - Earnings Momentum Screening ๐Ÿ†•

๐Ÿ” Screen for Earnings Beat Momentum
You: /screen
You: Screen for stocks with consistent earnings beats over last 3 quarters

Screen Forge (Equity Screening):
  โ†’ screen_stocks(market_cap_min=1000000000)
  โœ“ 347 stocks retrieved

  โ†’ get_earnings_history (batch for 347 stocks)
  โœ“ Earnings data retrieved for 298 stocks

  โ†’ Filtering for 3+ consecutive beats
  โœ“ 42 stocks match criteria

**Earnings Beat Momentum Screen Results**

**Criteria**:
- Market Cap: > $1B
- Earnings Beats: 3+ consecutive quarters
- Average Surprise: > 2%

**Top 10 Candidates** (Ranked by avg surprise %):

| Rank | Ticker | Company | Mkt Cap | Avg Surprise | Streak | Latest Beat |
|------|--------|---------|---------|--------------|--------|-------------|
| 1 | **NVDA** | NVIDIA | $3.2T | +18.4% | 8 qtrs | +21.2% |
| 2 | **META** | Meta Platforms | $1.4T | +12.6% | 5 qtrs | +15.8% |
| 3 | **GOOGL** | Alphabet | $2.1T | +8.9% | 6 qtrs | +9.4% |
| 4 | **MSFT** | Microsoft | $3.1T | +4.2% | 4 qtrs | +3.8% |
| 5 | **AAPL** | Apple | $3.5T | +3.0% | 4 qtrs | +2.5% |
| 6 | **AMZN** | Amazon | $1.9T | +7.5% | 5 qtrs | +8.2% |
| 7 | **V** | Visa | $592B | +5.1% | 7 qtrs | +4.8% |
| 8 | **MA** | Mastercard | $453B | +4.9% | 6 qtrs | +5.2% |
| 9 | **HD** | Home Depot | $381B | +3.8% | 4 qtrs | +4.1% |
| 10 | **CRM** | Salesforce | $308B | +6.2% | 5 qtrs | +7.8% |

**Sector Breakdown**:
- Technology: 28 stocks (67%)
- Financials: 6 stocks (14%)
- Consumer Discretionary: 5 stocks (12%)
- Healthcare: 3 stocks (7%)

**Key Insights**:

1. **Tech Dominance**: Technology sector shows strongest earnings momentum,
   driven by AI tailwinds (NVDA, META, GOOGL) and cloud growth (MSFT, AMZN).

2. **Consistency Matters**: Stocks with 5+ quarter streaks (NVDA, META, GOOGL,
   AMZN, V, MA) show stronger post-earnings drift (+2.1% avg vs. market).

3. **Valuation Check**: Despite earnings beats, many trade at premium multiples:
   - NVDA: 65x P/E (highest risk)
   - META: 28x P/E (reasonable)
   - GOOGL: 26x P/E (attractive)

**Recommended Next Steps**:

1. **Deep Dive Top 3** (use Quill):
   - GOOGL: Best risk/reward (26x P/E, 8.9% avg surprise, cloud recovery)
   - META: Strong momentum (12.6% surprise, AI monetization)
   - V: Defensive quality (5.1% surprise, recession resilient)

2. **Analyst Validation**:
   - Run `get_analyst_recommendations` for top candidates
   - Check for recent upgrades/downgrades

3. **Timing Check** (use Macro Lens):
   - Validate entry timing with current macro regime
   - Consider dollar-cost averaging if late-cycle concerns persist

**Use with Quill**:
Type `/quill` then "Analyze GOOGL with earnings momentum focus" for
deep-dive analysis on top value candidate.

๐Ÿ“š Documentation

Project Resources

API Reference

Development

Running Tests

pytest                    # Run all tests
pytest -v                # Verbose output
pytest tests/test_*.py   # Specific test file

Code Quality

black src/ tests/        # Format code
ruff check src/ tests/   # Lint code
mypy src/                # Type check

Building from Source

# Install dev dependencies
pip install -e ".[dev]"

# Build package
python -m build

# Check distribution
twine check dist/*

๐Ÿ—บ๏ธ Roadmap

Current Release: v0.1.27

  • โœ… Earnings Whisperer agent (earnings surprise analysis, post-earnings drift)
  • โœ… 14 specialized earnings tools (Yahoo Finance + SEC + Finnhub)
  • โœ… 5-step earnings analysis framework
  • โœ… Pattern recognition (consistent beaters, drift opportunities)

Recent: v0.1.26

  • โœ… Yahoo Finance integration (11 tools, FREE)
  • โœ… Enhanced SEC EDGAR (4 new tools: 8-K, company facts, insider transactions)
  • โœ… Quill agent enhanced with earnings & analyst coverage
  • โœ… Zero cost expansion ($2.4K-$10.8K/year savings)

Next: v0.1.28-0.1.30

  • News Sentry agent (leverages 8-K material events)
  • Options analysis tools for Hedge Smith agent (Yahoo options chain)
  • Enhanced multi-agent workflows (parallel execution)
  • Caching layer (DuckDB) for API efficiency

Future: v0.2.0+

  • Portfolio tracking & performance attribution
  • Backtesting engine for investment strategies
  • Risk management workflows (VaR, stress testing)
  • Web UI (in addition to TUI)
  • Cloud deployment options

๐Ÿค Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Ways to Contribute:

  • ๐Ÿ› Report bugs via GitHub Issues
  • ๐Ÿ’ก Suggest features or improvements
  • ๐Ÿ“ Improve documentation
  • ๐Ÿ”ง Submit pull requests

๐Ÿ“„ License

This project is licensed under the MIT License - see LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Anthropic - Claude AI reasoning engine
  • LangChain - Agent framework ecosystem
  • Textual - Modern terminal UI framework
  • yfinance - Free Yahoo Finance API wrapper ๐Ÿ†•
  • Data Providers - Yahoo Finance, SEC, Treasury, Alpha Vantage, Tiingo, Finnhub, FRED, NewsAPI

Built with โค๏ธ for retail investors

โฌ† Back to Top

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

navam_invest-0.1.30.tar.gz (79.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

navam_invest-0.1.30-py3-none-any.whl (88.7 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page