Skip to content

A simple order book logic written in rust

Notifications You must be signed in to change notification settings

walac/orderbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple order book

This is a small sample crate implementing a simple order book in Rust.

In the heart there is the OrderBook type, with methods to add and cancel orders.

The order book is implemented on top of a BTreeSet, where the head contains the top of the book for selling orders and the tail contains the top of the book for buying orders.

Directory structure

  • src/: implementation files
  • test/: integration tests

Building and running

To build this project you need rust nightly:

$ rustup install nighly
$ rustup default nighly

Then just enter the project directory and run the tests:

$ cargo test

About

A simple order book logic written in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages