ITCHCPP 1.6.0
High-Performance NASDAQ TotalView-ITCH 5.0 Parser & Market-Data Platform
Loading...
Searching...
No Matches
encoder.hpp
Go to the documentation of this file.
1#pragma once
2
13
14#include <cstddef>
15#include <vector>
16
17#include "itch/messages.hpp"
18
19namespace itch {
20
26[[nodiscard]] auto encode_message(const Message& message) -> std::vector<std::byte>;
27
33[[nodiscard]] auto encode_frame(const Message& message) -> std::vector<std::byte>;
34
35} // namespace itch
Defines every ITCH 5.0 message struct, the Message variant, and the stream-printing helpers used to f...
std::variant< SystemEventMessage, StockDirectoryMessage, StockTradingActionMessage, RegSHOMessage, MarketParticipantPositionMessage, MWCBDeclineLevelMessage, MWCBStatusMessage, IPOQuotingPeriodUpdateMessage, LULDAuctionCollarMessage, OperationalHaltMessage, AddOrderMessage, AddOrderMPIDAttributionMessage, OrderExecutedMessage, OrderExecutedWithPriceMessage, OrderCancelMessage, OrderDeleteMessage, OrderReplaceMessage, NonCrossTradeMessage, CrossTradeMessage, BrokenTradeMessage, NOIIMessage, RetailPriceImprovementIndicatorMessage, DLCRMessage > Message
A variant able to hold any one of the ITCH 5.0 message structs.
Definition messages.hpp:483
auto encode_message(const Message &message) -> std::vector< std::byte >
Encodes a message body and header without the 2-byte length prefix.
Definition encoder.cpp:227
auto encode_frame(const Message &message) -> std::vector< std::byte >
Encodes a complete length-prefixed frame (2-byte big-endian length followed by the message bytes),...
Definition encoder.cpp:239