Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::OrderBookEvent Struct Reference

#include <slick-trader/events/order_book_event.hpp>

Inheritance diagram for slick::trader::OrderBookEvent:
Collaboration diagram for slick::trader::OrderBookEvent:

Public Member Functions

 OrderBookEvent ()
Public Member Functions inherited from slick::trader::Event
 Event (EventType t=EventType::TRADE)
void set_instrument (std::string_view instr)

Public Attributes

OrderBookPriceLevel bids [MAX_ORDER_BOOK_LEVELS]
OrderBookPriceLevel asks [MAX_ORDER_BOOK_LEVELS]
uint16_t num_bids
uint16_t num_asks
uint64_t sequence_num
bool is_snapshot
Public Attributes inherited from slick::trader::Event
EventType type
uint64_t timestamp_ns
uint64_t event_time_ns
BrokerId broker_id
char instrument [MAX_INSTRUMENT_LENGTH]

Detailed Description

Definition at line 21 of file order_book_event.hpp.

Constructor & Destructor Documentation

◆ OrderBookEvent()

slick::trader::OrderBookEvent::OrderBookEvent ( )
inline

Member Data Documentation

◆ asks

OrderBookPriceLevel slick::trader::OrderBookEvent::asks[MAX_ORDER_BOOK_LEVELS]

Definition at line 23 of file order_book_event.hpp.

Referenced by OrderBookEvent().

◆ bids

OrderBookPriceLevel slick::trader::OrderBookEvent::bids[MAX_ORDER_BOOK_LEVELS]

Definition at line 22 of file order_book_event.hpp.

Referenced by OrderBookEvent().

◆ is_snapshot

bool slick::trader::OrderBookEvent::is_snapshot

Definition at line 27 of file order_book_event.hpp.

Referenced by OrderBookEvent().

◆ num_asks

uint16_t slick::trader::OrderBookEvent::num_asks

Definition at line 25 of file order_book_event.hpp.

Referenced by OrderBookEvent().

◆ num_bids

uint16_t slick::trader::OrderBookEvent::num_bids

Definition at line 24 of file order_book_event.hpp.

Referenced by OrderBookEvent().

◆ sequence_num

uint64_t slick::trader::OrderBookEvent::sequence_num

Definition at line 26 of file order_book_event.hpp.

Referenced by OrderBookEvent().


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