Finance

Compare Equity Peers with Live Financials

In this example, we built an agent that uses Nimble search to search the web for a stock's public peer group and Nimble extract to pull live valuation multiples from Finviz, then delivers a relative-valuation verdict.

Quick Start

Inputs

  1. Ticker symbol A US-listed equity ticker entered at run time, such as CMG, CRM, or NVDA.

Outputs

  • Live peer set for the target company
  • Valuation multiples per ticker: P/E, P/S, EV/EBITDA, PEG, revenue growth, and margins
  • Recent catalysts per company (earnings, guidance, analyst rating moves)
  • Relative-valuation verdict vs. peer median
  • Interactive comps table and EV/EBITDA chart
  • Persisted run history in the Chainlit dashboard

How it works

A 4-phase pipeline.

  1. Discover peers Nimble search (general focus, include_answer=true) returns an AI-synthesized list of public peers for the target ticker.
  2. Pull financials Nimble extract fetches each Finviz quote page; parse.py deterministically pulls P/E, forward P/E, P/S, EV/EBITDA, PEG, revenue growth, margins, ROE, and analyst actions using regex.
  3. Find catalysts Nimble search (news focus) retrieves recent dated earnings reports, guidance updates, and analyst rating changes for each ticker.
  4. Assemble and deliver Claude curates the final peer set and writes the verdict; the run is saved to Supabase and the Chainlit dashboard shows the comps table, chart, and verdict, then accepts follow-up questions that trigger additional Nimble calls.

Stack

Nimble primitives plus the full runtime stack.
Nimble APIs
What it does
  1. extract Fetches each Finviz quote page and returns rendered content for deterministic parsing of valuation multiples and analyst actions.
  2. search Discovers peer companies (general focus, include_answer=true) and retrieves recent catalysts per ticker (news focus).
3rd Party Tools
Role
  1. Python 3.9+ Runtime language.
  2. LangGraph ReAct agent loop that orchestrates Nimble tool calls and the structured-extraction pass.
  3. claude-sonnet-4-6 Drives the agent loop, curates the peer set, and writes the relative-valuation verdict.
  4. Chainlit Live dashboard with step streaming, comps table, EV/EBITDA chart, and follow-up Q&A.
  5. Supabase Persists every analysis run for history and reopen.
  6. pandas + plotly Data manipulation and chart rendering.
Reach out if you have any questions.
Talk to an Expert