Coder Social home page Coder Social logo

calebeverett / orderbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brettfazio/orderbook

0.0 0.0 0.0 631 KB

Port of www.quantcup.org (implementing a fast stock exchange matching engine) from C to Rust

C++ 1.45% C 96.04% Rust 2.49% Makefile 0.02%

orderbook's Introduction

Rust Order Book

rust-quantcup (renamed orderbook for brevity) is a reimplementation of Quantcup.org's matching engine and order book in Rust. It attempts to make use of Rust language features at the implementation level as well as the project level (using cargo test and cargo bench for testing and scoring the matching engine).

engine.rs provides a baseline naive implementation of the machine engine akin to that of the original C quantcup code. The goal would be to optimize this matching engine.

The baseline quantcup code from Quantcup.org is also provide (though it has been modified to use C++ instead of C).

While there is no official leaderboard or competition like the original QuantCup, a way to participate here would be to fork the repo, edit engine.rs and try to get the best bench score possible.

Modification

engine.rs should be the main location for modification and optimization.

Testing

To test your matching engine simply run:

cd source
cargo test

This will run the unit tests in src/engine/test.rs.

Scoring

To score your program go into the source directory like before and run

cargo bench

This will benchmark your code using the score_feed.csv as the order flow and the matching engine implemented in engine.rs.

Contribution

PRs are welcome either adding additional novel matching engines to the examples or improving the base running/scoring code itself.

orderbook's People

Contributors

brettfazio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.