How niyazicancinkir/binance-reverse-trade-bot works
This repository is a reverse-trade bot with a Streamlit dashboard and a terminal runner. Both entry points fetch recent Telegram channel posts, analyze them with Gemini, and pass an approved inverse signal to the Binance demo-futures executor. The executor records orders in an Excel workbook; the dashboard can display that history and request live PnL updates. The sampled source shows these calls and data flows; it does not show automatic continuous polling or automatic TP/SL order placement.
Main entry points: app.py Streamlit dashboard · main.py Terminal runner · gemini.py Signal analyzer · binance.py Order executor
Components 13
Bot entry points
- Streamlit dashboard
app.py - Terminal runner
main.py
Signal analysis
- Telegram scraper
telegram.py - Signal analyzer
gemini.py - Inverse strategy
gemini.py
Trade execution
- Order executor
binance.py
Trade records
- Trade logger
excel_logger.py - PnL updater
excel_logger.py - Trade history workbook
excel_logger.py
Other components
- Operator
- Telegram public pages
- Gemini API
- Binance demo futures
Connections 18
- Operator → Streamlit dashboard: triggers
README.md - Operator → Terminal runner: starts
README.md - Streamlit dashboard → Telegram scraper: fetches posts
app.py - Terminal runner → Telegram scraper: fetches posts
main.py - Telegram scraper → Telegram public pages: scrapes posts
telegram.py - Streamlit dashboard → Signal analyzer: analyzes posts
app.py - Terminal runner → Signal analyzer: analyzes posts
main.py - Signal analyzer → Gemini API: requests analysis
gemini.py - Signal analyzer → Inverse strategy: derives inverse
gemini.py - Streamlit dashboard → Order executor: submits signal
app.py - Terminal runner → Order executor: submits signal
main.py - Order executor → Binance demo futures: places market order
binance.py - Order executor → Trade logger: records order
binance.py - Trade logger → Trade history workbook: writes trades
excel_logger.py - Streamlit dashboard → Trade history workbook: reads history
app.py - Streamlit dashboard → PnL updater: requests update
app.py - PnL updater → Binance demo futures: fetches prices
excel_logger.py - PnL updater → Trade history workbook: updates PnL
excel_logger.py