20#ifndef ORES_RISK_MESSAGING_CURRENCY_HISTORY_PROTOCOL_HPP
21#define ORES_RISK_MESSAGING_CURRENCY_HISTORY_PROTOCOL_HPP
28#include <rfl/json.hpp>
29#include "ores.comms/messaging/message_types.hpp"
30#include "ores.risk/domain/currency_version_history.hpp"
32namespace ores::risk::messaging {
48 static std::expected<get_currency_history_request, comms::messaging::error_code>
70 static std::expected<get_currency_history_response, comms::messaging::error_code>
Contains the full version history for a currency.
Definition currency_version_history.hpp:32
Request to retrieve version history for a currency.
Definition currency_history_protocol.hpp:37
std::vector< std::byte > serialize() const
Serialize request to bytes.
Definition currency_history_protocol.cpp:138
static std::expected< get_currency_history_request, comms::messaging::error_code > deserialize(std::span< const std::byte > data)
Deserialize request from bytes.
Definition currency_history_protocol.cpp:145
Response containing currency version history.
Definition currency_history_protocol.hpp:57
static std::expected< get_currency_history_response, comms::messaging::error_code > deserialize(std::span< const std::byte > data)
Deserialize response from bytes.
Definition currency_history_protocol.cpp:180
std::vector< std::byte > serialize() const
Serialize response to bytes.
Definition currency_history_protocol.cpp:158