Webhook Integration

Receive real-time notifications for alerts, trade executions, and system events via HTTP webhooks.

What are Webhooks?

Webhooks are HTTP POST requests sent to your server when specific events occur in Stratify. Use them to:

Integrate with Other Tools

Send alerts to Discord, Slack, Telegram, or custom applications

Automate Workflows

Trigger automated actions when trade signals or alerts fire

Custom Notifications

Build your own notification system with full control

Log & Monitor

Store event history in your own database for analysis

Setting Up Webhooks

1. Configure Webhook URL

In Stratify, go to Settings → Integrations → Webhooks

https://your-server.com/stratify-webhook

2. Select Event Types

  • Alert Triggered
  • Paper Trade Executed
  • Backtest Completed
  • Strategy Signal Generated

3. Test Webhook

Click "Send Test" to verify your endpoint receives requests

Webhook Payload Example

Alert Triggered Event:

{
  "event": "alert.triggered",
  "timestamp": "2026-01-22T15:30:00Z",
  "data": {
    "alert_id": "123e4567-e89b-12d3-a456-426614174000",
    "symbol": "AAPL",
    "type": "price",
    "condition": "price >= 185.00",
    "current_value": 185.20,
    "message": "AAPL reached target price of $185"
  }
}

Security Best Practices

💡 Verify Webhook Signature

Each webhook includes an HMAC signature in headers. Verify it to ensure requests are from Stratify.

💡 Use HTTPS

Always use HTTPS endpoints to encrypt webhook data in transit.

💡 Handle Retries

Stratify retries failed webhooks up to 3 times. Return 200 OK to acknowledge receipt.