Webhook Integration Setup
Webhooks enable real-time event notifications without polling. Smart Money API sends HTTP POST requests to your endpoint when significant events occur: whale movements, exchange flow changes, miner activity, and market signals. This guide covers webhook configuration, event types, and retry logic.
Setting Up Webhooks
Configure webhooks in your account dashboard at Dashboard → Webhooks → Add Endpoint. Provide your HTTPS endpoint URL and select event types to monitor.
Webhook requirements:
- HTTPS endpoint (TLS 1.2+)
- Responds within 30 seconds
- Returns HTTP 200-299 status code
- Can receive 100+ concurrent requests during high-activity periods
- Idempotent processing (handles duplicate events)
Supported Event Types
Available webhook events cover major market signals:
- whale.movement: Major wallet transaction detected
- whale.accumulation_surge: Multiple whales accumulating simultaneously
- exchange.inflow_spike: Sudden exchange deposit increase
- exchange.outflow_surge: Major withdrawal wave detected
- miner.capitulation: Miner selling activity above threshold
- miner.accumulation: Miners holding coins (bullish signal)
- metric.nvt_signal: NVT ratio enters overbought/oversold zone
- metric.mvrv_extreme: MVRV ratio indicates potential reversal
Webhook Payload Format
Signature Verification
All webhooks include an HMAC-SHA256 signature for verification. Validate signatures to ensure requests are from Smart Money API.
Retry and Timeout Logic
If your endpoint fails to respond, Smart Money API retries with exponential backoff: 1s, 5s, 30s, 5m, 30m, then stops. Always implement idempotent processing using event_id.
Error Handling
Handle webhooks gracefully:
- Return 200 immediately after queueing for processing
- Don't perform long operations in webhook handler
- Log all webhook activity for debugging
- Implement backpressure mechanisms if overwhelmed
- Alert on webhook delivery failures