News Automation & Operations

5 Data Sources, 1 Lightweight Financial AI Terminal

How We Replaced 5 Tools With One Automated AI Data Pipeline in a Week

Published 6 min read
BPC Macro Terminal Console — Dashboard
The delivery layer — regime gauge, key metrics, AI market pulse, all served from the pipeline cache

The Data Problem

Big Picture Capital monitors financial markets across five asset classes - indices, ETFs, futures, commodities, and crypto - using macroeconomic indicators from the Federal Reserve alongside technical chart analysis.

Before engaging DataFlos, this meant:

  • 5 separate data sources - with different APIs, formats, rate limits, and authentication patterns
  • Manual synthesis - checking yields on FRED, charts on TradingView, sector rotation on another screener, then mentally aggregating it all
  • No computation layer - raw data everywhere, computed intelligence nowhere. Indicators were done by eye, not by system.
  • No historical pipeline - each session started from scratch with no cached data, no trend tracking, no automated refresh

Our Approach

This is what a fractional data function looks like in practice.

  1. Scope the Data Landscape

    Before writing code, we mapped every data source, its constraints, and the transformations needed. Each source had its own rate limits, data formats, and reliability characteristics. A single-source strategy would have been fragile. A brute-force multi-source strategy would have hit rate limits immediately.

  2. Design the Pipeline

    We designed a daily ETL pipeline that runs unattended. Extract: fetch from all 5 sources with rate-limiting, retry logic, and cascading fallbacks. Transform: compute 8 technical indicators per ticker, classify instruments into market cycle stages, calculate sector relative strength, derive a composite regime score, compute cross-asset correlations, and normalize FRED unit mismatches. Load: upsert into a 12-table PostgreSQL cache. Then an AI synthesis pass generates natural-language narratives from the structured output.

  3. Build the Delivery Layer

    The pipeline produces intelligence. The dashboard surfaces it. A dark-themed analytics terminal reads exclusively from the cache — no client-side computation, sub-second page loads. The interface is the least interesting part of the engineering; the pipeline is the product.

  4. Automate and Maintain

    The entire pipeline runs on a daily cron schedule (6:30 PM ET). Zero manual intervention. The client opens the dashboard and sees fresh, computed data. No scripts to run, no exports to manage, no "can you pull the latest numbers?"

The Data Pipeline

This is the core of what we built — the dashboard is just the interface.

Twelve DataUS Indices
Polygon.ioStocks / ETFs
Yahoo FinanceFutures / Crypto
FREDMacro Series
Claude APIAI Synthesis
  1. ExtractRate-limited fetchers with fallback chains
  2. TransformEMA, RSI, MACD, Stage, RS, Regime, Correlations, Net Liquidity
  3. Load12-table PostgreSQL cache architecture
  4. AI SynthesisStructured data → natural-language narratives
  5. 30+ API Endpoints → DashboardRead-only cache hits, sub-second renders

What the pipeline computes daily

ComputationInputOutput
Technical indicatorsRaw OHLCV per tickerEMA-10, EMA-21, SMA-30W, RSI-14, MACD
Weinstein StagePrice vs. 30-week SMA + slopeS1 (Base), S2 (Advance), S3 (Top), S4 (Decline)
Macro regime score8 FRED seriesSingle 0–1 composite score
Sector relative strengthSector ETF prices vs. SPYRS-Ratio + RS-Momentum per sector
Cross-asset correlations30/90/365-day price windowsPairwise Pearson coefficients
Net liquidityWALCL, WDTGAL, RRPONTSYDFed balance sheet − TGA − reverse repo (unit-normalized)
AI narrativesAll of the aboveMarket pulse, section briefs, event calendar

The Delivery Layer

The dashboard is how the client interacts with the pipeline's output. Every screen reads from the cache - no computation happens in the browser.

Terminal Home - Regime at a Glance

Composite regime gauge (0-1 from 8 macro factors), key metrics grid with weekly changes, AI market pulse, LCD ticker, and upcoming events - all from the pre-computed cache.

Dashboard analytics
Growth Signal, Cross-Asset Alignment, Market Velocity — pipeline-computed analytics

Watchlists with Computed Intelligence

Drag-and-drop watchlist groups with prices, 30-day sparklines, and stage badges. Crypto (BTC, ETH, SOL) alongside traditional assets.

Watchlists and momentum chart
Multi-asset momentum overlay + watchlist groups with pre-computed stage badges

Full-Screen Charting

Charts page
TradingView Advanced Charts with watchlist panel for instant symbol switching

Macro Terminal

Macro terminal
FRED data synthesized: key metrics, 8-factor radar chart, yield curve

