https://github.com/n1207n/golang-limit-orderbook
A simple program written in Golang to implement Level 2 orderbook and matching algorithm
https://github.com/n1207n/golang-limit-orderbook
exchange finance golang orderbook stock trading
Last synced: 24 days ago
JSON representation
A simple program written in Golang to implement Level 2 orderbook and matching algorithm
- Host: GitHub
- URL: https://github.com/n1207n/golang-limit-orderbook
- Owner: n1207n
- License: mit
- Created: 2023-06-17T21:33:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-18T05:12:03.000Z (over 2 years ago)
- Last Synced: 2025-04-08T16:17:51.646Z (6 months ago)
- Topics: exchange, finance, golang, orderbook, stock, trading
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golang-limit-orderbook
A simple program written in Golang to implement Level 2 orderbook and matching algorithmIt 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!