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.
| Kind | Parameters | Fires when |
|---|---|---|
market_volume | window_minutes, min_volume_sol | SOL volume over the window reaches the threshold |
token_migration | — | A token completes its bonding curve |
market_cap | mint, above_usd | A token's market cap reaches the threshold |
developer_launch | creator | A creator launches a new token |
wallet_activity | wallet, min_sol | A wallet trades at least min_sol |
query_rows | query_slug, min_rows | A saved query returns at least min_rows rows |
token_activity_spike | mint, multiplier | 10-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 secondsx-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.