ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
trade_import_item Struct Reference

A trade with its ORE source context for import mapping. More...

#include <importer.hpp>

Collaboration diagram for trade_import_item:
Collaboration graph

Public Attributes

trading::domain::trade trade
 
std::string ore_counterparty_name
 ORE CounterParty string, empty if absent.
 
std::filesystem::path source_file
 ORE XML file this trade was read from.
 

Detailed Description

A trade with its ORE source context for import mapping.

Pairs a partially-mapped ORES trading domain trade with the raw ORE CounterParty string from the trade envelope and the path of the file it came from. The counterparty_id in the trade is left nil; callers must resolve it via ore_counterparty_name.

The source_file field enables callers (e.g. batch directory import) to report per-trade provenance without having to keep a separate index.