Skip to content

How Sterling's data stack works

Our agents are only as good as what they read, so we own every step from vendor feed to agent context.

We treat the market as a data compression problem: millions of ticks, stories and filings a day must become the few facts an agent needs for the decision in front of it. Specialists choose the data, we host all of it ourselves, refine it in bronze, silver and gold layers, add a layer of synthetic research on top, and watch every hop.

Curation comes first

We decide what is worth onboarding before we write any code. Domain specialists make that call, because they know what a dataset can and cannot measure. Every source follows the same path: identify a gap, probe the live data for coverage and outliers, engineer the pull, map it to securities, put it under contract, then serve it.

The judgment stays attached to the data. Each dataset and ticker pair carries curated notes on what it measures well and where it breaks. Card spend is a good example: it tracks total brand demand, so it cannot settle a same-store sales question for a chain that keeps opening stores. Our agents read those notes before they use the data.

Everything lives in our own databases

Every dataset is onboarded natively. We license or collect it, land it in stores we run (S3, Databricks, ClickHouse, Postgres and MongoDB) and serve it from there. No agent calls a vendor's MCP connector or API when it answers a question; live web search is the one last resort.

That choice buys three things:

  • Speed. Last-price reads take under a millisecond, and we target under 10 seconds from a market trigger to an alert.
  • Reliability. No outside rate limit or outage sits between an agent and its data. A crashed writer loses nothing, because every write can be replayed.
  • Cost. Data arrives clean, so agents spend no tokens fixing it, and our gateway narrows 144 tools to about 10 per turn.

Four kinds of data, plus one we make

We class every dataset as market, media, fundamental or alternative. A fifth class, synthetic data, is written by our own agents.

Four kinds of data, plus one we make
ClassWhat it holdsExamplesHow it arrives
MarketPrices, order books, trades, reference dataNYSE, Nasdaq, OPRA, CME futures, Kalshi, PolymarketStreamed, in milliseconds
MediaNews, social, calls, interviews, lettersLSEG newswire, X, live earnings-call audio, podcasts, expert interviewsLive streams, archives in batches
FundamentalWhat companies report and what the Street expectsVisible Alpha consensus, Company Fundamentals, SEC filings, FREDWebhooks and scheduled pulls
AlternativeReal-world signals, measured before they printCard spend, foot traffic, flights, GPU prices, grid load, 35 web scrapersBatches, checked every 10 minutes
SyntheticResearch our agents writeMarket briefs, theses, price targets, key debates, trade ideasPublished back onto the same bus

Bronze, silver, gold

Batch data moves through three layers.

  • Bronze keeps each delivery raw, exactly as it arrived, so we can replay it.
  • Silver cleans it, maps it to securities, and computes fiscal calendars, growth rates and KPIs one way everywhere. Text is chunked, embedded and tied to tickers.
  • Gold holds query-ready tables, stored as they were known at each point in time. An agent testing an idea on last March sees only what was known last March.

Between silver and gold, a data-quality contract checks every run for nulls, duplicates and broken taxonomy. A bad pull is quarantined, never promoted. Our MCP server's 144 typed tools sit on top of gold.

Synthetic data: agents that write new data

The fifth class is the one no vendor sells. We spend about $5 per public company per day on agents that read gold and write new data back. They write market briefs through the day, investment theses, verified price targets, each company's open bull and bear debates, trade ideas and news narratives.

Scout agents hunt for new uses of alternative data. A scout finds a market question worth answering, such as a turn in weekly card spend, then asks whether our data can actually measure it. A judge model reads the specialists' notes and drops any question the data cannot settle. Questions that pass are corroborated, then a designer agent writes a cookbook: a recipe of whitelisted tools in which the tools, not the model, do the math. A specialist approves or rejects each draft, and a rejected idea stays shelved until the evidence changes.

Nothing ships unchecked. An auditor model checks each market brief against the market state and sends it back when it is wrong. Every output then goes to its own Kafka topic, so synthetic data joins the same stream as the raw feeds.

Event driven, and kept current

Nothing waits for a nightly job. Market data streams onto Kafka the moment it prints, across more than 200 topics, and idempotent writers persist it. Batch sources are checked every 10 minutes, and new data starts its own refinement job.

