Webhook Alerts - Automate Your Trading Signals

Learn how to use Xtreders webhook alerts to automate trading signals. Send alert data to Telegram, Discord, or custom bots via HTTP POST.

TradingView-Style Webhooks on Xtreders

Our webhook system lets you send alert data to any external URL when a price condition is met. This is perfect for building automated trading systems, sending alerts to Telegram bots, Discord channels, or custom applications.

How Webhooks Work

  1. Create a price alert as usual (from chart or terminal)
  2. In the Notification Outputs section, enable Webhook
  3. Enter your webhook URL (e.g., https://your-server.com/webhook)
  4. When the alert triggers, Xtreders sends a POST request to your URL

Webhook Payload Format

The JSON payload sent to your webhook URL contains:

{
  "symbol": "EURUSD",
  "condition": "crossing_up",
  "price": 1.08500,
  "trigger_price": 1.08512,
  "message": "EURUSD crossed above 1.08500",
  "time": "2026-02-16T12:30:00.000Z",
  "alert_name": "My EUR Alert",
  "frequency": "once",
  "trigger_count": 1,
  "exchange": "xtreders"
}

Request Headers

Each webhook request includes these headers:

  • Content-Type: application/json
  • User-Agent: Xtreders-PriceAlerts/1.0
  • X-Alert-Id: 123 (your alert ID)
  • X-User-Id: 456 (your user ID)

Use Cases

  • Telegram Bot: Forward alerts to a Telegram group
  • Discord: Post alerts to a Discord channel webhook
  • Auto-Trading: Trigger trades on your broker via API
  • Logging: Record all alert triggers in a spreadsheet or database
  • Multi-Platform: Sync alerts across different trading tools

Troubleshooting

Webhooks have a 10-second timeout. If your server does not respond within 10 seconds, the delivery is marked as failed (but the alert still triggers normally for other notification types). Make sure your webhook endpoint returns a 200 status quickly.


Xtreders Teams

26 Blog posts

Comments