|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
#include <slick-trader/brokers/common/order_book_publisher.hpp>
Classes | |
| struct | InstrumentState |
Public Types | |
| enum class | Listing : uint8_t { LISTED , PENDING , UNKNOWN } |
Public Member Functions | |
| Listing | subscribe (std::string_view symbol, SubscriptionType type) |
| void | unsubscribe (std::string_view symbol, SubscriptionType type) |
| const Instrument * | find (std::string_view symbol) const |
| bool | instruments_known () const noexcept |
Protected Member Functions | |
| OrderBookPublisher (Sink &sink, std::string who) | |
| InstrumentState & | add_instrument (Key key, Instrument instrument) |
| void | instruments_complete () |
| InstrumentState * | state_of (Key key) |
| std::unordered_map< Key, InstrumentState > & | states () noexcept |
| Sink & | sink () noexcept |
| const std::string & | who () const noexcept |
| void | reserve_instruments (size_t n) |
| void | apply_order (Key key, const BookOrderChange &u, bool publish_order=true) |
| void | trade (Key key, int64_t wire_price, int64_t lots, Side aggressor, uint64_t event_time) |
| void | end_of_event () |
| void | set_status (InstrumentState &state, TradingStatus status, bool cancel_allowed, std::string_view reason, uint64_t event_time) |
| void | book_gap () |
| void | clear_books () |
| void | book_rebuilt () |
Definition at line 63 of file order_book_publisher.hpp.
|
strong |
| Enumerator | |
|---|---|
| LISTED | |
| PENDING | |
| UNKNOWN | |
Definition at line 65 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 123 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 126 of file order_book_publisher.hpp.
References slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::instrument.
|
inlineprotected |
Definition at line 161 of file order_book_publisher.hpp.
References slick::trader::BookOrderChange::event_time, slick::trader::BookOrderChange::prev_price, slick::trader::BookOrderChange::prev_qty, slick::trader::BookOrderChange::prev_side, slick::trader::BookOrderChange::price, slick::trader::BookOrderChange::qty, and slick::trader::BookOrderChange::side.
|
inlineprotected |
Definition at line 242 of file order_book_publisher.hpp.
References slick::trader::SharedTopOfBook::UNKNOWN.
Referenced by clear_books().
|
inlineprotected |
Definition at line 265 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 252 of file order_book_publisher.hpp.
References book_gap().
|
inlineprotected |
Definition at line 196 of file order_book_publisher.hpp.
|
inlinenodiscard |
Definition at line 97 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 135 of file order_book_publisher.hpp.
|
inlinenodiscardnoexcept |
Definition at line 103 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 156 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 230 of file order_book_publisher.hpp.
References slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::cancel_allowed, slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::instrument, and slick::trader::OrderBookPublisher< Derived, Instrument, Sink, Key >::InstrumentState::status.
|
inlinenodiscardprotectednoexcept |
Definition at line 152 of file order_book_publisher.hpp.
Referenced by OrderBookPublisher().
|
inlinenodiscardprotected |
Definition at line 147 of file order_book_publisher.hpp.
|
inlinenodiscardprotectednoexcept |
Definition at line 151 of file order_book_publisher.hpp.
|
inline |
Definition at line 71 of file order_book_publisher.hpp.
|
inlineprotected |
Definition at line 181 of file order_book_publisher.hpp.
References slick::trader::lots_to_qty().
|
inline |
Definition at line 84 of file order_book_publisher.hpp.
|
inlinenodiscardprotectednoexcept |
Definition at line 153 of file order_book_publisher.hpp.
Referenced by OrderBookPublisher().