Telegram bot for monitoring cryptocurrency prices on Binance with instant notifications.
📱 Try it: @AlertMarketsBot
- Real-time cryptocurrency prices
- Binance monitoring (Spot & Futures)
- Advanced notifications
- Russian/English support
| Component | Technology |
|---|---|
| Backend | Python 3.12 + aiogram 3.26 |
| Database | PostgreSQL 16 |
| Cache | Redis |
| Deploy | Docker Compose |
| ORM | SQLAlchemy 2.0 |
- User creates an alert via the bot (price X for cryptocurrency Y)
- Worker monitors prices on Binance API in the background (~5 sec intervals)
- Redis caches available coins (fast, saves API requests)
- When an alert triggers → notification in Telegram
- PostgreSQL stores users and their alerts
# 1. Clone the repository
git clone https://github.com/NikitaYechshenko/AlertMarketsBot && cd Telegram_bot
# 2. Set environment variables
cp .env.example .env
# Add TELEGRAM_BOT_TOKEN from @BotFather
# 3. Run with Docker
docker-compose up -d --build
# 4. View logs
docker logs -f Alert_bot_appapp/
├── bot/ # Handlers, keyboards, FSM
├── workers/ # Background monitoring tasks
├── exchanges/ # Binance API clients
├── models/ # DB models (SQLAlchemy)
└── core/ # Config, DB, Redis
/start— main menu/menu— return to menu/cancel— cancel
Author: @nikitayech