This project is a cryptocurrency trading bot built in Python.
It connects to the Binance Futures Testnet using the python-binance library and provides a command-line interface (CLI) for placing and managing orders.
The bot is modular, secure, and designed for experimentation with algorithmic trading.
- Secure API connection using
.envfile - Market and Limit order support
- Trade logging to
trading.log - Modular design (
bot/package for client, orders, validators, logging) - Easy setup with virtual environment (
venv)
git clone https://github.com/krish24git/trading-bot.git
cd trading-bot
#virtual enviorment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
[1:26 am, 22/4/2026] krish kakkar: pip install -r requirements.txt
[1:26 am, 22/4/2026] krish kakkar: BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
[1:26 am, 22/4/2026] krish kakkar: python cli.py order BTCUSDT BUY MARKET 0.01
python cli.py order BTCUSDT SELL LIMIT 0.01 65000