20#ifndef ORES_MARKETDATA_API_MESSAGING_MARKET_OBSERVATION_PROTOCOL_HPP
21#define ORES_MARKETDATA_API_MESSAGING_MARKET_OBSERVATION_PROTOCOL_HPP
26#include "ores.marketdata.api/domain/market_observation.hpp"
28namespace ores::marketdata::messaging {
30struct get_market_observations_request {
31 using response_type =
struct get_market_observations_response;
32 static constexpr std::string_view nats_subject =
"marketdata.v1.observations.list";
33 std::string series_id;
34 std::string from_date;
38struct get_market_observations_response {
39 std::vector<domain::market_observation> observations;
40 int total_available_count = 0;
43struct save_market_observations_request {
44 using response_type =
struct save_market_observations_response;
45 static constexpr std::string_view nats_subject =
"marketdata.v1.observations.save";
46 std::vector<domain::market_observation> observations;
49struct save_market_observations_response {
55struct delete_market_observations_request {
56 using response_type =
struct delete_market_observations_response;
57 static constexpr std::string_view nats_subject =
"marketdata.v1.observations.delete";
58 std::string series_id;
61struct delete_market_observations_response {