29 const map<string, string>& equities) {
34 const QuantLib::ext::shared_ptr<ore::data::InMemoryLoader>& loader,
35 const map<Date, set<string>>& quotes,
36 const Date& relabelDate) {
41 QL_FAIL(
"MarketDataInMemoryLoaderImpl::retrieveMarketData() requires inputs_->entireMarket()");
46 map<string, RequiredFixings::FixingDates> fixings,
47 map<pair<string, Date>, set<Date>> lastAvailableFixingLookupMap) {
52 QL_FAIL(
"MarketDataInMemoryLoaderImpl::retrieveFixings() requires inputs_->allFixings()");
55 for (
const auto& fp : lastAvailableFixingLookupMap) {
56 if (loader->getFixing(fp.first.first, fp.first.second).empty()) {
57 set<Date>::reverse_iterator rit;
58 for (rit = fp.second.rbegin(); rit != fp.second.rend(); rit++) {
59 auto f = loader->getFixing(fp.first.first, *rit);
61 loader->addFixing(fp.first.second, fp.first.first, f.fixing);
65 WLOG(
"MarketDataInMemoryLoader::retrieveFixings(::load Could not find fixing for id " << fp.first.first <<
" on date "
66 << fp.first.second <<
". ");
void retrieveMarketData(const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader, const ore::analytics::QuoteMap "es, const QuantLib::Date &marketDate) override
retrieve market data
void retrieveFixings(const QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader, ore::analytics::FixingMap fixings={}, std::map< std::pair< std::string, QuantLib::Date >, std::set< QuantLib::Date > > lastAvailableFixingLookupMap={}) override
retrieve fixings
void loadCorporateActionData(QuantLib::ext::shared_ptr< ore::data::InMemoryLoader > &loader, const std::map< std::string, std::string > &equities) override
load corporate action data
std::vector< std::string > fixingData_
QuantLib::ext::shared_ptr< InputParameters > inputs_
std::vector< std::string > marketData_
void loadDataFromBuffers(InMemoryLoader &loader, const std::vector< std::string > &marketData, const std::vector< std::string > &fixingData, bool implyTodaysFixings=false)