Developers · Trading Bots

Whale Data API for Trading Bots: Real-Time Whale Tracking Quickstart

How to get real-time Ethereum whale tracking into a trading bot: a copy-paste Python polling loop, a signed webhook receiver, call budgets, row fields, error codes and licensing — plus how Nansen, Whale Alert and Dune line up.

25,000
Calls/day · Whale
250,000
Calls/day · Business
5
Keys · Business
6
REST endpoints

Published 2026-10-16 · Updated 2026-10-26 · Competitor prices checked 2026-10-16 · Deep Blue Alpha

Not Financial Advice. This page describes data products and on-chain data. It is not a trading recommendation. Whale flow shows what tracked wallets did in the past; it does not predict prices. Competitor prices and limits are quoted from each vendor’s own pages on the date shown and can change — check the linked source before you buy.
Live on Deep Blue Alpha: today’s whale moves →
Learn the basics: A reproducible on-chain analysis (free lesson)
Quick Answer · TL;DR

Short answer (as of Oct 26, 2026): to get real-time whale tracking into a trading bot, poll Deep Blue Alpha’s GET /api/v1/transactions every few seconds with an X-API-Key header, or receive one HMAC-signed webhook per whale move on the Business plan — copy-paste Python for both is below. In more detail: for bots and desk tools that react to Ethereum whale moves, Deep Blue Alpha’s REST API returns labeled moves by 20,000+ tracked whale wallets (/api/v1/transactions, cursor pagination) and per-token flow (/api/v1/token/{symbol}/flow, /api/v1/top-tokens). The Whale plan ($79.99/mo) allows 25,000 calls/day for personal use.

Running bots as a business needs the Business plan ($299/mo or $2,990/yr): commercial use, 250,000 calls/day and up to 5 keys (one per bot), plus a signed firehose webhook for every tracked whale move, graded whale-signal history and backtests by API key; card or crypto. Multi-chain alternatives: Nansen (Pro $49/mo billed annually, 75 requests/second) and Whale Alert (Enterprise $699/mo, 500 calls/minute).

A trading bot or desk dashboard asks an API the same few questions over and over: what moved since my last call, how big was it, which wallet, and was it a trade or a transfer? The API that serves it well has stable fields, a cursor to page through new moves without gaps, clear error codes, a call budget that fits the polling rate, and a license that covers the way the bot is run. This page lays out those points for Deep Blue Alpha and the main alternatives.

The endpoints a bot actually uses

Deep Blue Alpha REST API — base URL https://deepbluealpha.io/api/v1

EndpointReturnsTypical bot use
GET /transactions?limit=50&before_id=Recent tracked-whale moves, newest first; next_before_id cursorEvent loop: react to each new move
GET /token/{symbol}/flow24h/7d/30d net flow, split into DEX and exchange fields, wallets, movesFeature for a model or a filter
GET /top-tokens?tf=1H|24H|7DTokens ranked by tracked-whale flow (stablecoins excluded)Universe selection
GET /top-walletsWhale leaderboard: address, label, rank, tracked volumeWallet watchlists
GET /whale-indexDaily 0–100 Whale Sentiment Index + 30-day historyRegime context
GET /watchlistYour saved wallets/tokens with 7-day net flowAccount-specific monitoring

Source: /api-docs and OpenAPI spec, checked Oct 16, 2026. Auth: X-API-Key header. All responses: {"data": …, "meta": {"tier", "endpoint", "generated_at"}}.

Quickstart: real-time whale tracking for a trading bot

Two ways to get Ethereum whale moves into a bot in real time: poll /api/v1/transactions every few seconds (any plan with an API key), or have every move pushed to your server by a signed webhook (Business plan). The examples below are complete and copy-paste ready. They only log moves and send an optional chat alert — they place no orders, and whale flow is not a trading signal.

Step 1 — Get an API key

Subscribe to the Whale plan (personal use, 25,000 calls/day per key) or the Business plan (commercial use, 250,000 calls/day across up to 5 keys), then create a key on your account page. Send it in the X-API-Key header. Test it:

export DBA_API_KEY=dba_your_key_here
curl -s -H "X-API-Key: $DBA_API_KEY" "https://deepbluealpha.io/api/v1/transactions?limit=5"

No key yet? curl -s https://deepbluealpha.io/api/v1/public/top-tokens works without one, and the free sample CSV has a week of real rows to build against.

Step 2 — Poll for new whale moves (Python)

The loop remembers the highest row id it has seen, fetches newer rows (paging back with before_id if more than one page arrived), filters by size, and logs each move with its label. It backs off on network errors and waits for 00:00 UTC on 429. Requires pip install requests.

