This project is a beginner-friendly, educational cryptocurrency trading bot built in Python. It connects to the Binance Futures Testnet, allowing you to test trading strategies with zero risk using virtual funds.
✅ Connects securely to Binance Futures Testnet ✅ Place market, limit, OCO, or stop orders ✅ Cancel open orders anytime ✅ View account balance, open positions & trade history ✅ Clean, modular Python code ✅ Optional Flask web interface for easy interaction ✅ Detailed logs of API requests & responses
.
├── bot.py # Core trading bot logic
├── app.py # Flask web server
├── screenshot.png
├── requirements.txt
└── README.md
-
Python 3.8+
-
Binance Futures Testnet account
-
Binance Testnet API key & secret
-
Python packages:
python-binance Flask (optional)
git clone https://github.com/Yuvraj-1107-ML/Trading_Bot.git
cd Trading_Botpip install -r requirements.txt- Register on Binance Futures Testnet
- Create an API key and secret
- Enable Futures for your testnet account
API_KEY = 'RzrXosz2iAbphTwe75TfaQ7HQfLDXSEjlan7SVKUlgiN244DY1AZ5pdrHLhaqdmI'
API_SECRET = 'oH63K86VjVIL2CqTrWlyNi4WOiEr1ckmBpxIo3bFAZwf58WYGZzuHPH8xodyV8Qk'Run the core bot script:
python bot.pyor
Run the Flask web server:
python app.pyThen open http://127.0.0.1:5000 in your browser.
This project can be deployed on a cloud service like Render for demonstration purposes.
Note:
Due to Binance API restrictions, requests from cloud servers may be blocked for security reasons.
To fully test API calls, it's recommended to run the bot locally on your own machine or a trusted IP.
✅ Live Demo:
You can check the deployed UI here: View Demo
Below is an example of the web interface for placing orders and viewing bot status:
- This bot only uses the Binance Testnet — no real money involved.
- Do NOT use with real funds.
Feel free to reach out for feedback, looking forward to your response