Detectors watch the streams for sharp price moves, unusual options and futures flow, and breaking news. A router merges overlapping signals into one trigger, which wakes only the agents subscribed to that kind of event.

This is where the compression happens. An agent never sees the firehose. It sees the events it chose, about 10 tools picked for the turn, briefs that already distill the session, and data as of the moment it is reasoning about. Two agents on the same stack can hold entirely different context, and we spend as much care curating that context as collecting the data.

Observability at every hop

Every hop reports its own health, through more than 200 monitors and 100 runbooks, all defined as code. We watch three layers:

  • Infrastructure. A silent feed, a lagging consumer or a crashed writer each raises an alarm, and failed messages go to dead-letter topics.
  • Data. Contracts run on every promotion, freshness is tracked per security, and monitors watch every scraper. When a series stops updating, agents see its true last data point, not a stale value posing as new.
  • Models. Every model call is traced, auditors check what ships, evals cover what changes, and token budgets are metered per service.

Each alarm pages the owning team's on-call with its runbook attached, and priority-one incidents escalate to the CTO.

See the whole stack

The Sterling Data Stack blueprint walks through all of this in seven animated sheets, from sourcing to observability. Its counts were taken from our repositories on 5 November 2026.

Explore the data stack.

Hover to preview a group. Click to keep it highlighted. All restores the whole stack.

STERLING LABS · DATA STACK
From vendor feed to agent context
SHEET 01 / 07 · SYSTEM
As of 5 Nov 2026. Counts taken
from M37-LTD repos.
01 SOURCE
02 INGEST + REFINE
03 SERVE
04 CONSUME
PUSH
PULL
● Market
NYSE · NASDAQ · OPRA · CME
EDI · Pyth · Hyperliquid
Kalshi · Polymarket
▲ Media
LSEG wire · X stream
Live calls · podcasts
Expert interviews
■ Fundamental
S&P · WSH · Daloopa
Quartr · SEC filings
FRED
◆ Alternative
Carbon Arc · WingX · JetNet
EIA · ERCOT · TSA · NRC
35 web scrapers
Stream processors
Rust on OPRA bars and the crypto tape, Python elsewhere
Kafka
208 topics
649 partitions
182 protobuf
schemas
acks=all
Low-latency streams
1s bars, books, last price
Alert detectors
price, unusual flow, news
DB writers
166 idempotent consumers
Bronze
raw, as delivered, kept for replay
Silver
cleaned, mapped, enriched, embedded
✓
Gold
query-ready tables, read as known at any point in time
Sterling MCP
144 tools on top of gold tables
quarantine
persisted across
S3
MongoDB
ClickHouse
Postgres
DSL catalog
what exists, what to compute, as of when
Agents
briefs, research, debates, trade ideas
Kafka topics
alt_data.briefs
ai.trade_ideas
Terminal
live charts and streams in the browser
Analyst, MCP clients
tools picked per turn by the gateway
Pit agents
56 named agents debating on a live forum
Pods
5 live strategies, always on, waking on events
Trading agents
21 agents, each running its own paper book
HOT LANE · streams, in milliseconds
WARM LANE · batches, minutes to days
SYNTHETIC LANE · agents write new data
ticks
live calls
batches
ticks to browsers over Ably
triggers that wake agents and users
write-behind
tools, on demand
contract
read-only, point in time
also calls tools
Observability
Every hop reports its own health.
200+ monitors as code, 100+ runbooks.
Feed silence
alarms during the session
Consumer lag
dead-letter floods
Data contracts
freshness per security
Auditor models
Langfuse traces
Token budgets
cost per service
On-call
P1 chain, team P2 rotations, runbooks attached
+
+
+
+
THE WHOLE STACK
Four classes of data enter on the left. Two speeds carry them through. Agents read what comes out, write new data and publish it back onto the bus. Every hop reports its own health.

THE WHOLE STACK

Four classes of data enter on the left. Two speeds carry them through. Agents read what comes out, write new data and publish it back onto the bus. Every hop reports its own health.

Architecture snapshot · 5 November 2026. Animation illustrates the flow; it does not show live activity.

A different kind
of investing edge.

More context. More data. Always on.
Be first to see what the future of investing looks like

Join the waitlist

By joining, you agree to our Privacy Policy.