We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe2af2a commit 5350c9eCopy full SHA for 5350c9e
2 files changed
OREData/ored/portfolio/trade.cpp
@@ -119,6 +119,10 @@ void Trade::validate() const {
119
}
120
121
122
+void Trade::setEnvelope(const Envelope& envelope) {
123
+ envelope_ = envelope;
124
+}
125
+
126
void Trade::reset() {
127
// save accumulated timings from wrapper to trade before resetting
128
if (instrument_ != nullptr) {
OREData/ored/portfolio/trade.hpp
@@ -118,7 +118,7 @@ class Trade : public XMLSerializable {
118
string& id() { return id_; }
//! Set the envelope with counterparty and portfolio info
- Envelope& envelope() { return envelope_; }
+ void setEnvelope(const Envelope& envelope);
//! Set the trade actions
TradeActions& tradeActions() { return tradeActions_; }
0 commit comments