Giter VIP home page Giter VIP logo

liquibook's Introduction

liquibook

Open source limit order book matching engine from OCI

Features

  • Low-level components for order matching and aggregate depth tracking
  • Memory-efficiency: minimal copying of data to internal structures
  • Speed: between 2.0 million and 2.5 million inserts per second. See full performance history.

Flexibility

  • Works with or without aggregate depth tracking
  • Optional aggregate depth tracking to any number of levels (static) or BBO only
  • Works with smart or regular pointers

Works with Your Design

  • Preserves your order model, requiring only trivial interface
  • Preserves your identifiers for securities, accounts, exchanges, orders, fills
  • Use your threading system (or be single-threaded)
  • Use your synchronization method

Minimal Example

  // Create type-specific order book
  book::OrderBook<MyOrder*> order_book;

  // Attach desired event handler(s)
  order_book.set_order_listener(&listener);

  // Create order - my Order class, not Liquibook's!
  MyOrder* order = new MyOrder();

  // Add the order to the order book
  order_book.add(order);

  // Trigger event handlers
  order_book.perform_callbacks();

Build Dependencies

  • MPC for cross-platform builds
  • Assertiv for unit testing
  • BOOST (optional) for shared pointer unit testing only

Submodule Note

Assertiv is included as a submodule. After cloning liquibook, you must:

> cd liquibook
> git submodule init
> git submodule update

Linux Build Notes

Make sure the $BOOST_ROOT and $MPC_ROOT environment variables are set, then open a shell

$ cd liquibook
$ . env.sh
$ mwc.pl -type make liquibook.mwc
$ make depend
$ make all

Windows Build Notes

Make sure the %BOOST_ROOT% and %MPC_ROOT% environment variables are set, then open the Visual Studio Command Prompt of choice (this example is for Visual Studio 2010):

> cd liquibook
> winenv.bat
> mwc.pl -type vc10 liquibook.mwc

Then in the same window, start Visual Studio from the command line, opening liquibook.sln

> liquibook.sln

In some cases, you may need to provide the path to Visual Studio - This example is the Visual Studio 2010 Express Edition:

> "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" liquibook.sln

NOTE: If using Visual Studio 2012, you will be asked to upgrade your project. This is because MPC does not yet support -type vc11.

See other build notes.

liquibook's People

Contributors

iamtheschmitzer 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.