Skip to content

Shikhar-395/Exchange

Repository files navigation

Exchange

A full-stack crypto exchange built from scratch, with a matching engine, real-time order book, and a trading interface modeled after professional exchanges.

Trading UI

The frontend supports limit and market orders, live depth view, candlestick charts via TradingView, and real-time trade feeds over WebSocket.

Architecture

Orders flow from the browser through an API server into a Redis queue, where the matching engine picks them up, processes fills, and publishes results back over Redis pubsub. A database processor consumes trade events and writes them to a time series DB. WebSocket servers relay real-time updates back to connected clients.

System Architecture

Each market runs its own orderbook in the engine. When an order is placed, it gets routed to the correct orderbook, matched if possible, and the resulting ORDER_FILLED and BOOK_UPDATED events are pushed onto a queue for downstream consumers.

Order Flow

About

Fullstack crypto exchange with order matching engine, real time WebSocket feeds, and market maker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors