20#ifndef ORES_TRADING_SERVICE_TRADE_IDENTIFIER_SERVICE_HPP
21#define ORES_TRADING_SERVICE_TRADE_IDENTIFIER_SERVICE_HPP
26#include "ores.logging/make_logger.hpp"
27#include "ores.database/domain/context.hpp"
28#include "ores.trading.api/domain/trade_identifier.hpp"
29#include "ores.trading.core/repository/trade_identifier_repository.hpp"
31namespace ores::trading::service {
38 inline static std::string_view logger_name =
39 "ores.trading.service.trade_identifier_service";
41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(logger_name);
52 std::vector<domain::trade_identifier> list_identifiers();
54 std::optional<domain::trade_identifier>
55 find_identifier(
const std::string&
id);
59 void save_identifiers(
const std::vector<domain::trade_identifier>& identifiers);
61 void remove_identifier(
const std::string&
id);
63 std::vector<domain::trade_identifier>
64 get_identifier_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
External identifier (UTI, USI, internal) assigned to a trade.
Definition trade_identifier.hpp:38
Reads and writes trade identifiers to data storage.
Definition trade_identifier_repository.hpp:35
Service for managing trade identifiers.
Definition trade_identifier_service.hpp:36