No description
- Python 99.7%
- Dockerfile 0.3%
| __pycache__ | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| crypto_analyzer.py | ||
| crypto_bot.py | ||
| crypto_history.db | ||
| docker-compose.yml | ||
| Dockerfile | ||
| memory.md | ||
| README.md | ||
Crypto Analyzer Bot
Telegram bot untuk analisa trading crypto multi-chain dengan fitur technical analysis, watchlist, scanner, dan news feed.
Features
- Technical Analysis: RSI(14), MACD, SMA(20/50), Bollinger Bands, Stochastic
- Trade Recommendation: entry point, stop loss, TP1/TP2/TP3, score 0-100
- Watchlist: ranking coins + top 3 buy/sell signals
- Micin Scanner: deteksi coins dengan momentum rising/falling
- News Feed: RSS dari CoinTelegraph & CryptoNews dengan deteksi mention koin
- Contract Address Resolver: static lookup + RPC + Coingecko fallback
Supported Chains
ethereum | solana | bsc | arbitrum | base | avalanche | polygon
Local Setup
# Install dependencies
pip3 install ccxt pandas ta requests python-telegram-bot schedule matplotlib
# Configure
cp .env.example .env
# Edit .env with your BOT_TOKEN and ALLOWED_USERS
# Run
python3 crypto_bot.py
Docker
Build
docker build -t crypto-bot .
Run
# Development (foreground)
docker run --name crypto-bot --rm \
--env-file .env \
-v $(pwd)/crypto_history.db:/app/crypto_history.db \
crypto-bot
# Production (background)
docker run -d --name crypto-bot \
--restart unless-stopped \
--env-file .env \
-v $(pwd)/crypto_history.db:/app/crypto_history.db \
crypto-bot
# View logs
docker logs -f crypto-bot
# Stop
docker stop crypto-bot
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
BOT_TOKEN |
Yes | - | Telegram bot token dari @BotFather |
ALLOWED_USERS |
No | 586313855 |
Comma-separated Telegram user IDs |
Commands
| Command | Description |
|---|---|
/start |
Welcome message |
/help |
Panduan lengkap |
/a SYMBOL CHAIN [INTERVAL] |
Analisa teknikal (e.g. /a BTC/USDT ethereum 1d) |
/a 0x... CHAIN |
Analisa via contract address |
/scan |
Scan semua chain |
/wl list |
Show watchlist |
/wl add SYMBOL CHAIN |
Add ke watchlist |
/wl remove SYMBOL |
Remove dari watchlist |
/wl rank |
Ranking + top 3 buy/sell |
/rec [SYMBOL] |
Trade recommendation |
/gems [N] |
Micin scanner (default 10 coins) |
/news [N] |
Latest crypto news (default 5) |
/alerts |
Alert history |
/latest SYMBOL CHAIN |
Last data dari DB |
/chains |
Supported chains list |
Config
Bot menggunakan environment variables. Buat file .env:
BOT_TOKEN=your_bot_token_from_botfather
ALLOWED_USERS=586313855,123456789
Files
| File | Description |
|---|---|
crypto_analyzer.py |
Core engine: analisis, scanner, DB, news |
crypto_bot.py |
Telegram bot handlers |
crypto_history.db |
SQLite database (auto-created) |
Known Issues
- CAKE: BSC rate-limit → hanya static lookup
- DEGEN: tidak ada pair di Binance
- News: fallback ke RSS feeds (CryptoPanic/CoinGecko API unavailable)