Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::exch::OrderBookObserver Struct Reference

#include <exchange/symbol.hpp>

Inheritance diagram for slick::sim::exch::OrderBookObserver:
Collaboration diagram for slick::sim::exch::OrderBookObserver:

Public Member Functions

 OrderBookObserver (Symbol *symbol)
void onPriceLevelUpdate (const PriceLevelUpdate &update) override
void onOrderUpdate (const OrderUpdate &update) override

Public Attributes

Symbol * symbol_

Detailed Description

Definition at line 18 of file symbol.hpp.

Constructor & Destructor Documentation

◆ OrderBookObserver()

slick::sim::exch::OrderBookObserver::OrderBookObserver ( Symbol * symbol)
inline

Definition at line 20 of file symbol.hpp.

References symbol_.

Member Function Documentation

◆ onOrderUpdate()

void OrderBookObserver::onOrderUpdate ( const OrderUpdate & update)
override

Definition at line 11 of file symbol.cpp.

References symbol_.

◆ onPriceLevelUpdate()

void OrderBookObserver::onPriceLevelUpdate ( const PriceLevelUpdate & update)
override

Definition at line 7 of file symbol.cpp.

References symbol_.

Member Data Documentation

◆ symbol_

Symbol* slick::sim::exch::OrderBookObserver::symbol_

Definition at line 19 of file symbol.hpp.

Referenced by OrderBookObserver(), onOrderUpdate(), and onPriceLevelUpdate().


The documentation for this struct was generated from the following files: