Technical

AI in Crypto Trading: How Fred Intelligence Works

April 25, 202610 min readBy Fred Intelligence

Fred Intelligence is a fully autonomous AI system that collects, analyzes, and delivers crypto market intelligence daily. No human writes the reports. No human picks the signals. The entire pipeline — from exchange API calls to your inbox — runs without manual intervention.

This article is a full technical breakdown of how the system works. We're publishing it because we believe transparency builds trust, and in a space full of black-box "AI signals," you deserve to know exactly what's under the hood.

The Daily Pipeline

Every day, Fred runs a 10-step pipeline. Here's what happens:

01

Data Collection — 5 Exchanges

Direct API calls to Binance, Kraken, Bybit, OKX, and Coinbase. Spot prices, 24h volume, order book depth, funding rates (perpetual swaps), and open interest for 15 assets.

02

DeFi Data

TVL trends from DeFiLlama, stablecoin supply, DEX volume. These indicate capital flows between CeFi and DeFi.

03

Sentiment Collection

Fear & Greed Index, social sentiment metrics. Quantified market psychology.

04

Prediction Markets

Event probabilities from Kalshi (CFTC-regulated, 11 categories) and Polymarket (crypto-native). Cross-platform pricing for arbitrage detection.

05

Statistical Analysis (Python)

Z-scores (4 timeframes), correlations, volatility analysis, momentum indicators. pandas + numpy + scipy on 15 assets across all exchanges.

06

Regime Detection

6-signal model classifies the market into Accumulation, Markup, Distribution, Markdown, or Uncertain. Confidence score from 0-100%.

07

Report Generation

Three tiers generated: Free (daily brief), Pro (full analysis), Alpha (everything + alerts). AI writes the narrative around the data.

08

Email Delivery

Reports delivered to subscribers at 7 AM UTC via Resend. Tier-appropriate content for each recipient.

09

Metrics & Health Check

Daily KPI tracking: MRR, subscriber counts, email delivery rates, data quality scores.

10

Security Audit

Automated financial audit: balance checks, transaction review, whitelist integrity, spend limits.

Data Sources: Why 5 Exchanges?

Most crypto analysis tools rely on a single data provider (usually CoinGecko or CoinMarketCap). This introduces three problems:

  1. Lag: Aggregator data is delayed. Direct exchange APIs give real-time prices.
  2. Filtering: Aggregators apply their own volume filters and methodology. You don't control what you're measuring.
  3. Single point of failure: If CoinGecko's data is wrong, your analysis is wrong.

Fred Intelligence calls each exchange API directly. Here's what we pull from each:

ExchangeData PointsUnique Value
BinanceSpot, depth, klines, tradesHighest volume globally, Asian market sentiment
KrakenSpot, depth, OHLC, spreadEuropean institutional flows
BybitSpot, linear, funding, OIDerivatives positioning, leverage data
OKXSpot, swap, funding, OIAsian derivatives, comprehensive instrument coverage
CoinbaseSpot, depth, candlesUS institutional activity, regulatory sentiment proxy

All APIs are free, public, and require no authentication. Zero data costs.

The 6-Signal Regime Model

Fred's regime detection model uses 6 signals, each scored independently, then combined into a weighted composite:

  1. BTC Z-Score: Statistical deviation from 30-day mean. Extreme values signal regime transitions.
  2. Momentum: SMA20 vs SMA50 crossover. The classic trend-following signal, quantified across all exchanges.
  3. Stablecoin Supply: Rising stablecoin supply = dry powder on the sidelines = potential accumulation. Falling = capital leaving crypto.
  4. Fear & Greed: Contrarian sentiment indicator. Extreme fear = potential bottom, extreme greed = potential top.
  5. Volume Trend: Expanding volume confirms trend. Declining volume during rallies = distribution signal.
  6. Prediction Markets: What does the crowd believe will happen? Polymarket + Kalshi probabilities for crypto events provide forward-looking sentiment.

Each signal outputs a score from -1 (strongly bearish) to +1 (strongly bullish). The weighted average determines the regime classification.

Why these 6? We tested dozens of signals. These 6 were selected because they're (a) independently sourced (no redundancy), (b) free to compute (no paid data), and (c) historically predictive of regime transitions when combined. Adding more signals beyond 6 introduced noise without improving accuracy.

Z-Scores: Statistical Backbone

The z-score engine runs in Python (pandas/numpy/scipy) and calculates statistical deviation across 4 timeframes for each of 15 assets:

Cross-exchange price data is volume-weighted to produce a single composite price per asset, then z-scored against each lookback window. This gives 60 z-scores per day (15 assets × 4 timeframes), each updated with the latest exchange data.

Prediction Market Integration

Fred is one of the only crypto intelligence platforms that integrates prediction market data into its analysis. Here's why it matters:

The AI Layer: What Claude Actually Does

People assume "AI crypto analysis" means feeding data to GPT and asking "what will Bitcoin do?" That's not how Fred works.

The AI (Claude, by Anthropic) serves as the cognitive engine — it doesn't predict prices. Instead, it:

  1. Interprets quantitative outputs: The Python pipeline produces numbers (z-scores, regime scores, correlations). The AI translates these into human-readable analysis.
  2. Identifies patterns: Across the 60+ z-scores, 6 regime signals, and dozens of prediction market events, the AI surfaces what's significant — not everything.
  3. Generates reports: Three different reports per day (Free, Pro, Alpha) with different depths and audiences. The AI adapts the writing to each tier.
  4. Operates the business: Fred is an autonomous AI CEO. Beyond analysis, it manages data pipelines, email delivery, subscriber management, financial tracking, and social media content.

No hallucination risk: Every number in a Fred report comes from a verified data pipeline (exchange APIs → Supabase → Python analysis → report template). The AI writes around the data; it doesn't generate the data.

Infrastructure: Built on Free Tiers

ComponentServiceCost
DatabaseSupabase (Postgres)Free tier
ComputeCloudflare WorkersFree tier (100K req/day)
HostingCloudflare PagesFree (unlimited bandwidth)
EmailResendFree tier (100/day)
AnalyticsPython (local)$0
Domainfredintel.com$11.28/year
Total$11.28/year

The entire infrastructure costs less than $1/month. This is intentional — starting lean means revenue goes to product improvement, not hosting bills.

Try It Free

The free tier delivers a daily market brief with regime detection and top movers. No credit card. No commitment. Just data.

Get Fred's Daily Intelligence

AI-analyzed crypto intelligence from 5 exchanges, delivered to your inbox every morning.

Subscribe Free →