Data Pipeline

Real market data · Automated daily cron · Manual controls

Price Data Status

Loading status…

Run Full Pipeline

Executes all 4 steps in sequence: fetch prices → predict → resolve → trade

Manual Step Controls

Fetch Prices (Daily)

Pull last 7 days of OHLCV data

POST /api/fetch-prices?mode=daily — upserts into prices table, deduplicates automatically

Backfill Prices (100 days)

Initial data population or gap fill

POST /api/fetch-prices?mode=backfill — fetches 100 calendar days of history. Run once to seed the database.

Run Predictions

AI prediction engine for all stocks

POST /api/run-predictions — computes MA Crossover, RSI, MACD, Momentum signals and stores results

Resolve Predictions

Grade yesterday's predictions

POST /api/resolve-predictions — marks predictions correct/incorrect based on actual price movement

Paper Trading Bot

AI bot opens and closes positions

POST /api/paper-trading/execute — bot reads new predictions, opens high-confidence trades, closes old ones

Automation Schedule

Daily Cron — Weekdays at 4 PM ET (21:00 UTC)

Configured in vercel.json · Schedule: 0 21 * * 1-5

Active on Vercel
POLYGON_API_KEY — set in Vercel env vars for real-time data. Leave blank to use Yahoo Finance (free, no key needed).
CRON_SECRET — set in Vercel env vars to secure the cron endpoint. Vercel auto-includes it as a Bearer token.
On first deploy, click Backfill Prices above to seed 100 days of historical data.