Quant Trading Platform with Broker Integrations
Python-based trading platform with broker OAuth/TOTP authentication, order execution pipeline, and automated smoke testing — containerized with Docker.
Overview
A fintech client needed a quant trading platform that could authenticate with Indian brokers, execute orders programmatically, and run automated smoke tests to verify connectivity and order flow.
Context & Role
Freelance engagement. Owned architecture, broker integration, authentication flows, and deployment infrastructure.
What Shipped
Broker authentication via OAuth and TOTP (supporting direct-connect flows). Order placement pipeline with session management. Automated smoke testing suite for connectivity and order validation. Docker containerized for reproducible deployment.
Product Decisions
Built authentication as a modular layer — new brokers can be added without touching the order pipeline. Smoke tests run on every deployment to catch broker API changes early. Containerized from day one to avoid environment drift.
Challenges
Indian broker APIs have inconsistent auth flows — some use OAuth, others TOTP, some both. Built an abstraction layer that normalizes these into a single session interface.
Lessons
Financial APIs need defensive engineering — session timeouts, retry logic, and smoke tests aren't optional. Modular auth layers pay off when integrating multiple providers.