Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
oiccbasisswapengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016 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 qle/pricingengines/oiccbasisswapengine.hpp
20 \brief Cross Currency Overnight Indexed Basis Swap Engine
21
22 \ingroup engines
23*/
24
25#ifndef quantext_oiccbs_engine_hpp
26#define quantext_oiccbs_engine_hpp
27
28#include <ql/pricingengines/swap/discountingswapengine.hpp>
30
31namespace QuantExt {
32
33//! Overnight Indexed Cross Currency Basis Swap Engine
34//! \ingroup engines
36public:
37 OvernightIndexedCrossCcyBasisSwapEngine(const Handle<YieldTermStructure>& ts1, const Currency& ccy1,
38 const Handle<YieldTermStructure>& ts2, const Currency& ccy2,
39 // Spot FX rate quoted as 1 ccy2 = fx ccy1,
40 // ccy1 is price currency, ccy 2 amounts to be multiplied by fx
41 const Handle<Quote>& fx);
42 void calculate() const override;
43 Handle<YieldTermStructure> ts1() { return ts1_; }
44 Handle<YieldTermStructure> ts2() { return ts2_; }
45 Currency ccy1() { return ccy1_; }
46 Currency ccy2() { return ccy2_; }
47 Handle<Quote> fx() { return fx_; }
48
49private:
50 Handle<YieldTermStructure> ts1_;
51 Currency ccy1_;
52 Handle<YieldTermStructure> ts2_;
53 Currency ccy2_;
54 Handle<Quote> fx_;
55};
56} // namespace QuantExt
57
58#endif
Cross currency overnight index swap paying compounded overnight vs. float.