How fabston/tradingview-webhook-bot works
Project type and purpose
• This is a lightweight, open-source backend service (microservice) whose sole responsibility is to listen for TradingView alert webhooks and fan them out to various messaging channels (Telegram, Discord, Slack, Twitter, Email).
File structure
• Top-level files:
• main.py – starts the Flask HTTP server and defines the /webhook endpoint
• handler.py – contains the core logic that validates incoming payloads, reads config.py, and dispatches alerts
• config.py – holds all user-editable settings (API keys, default channels on/off)
• requirements.txt – Python dependencies (Flask, python-telegram-bot, tweepy, etc.)
• Dockerfile & docker-compose.yml – containerization for deployment
• .github/workflows – CI workflows (e.g., stale‐issue handling)
• assets/ – project logo (not part of runtime)
Extract insights from the README
• Tech stack: Python 3.8, Flask, python-telegram-bot, tweepy, smtplib, plus HTTP-based webhooks for Slack/Discord
• Runtime: listens on port 8080 (recommended), optionally fronted by NGINX on port 80
• Deployment options: direct python main.py, PM2, Docker Compose