20#ifndef ORES_TRADING_MESSAGING_DAY_COUNT_FRACTION_TYPE_PROTOCOL_HPP
21#define ORES_TRADING_MESSAGING_DAY_COUNT_FRACTION_TYPE_PROTOCOL_HPP
25#include "ores.trading.api/domain/day_count_fraction_type.hpp"
27namespace ores::trading::messaging {
29struct get_day_count_fraction_types_request {
30 using response_type =
struct get_day_count_fraction_types_response;
31 static constexpr std::string_view nats_subject =
"trading.v1.day-count-fraction-types.list";
36struct get_day_count_fraction_types_response {
37 std::vector<ores::trading::domain::day_count_fraction_type> types;
38 int total_available_count = 0;
41struct save_day_count_fraction_type_request {
42 using response_type =
struct save_day_count_fraction_type_response;
43 static constexpr std::string_view nats_subject =
"trading.v1.day-count-fraction-types.save";
47struct save_day_count_fraction_type_response {
52struct delete_day_count_fraction_type_request {
53 using response_type =
struct delete_day_count_fraction_type_response;
54 static constexpr std::string_view nats_subject =
"trading.v1.day-count-fraction-types.delete";
55 std::vector<std::string> codes;
58struct delete_day_count_fraction_type_response {
63struct get_day_count_fraction_type_history_request {
64 using response_type =
struct get_day_count_fraction_type_history_response;
65 static constexpr std::string_view nats_subject =
"trading.v1.day-count-fraction-types.history";
69struct get_day_count_fraction_type_history_response {
72 std::vector<ores::trading::domain::day_count_fraction_type> history;
ORE day count fraction convention code (e.g. A360, A365F, ActAct(ISDA)).
Definition day_count_fraction_type.hpp:35