Stock Exchange

A high-performance stock exchange with a working matching engine, orderbooks, and market maker written in Go

Features

โšก

High-Performance Matching Engine

Fast order matching with price-time priority. Handles limit and market orders with efficient O(1) operations.

๐Ÿ“Š

Real-Time Orderbook

Live orderbook with bid/ask spreads, depth visualization, and instant order updates.

๐Ÿค–

Market Maker

Automated market maker that provides liquidity and maintains healthy bid-ask spreads.

๐Ÿ”—

REST API

Clean REST API built with Echo framework for placing orders, querying trades, and market data.

๐Ÿงช

Well Tested

Comprehensive test suite ensuring reliability and correctness of the matching engine.

๐Ÿš€

Easy Deployment

Docker-ready with simple setup using docker-compose. Get started in minutes.

Built With

๐Ÿ”ท
Go
๐ŸŒ
Echo
๐Ÿณ
Docker
โ›“๏ธ
Ganache