Skip to main content
Goal: fire an alert when a large trade lands. There are two ways to receive the events: a webhook push (no infrastructure to poll, needs a public URL) or polling (works anywhere). Pick one. All requests need a Bearer key. See Authentication.

Option A: webhook push

Register an endpoint on whale_trades_inserted and verify it. Full setup, signature verification, and retry handling are in the Webhooks guide. The event tells you new trades landed; fetch the detail and filter:
Webhook events are coarse: one event per ingest batch, no per-market or per-grade server-side filter. Apply your min_size and min_grade filter on the fetched trades.

Option B: polling

No public URL required. Walk the durable replay feed with a cursor so you never miss or double-count an event across restarts:
For the live feed directly, poll GET /api/v1/whale-trades with your filters, or open the SSE stream for real-time push without a webhook.

Post the alert

Which to choose

Webhooks win when you have a server and want the lowest latency. Polling the cursor feed wins for a script, a notebook, or anything behind NAT.