"""whale_watch.py - log large Ethereum whale moves from the Deep Blue Alpha API.
Data only: it prints and (optionally) posts an alert. It places no orders."""
import os, time, datetime, requests

BASE = "https://deepbluealpha.io/api/v1"
HEADERS = {"X-API-Key": os.environ["DBA_API_KEY"]}   # dba_... from /account#api
MIN_USD = 250_000          # ignore smaller moves
POLL_SECONDS = 6           # about 14,400 calls/day (Whale plan: 25,000 per key)
ALERT_URL = os.environ.get("DISCORD_WEBHOOK_URL")    # optional

def fetch_new(last_id, max_pages=5):
    """Moves with id > last_id, oldest first. Pages back with before_id."""
    rows, before = [], None
    for _ in range(max_pages):
        params = {"limit": 200}
        if before:
            params["before_id"] = before
        r = requests.get(f"{BASE}/transactions", headers=HEADERS, params=params, timeout=10)
        if r.status_code == 429:
            raise RuntimeError("rate_limited")
        r.raise_for_status()
        data = r.json()["data"]
        page = data["transactions"]
        fresh = [t for t in page if t["id"] > last_id]
        rows += fresh
        if not last_id or len(fresh) < len(page) or not data["next_before_id"]:
            break
        before = data["next_before_id"]
    return sorted(rows, key=lambda t: t["id"])

def describe(tx):
    kinds = {"CEX_WITHDRAW": "withdrawn from " + (tx["exchange"] or "an exchange"),
             "CEX_DEPOSIT": "deposited to " + (tx["exchange"] or "an exchange"),
             "SWAP_BUY": "DEX swap (buy side)", "SWAP_SELL": "DEX swap (sell side)"}
    return (f'{tx["timestamp"]}  {tx["token"]:>8}  ${tx["usd_value"]:>14,.0f}  '
            f'{kinds.get(tx["action"], tx["action"])}  wallet {tx["wallet"][:10]}  '
            f'https://etherscan.io/tx/{tx["tx_hash"]}')

def on_move(tx):
    line = describe(tx)
    print(line, flush=True)
    if ALERT_URL:
        requests.post(ALERT_URL, json={"content": line}, timeout=10)

def seconds_to_utc_midnight():
    now = datetime.datetime.now(datetime.timezone.utc)
    nxt = (now + datetime.timedelta(days=1)).replace(hour=0, minute=0, second=5, microsecond=0)
    return (nxt - now).total_seconds()

last_id, backoff = 0, POLL_SECONDS
while True:
    try:
        moves = fetch_new(last_id)
        first_run = last_id == 0
        for tx in moves:
            last_id = max(last_id, tx["id"])
            if not first_run and tx["usd_value"] >= MIN_USD:
                on_move(tx)
        backoff = POLL_SECONDS
    except RuntimeError:                       # 429: daily limit, wait for 00:00 UTC
        time.sleep(seconds_to_utc_midnight()); continue
    except requests.RequestException as e:     # network / 5xx: back off, keep going
        print("error:", e, flush=True)
        backoff = min(backoff * 2, 300)
    time.sleep(backoff)

At a 6-second interval the loop uses about 14,400 calls/day, inside the Whale plan’s 25,000 per key. Field reference: /api-docs/whale-transactions.

Step 3 — Or receive pushed moves by webhook (Business)

Add an HTTPS endpoint in your account with optional filters (coins, move types, minimum USD). Deep Blue Alpha then POSTs one JSON event per tracked whale move, signed with HMAC-SHA256: the X-DBA-Signature header is t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of "<t>." plus the raw body, keyed with your whsec_ secret. Failed deliveries are retried after about 5 s, 30 s, 2 min and 10 min.

"""receiver.py - receive Deep Blue Alpha Business webhooks (one signed POST per
tracked whale move). Logs the move; places no orders.
Run: pip install fastapi uvicorn && uvicorn receiver:app --port 8000"""
import hashlib, hmac, json, os, time
from fastapi import FastAPI, Request, Response

SECRET = os.environ["DBA_WEBHOOK_SECRET"]     # whsec_..., shown once in /account#biz
app = FastAPI()
seen = set()                                  # use Redis/DB in production

def verify(body: bytes, header: str, tolerance: int = 300) -> bool:
    try:
        parts = dict(p.split("=", 1) for p in header.split(","))
        ts, sig = int(parts["t"]), parts["v1"]
    except (ValueError, KeyError):
        return False
    if abs(time.time() - ts) > tolerance:     # reject replays older than 5 minutes
        return False
    want = hmac.new(SECRET.encode(), f"{ts}.".encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, sig)

