41 return "UnknownSymbol";
51enum class MdKind : std::uint8_t {
75 std::uint32_t
len = 0;
88concept MarketDataFeed =
requires(F& f, std::string_view json, std::int64_t rx_ts) {
89 { f.on_message(json, rx_ts) } -> std::same_as<ParseStatus>;
91 { f.on_disconnected() };
92 { f.subscription_payloads() } -> std::convertible_to<std::span<const std::string>>;
96concept OrderGateway =
requires(G& g,
97 const OrderCommand& cmd,
100 std::string_view json,
102 std::int64_t now_ns) {
103 { g.encode(cmd, now_ms, out) } -> std::same_as<std::size_t>;
104 { g.on_message(json, rx_ts) } -> std::same_as<ParseStatus>;
105 { g.can_send(now_ns) } -> std::same_as<bool>;
EventSink (5.15): the net -> engine seam.
Event bus message structs (5.5).
constexpr std::uint32_t kDecoderScratchBytes
Every decoder needs a scratch area for the largest message it can produce.
Definition feed.hpp:82
MdKind
What a decoder produced into the caller's scratch buffer.
Definition feed.hpp:53
@ PerpState
PerpStateMsg (venues/perp_state.hpp)
OrderEventKind
Definition feed.hpp:62
constexpr std::string_view to_string(ChannelState s) noexcept
Definition venue.hpp:51
@ None
not a multicast venue
ParseStatus
Definition feed.hpp:26
@ Malformed
JSON error or missing/invalid field.
@ Overflow
ring full (market data) or output buffer too small
@ UnknownSymbol
symbol not in the SymbolTable
@ Error
venue-level error payload
@ Ignored
valid message we do not consume (subscription acks, pongs, ...)
constexpr std::size_t kJsonPadding
Parsers that hand raw text frames to simdjson need SIMDJSON_PADDING (64) readable bytes after the pay...
Definition feed.hpp:87
constexpr std::uint32_t kMaxMsgBytes
Definition messages.hpp:692
OrderCommand: a uniform, non-owning view over the three outbound engine messages (OutNewOrderMsg / Ou...
One execution as a strategy sees it (on_fill).
Definition hooks.hpp:56
Definition position.hpp:20
bool ok() const noexcept
Definition feed.hpp:78
std::uint32_t len
bytes written to the output buffer
Definition feed.hpp:77
OrderEventKind order_kind
Definition feed.hpp:76
MdKind kind
Definition feed.hpp:75
ParseStatus status
Definition feed.hpp:74