All Projects
AlgoTrade – Python Trading Bot
Automated stock trading bot with AngelOne API integration
2024Full Stack Developer (Python + React)
Tech Stack
PythonFastAPIAngelOne SmartAPIWebSocketasyncioPandasNumPyReactPostgreSQL
Project Overview
AlgoTrade is a fully automated algorithmic trading system built entirely in Python, integrated with the AngelOne SmartAPI for live NSE/BSE market data and order execution.
Users configure their trading strategy through a clean web interface — selecting stocks, setting entry price, target price, stop-loss, and quantity. The bot then runs continuously during market hours, monitoring real-time tick data via WebSocket, and executes buy/sell orders automatically when the configured conditions are met.
The system supports multiple concurrent strategies across different scrips. Each strategy runs in its own Python thread, and a central order manager ensures position limits and capital allocation rules are respected across all simultaneous strategies.
Risk management is built in: maximum loss per day (auto-shuts trading for the day if hit), position sizing based on available capital, and automatic square-off of all open positions at 3:20 PM. A detailed trade log with P&L calculation is maintained and exportable as CSV/Excel.
The backend is a FastAPI server with a React dashboard showing live portfolio value, open positions, today's P&L, trade history, and bot status per strategy.
Challenges & Solutions
WebSocket tick data arrives at extremely high frequency during volatile markets. Python's GIL was a constraint — we solved this using asyncio for the data ingestion layer and multiprocessing for strategy execution, keeping latency under 50ms from tick to order.
Outcome & Impact
Successfully backtested against 2 years of historical data showing consistent outperformance. Live deployment running on a VPS with 99.9% uptime during market hours. Users reported an average 15–20% improvement in trade execution precision vs manual trading.
Interested in a similar project? Let's talk.
Hire Me for Your Project

