Skip to main content
Get real-time stock prices, company fundamentals, and historical trends with a single Agent — no financial-data API glue code required.

Quick Start

1

Simple Usage

Give an Agent the finance tools and ask a question.
2

With Configuration

Add memory to track a portfolio across sessions.

How It Works

A user asks a financial question, the Agent calls the finance tools to pull live data, then returns an investor-friendly summary.

Configuration Options

The finance tools take no configuration — pass them to any Agent. For the underlying tool signatures see the tools reference.

yfinance Tools

Stock price, company info, and historical data tool signatures.

Agent Reference

Full Agent parameters and options.

Simple

Agents: 1 — Single agent with finance tools for comprehensive stock analysis.

Workflow

  1. Receive stock query
  2. Fetch real-time price data
  3. Retrieve company information
  4. Analyze historical trends

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Advanced Workflow (All Features)

Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.

Workflow

  1. Initialize session for portfolio tracking
  2. Configure SQLite persistence for analysis history
  3. Execute multi-tool analysis with structured output
  4. Store results in memory for trend comparison
  5. Resume session for ongoing portfolio monitoring

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Monitor / Verify

Cleanup

Features Demonstrated

Best Practices

The finance tools call live market APIs, so each extra tool adds latency and cost. Pass get_stock_price alone for quote lookups, and add get_historical_data only when the question needs trends.
Set memory=True when the user asks follow-up questions about the same tickers. The agent then compares new quotes against prior turns instead of starting from scratch.
Instruct the agent to cite the figures it fetched. This keeps summaries verifiable and prevents the model from inventing prices when a tool call fails.
For document-heavy market research, pair this Agent with the Research Agent; for CSV/Excel portfolios, hand off to the Data Analyst Agent.

Data Analyst

Analyze CSV/Excel portfolios and generate insights.

Research Agent

Conduct market research across the web.