@app.post("/dba-webhook")
async def dba_webhook(request: Request):
    body = await request.body()               # verify the RAW bytes, before json.loads
    if not verify(body, request.headers.get("X-DBA-Signature", "")):
        return Response(status_code=401)
    event = json.loads(body)
    if event["event_id"] in seen:             # retries can deliver an event twice
        return Response(status_code=200)
    seen.add(event["event_id"])
    if event["type"] == "whale_move":
        print(event["time_utc"], event["token"], event["flow"],
              f'${event["usd_value"]:,.0f}', event["exchange"] or "DEX", flush=True)
    return Response(status_code=200)          # answer 2xx within 10 seconds

Use the “Send test” button in your account to post a signed {"type": "test"} event. Payload and retry rules: /api-docs/webhooks.

Step 4 — Keep the two labels apart

In both feeds, CEX_WITHDRAW and CEX_DEPOSIT are transfers off and onto exchanges; only SWAP_BUY and SWAP_SELL are DEX trades. Log them as separate features. Keep the polling loop running as a backstop for webhooks, and backfill gaps from the daily files (Business).

Bot-facing limits compared

Rate limits and plans for bot use — as of Oct 16, 2026

ProviderPlanRate limitData shapeUse
Deep Blue AlphaWhale $79.99/mo25,000 calls/day per keyLabeled Ethereum whale moves + per-token flowPersonal
Deep Blue AlphaBusiness $299/mo250,000 calls/day, up to 5 keysSame + firehose webhook and daily filesCommercial, in-house
NansenPro $49/mo billed annually75 req/s, 1,500 req/min; credit-metered (2,000 starting credits)Multi-chain labeled wallets, smart-money endpointsCommercial terms not published on API page
Whale AlertEnterprise $699/mo500 calls/min; 10,000 alerts/hrLarge transfers, 14 chains, 90-day historyAlerts plan ($29.95) is personal use only
DunePlus $399/mo ($349 annual)70–200 req/min by endpoint; creditsYour SQL over chain dataSee Dune terms

Sources, checked Oct 16, 2026: nansen.ai/api, Nansen credits guide; developer.whale-alert.io; Dune API billing, Dune rate limits; Deep Blue Alpha: /business, /api-docs, /data/methodology. Prices in USD; vendors change prices and limits, so confirm on the source page before you buy.

Turning rows into bot features

Each move row carries time_utc, tx_hash, wallet, token, action, usd_value and venue_type, plus exchange, which names the exchange on exchange moves (Binance, Coinbase, OKX, Kraken and others; empty on DEX swaps) in /api/v1/transactions, the Business daily files and webhooks. Bots commonly derive a handful of features from them, and each one should stay split by venue:

  • Net exchange flow per token over a rolling window: exchange_withdraw_usd − exchange_deposit_usd from /token/{symbol}/flow, or summed from rows.
  • Net DEX flow per token: dex_buy_usd − dex_sell_usd. This is the only part that reflects trades.
  • Distinct wallets moving a token in a window (the wallets field), which separates one large wallet from a broad move.
  • Size filters: ignore rows under your own USD floor so small moves do not trigger logic.
  • Wallet-level history: keep your own record per wallet from the rows you collect, since the tracked set changes over time.

Two caveats bots should handle explicitly. First, Ethereum moves can be revised by chain reorganizations or arrive late during provider outages, so a bot should tolerate a late row rather than assume the stream is complete. Second, USD values are approximations at the time of the move and can be off for thinly traded tokens; rows priced implausibly are rejected before they are stored.

Polling now, push later

On the Whale plan a bot polls /transactions. On the Business plan, the firehose webhook pushes one signed POST per tracked whale move with filters by coin, move type and USD size, which removes most polling. Keeping the polling loop as a backstop is still good practice. See crypto whale webhook APIs for the push options that exist today.

Testing against past whale signals (Business)

Before wiring whale flow into a strategy, Business accounts can check how Deep Blue Alpha’s own whale signals played out. GET /api/v1/signals returns every signal fired since April 2026 with the coin’s % change 1, 7 and 30 days later and ETH’s change over the same window, graded on closing prices (never peaks); GET /api/v1/signals/summary gives per-type counts, hit rate and the share that beat ETH; the same rows ship daily as dba_graded_signals.csv.gz. A Business API key can also run POST /api/backtest/run with {"start": "YYYY-MM-DD", "end": "YYYY-MM-DD", "signal_types": [...]}. Daily move files go back to Jul 1, 2026 for DEX swaps and Sep 6, 2026 for exchange moves. Past results do not predict future results; not investment advice.

