IRS.hpp
Go to the documentation of this file.
36 CashFlowVector fixed_leg, CashFlowVector floating_leg, InterestRate fixed_leg_rate, InterestRate floating_leg_rate,
61 virtual double price(const SmartPointer<ir::Curve>& discounting, const SmartPointer<ir::Curve>& projecting,const SmartPointer<ir::Curve>& ,const SmartPointer<ir::Curve>& );
63 virtual void valuation(const SmartPointer<ir::Curve>& discounting, const SmartPointer<ir::Curve>& projecting,const SmartPointer<ir::Curve>& ,const SmartPointer<ir::Curve>& );
72 virtual double calibrate(const SmartPointer<ir::Curve>& discounting, const SmartPointer<ir::Curve>& projection ,const SmartPointer<ir::Curve>& calibrated) override;
73 virtual double getParRate(const SmartPointer<ir::Curve>& discounting,const SmartPointer<ir::Curve>& projection,const SmartPointer<ir::Curve>& projection2) override;
File contains types common to all financial instruments.
virtual InterestRate getInterestRate() const override
Returns interest rates convention of fixed leg.
Definition: IRS.cpp:152
Class is an abstract class expressing the concept of linear instruments like deposits, FRAs, futures, fxForwards and swaps.
Definition: linearInstrument.hpp:21
virtual double getParRate(const SmartPointer< ir::Curve > &discounting, const SmartPointer< ir::Curve > &projection, const SmartPointer< ir::Curve > &projection2) override
Implies quoting of benchmark instrument from interest rate curves provided.
Definition: IRS.cpp:134
File containing definition of interest rates curve building block.
Contains headers of all files with definitions of classes gathered in dates calendar and holidays mod...
std::string info() const override
Returns a name of instrument: FRA.
Definition: IRS.cpp:160
virtual std::pair< CashFlowVector, CashFlowVector > getCFs() const override
Returns the sets of cashflows associated with IRS.
Definition: IRS.cpp:145
Frequency floating_leg_freq_
Frequency of payment of floating leg.
Definition: IRS.hpp:95
virtual Date getDate() const override
returns maturity of IRS
Definition: IRS.cpp:59
Definition: cadHoliday.cpp:3
InterestRate floating_leg_rate_
Convention of floating leg interest rate.
Definition: IRS.hpp:91
InterestRate fixed_leg_rate_
Convention of fixed leg interest rate.
Definition: IRS.hpp:90
virtual double price(const SmartPointer< ir::Curve > &)
calculates price of IRS by summing the discounted CFs
Definition: IRS.cpp:52
Date start_date_
The date initial date of first accrual period.
Definition: IRS.hpp:86
Building Block is a class that defines the interface for benchmark instruments used for estimating in...
Definition: curveBuildingBlock.hpp:27
File contains definition of linear instruments interface.
virtual void changeQuoting(double) override
changes quoting of the IRS
Definition: IRS.cpp:9
double quoting_
Interest rate at which IRS is paying fixed leg.
Definition: IRS.hpp:93
Class implements an plain vanilla (flo/fix) interest rate swap contract.
Definition: IRS.hpp:28
IRS(Date trade_date, Date start_date, Date maturity_date, CashFlowVector fixed_leg, CashFlowVector floating_leg, InterestRate fixed_leg_rate, InterestRate floating_leg_rate, double notional, double quoting, Frequency fixed_leg_freq, Frequency floating_leg_freq)
Constructor.
Definition: IRS.hpp:35
Frequency fixed_leg_freq_
Frequency of payment of fixed leg.
Definition: IRS.hpp:94
friend std::ostream & operator<<(std::ostream &, IRS &)
Overloads stream operator.
Definition: IRS.cpp:67
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
CashFlowVector floating_leg_
Floating leg cash flows.
Definition: IRS.hpp:89
virtual void valuation(const SmartPointer< ir::Curve > &)
prints price and CFs of IRS
Definition: IRS.cpp:115
Date maturity_date_
The date on which the IRS expires.
Definition: IRS.hpp:87
File contains definition of InterestRate class.
virtual double calibrate(const SmartPointer< ir::Curve > &calibrated) override
Method calibrate is used by root finding estimator.
Definition: IRS.cpp:20