Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
makenonstandardlegs.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2023 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file portfolio/makenonstandardlegs.hpp
20 \brief make functions for non-standard ibor and fixed legs
21 \ingroup tradedata
22*/
23
24#pragma once
25
26#include <ql/cashflow.hpp>
27#include <ql/indexes/iborindex.hpp>
28
29namespace ore::data {
30
32 const QuantLib::ext::shared_ptr<QuantLib::IborIndex>& index, const std::vector<QuantLib::Date>& calcDates,
33 const std::vector<QuantLib::Date>& payDates, const std::vector<QuantLib::Date>& fixingDates,
34 const std::vector<QuantLib::Date>& resetDates, const QuantLib::Size fixingDays,
35 const std::vector<QuantLib::Real>& notionals, const std::vector<QuantLib::Date>& notionalDates,
36 const std::vector<QuantLib::Real>& spreads, const std::vector<QuantLib::Date>& spreadDates,
37 const std::vector<QuantLib::Real>& gearings, const std::vector<QuantLib::Date>& gearingDates,
38 const bool strictNotionalDates, const QuantLib::DayCounter& dayCounter, const QuantLib::Calendar& payCalendar,
39 const QuantLib::BusinessDayConvention payConv, const QuantLib::Period& payLag, const bool isInArrears);
40
41QuantLib::Leg makeNonStandardFixedLeg(const std::vector<QuantLib::Date>& calcDates,
42 const std::vector<QuantLib::Date>& payDates,
43 const std::vector<QuantLib::Real>& notionals,
44 const std::vector<QuantLib::Date>& notionalDates,
45 const std::vector<QuantLib::Real>& rates,
46 const std::vector<QuantLib::Date>& rateDates, const bool strictNotionalDates,
47 const QuantLib::DayCounter& dayCounter, const QuantLib::Calendar& payCalendar,
48 const QuantLib::BusinessDayConvention payConv, const QuantLib::Period& payLag);
49
50} // namespace ore::data
Leg makeNonStandardIborLeg(const QuantLib::ext::shared_ptr< IborIndex > &index, const std::vector< Date > &calcDates, const std::vector< Date > &payDatesInput, const std::vector< Date > &fixingDatesInput, const std::vector< Date > &resetDatesInput, const Size fixingDays, const std::vector< Real > &notionals, const std::vector< Date > &notionalDatesInput, const std::vector< Real > &spreadsInput, const std::vector< Date > &spreadDatesInput, const std::vector< Real > &gearingsInput, const std::vector< Date > &gearingDatesInput, const bool strictNotionalDates, const DayCounter &dayCounter, const Calendar &payCalendar, const BusinessDayConvention payConv, const Period &payLag, const bool isInArrears)
Leg makeNonStandardFixedLeg(const std::vector< Date > &calcDates, const std::vector< Date > &payDatesInput, const std::vector< Real > &notionals, const std::vector< Date > &notionalDatesInput, const std::vector< Real > &rates, const std::vector< Date > &rateDatesInput, const bool strictNotionalDates, const DayCounter &dayCounter, const Calendar &payCalendar, const BusinessDayConvention payConv, const Period &payLag)