How aryansolanke/binance-trading-bot works
This repository is a Binance USDT-M Futures Testnet order-entry CLI. The main workflow is CLI input, request validation, order submission, optional MARKET fill polling, and terminal confirmation. The graph reflects the sampled CLI, manager, validator, and client code; README-documented capabilities are retained where their wiring is clear.
Main entry points: client.py Binance client · orders.py Order manager · cli.py Typer CLI · logging_config.py Structured logging
Components 10
CLI interface
- Typer CLI
cli.py - Confirmation display
cli.py
Order workflow
- Order manager
trading_bot/bot/orders.py - Validated request
trading_bot/bot/validators.py - Order response
trading_bot/bot/client.py
API and logging
- Binance client
trading_bot/bot/client.py - Structured logging
trading_bot/bot/logging_config.py
Other components
- Trader
- API credentials
- Binance Futures Testnet
Connections 14
- Trader → Typer CLI: enters order
- API credentials → Typer CLI: provides keys
- Typer CLI → Binance client: creates client
- Typer CLI → Order manager: executes order
- Order manager → Validated request: validates input
- Order manager → Binance client: submits order
- Binance client → Binance Futures Testnet: sends API request
- Binance Futures Testnet → Binance client: returns response
- Binance client → Order response: returns order data
- Order manager → Binance client: polls MARKET status
- Order manager → Typer CLI: returns result
- Typer CLI → Confirmation display: renders confirmation
- Order manager → Structured logging: logs workflow
- Binance client → Structured logging: logs API activity