No description
  • Python 99.7%
  • Dockerfile 0.3%
Find a file
2026-09-28 10:43:42 +07:00
__pycache__ first commit 2026-09-24 11:50:26 +07:00
.dockerignore docs: add docker deployment guide 2026-09-28 10:39:02 +07:00
.env.example feat: add .env for bot configuration 2026-09-28 10:40:48 +07:00
.gitignore fix: use repo-relative DB_PATH instead of /workspace 2026-09-24 12:03:39 +07:00
crypto_analyzer.py feat: one-directional buy + take profit, no sell/short 2026-09-24 16:19:32 +07:00
crypto_bot.py feat: add .env for bot configuration 2026-09-28 10:40:48 +07:00
crypto_history.db first commit 2026-09-24 11:50:26 +07:00
docker-compose.yml feat: add docker-compose.yml 2026-09-28 10:43:42 +07:00
Dockerfile feat: add .env for bot configuration 2026-09-28 10:40:48 +07:00
memory.md docs: update memory to Gate.io, 1-way BUY, charts, Jakarta tz 2026-09-24 17:14:01 +07:00
README.md docs: restructure README for clarity 2026-09-28 10:42:02 +07:00

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)