21#ifndef ORES_ORE_XML_IMPORTER_HPP
22#define ORES_ORE_XML_IMPORTER_HPP
26#include "ores.logging/make_logger.hpp"
27#include "ores.refdata.api/domain/currency.hpp"
28#include "ores.trading.api/domain/trade.hpp"
54 inline static std::string_view logger_name =
"ores.ore.xml.importer";
58 static auto instance = make_logger(logger_name);
74 static std::vector<refdata::domain::currency>
75 import_currency_config(
const std::filesystem::path& path);
101 static std::vector<trading::domain::trade>
115 static std::vector<trade_import_item>
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Provides XML serialisation support for ORE types.
Definition exporter.hpp:28
A trade with its ORE source context for import mapping.
Definition importer.hpp:43
std::string ore_counterparty_name
ORE CounterParty string, empty if absent.
Definition importer.hpp:45
std::filesystem::path source_file
ORE XML file this trade was read from.
Definition importer.hpp:46
Imports domain objects from their ORE XML representation.
Definition importer.hpp:52
static std::string validate_trade(const trading::domain::trade &trade)
Validates a trade against minimum import requirements.
Definition importer.cpp:81
static std::string validate_currency(const refdata::domain::currency ¤cy)
Validates a currency against XSD schema requirements.
Definition importer.cpp:35
static std::vector< trade_import_item > import_portfolio_with_context(const std::filesystem::path &path)
Imports trades from an ORE portfolio XML file with mapping context.
Definition importer.cpp:113
static std::vector< trading::domain::trade > import_portfolio(const std::filesystem::path &path)
Imports trades from an ORE portfolio XML file.
Definition importer.cpp:94
Represents a currency with its metadata and formatting rules.
Definition currency.hpp:34
Trade capturing FpML Trade Header properties.
Definition trade.hpp:38