Docs Ticker Brief Agent
How the newsroom works
Ticker Brief turns a stock ticker into a short news-column brief: a headline, what the price did, likely drivers with numbered sources, and what to watch. It is a Lowfloat Labs experiment. Not financial advice.
The pipeline
- You type a ticker. The page calls our Cloudflare Worker:
GET /api/brief?t=NVDA. - The Worker pulls facts from Finnhub (free tier): the latest quote, company profile, company news from the last 7 days (up to 8 items), and the earnings calendar for the next 60 days.
- Claude writes the brief (Anthropic API, model
claude-opus-5-5by default) using only those facts. The output is structured JSON, and each driver cites the news items it relies on. News text is treated as untrusted data. - The brief is cached per ticker (15 minutes for AI briefs, 10 for template briefs), so repeat lookups are instant and cheap.
Brief modes
Every brief carries a stamp telling you how it was made:
| Stamp | Meaning |
|---|---|
| AI brief | Real Finnhub data, written by Claude. |
| Auto-template | Real Finnhub data, written by a fixed template (no AI). Used when the AI key is not set, the daily AI budget is used up, or the AI call fails. |
| SAMPLE DATA | Bundled illustrative briefs for NVDA, TSLA and AAPL. Not real prices or news. Shown only when the market-data key is not configured. |
Limits and guardrails
- Per-IP rate limits: 12 brief requests per minute, of which 4 can be fresh (uncached) briefs, and 40 fresh briefs per UTC day. Cached briefs keep loading after that.
- A daily cap on AI-written briefs (300 per UTC day by default). After that, briefs fall back to the template.
- API keys live only in Cloudflare Worker secrets. The page never sees them.
- The AI is told: no buy/sell calls, no price targets, no invented causes. If the news doesn't explain a move, the brief says so.
- Only US-listed symbols that Finnhub covers. Prices may be delayed.
API
Base URL: …
GET /api/brief?t=NVDA → { mode, ticker, company, quote, sources[], brief{headline, dek, price_move, drivers[], watch[]}, disclaimer, cached, generatedAt }
GET /api/health → { ok, mode: "live"|"template"|"sample", ai, data, model, time }
GET /api/stats → { date, filed, lastFiledAt } (fresh briefs filed today, UTC)
CORS is limited to this site. Errors return { error, message } with status 400 (bad ticker), 404 (unknown ticker), 429 (rate limited) or 5xx.
Share a brief
Add ?t=TICKER to the site URL, for example /?t=NVDA, and the brief loads automatically.
Disclaimer
Not financial advice. Experimental software. Briefs are machine-written from public data, may be wrong, incomplete or delayed, and are not a recommendation to buy or sell anything. Do your own research.