Skip to content
DataLayer
Product

Alerts & webhooks

Alerts are evaluated every 30 seconds against the latest warehouse snapshot. Event-based alerts (migrations, creator launches, wallet activity) keep a cursor in data time — the newest trade timestamp in the snapshot they last saw — and re-check a two-minute overlap, so events that reach a later snapshot are not skipped and are never delivered twice. A new alert starts from the current data and does not fire for past events. Each evaluation reports at most 20 matching events per alert; with a very active wallet, excess events in one cycle are not reported.

KindParametersFires when
market_volumewindow_minutes, min_volume_solSOL volume over the window reaches the threshold
token_migration—A token completes its bonding curve
market_capmint, above_usdA token's market cap reaches the threshold
developer_launchcreatorA creator launches a new token
wallet_activitywallet, min_solA wallet trades at least min_sol
query_rowsquery_slug, min_rowsA saved query returns at least min_rows rows
token_activity_spikemint, multiplier10-minute volume exceeds the prior hourly baseline × multiplier

Each alert has a cooldown (default 15 minutes) and events are de-duplicated.

Delivery

  • In-app — always. Notifications appear in the Alerts page.
  • Webhook — optional HTTPS endpoint.

Webhook security

DataLayer only delivers to public HTTPS endpoints on port 443 or 8443. URLs that resolve to private, loopback, link-local or reserved addresses are rejected, both when you save the alert and at send time. Delivery connects to the exact IP address that passed the check (preventing DNS rebinding) while still verifying the TLS certificate for your hostname. Redirects are not followed.

Verifying signatures

Each alert has its own webhook_secret (shown to you in the Alerts page). Requests carry:

  • x-datalayer-timestamp — Unix seconds
  • x-datalayer-signature — sha256=<hex HMAC-SHA256 of "<timestamp>.<raw body>">
import hmac, hashlib, time

def verify(secret: str, timestamp: str, body: bytes, signature: str) -> bool:
    if abs(time.time() - int(timestamp)) > 300:
        return False
    mac = hmac.new(secret.encode(), timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(f"sha256={mac}", signature)

Failed deliveries (non-2xx or network errors) are retried with exponential backoff up to 5 attempts.