Guide

Get phone alerts from your trading bot

Most guides show you how to make your bot send a Telegram message when it places a trade. That's useful, but it misses the alert you need most: the one that says the bot has stopped. A bot that crashed at 3am can't tell you it crashed. Here's how to get both kinds of alert on your phone for free, and how to get them without writing any code. Current as of October 2026.

The two kinds of alert

AlertExampleWho has to send it
Something happened"Bought 0.1 BTC", "Up $150 today"The bot itself
Something stopped"Bot crashed", "Bot hasn't checked in for 10 minutes"Something outside the bot that watches it

If you only set up the first kind, a crash just means the messages go quiet, and quiet looks the same as "nothing to report". That's how a bot sits dead all night while the market moves.

Step 1: Pick where alerts go

ntfy is a free phone app (Android and iPhone) that shows a notification whenever something is posted to a topic you subscribe to. There's no account and no bot token. Choose a long, random topic name, because anyone who knows the name can read it, then subscribe to it in the app.

A Discord webhook works too if you'd rather get alerts in a private channel: open the channel's settings, choose Integrations, then Webhooks, and copy the address.

Step 2: Alerts from inside the bot

Sending to ntfy is one web request. In Python:

import requests

def alert(title, message, priority=3):
    requests.post("https://ntfy.sh/your-long-random-topic",
                  data=message.encode(),
                  headers={"Title": title, "Priority": str(priority)},
                  timeout=10)

alert("Target hit", "Up $150.20 today", priority=4)

Wrap the call in try/except so a failed alert never stops the bot, and don't send one on every tick. Ntfy and Discord both limit how fast you can post.

Step 3: Alerts when the bot stops

This needs a small watcher that starts the bot and speaks up when it exits. On Windows, save this next to your bot as run-bot.bat and start the bot with it:

@echo off
:loop
python bot.py
curl -s -H "Priority: 4" -d "Trading bot stopped. Restarting in 10 seconds." ntfy.sh/your-long-random-topic
timeout /t 10 /nobreak >nul
goto loop

On Mac or Linux the same idea in a shell script:

while true; do
  python3 bot.py
  curl -s -H "Priority: 4" -d "Trading bot stopped. Restarting in 10 seconds." ntfy.sh/your-long-random-topic
  sleep 10
done

This catches crashes, but not a bot that's frozen without exiting, and it can spam you if the bot crashes again straight away. If the bot also needs to survive a reboot, see how to keep a Python bot running 24/7 on Windows.

The no-code way: Helmdeck

Helmdeck is a desktop app for Windows, Mac and Linux that runs your bots, scripts and AI apps from one window, and it can send these alerts for you. Open Settings → Phone alerts, scan the QR code with the ntfy app (or paste a Discord webhook), then send a test alert.

To show the P/L on the bot's tile and use it for targets, the bot writes a small status file. Helmdeck's Python helper does it in two lines:

from helmdeck_status import report, money
stat, trend = money(142.8)    # "+$142.80 today", shown in green
report("running", stat=stat, trend=trend, value=142.8)

Helmdeck is free for 3 builds. Phone alerts and restarts are part of Pro, which is $39 once.

Which should you use?

Alerts in your codeWatcher scriptHelmdeck
Trade and profit alertsYesNoYes, from a number the bot reports
Alert when the bot crashesNoYesYes
Restarts the botNoYesYes
Stops alert spam in a crash loopNoNoYes
CostFreeFreeFree for 3, Pro $39 once

For one bot, a few lines in your code plus the watcher script covers it. When you're running several bots, Helmdeck gives you the same alerts for all of them, plus a live view of each from your phone.

Know the moment your bot stops

Free for 3 builds on Windows, Mac and Linux. No account needed.