Skip to content

A simple program written in Golang to implement Level 2 orderbook and matching algorithm

License

Notifications You must be signed in to change notification settings

n1207n/golang-limit-orderbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-limit-orderbook

A simple program written in Golang to implement Level 2 orderbook and matching algorithm

It creates 5 standalone orderbook instances and fill up 1 million order per order type per ticker via goroutines, totaling 10 million limit order objects. Afterwards, the program attempts to run matching executions simultaneously across tickers.

It runs about 45 seconds to finish both processes. 25 seconds dedicated to test limit order data filling and 20 seconds for matching executions.

Roughly 400K order insertions/sec and 500K order fulfillments/sec on M1 Pro CPU. Pretty good!

About

A simple program written in Golang to implement Level 2 orderbook and matching algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages