struct Reject#

FIX Reject <3> message.

The Reject <3> message should be issued when a message is received but cannot be properly processed due to a session-level rule violation. An example of when a reject may be appropriate would be the receipt of a message with invalid basic data (e.g. MsgType <35>=&) which successfully passes de-encryption, CheckSum <10> and BodyLength <9> checks. As a rule, messages should be forwarded to the trading application for business level rejections whenever possible.

Public Functions

std::span<std::byte const> encode(roq::fix::Header const&, std::span<std::byte> const &buffer) const#

Encode to buffer.

bool is_valid() const#

Validate if message contains all required fields.

Public Members

uint64_t ref_seq_num = {}#

RefSeqNum <45> (required)

std::string_view text#

Text <58>

uint32_t ref_tag_id = {}#

RefTagID <371>

roq::fix::MsgType ref_msg_type = {}#

RefMsgType <372>

roq::fix::SessionRejectReason session_reject_reason = {}#

SessionRejectReason <373>

Public Static Functions

static Reject create(roq::fix::Message const&)#