Skip to content
Front pageRaman Lamba

Finance · Systems

Deribit Order Management System

Solo project

Deribit Order Management System, 2024

A C++ client that places, cancels and modifies orders on Deribit testnet and serves a live order book over WebSocket.

Key figures

By the numbers

  • 1 sorder-book refresh

The problem

Place, cancel and modify orders on a crypto derivatives exchange from code, and watch the order book live.

The approach

A C++ client built with cpr for HTTP requests, nlohmann_json for parsing and libwebsockets for streaming. It includes a WebSocket server that sends the live order book to several clients, refreshed every second.

The result

Works against Deribit's test exchange and suits synchronous calls best.

Built with

Source code on GitHub