Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Namespaces | Functions
testportfolio.hpp File Reference
#include <boost/make_shared.hpp>
#include <ored/portfolio/trade.hpp>

Go to the source code of this file.

Namespaces

namespace  testsuite
 

Functions

string toString (Date d)
 Utilities to set up simple test trades. More...
 
QuantLib::ext::shared_ptr< TradebuildSwap (string id, string ccy, bool isPayer, Real notional, int start, Size term, Real rate, Real spread, string fixedFreq, string fixedDC, string floatFreq, string floatDC, string index, Calendar cal=TARGET(), QuantLib::Natural fixingDays=2, bool spotStartLag=false)
 
QuantLib::ext::shared_ptr< TradebuildEuropeanSwaption (string id, string longShort, string ccy, bool isPayer, Real notional, int start, Size term, Real rate, Real spread, string fixedFreq, string fixedDC, string floatFreq, string floatDC, string index, string cashPhysical, Real premium, string premiumCcy, string premiumDate)
 
QuantLib::ext::shared_ptr< TradebuildBermudanSwaption (string id, string longShort, string ccy, bool isPayer, Real notional, Size exercises, int start, Size term, Real rate, Real spread, string fixedFreq, string fixedDC, string floatFreq, string floatDC, string index, string cashPhysical, Real premium, string premiumCcy, string premiumDate)
 
QuantLib::ext::shared_ptr< TradebuildFxOption (string id, string longShort, string putCall, Size expiry, string boughtCcy, Real boughtAmount, string soldCcy, Real soldAmount, Real premium, string premiumCcy, string premiumDate)
 
QuantLib::ext::shared_ptr< TradebuildEquityOption (string id, string longShort, string putCall, Size expiry, string equityName, string currency, Real strike, Real quantity, Real premium, string premiumCcy, string premiumDate)
 
QuantLib::ext::shared_ptr< TradebuildEquityForward (string id, string longShort, Size expiry, string equityName, string currency, Real strike, Real quantity)
 
QuantLib::ext::shared_ptr< TradebuildCap (string id, string ccy, string longShort, Real capRate, Real notional, int start, Size term, string floatFreq, string floatDC, string index, Calendar cal=TARGET(), QuantLib::Natural fixingDays=2, bool spotStartLag=false)
 
QuantLib::ext::shared_ptr< TradebuildFloor (string id, string ccy, string longShort, Real floorRate, Real notional, int start, Size term, string floatFreq, string floatDC, string index, Calendar cal=TARGET(), QuantLib::Natural fixingDays=2, bool spotStartLag=false)
 
QuantLib::ext::shared_ptr< TradebuildCapFloor (string id, string ccy, string longShort, vector< Real > capRates, vector< Real > floorRates, Real notional, int start, Size term, string floatFreq, string floatDC, string index, Calendar cal=TARGET(), QuantLib::Natural fixingDays=2, bool spotStartLag=false)
 
QuantLib::ext::shared_ptr< TradebuildCrossCcyBasisSwap (string id, string recCcy, Real recNotional, string payCcy, Real payNotional, int start, Size term, Real recLegSpread, Real payLegSpread, string recFreq, string recDC, string recIndex, Calendar recCalendar, string payFreq, string payDC, string payIndex, Calendar payCalendar, QuantLib::Natural spotDays=2, bool spotStartLag=false, bool notionalInitialExchange=false, bool notionalFinalExchange=false, bool notionalAmortizingExchange=false, bool isRecLegFXResettable=false, bool isPayLegFXResettable=false)
 
QuantLib::ext::shared_ptr< TradebuildZeroBond (string id, string ccy, Real notional, Size term, string suffix)
 
QuantLib::ext::shared_ptr< TradebuildCreditDefaultSwap (string id, string ccy, string issuerId, string creditCurveId, bool isPayer, Real notional, int start, Size term, Real rate, Real spread, string fixedFreq, string fixedDC)
 
QuantLib::ext::shared_ptr< TradebuildSyntheticCDO (string id, string name, vector< string > names, string longShort, string ccy, vector< string > ccys, bool isPayer, vector< Real > notionals, Real notional, int start, Size term, Real rate, Real spread, string fixedFreq, string fixedDC)
 
QuantLib::ext::shared_ptr< TradebuildCmsCapFloor (string id, string ccy, string indexId, bool isPayer, Real notional, int start, Size term, Real capRate, Real floorRate, Real spread, string freq, string dc)
 
QuantLib::ext::shared_ptr< TradebuildCPIInflationSwap (string id, string ccy, bool isPayer, Real notional, int start, Size term, Real spread, string floatFreq, string floatDC, string index, string cpiFreq, string cpiDC, string cpiIndex, Real baseRate, string observationLag, bool interpolated, Real cpiRate)
 
QuantLib::ext::shared_ptr< TradebuildYYInflationSwap (string id, string ccy, bool isPayer, Real notional, int start, Size term, Real spread, string floatFreq, string floatDC, string index, string yyFreq, string yyDC, string yyIndex, string observationLag, Size fixDays)
 
QuantLib::ext::shared_ptr< TradebuildYYInflationCapFloor (string id, string ccy, Real notional, bool isCap, bool isLong, Real capFloorRate, int start, Size term, string yyFreq, string yyDC, string yyIndex, string observationLag, Size fixDays)
 
QuantLib::ext::shared_ptr< TradebuildCommodityForward (const std::string &id, const std::string &position, Size term, const std::string &commodityName, const std::string &currency, Real strike, Real quantity)
 
QuantLib::ext::shared_ptr< TradebuildCommodityOption (const std::string &id, const std::string &longShort, const std::string &putCall, QuantLib::Size term, const std::string &commodityName, const std::string &currency, QuantLib::Real strike, QuantLib::Real quantity, QuantLib::Real premium=0.0, const std::string &premiumCcy="", const std::string &premiumDate="")