Quickstart Guide

Get crypto market intelligence from 9 data sources in one API call. No SDK required.

API Playground

Click any endpoint below to see a live response. No setup needed — these hit the real API.

Live API Response
Click an endpoint above to test it

Your First API Call

The market overview endpoint requires no authentication. Try it now:

curl
curl https://getregime.com/api/v1/market/overview

This returns BTC/ETH prices, Fear & Greed index, regime classification, BTC dominance, DeFi TVL, and total market cap — all from a single call.

Live Response (updates every 60s)
Loading...
No auth needed — The market overview and regime endpoints work without an API key on the free tier (15-minute delay, 10 req/min).

Get an API Key

Register with your email to get a free API key. No credit card required.

curl
curl -X POST https://getregime.com/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'
Response
{
  "tenant": {
    "id": "ten_abc123...",
    "email": "[email protected]",
    "tier": "free"
  },
  "apiKey": {
    "key": "cse_live_k1_abc123...",
    "tier": "free",
    "rate_limit_rpm": 30
  }
}
Save your API key — it's shown only once at registration. If you lose it, create a new one via POST /api/v1/auth/keys.

Authentication

Pass your API key as a Bearer token in the Authorization header:

curl
curl https://getregime.com/api/v1/signals/all \
  -H "Authorization: Bearer YOUR_API_KEY"

Rate limit headers are included in every authenticated response:

Market Overview

Complete market snapshot from 9 data sources in one response.

curl
GET /api/v1/market/overview

# Returns:
# - BTC & ETH price, 24h change
# - Fear & Greed Index (0-100)
# - BTC Dominance %
# - Total market cap, volume
# - DeFi TVL
# - Regime classification (bull/bear/chop + confidence)
# - 10 regime signals with individual interpretations

Regime Detection

Classifies the crypto market as bull, bear, or chop using 10 independent signals.

curl
curl https://getregime.com/api/v1/market/regime

Signals Used

Intelligence Endpoints

Pre-analyzed market intelligence — regime + crowd positioning + macro divergences + risk assessment in structured endpoints. All require Pro ($49/mo) or higher.

Intelligence Brief

One-call synthesis of regime state, crowd positioning, macro environment, and risk factors.

curl
curl https://getregime.com/api/v1/intelligence/brief \
  -H "Authorization: Bearer YOUR_API_KEY"

# Returns: regime, confidence, top drivers, crowd positioning,
# macro environment (DXY, VIX, SPX, Gold), active signals,
# risk assessment, and actionable summary

Crowd Positioning

Aggregate funding rate bias, liquidation imbalance, and crowd direction across major exchanges.

curl
curl https://getregime.com/api/v1/intelligence/crowd-positioning \
  -H "Authorization: Bearer YOUR_API_KEY"

# Returns: funding_bias (long/short/neutral),
# avg_funding_rate_btc, long_short_ratio_btc,
# liquidation_imbalance, crowd_direction

Divergences

Detects cross-market divergences that often precede major moves.

curl
curl https://getregime.com/api/v1/intelligence/divergences \
  -H "Authorization: Bearer YOUR_API_KEY"

# Detects: DXY-BTC divergence, VIX-crypto mismatch,
# fear-regime disagreement, extreme fear in bear regime,
# OI-price divergence across assets

Regime History

Historical regime transitions with timestamps, duration, and average confidence.

curl
curl https://getregime.com/api/v1/intelligence/regime-history \
  -H "Authorization: Bearer YOUR_API_KEY"

# Pro: 30 days of history
# Institutional: full history back to day one

Point-in-Time Regime

Query what the regime was at any historical timestamp.

curl
# Pass a Unix timestamp (ms)
curl "https://getregime.com/api/v1/intelligence/regime-at?ts=1774500000000" \
  -H "Authorization: Bearer YOUR_API_KEY"

HMM Regime Detector

Hidden Markov Model regime detection using Baum-Welch + Viterbi algorithms. Probabilistic state estimation independent of the main classifier.

curl
curl https://getregime.com/api/v1/intelligence/hmm-regime \
  -H "Authorization: Bearer YOUR_API_KEY"
Pro tier required — All intelligence endpoints require Pro ($49/mo) or Institutional ($149/mo).
See plans & upgrade →

Strategy Signals

Live entry/exit signals from 6 strategies running 24/7 on real candle data.

curl
# All signals
curl https://getregime.com/api/v1/signals/all \
  -H "Authorization: Bearer YOUR_API_KEY"

# Signals for a specific asset
curl https://getregime.com/api/v1/signals/ETHUSDT \
  -H "Authorization: Bearer YOUR_API_KEY"

Active Strategies

Pro tier required — Strategy signals, prediction markets, macro indicators, and aggregated futures data require Pro ($49/mo) or higher.
See plans & upgrade →

All Endpoints

Market Intelligence (Public)

GET/api/v1/market/overviewFull market snapshot
GET/api/v1/market/assetsTop 20 asset snapshots
GET/api/v1/market/regimeRegime classification

Intelligence (Pro+)

GET/api/v1/intelligence/briefSynthesized market intelligencePro
GET/api/v1/intelligence/crowd-positioningFunding bias, liquidation imbalancePro
GET/api/v1/intelligence/divergencesDXY-BTC, VIX-crypto mismatchesPro
GET/api/v1/intelligence/regime-historyRegime transitions over timePro
GET/api/v1/intelligence/regime-at?ts=Point-in-time regime queryPro
GET/api/v1/intelligence/hmm-regimeHMM probabilistic regimePro

