Skip to content

Local order book implementation in C++ with hooks and visualiser.

License

Notifications You must be signed in to change notification settings

marcustut/orderbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orderbook

This project started as an endeavor for myself to learn about these 3 main things:

  1. FIX Protocol
  2. CMake
  3. Writing TUI

This project basically provides a Terminal-based UI (TUI) client for viewing order book data across different instruments on the Deribit exchange. Deribit was chosen because it is one of the very few crypto exchanges that provides a Financial information eXchange (FIX) API.

Features

  • Connect Deribit through FIX
  • Receive raw orderbook market data
  • Maintain an in-memory local order book (allows to view best bid, best ask)
  • Supports multi instruments in local order book
  • Terminal UI Client

Dependencies

The project depends on several dependencies:

CMake automatically find an installation of OpenSSL if it exists in the operating system.

Quickfix can be installed by building from source following instructions on their repo or through the package manager vcpkg by running vcpkg install quickfix.

Google Test can be installed by building from source or vcpkg as well by doing vcpkg install gtest.

Building and running

mkdir build
cd build
cmake ..
cmake --build .

After running the command above you should see that there is a binary orderbook_cli being built. The binary can be invoked by doing running ./orderbook_cli, make sure that you have a fix_settings.cfg file alongside the binary. The config file should resembles example_fix_settings.cfg.

About

Local order book implementation in C++ with hooks and visualiser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published