LIVE ARCHITECTURE MAP

EarningsScores System Workflow

What every source supplies, how the data is transformed, where it is stored and which product experience consumes it.

sourceapienginestoreoutputcontrol
10external systems
3core pipelines
2runtime hosts
1research database
PIPELINE

Website intelligence

The customer-facing earnings, market research and scoring path.

source

Market + company sources

Massive, Finnhub, FMP, Alpaca, Alpha Vantage, Polygon and FRED

→
api

Vercel API normalization

Earnings, results, ticker, news, technicals, fundamentals and economics routes

→
engine

Intelligence engines

Pre-earnings score, reaction score, safety rules, reports and chat context

→
output

Website experiences

Dashboard, calendar, news, scorecards, technicals, fundamentals and reports

PIPELINE

Continuous strategy research

The independent worker path that runs beyond Vercel request lifetimes.

source

Alpaca bars + movers

Minute history, rotating live IEX universe, protected open positions and extreme-mover discovery

→
engine

Render strategy factory

Generates 100 ideas every hour, screens history and promotes candidates

→
store

Neon PostgreSQL

Bars, strategies, signals, rejected ideas, paper trades, cycles and daily results

→
output

Strategy Research Lab

Factory leaderboard, expectancy, live results, peak timing and fade studies

PIPELINE

Paper decision and measurement

How a signal becomes a controlled experiment and a comparable result.

engine

Qualified decision

Signal strength and exposure limits; one position per symbol

→
control

Risk controls

Hourly cap, position cap, ATR sizing, stops, targets and daily kill switch

→
store

Paper ledger

Internal simulated positions; optional Alpaca paper execution remains disabled

→
output

Accuracy + research

P&L, win rate, expectancy, drawdown, exit reasons and symbol attribution

SOURCE OF TRUTH

Data ownership matrix

Primary identifies the preferred source; fallback and supplemental sources fill gaps or add context.

SystemWhat we deriveUsed byRole
MassivePrimary earnings calendar and reported results/api/earnings · /api/results · alertsPrimary
FinnhubQuotes, profiles, estimates, financial metrics and newsScoring · fundamentals · ticker lookup · chatPrimary
FMPFinancial statements, profile and earnings fallbacksFundamentals · enrichment · news fallbackFallback
Alpaca Market DataIEX bars, snapshots, movers and live minute streamTechnicals · mover research · strategy workerPrimary
Alpha VantageSupplemental market and economic indicatorsSix-layer earnings scoreSupplemental
Polygon / Massive APIOptions and previous-close contextSix-layer earnings scoreSupplemental
FREDMacro regime: rates, inflation, growth and sentimentEconomics · macro scoring layerSupplemental
AnthropicEarnings score, reaction, reports, chat and uploadsAI processing routesPrimary
ClerkAccounts, sessions and private research accessDashboard · strategy lab · private APIsControl
ResendSubscriber, score, weekly and feedback emailScheduled alerts · feedbackOutput
OPERATIONS

What runs when

The website is request-driven; the research worker is continuous and state is persisted in Neon.

Vercel applicationGitHub push

Builds and deploys the Next.js website and serverless APIs

Render background workerAlways on

Streams bars, discovers movers, generates ideas and manages paper positions

Strategy factoryEvery hour

Creates 100 variants, historically screens them and promotes the strongest

Mover scannerEvery 5 minutes

Adds unusual 40%+ movers and backfills their minute history

Dashboard data15–30 seconds

Refreshes live research, paper positions and market information

Scheduled alertsVercel cron

Morning, score, audit and weekly email workflows

VercelWebsite + API layer

Next.js pages, serverless API normalization, Clerk middleware and scheduled routes.

RenderContinuous research

Always-on market stream, mover discovery, strategy generation and simulated position management.

NeonResearch memory

Durable bars, experiments, signals, rejections, trades and aggregate performance.

AlpacaMarket + paper broker

IEX market data, movers, account state and optional paper-order execution.