Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
autocallable_01.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2019 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/portfolio/autocallable_01.hpp
20 \brief autocallable_01 wrapper for scripted trade
21 \ingroup portfolio
22*/
23
24#pragma once
25
27
29
30namespace ore {
31namespace data {
32
34public:
35 Autocallable_01() : ScriptedTrade("Autocallable_01") {}
36 Autocallable_01(const Envelope& env, const string& notionalAmount, const string& determinationLevel,
37 const string& triggerLevel, const QuantLib::ext::shared_ptr<Underlying>& underlying, const string& position,
38 const string& payCcy, const ScheduleData& fixingDates, const ScheduleData& settlementDates,
39 const vector<string>& accumulationFactors, const string& cap)
40 : ScriptedTrade("Autocallable_01", env), notionalAmount_(notionalAmount),
41 determinationLevel_(determinationLevel), triggerLevel_(triggerLevel), position_(position), payCcy_(payCcy),
42 underlying_(underlying), fixingDates_(fixingDates), settlementDates_(settlementDates),
43 accumulationFactors_(accumulationFactors), cap_(cap) {
45 }
46 void build(const QuantLib::ext::shared_ptr<EngineFactory>&) override;
47 void setIsdaTaxonomyFields() override;
48 void fromXML(XMLNode* node) override;
49 XMLNode* toXML(XMLDocument& doc) const override;
50
51private:
52 void initIndices();
54 QuantLib::ext::shared_ptr<Underlying> underlying_;
56 vector<string> accumulationFactors_;
57 string cap_;
58};
59
60} // namespace data
61} // namespace ore
void setIsdaTaxonomyFields() override
Autocallable_01(const Envelope &env, const string &notionalAmount, const string &determinationLevel, const string &triggerLevel, const QuantLib::ext::shared_ptr< Underlying > &underlying, const string &position, const string &payCcy, const ScheduleData &fixingDates, const ScheduleData &settlementDates, const vector< string > &accumulationFactors, const string &cap)
vector< string > accumulationFactors_
void fromXML(XMLNode *node) override
QuantLib::ext::shared_ptr< Underlying > underlying_
XMLNode * toXML(XMLDocument &doc) const override
void build(const QuantLib::ext::shared_ptr< EngineFactory > &) override
Serializable object holding generic trade data, reporting dimensions.
Definition: envelope.hpp:51
Serializable schedule data.
Definition: schedule.hpp:202
Small XML Document wrapper class.
Definition: xmlutils.hpp:65
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23
scripted trade data model
base trade data model and serialization