Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
security.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 ored/marketdata/security.hpp
20 \brief A wrapper class for holding Bond Spread quotes
21 \ingroup marketdata
22*/
23
24#pragma once
25
29#include <ql/handle.hpp>
30#include <ql/quote.hpp>
31
32namespace ore {
33namespace data {
34
35//! Wrapper class for holding Bond Spread and recovery rate quotes
36/*!
37 \ingroup marketdata
38*/
39class Security {
40public:
41 //! Constructor
42 Security(const Date& asof, SecuritySpec spec, const Loader& loader, const CurveConfigurations& curveConfigs);
43
44 //! Inspector
45 Handle<Quote> spread() const { return spread_; }
46 Handle<Quote> price() const { return price_; }
47 Handle<Quote> recoveryRate() const { return recoveryRate_; }
48 Handle<Quote> cpr() const { return cpr_; }
49
50private:
51 Handle<Quote> spread_;
52 Handle<Quote> price_;
53 Handle<Quote> recoveryRate_;
54 Handle<Quote> cpr_;
55};
56} // namespace data
57} // namespace ore
Container class for all Curve Configurations.
Market data loader base class.
Definition: loader.hpp:47
Wrapper class for holding Bond Spread and recovery rate quotes.
Definition: security.hpp:39
Handle< Quote > spread() const
Inspector.
Definition: security.hpp:45
Handle< Quote > recoveryRate() const
Definition: security.hpp:47
Handle< Quote > spread_
Definition: security.hpp:51
Handle< Quote > price_
Definition: security.hpp:52
Handle< Quote > cpr_
Definition: security.hpp:54
Handle< Quote > price() const
Definition: security.hpp:46
Handle< Quote > cpr() const
Definition: security.hpp:48
Handle< Quote > recoveryRate_
Definition: security.hpp:53
Security description.
Definition: curvespec.hpp:396
Curve configuration repository.
Curve requirements specification.
Market Datum Loader Interface.
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23
vector< string > curveConfigs