Skip to content
View mtauha's full-sized avatar

Highlights

  • Pro

Organizations

@psxdata

Block or report mtauha

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mtauha/README.md

Hi, I'm Muhammad Tauha

Data & AI Engineer: I build data pipelines, APIs and LLM tooling, and ship them as open-source products people actually use.

My main project is psxdata, an open-source data platform for the Pakistan Stock Exchange. It runs end to end: a Python SDK that delivers clean, typed market data, a public REST API, a dbt warehouse on BigQuery, and an MCP server that lets AI assistants analyse the market with SQL.

LinkedIn Medium Email


What I work on

  • Data engineering: extraction from messy sources, append-only raw layers, dbt modelling (staging → marts, SCD Type-2 snapshots), warehouses on BigQuery and DuckDB/MotherDuck.
  • AI engineering: MCP servers, LLM agents with tool use, and reusable analysis skills that turn a model into a domain assistant.
  • Backend & APIs: FastAPI services with caching, rate limiting, typed errors and CI/CD to production.
  • Infrastructure: Docker, Terraform, GCP (Cloud Run, Cloud Scheduler) and GitHub Actions with Workload Identity Federation.

psxdata: open-source PSX data platform

flowchart LR
    SDK[psxdata<br/>Python SDK]
    SDK --> API[psxdata-api<br/>FastAPI REST]
    SDK --> WH[psx-warehouse<br/>dbt + BigQuery]
    SDK --> MCP[psxdata-mcp<br/>MCP server + DuckDB]
    WH --> MCP
    MCP --> AI[Claude / Cursor / VS Code]
Loading

psxdata: Python library

PyPI Downloads Stars

Historical OHLCV, live quotes, index constituents, sectors, fundamentals, debt market and margin-eligible stocks for 1,000+ PSX tickers, returned as pandas DataFrames.

  • Schema-tolerant parsing and multi-format date handling, so data stays consistent when upstream formats change
  • Disk cache, retries with exponential backoff, rate limiting and proxy support (HTTP / SOCKS5)
  • About 9,000 PyPI downloads a month

psxdata-api: REST API

A public FastAPI service on top of the SDK. Live API

  • Consistent response envelope with typed error codes and Retry-After handling
  • Per-IP rate limiting and response caching
  • Docker image on Docker Hub, CI/CD and auto-deploy, logs exported hourly to MotherDuck

psx-warehouse: analytics warehouse

Turns raw PSX data into tested, analysis-ready marts. dbt docs & lineage

  • Append-only, hash-diffed raw layer, so a restated price is never silently overwritten
  • dbt staging → marts: a Type-2 ticker snapshot (handles delistings), dimensions and five fact tables (OHLCV, index membership, sector daily, valuation daily, restatement history)
  • BigQuery in production, DuckDB/MotherDuck for local dev
  • Terraform-managed GCP: Cloud Run Job, Cloud Scheduler, least-privilege service account, keyless deploys via Workload Identity Federation

psxdata-mcp: MCP server for AI assistants

Gives Claude, Cursor and VS Code access to PSX data. The assistant loads data into a private in-memory DuckDB and answers questions with SQL.

  • 11 tools (prices, screener, indices, sectors, fundamentals, sandboxed SQL) with row and time limits
  • 6 analysis skills: stock tearsheets, value/dividend/momentum screens, Shariah screens, multi-stock comparisons, daily market wraps
  • One-click installs: Claude Code plugin, Claude Desktop bundle (.mcpb), Cursor and VS Code
  • A hosted, invite-only version with OAuth sign-in that also exposes the warehouse marts

Docs for the whole platform: psxdata.mintlify.app


Tech stack

Area Tools
Languages Python, SQL, Go, TypeScript
Data dbt, BigQuery, DuckDB, MotherDuck, PostgreSQL, pandas
AI Model Context Protocol (MCP), LLM agents & tool use, Claude
Backend FastAPI, REST API design
Cloud & DevOps GCP (Cloud Run, Cloud Scheduler), AWS, Terraform, Docker, GitHub Actions

Pinned Loading

  1. psxdata/psxdata psxdata/psxdata Public

    Python library and REST API for free Pakistan Stock Exchange (PSX) data

    Python 29 7

  2. psxdata/psxdata-api psxdata/psxdata-api Public

    FastAPI REST service for Pakistan Stock Exchange (PSX) data, built on the psxdata library

    Python 4 3

  3. psxdata/psx-warehouse psxdata/psx-warehouse Public

    dbt-core + BigQuery analytics warehouse for Pakistan Stock Exchange (PSX) data

    Python

  4. psxdata/psxdata-mcp psxdata/psxdata-mcp Public

    MCP server for Pakistan Stock Exchange data (Docker, DuckDB SQL)

    Python

  5. mtauha mtauha Public