Skip to content

vincivans/Matching_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Matching Engine

A c++ matching engine with order book, accept stdin to add orders, output trade/cancel/fill/partialfill event

Features

  • For two major operations in order, O(1) to cancel, O(1) to match, O(1) to add if already have price level or O(logM) otherwise. Assume M is the average number of quotes in the order book
  • No double or float comparison
  • Memory efficient

Install

$ make

Run Unit Test

$ make test

Run Performance Test

$ make perf

Run the matching engine

$ ./run.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages