63 void build(
const QuantLib::ext::shared_ptr<ore::data::EngineFactory>&)
override;
66 std::map<AssetClass, std::set<std::string>>
67 underlyingIndices(
const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
71 const std::vector<ore::data::BondBuilder::Result>&
bonds()
const {
return bonds_; }
83 std::vector<BondBuilder::Result>
bonds_;
94 const std::vector<Real>& weights,
const std::vector<Real>& bidAskAdjstments,
95 const std::vector<Handle<Quote>>& fxConversion = {});
96 void initialise(
const std::vector<QuantLib::Date>& dates)
override {}
98 QuantLib::Real
NPV()
const override;
106 std::vector<QuantLib::ext::shared_ptr<QuantLib::Bond>>
bonds_;
Bond trade data model and serialization.
std::vector< BondUnderlying > underlyings_
void populateFromBondBasketReferenceData(const QuantLib::ext::shared_ptr< ReferenceDataManager > &ref)
const std::vector< BondUnderlying > & underlyings() const
const std::string & identifier() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
BondPositionData(const Real quantity, const std::vector< BondUnderlying > &underlyings)
BondPositionData originalData_
const std::vector< Real > & bidAskAdjustments() const
std::map< AssetClass, std::set< std::string > > underlyingIndices(const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceDataManager=nullptr) const override
const BondPositionData & data() const
void fromXML(XMLNode *node) override
std::vector< Handle< Quote > > fxConversion_
void setNpvCurrencyConversion(const std::string &ccy, const Handle< Quote > &conversion)
XMLNode * toXML(XMLDocument &doc) const override
const std::vector< Real > & weights() const
std::vector< Real > weights_
BondPosition(const Envelope &env, const BondPositionData &data)
void build(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &) override
bool isSingleCurrency() const
std::vector< Real > bidAskAdjustments_
std::vector< BondBuilder::Result > bonds_
const std::vector< ore::data::BondBuilder::Result > & bonds() const
Equity Position instrument wrapper.
QuantLib::Real NPV() const override
Return the NPV of this instrument.
const std::map< std::string, boost::any > & additionalResults() const override
Return the additional results of this instrument.
void updateQlInstruments() override
call update on enclosed instrument(s)
std::vector< Handle< Quote > > fxConversion_
std::vector< Real > weights_
void initialise(const std::vector< QuantLib::Date > &dates) override
Initialise with the given date grid.
std::vector< Real > bidAskAdjustments_
Handle< Quote > npvCcyConversion_
std::vector< QuantLib::ext::shared_ptr< QuantLib::Bond > > bonds_
void reset() override
reset is called every time a new path is about to be priced.
void setNpvCurrencyConversion(const Handle< Quote > &npvCcyConversion)
Serializable object holding generic trade data, reporting dimensions.
Small XML Document wrapper class.
Base class for all serializable classes.
Serializable Credit Default Swap.