Typedefs | |
typedef std::map< QuantLib::Date, std::set< std::string > > | QuoteMap |
typedef std::map< std::string, RequiredFixings::FixingDates > | FixingMap |
using | SinglePrecisionInMemoryCube = InMemoryCube1< float > |
InMemoryCube of depth 1 with single precision floating point numbers. | |
using | DoublePrecisionInMemoryCube = InMemoryCube1< double > |
InMemoryCube of depth 1 with double precision floating point numbers. | |
using | SinglePrecisionInMemoryCubeN = InMemoryCubeN< float > |
InMemoryCube of depth N with single precision floating point numbers. | |
using | DoublePrecisionInMemoryCubeN = InMemoryCubeN< double > |
InMemoryCube of depth N with double precision floating point numbers. | |
using | SinglePrecisionJaggedCube = JaggedCube< float > |
Jagged cube with single precision floating point numbers. | |
using | DoublePrecisionJaggedCube = JaggedCube< double > |
Jagged cube with double precision floating point numbers. | |
using | SinglePrecisionSensiCube = SensiCube< float > |
Sensi cube with single precision floating point numbers. | |
using | DoublePrecisionSensiCube = SensiCube< double > |
Sensi cube with double precision floating point numbers. | |
using | SinglePrecisionSparseNpvCube = SparseNpvCube< float > |
using | RealPrecisionSparseNpvCube = SparseNpvCube< Real > |
using | TradePnLStore = std::vector< std::vector< QuantLib::Real > > |
typedef std::pair< RiskFactorKey, RiskFactorKey > | CrossPair |
Enumerations | |
enum class | AggregationScenarioDataType : unsigned int { IndexFixing = 0 , FXSpot = 1 , Numeraire = 2 , CreditState = 3 , SurvivalWeight = 4 , RecoveryRate = 5 , Generic = 6 } |
enum class | ShiftScheme { Forward , Backward , Central } |
enum class | ShiftType { Absolute , Relative } |
enum | IMScheduleLabel { Credit2 , Credit5 , Credit100 , Commodity , Equity , FX , Rates2 , Rates5 , Rates100 , Other } |
enum class | SimmVersion { V1_0 , V1_1 , V1_2 , V1_3 , V1_3_38 , V2_0 , V2_1 , V2_2 , V2_3 , V2_3_8 , V2_5 , V2_5A , V2_6 } |
Ordered SIMM versions. | |
Functions | |
CollateralExposureHelper::CalculationType | parseCollateralCalculationType (const string &s) |
Convert text representation to CollateralExposureHelper::CalculationType. | |
CreditMigrationHelper::CreditMode | parseCreditMode (const std::string &s) |
CreditMigrationHelper::LoanExposureMode | parseLoanExposureMode (const std::string &s) |
CreditMigrationHelper::Evaluation | parseEvaluation (const std::string &s) |
bool | lessThan (const Array &a, const Array &b) |
ExposureAllocator::AllocationMethod | parseAllocationMethod (const string &s) |
Convert text representation to ExposureAllocator::AllocationMethod. | |
std::ostream & | operator<< (std::ostream &out, ExposureAllocator::AllocationMethod m) |
Convert ExposureAllocator::AllocationMethod to text representation. | |
QuantLib::ext::shared_ptr< ore::data::Loader > | implyBondSpreads (const Date &asof, const QuantLib::ext::shared_ptr< InputParameters > ¶ms, const QuantLib::ext::shared_ptr< ore::data::TodaysMarketParameters > &todaysMarketParams, const QuantLib::ext::shared_ptr< ore::data::Loader > &loader, const QuantLib::ext::shared_ptr< ore::data::CurveConfigurations > &curveConfigs, const std::string &excludeRegex) |
QuantLib::ext::shared_ptr< AnalyticsManager > | parseAnalytics (const std::string &s, const QuantLib::ext::shared_ptr< InputParameters > &inputs, const QuantLib::ext::shared_ptr< MarketDataLoader > &marketDataLoader) |
void | initBuilders (const bool registerOREAnalytics=true) |
std::vector< std::string > | getFileNames (const std::string &fileString, const std::filesystem::path &path) |
NPVCubeWithMetaData | loadCube (const std::string &filename, const bool doublePrecision=false) |
void | saveCube (const std::string &filename, const NPVCubeWithMetaData &cube, const bool doublePrecision=false) |
QuantLib::ext::shared_ptr< AggregationScenarioData > | loadAggregationScenarioData (const std::string &filename) |
void | saveAggregationScenarioData (const std::string &filename, const AggregationScenarioData &cube) |
std::ostream & | operator<< (std::ostream &out, const SensitivityCube::crossPair &cp) |
std::ostream & | operator<< (std::ostream &out, const QuantLib::ext::shared_ptr< MarketRiskGroupBase > &riskGroup) |
std::ostream & | operator<< (std::ostream &out, const QuantLib::ext::shared_ptr< TradeGroupBase > &tradeGroup) |
std::ostream & | operator<< (std::ostream &out, const NpvRecord &nr) |
Enable writing of a NpvRecord. | |
ParametricVarCalculator::ParametricVarParams::Method | parseParametricVarMethod (const std::string &method) |
std::ostream & | operator<< (std::ostream &out, const ParametricVarCalculator::ParametricVarParams::Method &method) |
void | writeParConversionMatrix (const ore::analytics::ParSensitivityAnalysis::ParContainer &parSensitivities, ore::data::Report &reportOut) |
Write par instrument sensitivity report. | |
Real | impliedQuote (const QuantLib::ext::shared_ptr< QuantLib::Instrument > &i) |
Computes the implied quote. | |
bool | riskFactorKeysAreSimilar (const ore::analytics::RiskFactorKey &x, const ore::analytics::RiskFactorKey &y) |
true if key type and name are equal, do not care about the index though | |
double | impliedVolatility (const QuantLib::CapFloor &cap, double targetValue, const QuantLib::Handle< QuantLib::YieldTermStructure > &d, double guess, QuantLib::VolatilityType type, double displacement) |
double | impliedVolatility (const QuantLib::YoYInflationCapFloor &cap, double targetValue, const QuantLib::Handle< QuantLib::YieldTermStructure > &d, double guess, QuantLib::VolatilityType type, double displacement, const QuantLib::Handle< QuantLib::YoYInflationIndex > &index={}) |
double | impliedVolatility (const RiskFactorKey &key, const ParSensitivityInstrumentBuilder::Instruments &instruments) |
std::set< RiskFactorKey::KeyType > | disabledParRates (bool irCurveParRates, bool irCapFloorParRates, bool creditParRates) |
std::ostream & | operator<< (std::ostream &out, const MarketRiskConfiguration::RiskClass &rc) |
std::ostream & | operator<< (std::ostream &out, const MarketRiskConfiguration::RiskType &rt) |
MarketRiskConfiguration::RiskClass | parseVarRiskClass (const std::string &rc) |
MarketRiskConfiguration::RiskType | parseVarRiskType (const std::string &rt) |
Real | getShiftSize (const RiskFactorKey &key, const SensitivityScenarioData &sensiParams, const QuantLib::ext::shared_ptr< ScenarioSimMarket > &simMarket, const std::string &marketConfiguration="") |
std::ostream & | operator<< (std::ostream &out, const SensitivityRecord &sr) |
Enable writing of a SensitivityRecord. | |
std::ostream & | operator<< (std::ostream &out, const AggregationScenarioDataType &t) |
std::ostream & | operator<< (std::ostream &out, const ReturnConfiguration::ReturnType t) |
QuantLib::ext::shared_ptr< HistoricalScenarioGenerator > | buildHistoricalScenarioGenerator (const QuantLib::ext::shared_ptr< HistoricalScenarioReader > &hsr, const QuantLib::ext::shared_ptr< ore::data::AdjustmentFactors > &adjFactors, const TimePeriod &period, Calendar calendar, Size mporDays, const QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > &simParams, const QuantLib::ext::shared_ptr< TodaysMarketParameters > &marketParam, const bool overlapping=true) |
QuantLib::ext::shared_ptr< HistoricalScenarioGenerator > | buildHistoricalScenarioGenerator (const QuantLib::ext::shared_ptr< HistoricalScenarioReader > &hsr, const QuantLib::ext::shared_ptr< ore::data::AdjustmentFactors > &adjFactors, const std::set< QuantLib::Date > &dates, const QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > &simParams, const QuantLib::ext::shared_ptr< TodaysMarketParameters > &marketParam) |
std::size_t | hash_value (const RiskFactorKey &k) |
bool | operator< (const RiskFactorKey &lhs, const RiskFactorKey &rhs) |
bool | operator== (const RiskFactorKey &lhs, const RiskFactorKey &rhs) |
bool | operator> (const RiskFactorKey &lhs, const RiskFactorKey &rhs) |
bool | operator<= (const RiskFactorKey &lhs, const RiskFactorKey &rhs) |
bool | operator>= (const RiskFactorKey &lhs, const RiskFactorKey &rhs) |
bool | operator!= (const RiskFactorKey &lhs, const RiskFactorKey &rhs) |
std::ostream & | operator<< (std::ostream &out, const RiskFactorKey::KeyType &type) |
std::ostream & | operator<< (std::ostream &out, const RiskFactorKey &key) |
RiskFactorKey::KeyType | parseRiskFactorKeyType (const string &str) |
RiskFactorKey | parseRiskFactorKey (const string &str) |
ShiftScheme | parseShiftScheme (const std::string &s) |
std::ostream & | operator<< (std::ostream &out, const ShiftScheme &shiftScheme) |
ShiftType | parseShiftType (const std::string &s) |
std::ostream & | operator<< (std::ostream &out, const ShiftType &shiftType) |
RiskFactorKey::KeyType | yieldCurveRiskFactor (const ore::data::YieldCurveType y) |
Map a yield curve type to a risk factor key type. | |
Real | getDifferenceScenario (const RiskFactorKey::KeyType keyType, const Real v1, const Real v2) |
QuantLib::ext::shared_ptr< Scenario > | getDifferenceScenario (const QuantLib::ext::shared_ptr< Scenario > &s1, const QuantLib::ext::shared_ptr< Scenario > &s2, const Date &targetScenarioAsOf=Date(), const Real targetScenarioNumeraire=0.0) |
Real | addDifferenceToScenario (const RiskFactorKey::KeyType keyType, const Real v, const Real d) |
QuantLib::ext::shared_ptr< Scenario > | addDifferenceToScenario (const QuantLib::ext::shared_ptr< Scenario > &s, const QuantLib::ext::shared_ptr< Scenario > &d, const Date &targetScenarioAsOf=Date(), const Real targetScenarioNumeraire=0.0) |
QuantLib::ext::shared_ptr< Scenario > | recastScenario (const QuantLib::ext::shared_ptr< Scenario > &scenario, const std::map< std::pair< RiskFactorKey::KeyType, std::string >, std::vector< std::vector< Real >>> &oldCoordinates, const std::map< std::pair< RiskFactorKey::KeyType, std::string >, std::vector< std::vector< Real >>> &newCoordinates) |
QuantLib::ext::shared_ptr< Scenario > | recastScenario (const QuantLib::ext::shared_ptr< Scenario > &scenario, const std::map< std::pair< RiskFactorKey::KeyType, std::string >, std::vector< std::vector< Real >>> &oldCoordinates, const std::set< std::tuple< RiskFactorKey::KeyType, std::string, std::vector< std::vector< Real >>>> &newCoordinates) |
std::set< std::string > | getShiftSpecKeys (const SensitivityScenarioData &d) |
std::ostream & | operator<< (std::ostream &out, const ShiftScenarioGenerator::ScenarioDescription &scenarioDescription) |
std::pair< RiskFactorKey, std::string > | deconstructFactor (const std::string &factor) |
std::string | reconstructFactor (const RiskFactorKey &key, const std::string &desc) |
Reconstruct the string description from a risk factor key and its index description desc . | |
QuantLib::ext::shared_ptr< RiskFactorKey > | parseRiskFactorKey (const std::string &str, std::vector< std::string > &addTokens) |
risk factor key parser that takes into account additional tokens occurring in sensitivity risk factor keys | |
bool | operator< (const ShiftScenarioGenerator::ScenarioDescription &lhs, const ShiftScenarioGenerator::ScenarioDescription &rhs) |
bool | operator== (const ShiftScenarioGenerator::ScenarioDescription &lhs, const ShiftScenarioGenerator::ScenarioDescription &rhs) |
std::ostream & | operator<< (std::ostream &out, const CrifRecord &cr) |
Enable writing of a CrifRecord. | |
std::ostream & | operator<< (std::ostream &out, const CrifRecord::RiskType &rt) |
std::ostream & | operator<< (std::ostream &out, const CrifRecord::ProductClass &pc) |
std::ostream & | operator<< (std::ostream &out, const CrifRecord::CurvatureScenario &scenario) |
CrifRecord::RiskType | parseRiskType (const std::string &rt) |
CrifRecord::ProductClass | parseProductClass (const std::string &pc) |
CrifRecord::CurvatureScenario | parseFrtbCurvatureScenario (const std::string &scenario) |
bool | operator< (const SimmBucketMapper::FailedMapping &a, const SimmBucketMapper::FailedMapping &b) |
bool | operator< (const BucketMapping &a, const BucketMapping &b) |
std::ostream & | operator<< (std::ostream &out, const SimmConfiguration::SimmSide &side) |
std::ostream & | operator<< (std::ostream &out, const SimmConfiguration::RiskClass &rc) |
std::ostream & | operator<< (std::ostream &out, const SimmConfiguration::MarginType &mt) |
std::ostream & | operator<< (std::ostream &out, const SimmConfiguration::IMModel &model) |
std::ostream & | operator<< (std::ostream &out, const SimmConfiguration::Regulation ®ulation) |
SimmConfiguration::SimmSide | parseSimmSide (const std::string &side) |
SimmConfiguration::RiskClass | parseSimmRiskClass (const std::string &rc) |
SimmConfiguration::MarginType | parseSimmMarginType (const std::string &mt) |
SimmConfiguration::IMModel | parseIMModel (const std::string &pc) |
SimmConfiguration::Regulation | parseRegulation (const std::string ®ulation) |
std::string | combineRegulations (const std::string &, const std::string &) |
std::set< std::string > | parseRegulationString (const std::string ®sString, const std::set< std::string > &valueIfEmpty={"Unspecified"}) |
Reads a string containing regulations applicable for a given CRIF record. | |
std::string | sortRegulationString (const std::string ®sString) |
std::string | removeRegulations (const std::string ®sString, const std::vector< std::string > ®sToRemove) |
Removes a given vector of regulations from a string of regulations and returns a string with the regulations removed. | |
std::string | filterRegulations (const std::string ®sString, const std::vector< std::string > ®sToFilter) |
SimmConfiguration::Regulation | getWinningRegulation (const std::vector< std::string > &winningRegulations) |
From a vector of regulations, determine the winning regulation based on order of priority. | |
std::ostream & | operator<< (std::ostream &out, const SimmResults::Key &resultsKey) |
Enable writing of Key. | |
std::vector< std::string > | loadFactorList (const std::string &inputFileName, const char delim='\n') |
std::vector< std::vector< double > > | loadScenarios (const std::string &inputFileName, const char delim='\n') |
QuantLib::Matrix | loadCovarianceMatrix (const std::string &inputFileName, const char delim='\n') |
SimmVersion | parseSimmVersion (const std::string &version) |
QuantLib::ext::shared_ptr< SimmConfiguration > | buildSimmConfiguration (const std::string &simmVersion, const QuantLib::ext::shared_ptr< SimmBucketMapper > &simmBucketMapper, const QuantLib::ext::shared_ptr< SimmCalibrationData > &simmCalibrationData=nullptr, const QuantExt::Size &mporDays=10) |
std::string | escapeCommaSeparatedList (const std::string &str, const char &csvQuoteChar) |
Analytics namespace
Real ore::analytics::getShiftSize | ( | const RiskFactorKey & | key, |
const SensitivityScenarioData & | sensiParams, | ||
const QuantLib::ext::shared_ptr< ScenarioSimMarket > & | simMarket, | ||
const std::string & | marketConfiguration = "" |
||
) |
Returns the absolute shift size corresponding to a particular risk factor key
given sensitivity parameters sensiParams
and a simulation market simMarket
std::pair<RiskFactorKey, std::string> ore::analytics::deconstructFactor | ( | const std::string & | factor | ) |
Retrieve the RiskFactorKey and index description from the result of ScenarioDescription::factor1() or ScenarioDescription::factor2()
std::string ore::analytics::sortRegulationString | ( | const std::string & | regsString | ) |
Cleans a string defining regulations so that different permutations of the same set will be seen as the same string, e.g. "APRA,SEC,ESA" and "SEC,ESA,APRA" should be equivalent.
std::string ore::analytics::filterRegulations | ( | const std::string & | regsString, |
const std::vector< std::string > & | regsToFilter | ||
) |
Filters a string of regulations on a given vector of regulations and returns a string containing only those filtered regulations
std::string ore::analytics::escapeCommaSeparatedList | ( | const std::string & | str, |
const char & | csvQuoteChar | ||
) |
If the input str is a comma seperated list the method quotation marks " if the csvQuoteChar is '\0' Example: commaSeparatedListToJsonArrayString("item1,item2", '') -> "item1, item2" commaSeparatedListToJsonArrayString("item", '') -> "item"