Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState Struct Reference

#include <slick-trader/brokers/common/order_book_publisher.hpp>

Collaboration diagram for slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState:

Public Attributes

Instrument instrument
Key key {}
LevelBook book
bool trades = false
bool levels = false
bool orders = false
bool touched = false
TradingStatus status = TradingStatus::UNKNOWN
bool cancel_allowed = true
price_t top_bid = SharedTopOfBook::UNKNOWN
price_t top_ask = SharedTopOfBook::UNKNOWN
uint64_t last_time = 0
std::vector< MboOrder > order_updates

Detailed Description

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
struct slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState

Definition at line 106 of file order_book_publisher.hpp.

Member Data Documentation

◆ book

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
LevelBook slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::book

Definition at line 109 of file order_book_publisher.hpp.

◆ cancel_allowed

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
bool slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::cancel_allowed = true

◆ instrument

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
Instrument slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::instrument

◆ key

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
Key slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::key {}

Definition at line 108 of file order_book_publisher.hpp.

◆ last_time

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
uint64_t slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::last_time = 0

Definition at line 119 of file order_book_publisher.hpp.

◆ levels

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
bool slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::levels = false

Definition at line 111 of file order_book_publisher.hpp.

◆ order_updates

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
std::vector<MboOrder> slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::order_updates

Definition at line 120 of file order_book_publisher.hpp.

◆ orders

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
bool slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::orders = false

Definition at line 112 of file order_book_publisher.hpp.

◆ status

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
TradingStatus slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::status = TradingStatus::UNKNOWN

◆ top_ask

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
price_t slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::top_ask = SharedTopOfBook::UNKNOWN

Definition at line 118 of file order_book_publisher.hpp.

◆ top_bid

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
price_t slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::top_bid = SharedTopOfBook::UNKNOWN

Definition at line 117 of file order_book_publisher.hpp.

◆ touched

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
bool slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::touched = false

Definition at line 113 of file order_book_publisher.hpp.

◆ trades

template<typename Derived, typename Instrument, typename Sink, typename Key = int32_t>
bool slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::trades = false

Definition at line 110 of file order_book_publisher.hpp.


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