20#ifndef ORES_TRADING_SERVICE_TRADE_PARTY_ROLE_SERVICE_HPP
21#define ORES_TRADING_SERVICE_TRADE_PARTY_ROLE_SERVICE_HPP
26#include "ores.logging/make_logger.hpp"
27#include "ores.database/domain/context.hpp"
28#include "ores.trading.api/domain/trade_party_role.hpp"
29#include "ores.trading.core/repository/trade_party_role_repository.hpp"
31namespace ores::trading::service {
38 inline static std::string_view logger_name =
39 "ores.trading.service.trade_party_role_service";
41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(logger_name);
52 std::vector<domain::trade_party_role> list_roles();
54 std::optional<domain::trade_party_role>
55 find_role(
const std::string&
id);
59 void save_roles(
const std::vector<domain::trade_party_role>& roles);
61 void remove_role(
const std::string&
id);
63 std::vector<domain::trade_party_role>
64 get_role_history(
const std::string&
id);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:47
Counterparty role assignment on a trade.
Definition trade_party_role.hpp:37
Reads and writes trade party roles to data storage.
Definition trade_party_role_repository.hpp:35
Service for managing trade party roles.
Definition trade_party_role_service.hpp:36