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.