CurveState

Overview

functions to construct and use CurveState objects.

Function List

qlCMSwapCurveState ()
qlCMSwapCurveStateSetOnCMSwapRates ()
qlConstantMaturitySwapAnnuitiesFromDiscountRatios ()
qlConstantMaturitySwapRatesFromDiscountRatios ()
qlCoterminalSwapAnnuitiesFromDiscountRatios ()
qlCoterminalSwapCurveState ()
qlCoterminalSwapCurveStateSetOnCoterminalSwapRates ()
qlCoterminalSwapRatesFromDiscountRatios ()
qlCurveStateCMSwapRates ()
qlCurveStateCoterminalSwapRates ()
qlCurveStateForwardRates ()
qlCurveStateRateTaus ()
qlCurveStateRateTimes ()
qlForwardsFromDiscountRatios ()
qlLMMCurveState ()
qlLMMCurveStateSetOnDiscountRatios ()
qlLMMCurveStateSetOnForwardRates ()

Function Documentation

qlCMSwapCurveState

string returnValue
qlCMSwapCurveState(
string ObjectId
vector<double> RateTimes
long SpanningForwards
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CMSwapCurveState and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
RateTimesrate fixing times.
SpanningForwardsnumber of forwards underlying the CMS.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCMSwapCurveStateSetOnCMSwapRates

void returnValue
qlCMSwapCurveStateSetOnCMSwapRates(
string ObjectId
vector<double> CMSwapRates
any Trigger)
Description:

set the CurveState object on given vector of coterminal swaps.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CMSwapCurveState object
CMSwapRatesCoterminal swap rates.
Triggerdependency tracking trigger

qlConstantMaturitySwapAnnuitiesFromDiscountRatios

vector<double> returnValue
qlConstantMaturitySwapAnnuitiesFromDiscountRatios(
long SpanningForwards
long FirstValidIndex
vector<double> DiscountRatios
vector<double> Taus
any Trigger)
Description:

Returns constant maturity swap annuities from discount ratios.

Supported Platforms:

Excel

Parameters
SpanningForwardsnumber of forward rates spanned by the constant maturity swap.
FirstValidIndexmarks the first non expired discount bond.
DiscountRatiosvector of discount bond ratios.
Tausrate time intervals.
Triggerdependency tracking trigger

qlConstantMaturitySwapRatesFromDiscountRatios

vector<double> returnValue
qlConstantMaturitySwapRatesFromDiscountRatios(
long SpanningForwards
long FirstValidIndex
vector<double> DiscountRatios
vector<double> Taus
any Trigger)
Description:

Returns constant maturity swap rates from discount ratios.

Supported Platforms:

Excel

Parameters
SpanningForwardsnumber of forward rates spanned by the constant maturity swap.
FirstValidIndexmarks the first non expired discount bond.
DiscountRatiosvector of discount bond ratios.
Tausrate time intervals.
Triggerdependency tracking trigger

qlCoterminalSwapAnnuitiesFromDiscountRatios

vector<double> returnValue
qlCoterminalSwapAnnuitiesFromDiscountRatios(
long FirstValidIndex
vector<double> DiscountRatios
vector<double> Taus
any Trigger)
Description:

Returns the coterminal swap annuities implied from discount bond ratios.

Supported Platforms:

Excel

Parameters
FirstValidIndexmarks the first non expired discount bond.
DiscountRatiosvector of discount bond ratios.
Tausrate time intervals.
Triggerdependency tracking trigger

qlCoterminalSwapCurveState

string returnValue
qlCoterminalSwapCurveState(
string ObjectId
vector<double> RateTimes
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CoterminalSwapCurveState and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
RateTimesrate fixing times.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCoterminalSwapCurveStateSetOnCoterminalSwapRates

void returnValue
qlCoterminalSwapCurveStateSetOnCoterminalSwapRates(
string ObjectId
vector<double> CoterminalSwaps
any Trigger)
Description:

set the CurveState object on given vector of coterminal swaps.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CoterminalSwapCurveState object
CoterminalSwapsCoterminal swap rates.
Triggerdependency tracking trigger

qlCoterminalSwapRatesFromDiscountRatios

vector<double> returnValue
qlCoterminalSwapRatesFromDiscountRatios(
long FirstValidIndex
vector<double> DiscountRatios
vector<double> Taus
any Trigger)
Description:

Returns the coterminal swap rates implied from discount bond ratios.

Supported Platforms:

Excel

Parameters
FirstValidIndexmarks the first non expired discount bond.
DiscountRatiosvector of discount bond ratios.
Tausrate time intervals.
Triggerdependency tracking trigger

qlCurveStateCMSwapRates

vector<double> returnValue
qlCurveStateCMSwapRates(
string ObjectId
long SpanningForwards
any Trigger)
Description:

Returns the current swap rates of the CurveState object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CurveState object
SpanningForwardsnumber of forwards underlying the CMS.
Triggerdependency tracking trigger

qlCurveStateCoterminalSwapRates

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

Returns the current swap rates of the CurveState object.

Supported Platforms:

Excel

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

qlCurveStateForwardRates

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

Returns the current forward rates of the CurveState object.

Supported Platforms:

Excel

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

qlCurveStateRateTaus

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

return the rate taus of the CurveState object.

Supported Platforms:

Excel

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

qlCurveStateRateTimes

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

return the rate times of the CurveState object.

Supported Platforms:

Excel

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

qlForwardsFromDiscountRatios

vector<double> returnValue
qlForwardsFromDiscountRatios(
long FirstValidIndex
vector<double> DiscountRatios
vector<double> Taus
any Trigger)
Description:

Returns the forward rates implied from discount bond ratios.

Supported Platforms:

Excel

Parameters
FirstValidIndexmarks the first non expired discount bond.
DiscountRatiosvector of discount bond ratios.
Tausrate time intervals.
Triggerdependency tracking trigger

qlLMMCurveState

string returnValue
qlLMMCurveState(
string ObjectId
vector<double> RateTimes
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class LMMCurveState and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
RateTimesrate fixing times.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlLMMCurveStateSetOnDiscountRatios

void returnValue
qlLMMCurveStateSetOnDiscountRatios(
string ObjectId
vector<double> DiscountRatios
any Trigger)
Description:

set the CurveState object on given vector of discount ratios.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::LMMCurveState object
DiscountRatiosdiscount ratios.
Triggerdependency tracking trigger

qlLMMCurveStateSetOnForwardRates

void returnValue
qlLMMCurveStateSetOnForwardRates(
string ObjectId
vector<double> Rates
any Trigger)
Description:

set the CurveState object on given vector of forward rates.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::LMMCurveState object
Ratesforward rates.
Triggerdependency tracking trigger