How omarkhaled4418/binance_bot_v2 works
This repository is a Binance trading bot operated through a live dashboard. A user configures a symbol, target, and trade size in the browser; the Flask API creates a Binance client and starts a price monitor. Price updates reach the dashboard, while a target trigger calls the sell-order logic. On price drops, the API can optionally scan for a top 4-hour gainer, convert the position, and resume monitoring; it can also send an optional n8n webhook. The README is empty, so capabilities and links here rely on the supplied source excerpts and index; unshown dashboard and monitor internals are not inferred.
Main entry points: app.py Flask API · binance_client.py Binance client · price_monitor.py Price monitor · order_manager.py Order manager
Components 10
Dashboard
- Web interface
dashboard/static/js/app.js - Flask API
dashboard/app.py
Bot control
- Settings
config/settings.py
Trading engine
- Binance client
bot/binance_client.py - Price monitor
bot/price_monitor.py - Order manager
bot/order_manager.py - Gainer scanner
bot/strategy.py
External services
- Binance
- n8n webhook
Other components
- Trader
Connections 15
- Trader → Web interface: configures
dashboard/static/js/app.js - Web interface → Flask API: calls API
dashboard/static/js/app.js - Flask API → Settings: reads defaults
dashboard/app.py - Flask API → Binance client: creates client
dashboard/app.py - Flask API → Price monitor: starts monitor
dashboard/app.py - Flask API → Order manager: places sells
dashboard/app.py - Flask API → Gainer scanner: scans gainers
dashboard/app.py - Price monitor → Binance client: gets client
bot/price_monitor.py - Order manager → Binance client: gets symbol info
bot/order_manager.py - Binance client → Settings: reads credentials
bot/binance_client.py - Binance client → Binance: requests market data
bot/binance_client.py - Price monitor → Binance: streams prices
bot/price_monitor.py - Order manager → Binance: submits orders
bot/order_manager.py - Gainer scanner → Binance: scans market
bot/strategy.py - Flask API → n8n webhook: posts webhook
dashboard/app.py