39class GeneralizedBlackScholesProcess;
49std::vector<Date>
coarsenDateGrid(
const std::vector<Date>& date,
const std::string& rule,
54std::pair<std::string, ScriptedTradeScriptData>
getScript(
const ScriptedTrade& scriptedTrade,
55 const ScriptLibraryData& scriptLibrary,
56 const std::string& purpose,
57 const bool fallBackOnEmptyPurpose);
64std::pair<std::string, Period>
71QuantLib::ext::shared_ptr<Context>
makeContext(
const Size nPaths,
const std::string& gridCoarsening,
72 const std::vector<std::string>& schedulesEligibleForCoarsening,
73 const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceData,
74 const std::vector<ScriptedTradeEventData>& events,
75 const std::vector<ScriptedTradeValueTypeData>& numbers,
76 const std::vector<ScriptedTradeValueTypeData>& indices,
77 const std::vector<ScriptedTradeValueTypeData>& currencies,
78 const std::vector<ScriptedTradeValueTypeData>& daycounters);
82 const std::vector<ScriptedTradeScriptData::NewScheduleData>& newSchedules);
96 explicit IndexInfo(
const std::string&
name,
const QuantLib::ext::shared_ptr<Market>& market =
nullptr);
109 QuantLib::ext::shared_ptr<FxIndex>
fx()
const {
return fx_; }
110 QuantLib::ext::shared_ptr<EquityIndex2>
eq()
const {
return eq_; }
111 QuantLib::ext::shared_ptr<QuantExt::CommodityIndex>
113 comm(
const Date& obsDate = Date())
const;
114 QuantLib::ext::shared_ptr<InterestRateIndex>
ir()
const {
return ir_; }
118 const Date& asof = QuantLib::Date::maxDate())
const;
121 const Date& asof = QuantLib::Date::maxDate())
const;
123 QuantLib::ext::shared_ptr<ZeroInflationIndex>
inf()
const {
return inf_; }
124 QuantLib::ext::shared_ptr<Index>
generic()
const {
return generic_; }
126 QuantLib::ext::shared_ptr<Index>
127 index(
const Date& obsDate = Date())
const;
144 QuantLib::ext::shared_ptr<FxIndex>
fx_;
145 QuantLib::ext::shared_ptr<EquityIndex2>
eq_;
146 QuantLib::ext::shared_ptr<InterestRateIndex>
ir_;
149 QuantLib::ext::shared_ptr<ZeroInflationIndex>
inf_;
190 const QuantLib::Date& obsDate = Date());
204std::pair<QuantLib::ext::shared_ptr<QuantLib::ZeroInflationIndex>, std::string>
208std::string
scriptedIndexName(
const QuantLib::ext::shared_ptr<Underlying>& underlying);
214std::map<std::string, std::vector<Real>>
216 const QuantLib::ext::shared_ptr<Context>& context);
abstract syntax tree for payoff scripting
QuantLib::ext::shared_ptr< Index > index(const Date &obsDate=Date()) const
std::string infName() const
bool operator>=(const IndexInfo &j) const
QuantLib::ext::shared_ptr< Market > market_
QuantLib::ext::shared_ptr< ZeroInflationIndex > inf_
QuantLib::ext::shared_ptr< IborIndex > irIbor_
QuantLib::ext::shared_ptr< SwapIndex > irSwap() const
bool operator==(const IndexInfo &j) const
QuantLib::ext::shared_ptr< ZeroInflationIndex > inf() const
QuantLib::ext::shared_ptr< FxIndex > fx_
QuantLib::ext::shared_ptr< InterestRateIndex > ir_
bool operator>(const IndexInfo &j) const
QuantLib::ext::shared_ptr< EquityIndex2 > eq_
bool operator!=(const IndexInfo &j) const
bool operator<(const IndexInfo &j) const
QuantLib::ext::shared_ptr< EquityIndex2 > eq() const
QuantLib::ext::shared_ptr< FallbackIborIndex > irIborFallback(const IborFallbackConfig &iborFallbackConfig, const Date &asof=QuantLib::Date::maxDate()) const
QuantLib::ext::shared_ptr< SwapIndex > irSwap_
QuantLib::ext::shared_ptr< InterestRateIndex > ir() const
QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > comm(const Date &obsDate=Date()) const
QuantLib::ext::shared_ptr< IborIndex > irIbor() const
QuantLib::ext::shared_ptr< Index > generic_
QuantLib::ext::shared_ptr< FxIndex > fx() const
bool operator<=(const IndexInfo &j) const
QuantLib::ext::shared_ptr< FallbackOvernightIndex > irOvernightFallback(const IborFallbackConfig &iborFallbackConfig, const Date &asof=QuantLib::Date::maxDate()) const
std::string commName() const
script engine context holding variable names and values
Map text representations to QuantLib/QuantExt types.
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
void amendContextVariablesSizes(QuantLib::ext::shared_ptr< Context > context, const Size newSize)
QL_DEPRECATED_ENABLE_WARNING std::string scriptedIndexName(const QuantLib::ext::shared_ptr< Underlying > &underlying)
std::vector< Date > coarsenDateGrid(const std::vector< Date > &dates, const std::string &rule, const Date &referenceDate)
ASTNodePtr parseScript(const std::string &code)
QL_DEPRECATED_DISABLE_WARNING std::pair< QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex >, std::string > parseScriptedInflationIndex(const std::string &indexName)
void addNewSchedulesToContext(QuantLib::ext::shared_ptr< Context > context, const std::vector< ScriptedTradeScriptData::NewScheduleData > &newSchedules)
std::map< std::string, std::vector< Real > > getCalibrationStrikes(const std::vector< ScriptedTradeScriptData::CalibrationData > &calibrationSpec, const QuantLib::ext::shared_ptr< Context > &context)
void checkDuplicateName(const QuantLib::ext::shared_ptr< Context > context, const std::string &name)
Size getInflationSimulationLag(const QuantLib::ext::shared_ptr< ZeroInflationIndex > &index)
std::pair< std::string, ScriptedTradeScriptData > getScript(const ScriptedTrade &scriptedTrade, const ScriptLibraryData &scriptLibrary, const std::string &purpose, const bool fallBackOnEmptyPurpose)
QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > parseScriptedCommodityIndex(const std::string &indexName, const QuantLib::Date &obsDate)
std::pair< std::string, Period > convertIndexToCamCorrelationEntry(const std::string &i)
QuantLib::ext::shared_ptr< ASTNode > ASTNodePtr
QuantLib::ext::shared_ptr< Context > makeContext(Size nPaths, const std::string &gridCoarsening, const std::vector< std::string > &schedulesEligibleForCoarsening, const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceData, const std::vector< ScriptedTradeEventData > &events, const std::vector< ScriptedTradeValueTypeData > &numbers, const std::vector< ScriptedTradeValueTypeData > &indices, const std::vector< ScriptedTradeValueTypeData > ¤cies, const std::vector< ScriptedTradeValueTypeData > &daycounters)
Serializable Credit Default Swap.
Reference data model and serialization.
scripted trade data model