Skip to content

a-khushal/exchange-project

Repository files navigation

Exchange Project

Real-time crypto trading stack: matching engine, HTTP API, and a Next.js UI.

Structure

  • exchange-backend/
    • api/: Bun + Express API (port 3000)
    • engine/: Bun matching engine (uses Redis)
  • exchange-proxy/: Next.js frontend
  • order-book/: TypeScript order book library

Requirements

  • Bun, Node.js 18+, Redis

Run

API

cd exchange-backend/api && bun install && bun dev

Engine

cd exchange-backend/engine && bun install && bun dev

Frontend

cd exchange-proxy && npm install && npm run dev

Frontend API target

  • Set PROXY_URL in exchange-proxy/app/utils/constants.ts (e.g. http://localhost:3000/api/v1).

Routes

  • POST /api/v1/order
  • GET /api/v1/depth

About

a centralized exchange similar to binance or backpack.exchange

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published