Writing
Engineering notes about systems I have built. The technical details match the public source code linked from each project.
- Designing an AI Trading System Without Letting the Model Control Everything
February 24, 2026 · 14 min read
When integrating machine learning into automated systems, a dangerous anti-pattern is connecting model inference outputs directly to execution endpoints. Promoters of "AI-driven trading" often imagine
- AI Systems Architecture
- Risk Engine
- Trading Safety
- FastAPI
- Deterministic Boundaries
- Why an AI System Is More Than a Model
February 23, 2026 · 13 min read
In discussions surrounding artificial intelligence, attention naturally focuses on the model: parameter counts, pre-training token volume, and benchmark leaderboards. However, in software engineering,
- AI Systems
- Software Engineering
- Architecture
- Guardrails
- Observability
- Building a Self-Verifying Cognitive Architecture: Inside HSCI
February 22, 2026 · 18 min read
Contemporary AI development is heavily focused on scaling statistical language models. While Large Language Models (LLMs) demonstrate fluency, building reliable software applications reveals core limi
- AI Architecture
- Cognitive Systems
- Symbolic Reasoning
- Microsoft Z3 Prover
- Research System
- Designing a Safe AI-Assisted Trading System: From Stock Selection to Execution
February 20, 2026 · 13 min read
Building machine learning pipelines for automated decision systems requires strict isolation between probabilistic score generation and deterministic order execution.
- AI Architecture
- Risk Management
- FastAPI
- Trading Infrastructure
- Designing a Real-Time Market Data Pipeline for an Algorithmic Trading Platform
February 18, 2026 · 14 min read
Algorithmic trading systems depend on real-time price feeds. Consuming raw broker WebSockets directly inside UI web applications creates tight coupling, duplicate connections, and potential main-threa
- System Design
- FastAPI
- Redis Pub/Sub
- WebSockets
- Protobuf
- Building a Production-Ready OAuth2 Automation SDK for Upstox
February 15, 2026 · 12 min read
Financial regulations mandate daily OAuth2 token expiry for trading APIs. Automated trading systems require fresh authorization codes every morning before market open (09:15 IST). Requiring manual bro
- Python SDK
- OAuth2
- Playwright
- SDK Architecture
- PyPI
- The Math of Winning: Implementing the Kelly Criterion for Institutional Risk Management
Feb 11, 2026 · 10 min read
Most retail traders fail not because their strategy is bad, but because their position sizing is arbitrary. Fixed-lot trading is a recipe for either stagnation or eventual ruin.
- Quantitative Finance
- Python
- Mathematics
- Risk Management
- Building a Real-Time Market Data Generator for Testing Algo Trading Systems
Oct 17, 2025 · 6 min read
When building algorithmic trading systems, the hardest part to test reliably is the real-time market feed. Live markets are unpredictable, noisy, and expensive to test against. A lightweight, determin
- Trading
- Simulation
- FastAPI
- Redis
- Server-Sent Events (SSE) for Live Analytics Feeds
Aug 15, 2025 · 5 min read
Real-time analytics are essential for modern web applications, especially dashboards and monitoring tools. Server-Sent Events (SSE) provide a simple, robust way to push live updates from the server to
- JavaScript
- Node.js
- Real-Time
- Streaming