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
- Create a price alert as usual (from chart or terminal)
- In the Notification Outputs section, enable Webhook
- Enter your webhook URL (e.g.,
https://your-server.com/webhook) - 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/jsonUser-Agent: Xtreders-PriceAlerts/1.0X-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.