Heartbeat

struct Heartbeat

FIX Heartbeat <0> message.

Either side must send this message as a response to a received :code:TestRequest (:code:1) message.

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

std::string_view test_req_id

TestReqId <112>

Public Static Functions

static Heartbeat create(roq::fix::Message const&)

Decode.