A Discord Webhook allows MagicTradeBot to send real-time notifications directly into a Discord channel.
It’s ideal for team-based monitoring, desktop dashboards, and trading communities, providing structured messages about trades, risk events, and system alerts.
🔹 Supported Notifications via Discord Webhook
MagicTradeBot can broadcast:
- Trade entries and exits → Know exactly when positions open or close
- Stop-loss / Take-profit triggers → Alerts for risk management events
- Emergency closures → When positions are force-closed due to extreme conditions
- System warnings and errors → API issues, configuration warnings, or exchange problems
These messages help teams or individual traders monitor bot activity in real time.
🔹 How to Set Up a Discord Webhook
Follow these steps to configure Discord notifications:
1️⃣ Create a Webhook in Discord
- Open Discord and navigate to the server where you want notifications.
- Go to the channel settings of your target channel →
Integrations→Webhooks. - Click New Webhook.
Configure the webhook:
- Name: Choose a descriptive name like
MagicTradeBot Alerts - Channel: Select the target text channel
- Avatar: Optional bot avatar image
- Name: Choose a descriptive name like
- Click Copy Webhook URL → This is the URL MagicTradeBot will use to send messages.
2️⃣ Configure MagicTradeBot
Open your settings/market_watch.yaml or broadcast.yaml (depending on your setup) and set:
discord_webhook_url: "https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz"
- Replace the example URL with your actual webhook URL.
- Leave it as
nullif you do not want to use Discord notifications.
3️⃣ Test the Webhook
- Restart MagicTradeBot (recommended) or trigger a test notification.
- Check the configured Discord channel for incoming messages.
- Ensure messages include trade entries, DCA executions, and system alerts.
🔹 Best Practices
- Use a dedicated channel for bot notifications to avoid clutter.
- Limit permissions — do not give webhook unnecessary admin rights.
- Test in demo mode first to confirm message formatting and delivery.
- Combine with other notification platforms (Telegram, WhatsApp) for redundancy.
🔹 Key Takeaway
Discord Webhooks allow MagicTradeBot to:
- Deliver real-time, structured alerts for trades and risk events
- Provide team-wide visibility of bot activity
- Integrate with desktop dashboards and trading communities
Setting up a webhook ensures you stay informed and maintain operational oversight, whether trading solo or as part of a team.