Bruin Academy

Guide

Stock Analyst

Go from zero to a working stock analyst that pulls FMP, Yahoo Finance, and FRED into DuckDB - then lets an AI agent answer real market questions. The AI agent is the coder - every step is a plain-English prompt.

What you'll build

What

Learn the junior stock analyst toolkit in one sitting. Pull company fundamentals, market prices, and US macro data into a local database, then ask an AI agent market questions with SQL-backed sources.

  • Pull four quarters of fundamentals for any ticker and compare them to peers
  • Overlay stock price performance against the macro regime (e.g. "how did high-FCF companies perform when the yield curve was inverted?")
  • Ask natural-language questions and get SQL-backed answers - with sources the agent can cite

How

  • The AI agent does the typing - you prompt it in plain English and approve what it does
  • Bruin CLI scaffolds the pipeline, and ingestr connectors handle the data pulls
  • Bruin MCP gives Claude Code, Cursor, or Codex direct query access to your database
  • Pipeline-scoped AGENTS.md plus bruin ai enhance teach the agent finance context

Before you start

  • An AI coding tool - Claude Code, Cursor, or Codex (the agent does the typing)
  • Bruin CLI - the agent installs this for you in Step 1
  • Free API keys for FMP and FRED (both take 1 minute to sign up)

Get help & contribute

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.