Asset Swap

Overview

functions to construct and use AssetSwap objects.

Function List

qlAssetSwap ()
qlAssetSwap2 ()
qlAssetSwapBondLegAnalysis ()
qlAssetSwapFairCleanPrice ()
qlAssetSwapFairNonParRepayment ()
qlAssetSwapFairSpread ()
qlAssetSwapFloatingLegAnalysis ()
qlAssetSwapFloatingLegBPS ()
qlAssetSwapParSwap ()
qlAssetSwapPayBondCoupon ()

Function Documentation

qlAssetSwap

string returnValue
qlAssetSwap(
string ObjectId
bool PayBondCoupon
string Bond
double CleanPrice
string IborIndex
double Spread
string FloatingLegSchedule
string FloatingLegDayCounter
bool ParAssetSwap
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class AssetSwap and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
PayBondCouponTRUE to pay the bond's coupons and receive floating. Default value = false.
Bondunderlying bond object ID.
CleanPricemarket price of the underlying bond.
IborIndexfloating leg IborIndex object ID.
SpreadFloating leg spread. Default value = 0.0.
FloatingLegSchedulefloating leg schedule object ID. Default value = .
FloatingLegDayCounterfloating day counter (e.g. Actual/360).
ParAssetSwapTRUE for par asset swap, FALSE for market asset swap. Default value = true.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlAssetSwap2

string returnValue
qlAssetSwap2(
string ObjectId
bool ParAssetSwap
string Bond
double CleanPrice
double NonParRepayment
double Gearing
string IborIndex
double Spread
string FloatingLegDayCounter
long DealMaturity
bool PayBondCoupon
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class AssetSwap and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
ParAssetSwapTRUE for par asset swap, FALSE for market asset swap. Default value = true.
Bondunderlying bond object ID.
CleanPricemarket price of the underlying bond.
NonParRepaymentnon par repayment on deal maturity date.
Gearinggearing. Default value = 1.0.
IborIndexfloating leg IborIndex object ID.
SpreadFloating leg spread. Default value = 0.0.
FloatingLegDayCounterfloating day counter (e.g. Actual/360). Default value = QuantLib::DayCounter().
DealMaturitydeal maturity (bond maturity if missing). Default value = QuantLib::Date().
PayBondCouponTRUE to pay the bond's coupons and receive floating. Default value = false.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlAssetSwapBondLegAnalysis

vector<vector<any> > returnValue
qlAssetSwapBondLegAnalysis(
string ObjectId
long AfterDate
any Trigger)
Description:

The bond leg cash flow analysis.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLibAddin::AssetSwap object
AfterDateShows only cashflows after given date Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlAssetSwapFairCleanPrice

double returnValue
qlAssetSwapFairCleanPrice(
string ObjectId
any Trigger)
Description:

the fair price of the bond in the asset swap.

Supported Platforms:

Excel, Calc

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

qlAssetSwapFairNonParRepayment

double returnValue
qlAssetSwapFairNonParRepayment(
string ObjectId
any Trigger)
Description:

the fair non par repayment of the bond in the asset swap.

Supported Platforms:

Excel, Calc

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

qlAssetSwapFairSpread

double returnValue
qlAssetSwapFairSpread(
string ObjectId
any Trigger)
Description:

the fair rate of the asset swap, i.e. the asset swap spread.

Supported Platforms:

Excel, Calc

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

qlAssetSwapFloatingLegAnalysis

vector<vector<any> > returnValue
qlAssetSwapFloatingLegAnalysis(
string ObjectId
long AfterDate
any Trigger)
Description:

The floating leg cash flow analysis.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLibAddin::AssetSwap object
AfterDateShows only cashflows after given date Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlAssetSwapFloatingLegBPS

double returnValue
qlAssetSwapFloatingLegBPS(
string ObjectId
any Trigger)
Description:

the BPS of the floating leg.

Supported Platforms:

Excel, Calc

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

qlAssetSwapParSwap

bool returnValue
qlAssetSwapParSwap(
string ObjectId
any Trigger)
Description:

Returns TRUE if par swap

Supported Platforms:

Excel, Calc

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

qlAssetSwapPayBondCoupon

bool returnValue
qlAssetSwapPayBondCoupon(
string ObjectId
any Trigger)
Description:

Returns TRUE if it is a bond coupon payer swap

Supported Platforms:

Excel, Calc

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