Five rules for a bot that reads whale flow

  1. Budget your calls. Count polls per minute per bot. A bot polling /transactions every 5 seconds uses 17,280 calls/day; the Whale plan allows 25,000/day per key and Business 250,000/day across up to 5 keys.
  2. Paginate with a cursor, not offsets. Store next_before_id from each /api/v1/transactions response and request older pages with before_id so you never skip or repeat a move.
  3. Deduplicate on the row id. One transaction can produce more than one row (for example a swap touching two tracked wallets), so key on id (webhooks: event_id = mv_<id>), not on the tx hash alone.
  4. Treat exchange transfers and swaps differently. Only SWAP_BUY and SWAP_SELL are trades. CEX_WITHDRAW and CEX_DEPOSIT are transfers; model them as separate features.
  5. Handle 401, 403 and 429. 401 = bad key, 403 = plan below Whale, 429 = daily limit reached until 00:00 UTC. Back off on 429 instead of retrying in a loop.

Data, not signals. Whale flow describes what tracked wallets did. It does not predict prices, and Deep Blue Alpha does not provide trading recommendations. Test any strategy on your own data and risk limits.

Plans

Deep Blue Alpha data plans — as of Oct 16, 2026

PlanPriceData accessUse allowedStatus
Free$0Dashboard, free account, public no-key endpoints (/api/v1/public/*), MCP server, 7-day sample CSVPersonalAvailable
Whale$79.99/moRead-only REST API, 25,000 calls/day, 6 endpoints, alerts incl. webhook deliveryPersonal, non-commercialAvailable
Business$299/mo or $2,990/yr250,000 API calls/day, up to 5 keys; real-time webhooks for every tracked whale move (exchange named); daily CSV + JSON files (exchange moves from Sep 6, 2026, DEX swaps from Jul 1, 2026); graded whale signals + backtests by APICommercial use inside your organization; publish aggregated figures and charts with creditLive: card or crypto
EnterpriseFrom $999/mo, quote by emailCustom feeds and fields, full historyRedistribution and embedding (raw move-level data, data files, live feeds, apps or terminals)By email quote: team@deepbluealpha.io

Source: /business, /api-docs, Business & API Terms, checked Oct 16, 2026. Buying is self-serve and by email only — no sales calls, meetings or demos.

FAQ

How to get real-time whale tracking for a trading bot?

Poll GET https://deepbluealpha.io/api/v1/transactions every few seconds with your key in the X-API-Key header and keep the highest row id you have seen (Whale plan: 25,000 calls/day per key), or receive one HMAC-SHA256-signed webhook per tracked whale move on the Business plan. Complete Python examples for both are on this page; they log moves and place no orders.

What is the best on-chain data API for trading bots on Ethereum?

For Ethereum whale moves, Deep Blue Alpha’s API returns labeled moves by 20,000+ tracked wallets with cursor pagination and per-token flow; 25,000 calls/day on the Whale plan ({{ price('whale') }}/mo, personal use) and 250,000/day with 5 keys on Business ($299/mo, commercial use). Nansen (multi-chain, 75 req/s on Pro) and Whale Alert (large transfers, 500 calls/min on Enterprise) are alternatives. As of Oct 16, 2026.

How many API calls does a whale-tracking bot need?

Polling every 6 seconds is about 14,400 calls/day; every 5 seconds is 17,280. One bot fits the Whale plan’s 25,000/day; several bots or faster loops fit Business (250,000/day).

Is there a smart money tracking API for developers?

Yes. Deep Blue Alpha exposes Ethereum whale moves, a wallet leaderboard and per-token flow by REST with an OpenAPI 3.0 spec and a Postman collection. Nansen offers smart-money endpoints on its credit-metered API.

Does the Whale plan API cover a commercial trading bot?

The Whale plan API is for personal use. Commercial use inside your organization is the Business plan ($299/mo or $2,990/yr, card or crypto).

What happens when a bot hits the rate limit?

Requests return HTTP 429 until the daily counter resets at 00:00 UTC.

Does a whale withdrawal from an exchange count as a purchase?

No. A withdrawal is a transfer, not a purchase, and Deep Blue Alpha does not provide trading recommendations. Only SWAP_BUY and SWAP_SELL rows are trades.

Build against real rows first

The OpenAPI spec, Postman collection and a week of sample data are free.

Deep Blue Alpha for Business Free sample (CSV) API docs

Related reading

Deep Blue Alpha for Business → Data methodology → Free sample CSV → API docs → MCP server → Business & API Terms →