Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
register_event.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "event.hpp"
4#include <limits>
6#include <string_view>
7
8namespace slick::trader {
9
10constexpr uint32_t INVALID_PRODUCER_ID = std::numeric_limits<uint32_t>::max();
11
17
18#pragma pack(push, 1)
31
41
49
50#pragma pack(pop)
51
52inline std::string_view to_string(ComponentType ct) {
53 switch (ct) {
55 return "MARKET_DATA";
57 return "ORDER_CONNECTOR";
58 default:
59 return "UNKNOWN";
60 }
61}
62
63}
const char * to_string(BrokerId bid)
Definition event.hpp:78
constexpr uint32_t INVALID_PRODUCER_ID
Event(EventType t=EventType::TRADE)
Definition event.hpp:63
RegisterEvent(ComponentType ct=ComponentType::UNKNOWN)