Skip to content

Utkarsh01245/Futures-Trading

Repository files navigation

Perpetual Trading Platform

A full-stack, microservices-based perpetual futures trading platform built with TypeScript, Redis/BullMQ, PostgreSQL/Prisma, WebSockets, and Docker.


Architecture

Architecture


🧰 Tech Stack

  • Language & Runtime: Node.js 20, TypeScript
  • Package Manager: pnpm
  • Services & Frameworks
    • API Server (apps/server): Express, Prisma ORM
    • WebSocket Server (services/wss): WebSockets + Redis Pub/Sub
    • Engine (services/engine): In-memory orderbook, matching logic
    • Worker & Queues (packages/order-queue): BullMQ, Redis
    • Archiver (services/archiver): Persists trades/positions to PostgreSQL
    • Frontend (apps/client): Next.js, React, lightweight-charts
  • Database: PostgreSQL (via Prisma)
  • Cache & Message Bus: Redis (Pub/Sub + BullMQ)
  • CI/CD: GitHub Actions for build → Docker image → deploy to VPS/DigitalOcean
  • Containerization: Docker, Docker Compose

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published