{
    "componentChunkName": "component---src-templates-page-template-js",
    "path": "/projects/algotradingbot",
    "result": {"data":{"markdownRemark":{"html":"<h3>Overview</h3>\n<p>A multi-user algorithmic trading platform designed to execute automated trading strategies across multiple markets with strict time, concurrency, and reliability constraints.</p>\n<p>The system was built to handle <strong>simultaneous user logins</strong>, <strong>real-time market data</strong>, and <strong>automated trade execution</strong> with minimal latency during live market hours.</p>\n<hr>\n<h3>Problem Statement</h3>\n<p>Manual trading and semi-automated setups fail under:</p>\n<ul>\n<li>Market open load (9:15 AM NSE spike)</li>\n<li>Concurrent user execution</li>\n<li>Strategy timing precision</li>\n<li>Operational reliability</li>\n</ul>\n<p>The goal was to build a <strong>server-side automated trading system</strong> that:</p>\n<ul>\n<li>Logs in multiple users programmatically</li>\n<li>Executes strategies in parallel</li>\n<li>Minimizes human intervention</li>\n<li>Handles failures gracefully during live markets</li>\n</ul>\n<hr>\n<h3>Architecture &#x26; Design</h3>\n<ul>\n<li><strong>Backend Core:</strong> Python-based orchestration layer</li>\n<li><strong>API Layer:</strong> FastAPI for internal services and control endpoints</li>\n<li><strong>Concurrency Model:</strong>\n<ul>\n<li>Multithreading for I/O-bound broker calls</li>\n<li>Multiprocessing for CPU-heavy strategy evaluation</li>\n</ul>\n</li>\n<li><strong>Market Data:</strong>\n<ul>\n<li>Amibroker integration for charting and signal generation</li>\n</ul>\n</li>\n<li><strong>Execution Layer:</strong>\n<ul>\n<li>Broker API integrations (Kotak Neo, Binance, MT5)</li>\n</ul>\n</li>\n<li><strong>Frontend:</strong>\n<ul>\n<li>Lightweight React dashboard for monitoring and control</li>\n</ul>\n</li>\n<li><strong>Communication:</strong>\n<ul>\n<li>WebSockets for live updates and bot state visibility</li>\n</ul>\n</li>\n</ul>\n<hr>\n<h3>Key Features</h3>\n<ul>\n<li>\n<p><strong>Market Open Automation</strong></p>\n<ul>\n<li>System auto-starts at market open (9:15 AM)</li>\n<li>Performs parallel login for all configured users</li>\n<li>Activates strategy execution pipelines</li>\n</ul>\n</li>\n<li>\n<p><strong>Multi-Broker Strategy Support</strong></p>\n<ul>\n<li>NSE Options (Kotak Neo)</li>\n<li>Crypto Trading (Binance)</li>\n<li>Forex Trading (MT5)</li>\n</ul>\n</li>\n<li>\n<p><strong>Concurrent Trade Execution</strong></p>\n<ul>\n<li>Parallel order placement per user</li>\n<li>Isolated execution contexts to prevent cross-user interference</li>\n</ul>\n</li>\n<li>\n<p><strong>Risk &#x26; Loss Control</strong></p>\n<ul>\n<li>Strategy-based exit conditions</li>\n<li>Automated stop mechanisms to minimize drawdowns</li>\n</ul>\n</li>\n</ul>\n<hr>\n<h3>Engineering Challenges Solved</h3>\n<ul>\n<li>Handling <strong>race conditions</strong> during simultaneous order placement</li>\n<li>Managing <strong>shared vs isolated memory</strong> between concurrent tasks</li>\n<li>Ensuring <strong>broker API reliability</strong> under burst traffic</li>\n<li>Synchronizing strategy signals with execution timing</li>\n<li>Preventing cascading failures during partial outages</li>\n</ul>\n<hr>\n<h3>Technologies &#x26; Concepts</h3>\n<ul>\n<li>Python (core orchestration)</li>\n<li>FastAPI (internal APIs)</li>\n<li>AsyncIO, Multithreading, Multiprocessing</li>\n<li>WebSockets (real-time updates)</li>\n<li>Pandas (data processing &#x26; indicators)</li>\n<li>Broker API integrations</li>\n<li>React (monitoring UI)</li>\n</ul>\n<hr>\n<h3>My Role</h3>\n<p><strong>Sole Developer</strong></p>\n<ul>\n<li>Designed system architecture</li>\n<li>Implemented concurrency model</li>\n<li>Integrated broker APIs</li>\n<li>Built backend services and automation logic</li>\n<li>Developed monitoring dashboard</li>\n<li>Deployed and maintained live trading instances</li>\n</ul>","frontmatter":{"listName":"/Algo-Trading-Bot","nameOfClass":"projects-items Projects","popupGithubLink":null,"popupHRLink":null,"popupLCLink":null,"popupLILink":null,"popupImageAlt":null,"popupImageSrc":[],"techIcons":["python","fastapi","react"],"title":"Algo Trading Bot Platform","video":"false"}}},"pageContext":{"slug":"projects/algotradingbot"}},
    "staticQueryHashes": ["4202924991"]}