Sector Rotation

Sector heatmap
Sector performance heatmap with color-coded returns across timeframes

Data Engineering Challenges

01

Rate Limits Across Providers

Problem

Problem: Polygon.io's free tier allows only 5 calls/min. With 20+ tickers each needing OHLCV data plus historical backfill, a naive approach would exhaust the quota immediately.

Solution

Solution: Batched pipeline with configurable delays, exponential backoff, and a multi-source routing strategy. If one provider is down, the pipeline degrades gracefully.

02

Unreliable Index Feeds

Problem

Problem: Polygon.io's free tier returned empty data for NASDAQ Composite. Missing index data breaks the entire regime computation downstream.

Solution

Solution: Twelve Data as primary index source with cross-provider symbol mapping (^GSPC → SPX → I:SPX). ETF proxies as final fallback.

03

FRED Unit Mismatches

Problem

Problem: Net liquidity combines three FRED series in different units — WALCL and WDTGAL in millions, RRPONTSYD in billions. Without normalization, the math produces plausible-looking but wrong numbers.

Solution

Solution: Normalization layer that detects each series' unit denomination and converts to a common base (trillions) before arithmetic. The worst kind of data bug is the one that looks correct.

04

Edge Runtime Cookie Handling

Problem

Problem: OAuth sessions weren't persisting — infinite login redirect. Next.js Edge Runtime silently dropped Set-Cookie headers during the callback.

Solution

Solution: Middleware detects OAuth verifier and redirects to a Node.js API route where cookies work. A platform-level nuance that cost hours to diagnose.

05

Chart Sync Fragility

Problem

Problem: Four chart panels needed time-axis sync via polling. Failed on slow loads.

Solution

Solution: Migrated to single TradingView Advanced Chart widget. Replaced ~500 lines of custom sync with one component.

06

Bugs That Pass Static Analysis

Problem

Problem: Race conditions, null values from partial API responses, timezone edge cases in cron — none flagged by linting or type-checking.

Solution

Solution: Mandatory e2e test sweeps after every phase — browser automation, screenshot evidence, database verification. One sweep caught 7 bugs in a single pass.

How We Ship

DataFlos uses an AI-augmented development workflow built around Claude Code. This encodes methodology into repeatable, auditable processes.

  1. 01Requirements
  2. 02/plan-feature
  3. 03Human Review
  4. 04/execute
  5. 05/e2e-test
  6. 06/commit
/plan-featureGenerates a comprehensive plan: codebase analysis, design decisions with alternatives, step-by-step tasks, e2e specs. Detailed enough for single-pass implementation.
/executeImplements the plan task-by-task in dependency order, validating after each step.
/e2e-testBrowser automation testing every user journey with screenshots and database verification.

A living architecture document (CLAUDE.md, 500+ lines) encodes project conventions and constraints. Persistent memory carries context across sessions. Every implementation session starts fully informed — no ramp-up, no pattern drift.

Claude as a Product Feature

Beyond development, Claude powers features inside the application:

All AI outputs cached 24h. The dashboard works fully without AI — it's progressive enhancement, not a dependency. Costs scale with the cron schedule, not page views.

Results

The old way
  • 5 platforms, manually checked
  • Synthesis done in the trader's head
  • No computation layer
  • Every session starts from scratch
  • No AI analysis
The Dataflos way
  • Unified pipeline, auto-refreshed daily
  • Computed: regime score, stages, RS, correlations
  • 12-table cache architecture
  • Zero-touch — cron runs, dashboard is ready
  • Market pulse, section narratives, ticker insights
5Data Sources Unified
12Cache Tables
30+API Endpoints
~1 wkZero to Production
0Manual Steps in Refresh
0Servers to Manage

What This Demonstrates

This project is a compressed example of what a fractional data function delivers:

  • Data pipeline engineering: Multi-source ingestion with rate limiting, fallbacks, and error handling. Not just "connecting APIs" — handling the edge cases that make pipelines reliable.
  • Transformation & computation: Raw data in, computed intelligence out. The client sees regime scores, stage classifications, and correlation matrices — not OHLCV rows.
  • AI integration: Claude wired into the pipeline, receiving structured data, producing natural-language synthesis cached and served like any other computed metric.
  • Automation: The pipeline runs itself. No scheduled exports, no manual refresh. Open a tab and the intelligence is there.
  • Zero-ops delivery: Serverless infrastructure means no servers to patch, no containers to monitor. The client gets a production system without a production burden.

Your data is an asset. We build the plumbing.

For businesses that need the edge of a data team without building one - that's what DataFlos delivers.

Book A Call