irCurveUtils.hpp
Go to the documentation of this file.
1 #ifndef IRCURVEUTILS_HPP
2 #define IRCURVEUTILS_HPP
3 
4 #include <utils/dataFrame.hpp>
7 #include <utils/smartPointer.hpp>
8 
9 namespace julian {
10 namespace ir {
15  DataFrame getCurves(SmartPointer<Curve> c, Tenor step, Tenor end,std::string id);
16 
17  DataFrame getCalibration(const SmartPointer<ir::Curve>& ,
18  const std::vector<SmartPointer<ir::BuildingBlock> >& ,
19  const std::string id);
20 
21  std::vector<Deposit> readDeposit(DataFrame df, Date d, Calendar calendar);
22  std::vector<FRA> readFRA(DataFrame df, Date d, Calendar calendar);
23  std::vector<IRS> readIRS(DataFrame df, Date d, Calendar calendar);
24 
25 
26 
27 } // namespace ir
28 } // namespace julian
29 
30 #endif
File contains template of deep-coping smart pointer.
Definition: cadHoliday.cpp:3
DataFrame getCurves(SmartPointer< Curve > c, Tenor step, Tenor end, std::string id)
Function saves curve in DataFrame.
Definition: irCurveUtils.cpp:26
DataFrame getCalibration(const SmartPointer< ir::Curve > &c, const std::vector< SmartPointer< ir::BuildingBlock > > &instruments, const std::string id)
Function calculates the par rate and price of provided instruments, what allows assessing calibration...
Definition: irCurveUtils.cpp:184
std::vector< IRS > readIRS(DataFrame df, Date today, Calendar calendar)
Function construct IRS using data stored in DataFrame.
Definition: irCurveUtils.cpp:145
std::vector< FRA > readFRA(DataFrame df, Date today, Calendar calendar)
Function construct FRA using data stored in DataFrame.
Definition: irCurveUtils.cpp:102
Linear instruments module.
std::vector< Deposit > readDeposit(DataFrame df, Date today, Calendar calendar)
Function construct deposit using data stored in DataFrame.
Definition: irCurveUtils.cpp:64
File contains definition of data frame.
File contains interface of interest rate curves.