A simple web-based trading bot that lets you place market, limit, and stop-market orders on the Binance Futures Testnet using the official Binance API.
Built with:
- 🔧 Python
- 🖥️ Flask (for the web server)
- 📊 TradingView widget (for live BTCUSDT chart)
- 🗝️ .env for API security
- ✅ Place Market, Limit, and Stop-Market Orders
- 🔐 Password-Protected Web Interface
- 📈 View Real-Time BTCUSDT Chart (via TradingView)
- 📉 Displays Current Market Price
- ✅ Clean and Minimal HTML UI
- 🛠️ Easily Extensible
TadingBot/ │ ├── app.py # Flask web server ├── bot.py # BasicBot class using binance-python ├── .env # API credentials (not committed) ├── requirements.txt ├── templates/ │ ├── index.html # Web form for placing trades │ └── login.html # Login page
- Go to Binance Futures Testnet
- Log in and go to
API Management - Create a new API key pair
git clone https://github.com/your-username/TadingBot.git
cd TadingBotCreate a .env file and add: API_KEY=your_testnet_api_key API_SECRET=your_testnet_api_secret
📦 3. Install Dependencies pip install -r requirements.txt
requirements.txt should include: flask python-binance python-dotenv
🔧 Customize You can modify: The login password in app.py Supported order types Add order history display or SQLite integration
🧠 Inspired by Binance API Docs python-binance
📃 License MIT License – use it freely and responsibly.

