How a trade flows
Trading
An algorithmic trading platform, built in Go.
Software that watches live market prices, decides when to buy or sell, and stops itself before losses grow. I built most of its market-data and strategy side.
Tick
One price update from the market. Thousands arrive every minute.
Candle
A minute of ticks summed up: its opening, highest, lowest and closing price.
Strategy
A set of rules that decides when to buy or sell, run by software instead of a person.
Backtest
Running a strategy's rules on past prices to see how it would have done.
Prices stream in many times a second. The platform turns them into candles, runs each trading strategy on them, sends its orders, and steps in automatically when a loss limit is hit.
Strategy runtime
Runs each trading strategy on the cluster: feeds it candles, lets it decide when to buy or sell, and passes its orders on. Every strategy I took live matched its research backtest trade for trade first.
- Go
- from Candle service · live candles
- from Strategy template · clones into
- to Risk limits · live P&L
- to Order engine · orders
Two checks that make it safe to trade real money.
Backtest vs live, trade for trade
Before a strategy touches real money, its live trades must match the research backtest exactly. Here one is caught a candle late.
Automatic loss limit
Each strategy has a maximum loss. The moment its profit and loss touches that line, every position is closed. Move the limit and watch.
Stock scoring
The engine behind Super Investing's stock scores.
Super Investing is an AI stock-research app for Indian investors. I built the engine behind it that researches, scores and ranks every stock, every day. The app itself was built by others.
Every stock, every day
A queue of jobs researches and scores the whole list of listed stocks each day, in batches that finish on time.
Numbers and the story
Hard numbers, fresh news and web research go into every score, with prompts tuned for each sector.
Ranked head to head
Stocks are compared against each other many times over to build a ranking, the way chess players are rated.
Every day the engine gathers numbers, news and web research for each listed stock, has AI models score it, reviews it through several investing styles, ranks it against its peers, and hands the results to the Super Investing app.
AI scoring
AI models score each stock on its numbers and its story, using prompts tuned for each sector. Runs every day as a queue of jobs.
- Gemini
- Vertex AI
- OpenRouter
- BullMQ
- from Market data · fundamentals
- from News · what changed
- from Web research · research
- to Investor lenses · per stock
- to Head-to-head ranking · scores
- to Research memory · saves findings
More systems
Live classes and payments, part by part.
Before trading, I built the platform behind an edtech business. Pick a platform, then tap any part.
A self-hosted live-class platform: hosts teach, students join from the browser, and every class is recorded and turned into a replay.
Media servers
Self-hosted LiveKit servers carry live video from the host to every attendee in the class.
- LiveKit
- WebRTC
- from Host app · publishes video
- to Student app · streams live
- to Recorder · records
Explainer
Why live classes need a media server.
Video calls work fine between a few people. Past that, the host's upload becomes the bottleneck. This is the problem the self-hosted media servers solve.
Everyone connects to everyone
The host sends a separate copy of their video to every student.
Through a media server
The host sends one stream; the server copies it to each student.
Illustration assumes about 2 Mbps per 720p stream. Real platforms also send several quality layers, which this leaves out.
Experience
Where I've built.
Four years at The Future University, then algorithmic trading at SuperTrading.
2022
Joined The Future University
Started shipping production code as a software developer.
2023
Platform and payments
The main API, checkout, refunds and the admin dashboard.
2024
Live-class platform
Self-hosted video goes live and runs every class.
2025
Data, AI and stock scoring
Event and recording pipelines, and the stock-scoring engine for Super Investing.
2026
Joined SuperTrading
Market data, the strategy runtime and risk controls for algorithmic trading.
SuperTrading · algorithmic trading · 2026–now
Strategy runtime
The service that deploys and runs every trading strategy on the cluster.
Market-data pipeline
Live ticks from Kafka become one-minute and higher-timeframe candles, stored in TimescaleDB.
Risk controls
Per-strategy loss and profit limits with automatic exit, plus an emergency close-everything switch.
Observability
A live, rewindable view of market depth and each order's end-to-end latency over WebSocket.
The Future University · Software Developer · 2022–2026
Live-class platform
Self-hosted video on LiveKit: the class API, host and student apps, and the recording and replay pipeline.
Payments
Checkout, refunds, subscriptions and the online store.
Operations tools
Admin dashboard for payments, refunds and leads, plus services for lead capture, job queues and data movement.
Data and AI
An event pipeline into ClickHouse and a tool that answers plain-English questions over company data.
Stock scoring and new products
The daily AI engine that scores every stock for the Super Investing app, and a learning product with built-in live classes.
How I work
Built to run, not just to ship.
Prove it matches.
A live strategy must do exactly what its research said. I check every trade against the backtest before real money is involved.
Build for the bad day.
Loss limits, automatic exits and an emergency switch go in before a strategy trades, not after an incident.
Own it in production.
I deploy, run and watch what I build, including during live classes when nothing may break.
Plan the failure paths.
Retries, queues and refunds are designed before launch, not after the first incident.
Make it reusable.
Shared services for leads, payments and background jobs mean the next product starts further ahead.
Make it visible.
Event pipelines and admin dashboards let the team see what the system is doing without asking an engineer.
Stack
The tools I ship with.
Trading systems
- Market data
- Candles
- Strategy runtime
- Risk limits
- Backtest parity
Languages
- Go
- TypeScript
- SQL
Backend
- Node.js
- Express
- Prisma
- REST
- WebSocket
Frontend and mobile
- Next.js
- React
- React Native
- Expo
Data and streaming
- Kafka
- TimescaleDB
- PostgreSQL
- ClickHouse
- Redis
- BullMQ
Real-time video
- LiveKit
- WebRTC
- ffmpeg
- HLS
AI
- Gemini
- Vertex AI
- OpenRouter
- OpenAI
- Vector search
- LLM pipelines
Off hours
When the markets close.
I make science videos, stream Valorant and film reels. Come say hi.
Live streams
Valorant nights
Valorant on stream, with the odd Apex Legends detour. Same reflexes I use at market open.
Reels
Out of office
Vlog-style reels from life away from the keyboard, and whatever I happen to be filming that week.