Signals & Data (Pro+)

GET/api/v1/signals/allAll strategy signalsPro
GET/api/v1/signals/:symbolSignal history for assetPro
GET/api/v1/market/futuresAggregated funding + OIPro
GET/api/v1/market/depthOrder book imbalancePro
GET/api/v1/market/macroDXY, VIX, SPX, GoldPro
GET/api/v1/freqtrade/regimeFreqtrade-optimizedPro

Auth

POST/api/v1/auth/registerCreate tenant + API key
POST/api/v1/auth/keysCreate new keyAuth
GET/api/v1/auth/keysList your keysAuth
DELETE/api/v1/auth/keys/:idRevoke a keyAuth
GET/api/v1/auth/meYour tenant infoAuth
GET/api/v1/auth/usage30-day usage statsAuth

Billing

GET/api/v1/billing/plansAvailable plans
POST/api/v1/billing/checkoutStart Stripe checkoutAuth
GET/api/v1/billing/statusSubscription statusAuth

Historical Data

GET/api/v1/market/history?days=30&format=jsonMarket snapshot export (JSON/CSV)Institutional

Webhooks

POST/api/v1/webhooksRegister webhookInstitutional
GET/api/v1/webhooksList webhooksInstitutional
DELETE/api/v1/webhooks/:idDelete webhookInstitutional
POST/api/v1/webhooks/:id/testSend test eventInstitutional

Tiers & Rate Limits

TierPriceRate LimitData DelayAssetsKey Features
Free$010 req/min15 minBTC, ETH Market overview, regime detection, AI briefings
Pro$49/mo120 req/minReal-timeAll 20+ + Signals, risk scoring, prediction markets, macro, futures
Institutional$149/mo1,000 req/minReal-timeAll 20+ + Historical data, webhooks, priority support

Error Handling

All errors return JSON with an error message and a machine-readable code:

Error Response
{
  "error": "Rate limit exceeded",
  "code": "RATE_LIMITED",
  "limit": 10,
  "retryAfterMs": 45000
}
StatusCodeMeaning
401MISSING_AUTHNo Authorization header
401INVALID_KEYAPI key revoked or invalid
403FEATURE_GATEDEndpoint requires higher tier
429RATE_LIMITEDToo many requests

Code Examples

Python

python
# pip install requests
import requests

BASE = "https://getregime.com"
API_KEY = "YOUR_API_KEY"

# No auth needed for market data
overview = requests.get(f"{BASE}/api/v1/market/overview").json()
print(f"Regime: {overview['regime']['regime']} ({overview['regime']['confidence']:.0%})")
print(f"Fear & Greed: {overview['fearGreedIndex']}")

# Auth required for signals
headers = {"Authorization": f"Bearer {API_KEY}"}
signals = requests.get(f"{BASE}/api/v1/signals/all", headers=headers).json()
for s in signals:
    print(f"  {s['symbol']} — {s['direction']} (strength: {s['strength']})")

JavaScript / Node.js

javascript
// No dependencies needed — uses built-in fetch
const BASE = 'https://getregime.com';
const API_KEY = 'YOUR_API_KEY';

// Market overview (no auth)
const overview = await fetch(`${BASE}/api/v1/market/overview`)
  .then(r => r.json());

console.log(`Regime: ${overview.regime.regime}`);
console.log(`Fear & Greed: ${overview.fearGreedIndex}`);

// Strategy signals (auth required)
const signals = await fetch(`${BASE}/api/v1/signals/all`, {
  headers: { Authorization: `Bearer ${API_KEY}` }
}).then(r => r.json());

signals.forEach(s =>
  console.log(`${s.symbol} — ${s.direction} (${s.strength})`)
);

Trading Bot Pattern

python
# Check regime before entering any trade
import requests, time

BASE = "https://getregime.com"
KEY = "YOUR_API_KEY"
headers = {"Authorization": f"Bearer {KEY}"}

while True:
    # 1. Check regime — don't trade in bear markets
    regime = requests.get(f"{BASE}/api/v1/market/regime").json()
    if regime["regime"] == "bear" and regime["confidence"] > 0.7:
        print("Bear market — sitting out")
        time.sleep(300)
        continue

    # 2. Get signals
    signals = requests.get(f"{BASE}/api/v1/signals/all", headers=headers).json()
    bullish = [s for s in signals if s["direction"] == "long"]

    for signal in bullish:
        # 3. Check token risk before entering
        risk = requests.get(
            f"{BASE}/api/v1/risk-score/{signal['token_address']}",
            headers=headers
        ).json()

        if risk["score"] > 70:
            print(f"Skipping {signal['symbol']} — risk score {risk['score']}")
            continue

        print(f"Signal: {signal['symbol']} {signal['direction']} (risk: {risk['score']})")
        # Execute your trade logic here...

    time.sleep(60)
Need the full OpenAPI spec? — Interactive Swagger UI at /api/v1/docs or raw JSON at /api/v1/openapi.json.

Ready for real-time data and strategy signals?

Free gives you the market picture. Pro gives you the playbook — real-time data, 6 strategy signals, prediction markets, macro overlay, and 20+ assets.

Get Free API Key Upgrade to Pro — $49/mo

No credit card for free tier. Cancel Pro anytime.