PrimeTrade is a Python-based Binance Futures Testnet Trading Bot designed to execute Market and Limit orders through a command-line interface. The project demonstrates API integration, modular software architecture, input validation, logging, and error handling in a real-world trading environment.
Built using the Binance Futures Testnet, this project simulates cryptocurrency trading workflows without risking real funds.
- Market Order Execution
- Limit Order Execution
- BUY and SELL Order Support
- Binance Futures Testnet Integration
- Command-Line Interface (CLI)
- Input Validation
- Structured Logging
- Exception Handling
- Environment Variable Security
- Modular Code Architecture
CLI Input ↓ Validation Layer ↓ Order Processing Module ↓ Binance API Client ↓ Response Handling ↓ Logging & Monitoring
primetrade-binance-trading-bot/
├── client.py
├── orders.py
├── validators.py
├── logging_config.py
├── cli.py
├── requirements.txt
├── .env.example
└── README.md
- Python
- Binance Futures API
- argparse
- python-dotenv
- Logging Module
Sensitive credentials are managed through environment variables and are never hardcoded into the source code.
Example:
API_KEY=YOUR_API_KEY
API_SECRET=YOUR_API_SECRET
Clone the repository:
git clone https://github.com/yashwanthraaj1207-ops/primetrade-binance-trading-bot.gitNavigate to the project:
cd primetrade-binance-trading-botInstall dependencies:
pip install -r requirements.txtCreate a .env file using .env.example.
python cli.py --symbol BTCUSDT --side BUY --type MARKET --quantity 0.001python cli.py --symbol BTCUSDT --side BUY --type LIMIT --quantity 0.001 --price 50000- API Integration
- Software Architecture
- Command-Line Application Development
- Input Validation
- Error Handling
- Logging and Monitoring
- Environment Variable Management
- Python Development
- RSI-Based Trading Strategy
- Moving Average Strategy
- Backtesting Engine
- Telegram Notifications
- Performance Analytics Dashboard
- Multi-Asset Trading Support
S Yashwanth Raaj
B.E. Computer Science and Engineering (AI & ML)
Sri Sairam Engineering College
LinkedIn: https://www.linkedin.com/in/yashwanthraaj1207
Portfolio: https://my-own-portfolio-yashwanth-raaj.lovable.app/