How to get Telegram alerts from a Freqtrade bot (safely, in dry-run mode)
Freqtrade can message you when it opens or closes a trade, and you can check on it from your phone. The safest way to learn how is dry-run mode: the bot trades with a simulated wallet, so you see real-looking alerts without risking a cent.
What you need
- Freqtrade installed on a machine that stays on (see its "Good to know" notes).
- A Telegram account.
- A strategy to test. If you do not have one yet, read how to backtest a strategy properly first.
Step by step
- Keep dry-run on. According to the Freqtrade configuration docs,
dry_rundefaults totrue: orders are simulated and not posted to the exchange, and the wallet comes fromdry_run_wallet(default 1000). - Create your Telegram bot. Message BotFather, send
/newbot, choose a name and a username ending in "bot", and copy the token. Then open a chat with your new bot and press START. - Find your chat ID. The docs suggest messaging the userinfobot to get your Id. For a group, add the bot, start Freqtrade and send
/tg_info. - Add the telegram block to
config.json:"telegram": { "enabled": true, "token": "your_telegram_token", "chat_id": "your_telegram_chat_id", "authorized_users": ["1234567"] } - Choose what you hear about. Under
notification_settings, each event can beon,silent(no sound or vibration) oroff. For example, make entries silent and keep warnings on. Fill notifications are off by default and must be enabled manually. - Start the bot and test. Send
/statusto list open trades,/profitfor a summary and/balancefor the simulated wallet.
Commands worth knowing
/stopentryblocks new entries while open trades keep following their normal rules;/startresumes. This pause is not saved, so a restart resets it./forceexit <trade_id>closes a trade and ignoresminimum_roi, so use it on purpose.
Keep it secure
Freqtrade's docs warn that in a Telegram group, every member gets access to the bot and all its commands. Prefer a private chat and list your own ID in authorized_users; an empty list means nobody can control the bot. Never share your token.
Good to know
Dry-run results are only a rehearsal: simulated fills are not the same as real ones. Freqtrade's own documentation says it is for educational purposes only, so any example is illustrative and not a promise of results. Compare it with other bots in Freqtrade vs Jesse vs Hummingbot.
See more ideas
Browse the use cases or the free crypto bots compared. Custom bots are coming soon: tell me when it opens.
Before you start
What does Freqtrade cost and what licence does it use?
Free (open source). Licence: GPL-3.0. Prices change, so check the official website before you decide.
What should I know before using Freqtrade?
Its own documentation says it is "for educational purposes only" and warns not to risk money you are afraid to lose. Needs an always-on server: at least 2 GB RAM and 2 vCPUs according to the docs. Optimizing with hyperopt makes overfitting easy: what wins on past data may not win afterwards.
What does Hummingbot cost and what licence does it use?
Free (open source). Licence: Apache-2.0. Prices change, so check the official website before you decide.
What should I know before using Hummingbot?
Built mainly for market making, a strategy with inventory risk: if price moves one way you accumulate the falling asset. Steep learning curve for non-programmers.
What does Jesse cost and what licence does it use?
Core free (open source); check the official website for live trading. Licence: MIT. Prices change, so check the official website before you decide.
What should I know before using Jesse?
The repository does not say whether live trading is paid: check the official website before deciding. Like any optimizer, Optuna can hand you parameters overfitted to the past.
Tools in this guide
- Freqtrade: Open-source crypto trading bot written in Python, with backtesting, parameter optimization, a simulated mode and Telegram control.
- Hummingbot: Open-source Python framework for market-making bots and other strategies on centralized and decentralized exchanges.
- Jesse: Python framework to research, backtest and trade crypto strategies, with optimization through Optuna.
Compare your options
- Freqtrade vs OctoBot vs Passivbot: which free crypto bot suits you
- Freqtrade vs Jesse vs Hummingbot: which open-source crypto bot to try first
Want a bot like this when custom bots open? Get notified · more bot ideas
Coming soon: custom bots
We are preparing a service to code, backtest and automate trading and statistics bots to your own rules. It is not available yet: follow our Telegram channel to know when it opens.