Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
ladder_subscription_event.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <cstdint>
5#include <type_traits>
6
7namespace slick::trader {
8
9// The feeds MANUAL holds of an instrument for a ladder, as bits: its level 2 book, and its trades
10// for the LTQ column. The WebServer skips any feed a strategy already streams.
16
17// Sent by the WebServer over the event bus. MANUAL holds the `feeds` of the event's instrument at
18// its broker while a ladder shows it (`subscribe`), and releases what it held otherwise.
19#pragma pack(push, 1)
22 uint8_t feeds; // LadderFeed bits, read only on a hold
23
25};
26#pragma pack(pop)
27
28static_assert(std::is_trivially_copyable_v<LadderSubscriptionEvent>, "LadderSubscriptionEvent must be trivially copyable");
29
30} // namespace slick::trader
Event(EventType t=EventType::TRADE)
Definition event.hpp:63