ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OreImporter Class Reference

Executes an ORE import: builds the plan, resolves name collisions, and saves currencies, portfolios, books, trades, and instruments via NATS. More...

#include <OreImporter.hpp>

Collaboration diagram for OreImporter:
Collaboration graph

Public Member Functions

 OreImporter (ClientManager *cm)
 
ore::planner::ore_import_result execute (ore::scanner::scan_result scan_result, std::set< std::string > existing_iso_codes, ore::planner::import_choices choices)
 Runs the full import pipeline and returns the result.
 

Detailed Description

Executes an ORE import: builds the plan, resolves name collisions, and saves currencies, portfolios, books, trades, and instruments via NATS.

Designed to run on a background thread. Returns ore_import_result which carries per-instrument error details independently of the overall success flag.

Member Function Documentation

◆ execute()

ore_import_result execute ( ore::scanner::scan_result  scan_result,
std::set< std::string >  existing_iso_codes,
ore::planner::import_choices  choices 
)

Runs the full import pipeline and returns the result.

Parameters
scan_resultOutput of ore_directory_scanner::scan().
existing_iso_codesISO codes already present in the database.
choicesUser-supplied options (target book, defaults, etc.).