Orderbook Simulation
OrderbookSim is a C++ application simulating a financial market order book. It efficiently manages and matches buy and sell orders while calculating the Volume-Weighted Average Price (VWAP).
Functions
orderbook_pybind.cpp File Reference
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "Orderbook.hpp"

Functions

 PYBIND11_MODULE (orderbook, handle)
 Defines the Pybind11 module for the Orderbook class. More...
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( orderbook  ,
handle   
)

Defines the Pybind11 module for the Orderbook class.

This module allows Python to interact with the Orderbook class, providing methods to add orders and save the order book to JSON.

Parameters
orderbookThe name of the module in Python.
handleThe module handle that is used to add classes and functions.

< Optional module docstring.

< Default constructor for Orderbook.

< Adds an order to the order book.

< Saves the order book to a JSON file.