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

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

Collaboration diagram for slick::trader::OrderEventWriter:

Public Member Functions

 OrderEventWriter (BrokerId broker) noexcept
void open (slick::stream_buffer_multiplexer &mux, const nlohmann::json &config)
bool is_open () const noexcept
void register_connector (slick::queue< uint8_t > &control_queue, const FeeStructure &fees) const
template<typename E>
void publish (const E &event)
void replay (const FillJournal &journal, std::string_view who)
BrokerId broker () const noexcept

Detailed Description

Definition at line 22 of file order_event_writer.hpp.

Constructor & Destructor Documentation

◆ OrderEventWriter()

slick::trader::OrderEventWriter::OrderEventWriter ( BrokerId broker)
inlineexplicitnoexcept

Definition at line 24 of file order_event_writer.hpp.

References broker().

Member Function Documentation

◆ broker()

BrokerId slick::trader::OrderEventWriter::broker ( ) const
inlinenodiscardnoexcept

Definition at line 67 of file order_event_writer.hpp.

Referenced by OrderEventWriter().

◆ is_open()

bool slick::trader::OrderEventWriter::is_open ( ) const
inlinenodiscardnoexcept

Definition at line 34 of file order_event_writer.hpp.

◆ open()

void slick::trader::OrderEventWriter::open ( slick::stream_buffer_multiplexer & mux,
const nlohmann::json & config )
inline

Definition at line 28 of file order_event_writer.hpp.

References slick::trader::order_producer_id().

◆ publish()

template<typename E>
void slick::trader::OrderEventWriter::publish ( const E & event)
inline

Definition at line 48 of file order_event_writer.hpp.

References slick::trader::EventSerializer::publish().

Referenced by replay().

◆ register_connector()

void slick::trader::OrderEventWriter::register_connector ( slick::queue< uint8_t > & control_queue,
const FeeStructure & fees ) const
inline

◆ replay()

void slick::trader::OrderEventWriter::replay ( const FillJournal & journal,
std::string_view who )
inline

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