BTP

Overview

functions to construct and use BTP objects.

Function List

qlBTP ()
qlBTP2 ()
qlCCTEU ()
qlRendistatoBasket ()
qlRendistatoBasketOutstanding ()
qlRendistatoBasketOutstandings ()
qlRendistatoBasketSize ()
qlRendistatoBasketWeights ()
qlRendistatoCalculator ()
qlRendistatoCalculatorDuration ()
qlRendistatoCalculatorDurations ()
qlRendistatoCalculatorEquivalentSwapDuration ()
qlRendistatoCalculatorEquivalentSwapLength ()
qlRendistatoCalculatorEquivalentSwapRate ()
qlRendistatoCalculatorEquivalentSwapSpread ()
qlRendistatoCalculatorEquivalentSwapYield ()
qlRendistatoCalculatorSwapDurations ()
qlRendistatoCalculatorSwapLengths ()
qlRendistatoCalculatorSwapRates ()
qlRendistatoCalculatorSwapYields ()
qlRendistatoCalculatorYield ()
qlRendistatoCalculatorYields ()
qlRendistatoEquivalentSwapLengthQuote ()
qlRendistatoEquivalentSwapSpreadQuote ()

Function Documentation

qlBTP

string returnValue
qlBTP(
string ObjectId
string Description
long MaturityDate
double Coupon
long StartDate
long IssueDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BTP and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null. Default value = std::string().
MaturityDatematurityDate date.
Couponsimple annual compounding coupon rate.
StartDateaccrual first start date. Default value = QuantLib::Date().
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBTP2

string returnValue
qlBTP2(
string ObjectId
string Description
long MaturityDate
double Coupon
double Redemption
long StartDate
long IssueDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BTP and return its id, allowing for non-100 redemption.

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null. Default value = std::string().
MaturityDatematurityDate date.
Couponsimple annual compounding coupon rate.
RedemptionRedemption value. Default value = 100.0.
StartDateaccrual first start date. Default value = QuantLib::Date().
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCCTEU

string returnValue
qlCCTEU(
string ObjectId
string Description
long MaturityDate
double Spread
string FwdCurve
long StartDate
long IssueDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CCTEU and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null. Default value = std::string().
MaturityDatematurityDate date.
Spreadspread over Euribor6M.
FwdCurveForwarding YieldTermStructure object ID.
StartDateaccrual first start date. Default value = QuantLib::Date().
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlRendistatoBasket

string returnValue
qlRendistatoBasket(
string ObjectId
vector<string> BTPs
vector<double> Outstandings
vector<string> Prices
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class RendistatoBasket and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
BTPsBTP IDs.
OutstandingsBTP outstanding amounts.
PricesBTP clean prices Quotes.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlRendistatoBasketOutstanding

double returnValue
qlRendistatoBasketOutstanding(
string ObjectId
any Trigger)
Description:

Returns the overall outstanding of the BTPs in the RendistatoBasket.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoBasket object
Triggerdependency tracking trigger

qlRendistatoBasketOutstandings

vector<double> returnValue
qlRendistatoBasketOutstandings(
string ObjectId
any Trigger)
Description:

Returns the outstandings of the BTPs in the RendistatoBasket.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoBasket object
Triggerdependency tracking trigger

qlRendistatoBasketSize

long returnValue
qlRendistatoBasketSize(
string ObjectId
any Trigger)
Description:

Returns the number of BTPs in the RendistatoBasket.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoBasket object
Triggerdependency tracking trigger

qlRendistatoBasketWeights

vector<double> returnValue
qlRendistatoBasketWeights(
string ObjectId
any Trigger)
Description:

Returns the weights of the BTPs in the RendistatoBasket.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoBasket object
Triggerdependency tracking trigger

qlRendistatoCalculator

string returnValue
qlRendistatoCalculator(
string ObjectId
string RendistatoBasket
string Euribor
string YieldCurve
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class RendistatoCalculator and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
RendistatoBasketRendistatoBasket object ID.
EuriborEuribor index object ID.
YieldCurvediscounting YieldTermStructure object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlRendistatoCalculatorDuration

double returnValue
qlRendistatoCalculatorDuration(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's duration.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorDurations

vector<double> returnValue
qlRendistatoCalculatorDurations(
string ObjectId
any Trigger)
Description:

Returns the durations of the BTPs in the RendistatoCalculator's underlying basket.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorEquivalentSwapDuration

double returnValue
qlRendistatoCalculatorEquivalentSwapDuration(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swap duration.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorEquivalentSwapLength

double returnValue
qlRendistatoCalculatorEquivalentSwapLength(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swap lenght in years.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorEquivalentSwapRate

double returnValue
qlRendistatoCalculatorEquivalentSwapRate(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swap rate.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorEquivalentSwapSpread

double returnValue
qlRendistatoCalculatorEquivalentSwapSpread(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swap spread.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorEquivalentSwapYield

double returnValue
qlRendistatoCalculatorEquivalentSwapYield(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swap yield.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorSwapDurations

vector<double> returnValue
qlRendistatoCalculatorSwapDurations(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swaps' durations.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorSwapLengths

vector<double> returnValue
qlRendistatoCalculatorSwapLengths(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swaps' lengths.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorSwapRates

vector<double> returnValue
qlRendistatoCalculatorSwapRates(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swaps' rates.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorSwapYields

vector<double> returnValue
qlRendistatoCalculatorSwapYields(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's equivalent swaps' yields.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorYield

double returnValue
qlRendistatoCalculatorYield(
string ObjectId
any Trigger)
Description:

Returns RendistatoCalculator's yield.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoCalculatorYields

vector<double> returnValue
qlRendistatoCalculatorYields(
string ObjectId
any Trigger)
Description:

Returns the yields of the BTPs in the RendistatoCalculator's underlying basket.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::RendistatoCalculator object
Triggerdependency tracking trigger

qlRendistatoEquivalentSwapLengthQuote

string returnValue
qlRendistatoEquivalentSwapLengthQuote(
string ObjectId
string RendistatoCalculator
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class RendistatoEquivalentSwapLengthQuote and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
RendistatoCalculatorRendistatoCalculator object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlRendistatoEquivalentSwapSpreadQuote

string returnValue
qlRendistatoEquivalentSwapSpreadQuote(
string ObjectId
string RendistatoCalculator
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class RendistatoEquivalentSwapSpreadQuote and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
RendistatoCalculatorRendistatoCalculator object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag