Skip to content

(14)FinTech

PSX Investment OS

Evidence-led investing for the Pakistan Stock Exchange

Overview

A private investment operating system for Pakistan Stock Exchange investors: an immutable transaction ledger, FIFO holdings and P&L, sourced end-of-day market data, research memory, and AI recommendations that must cite their evidence or say there isn't enough data.

Highlights

  1. 01Immutable ledger: transactions are added, corrected or reversed rather than edited, and every CSV import batch can be rolled back
  2. 02FIFO position reconstruction with realized P&L, cash and dividends, using decimal arithmetic throughout
  3. 03No fabricated numbers: prices come only from verified end-of-day observations, stale prices are flagged, and missing values stay blank
  4. 04Analytics for returns, allocation, drawdown and volatility, plus a versioned portfolio health score
  5. 05AI recommendations with strict JSON-schema output, stored evidence, prompt and model versions, per-user quotas and an explicit “insufficient data” outcome
  6. 06Cloudflare Queue workers that schedule, retry and monitor data ingestion, snapshots, alerts and reports, with 19 Vitest suites

Private or internal system: no public link.

Timeline
Jul – Sep 2026
Category
FinTech

My role

Full-stack engineer

Designed and built the product end to end: the ledger and calculation engine, market-data ingestion and background workers, the research and AI recommendation modules, authentication, the dashboard and the landing page.

Owned

  • Product
  • Architecture
  • Backend / API
  • Data modelling
  • AI pipeline
  • Frontend
  • Testing

Tech

Frontend
  • Next.js
  • TypeScript
  • TanStack Query
  • Recharts
  • shadcn/ui
Backend & APIs
  • NextAuth
  • Zod
  • decimal.js
Data & storage
  • MongoDB
AI
  • OpenAI
Integrations
  • EODHD
Infrastructure & tooling
  • Cloudflare Queues
  • Vitest
  • Vercel
Next projectAIGI