20#ifndef ORES_TRADING_SERVICE_TRADE_STATUS_SERVICE_HPP
21#define ORES_TRADING_SERVICE_TRADE_STATUS_SERVICE_HPP
25#include <boost/uuid/uuid.hpp>
26#include "ores.logging/make_logger.hpp"
27#include "ores.database/domain/context.hpp"
29namespace ores::trading::service {
41 inline static std::string_view logger_name =
42 "ores.trading.service.trade_status_service";
44 [[nodiscard]]
static auto& lg() {
46 static auto instance = make_logger(logger_name);
70 const std::string& activity_type_code,
71 std::optional<boost::uuids::uuid> current_status_id);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:47
Resolves trade status transitions via the FSM.
Definition trade_status_service.hpp:39
static boost::uuids::uuid resolve_status(context ctx, const std::string &activity_type_code, std::optional< boost::uuids::uuid > current_status_id)
Resolves the new status_id for a trade.
Definition trade_status_service.cpp:33