|
ORE Studio 0.0.4
|
Imports domain objects from their ORE XML representation. More...
#include <importer.hpp>

Static Public Member Functions | |
| static std::string | validate_currency (const refdata::domain::currency ¤cy) |
| Validates a currency against XSD schema requirements. | |
| static std::vector< refdata::domain::currency > | import_currency_config (const std::filesystem::path &path) |
| static std::string | validate_trade (const trading::domain::trade &trade) |
| Validates a trade against minimum import requirements. | |
| static std::vector< trading::domain::trade > | import_portfolio (const std::filesystem::path &path) |
| Imports trades from an ORE portfolio XML file. | |
| 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. | |
Imports domain objects from their ORE XML representation.
|
static |
Validates a currency against XSD schema requirements.
Performs lightweight validation checking required fields per assets/xsds/currencyconfig.xsd without requiring external libraries.
| currency | Currency to validate |

|
static |
Validates a trade against minimum import requirements.
Checks that the trade has at least the fields that can be directly mapped from ORE XML: external_id and trade_type. Fields that require external mapping (book_id, counterparty_id, etc.) are not validated here.
| trade | Trade to validate |

|
static |
Imports trades from an ORE portfolio XML file.
Parses the portfolio XML and maps each trade to the ORES trading domain. UUID fields that require external context (book_id, counterparty_id, portfolio_id, party_id) are left as nil and must be populated by the calling code.
| path | Path to the ORE portfolio XML file |
|
static |
Imports trades from an ORE portfolio XML file with mapping context.
Like import_portfolio() but also captures the raw ORE CounterParty string from each trade envelope so that callers can present a counterparty mapping dialog before resolving UUIDs.
| path | Path to the ORE portfolio XML file |
