ScavioScavio
ProductPricingDocs
Sign InGet Started
  1. Home
  2. Tutorials
  3. How to Build a Multi-Source Trading Brief Agent
Tutorial

How to Build a Multi-Source Trading Brief Agent

Build an AI agent that aggregates SERP, Reddit, and YouTube into a daily ticker brief. Replaces 12 tabs with one typed JSON brief.

Get Free API KeyAPI Docs

Independent traders drown in data. The right agent runs SERP, Reddit, and YouTube in parallel per ticker and returns a typed brief. This tutorial wires Scavio plus Claude into a daily brief agent for a configurable watchlist.

Prerequisites

  • Python 3.10+
  • Scavio API key
  • Anthropic API key

Walkthrough

Step 1: Define watchlist

List of tickers to brief daily.

Python
WATCHLIST = ['AAPL', 'NVDA', 'TSLA', 'AMZN', 'GOOG']

Step 2: Parallel multi-surface fetch

SERP, Reddit, YouTube concurrently per ticker.

Python
import requests, os, asyncio, aiohttp
API_KEY = os.environ['SCAVIO_API_KEY']

async def brief(session, ticker):
    headers = {'x-api-key': API_KEY}
    base = 'https://api.scavio.dev/api/v1/'
    tasks = [
        session.post(base+'google', headers=headers, json={'query': f'{ticker} earnings 2026'}),
        session.post(base+'reddit/search', headers=headers, json={'query': ticker}),
        session.post(base+'youtube/search', headers=headers, json={'query': f'{ticker} earnings call'})
    ]
    serp, rdt, yt = await asyncio.gather(*tasks)
    return {'serp': await serp.json(), 'reddit': await rdt.json(), 'youtube': await yt.json()}

Step 3: Compose markdown brief

Claude turns raw data into 200-word brief.

Python
import anthropic
client = anthropic.Anthropic()

def compose(ticker, data):
    msg = client.messages.create(
        model='claude-sonnet-4-6', max_tokens=400,
        messages=[{'role':'user','content':f'Write 200-word trading brief on {ticker} from: {str(data)[:6000]}'}])
    return msg.content[0].text

Step 4: Email digest

Aggregate all tickers into morning email.

Python
def daily_email(briefs):
    body = '\n\n---\n\n'.join(f'## {t}\n{b}' for t,b in briefs.items())
    # SMTP wiring left to reader
    return body

Step 5: Schedule

Cron at 7 AM market-time.

Bash
# crontab -e
# 0 7 * * 1-5 /usr/bin/python /path/to/trading_brief.py

Python Example

Python
import os, requests
API_KEY = os.environ['SCAVIO_API_KEY']

def brief(ticker):
    serp = requests.post('https://api.scavio.dev/api/v1/google',
        headers={'x-api-key': API_KEY}, json={'query': f'{ticker} earnings 2026'}).json()
    rdt = requests.post('https://api.scavio.dev/api/v1/reddit/search',
        headers={'x-api-key': API_KEY}, json={'query': ticker}).json()
    yt = requests.post('https://api.scavio.dev/api/v1/youtube/search',
        headers={'x-api-key': API_KEY}, json={'query': f'{ticker} earnings call'}).json()
    return {'serp': serp.get('organic_results',[])[:5], 'reddit': rdt.get('posts',[])[:5], 'youtube': yt.get('videos',[])[:5]}

print(brief('NVDA'))

JavaScript Example

JavaScript
const API_KEY = process.env.SCAVIO_API_KEY;
export async function brief(ticker) {
  const headers = { 'x-api-key': API_KEY, 'Content-Type': 'application/json' };
  const base = 'https://api.scavio.dev/api/v1/';
  const [serp, rdt, yt] = await Promise.all([
    fetch(base+'google', { method:'POST', headers, body: JSON.stringify({ query: `${ticker} earnings 2026` }) }).then(r => r.json()),
    fetch(base+'reddit/search', { method:'POST', headers, body: JSON.stringify({ query: ticker }) }).then(r => r.json()),
    fetch(base+'youtube/search', { method:'POST', headers, body: JSON.stringify({ query: `${ticker} earnings call` }) }).then(r => r.json())
  ]);
  return { serp, rdt, yt };
}

Expected Output

JSON
Daily 7 AM email with 200-word brief per ticker on the watchlist. Each brief weaves SERP, Reddit, and YouTube context into a coherent narrative.

Related Tutorials

  • How to Reverse-Engineer Google Finance Data with Scavio
  • How to Build a Deep Research Agent for Book Projects
  • How to Scrape Google News with Python and Scavio

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Python 3.10+. Scavio API key. Anthropic API key. A Scavio API key gives you 50 free credits on signup.

Yes. The free tier includes 50 credits on signup, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Related Resources

Use Case

AI Trading Multi-Source Data Aggregation

Read more
Use Case

LangGraph Multi-Source Research Agent

Read more
Solution

Feed Six Platforms Into Your Agent for Fresh Data

Read more
Best Of

Best MCP Server for Trading Data in 2026

Read more
Solution

Multi-Source Data Aggregation for Trading Research

Read more
Best Of

Best Data Aggregation API for Trading Research in 2026

Read more

Start Building

Build an AI agent that aggregates SERP, Reddit, and YouTube into a daily ticker brief. Replaces 12 tabs with one typed JSON brief.

Get Free API KeyRead the Docs
ScavioScavio

Real-time search API for AI agents. Search every platform, not just Google.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative

Tools

  • JSON Formatter
  • cURL to Code
  • Token Counter
  • All Tools

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy