24#ifndef quantlib_energy_future_hpp
25#define quantlib_energy_future_hpp
39 ext::shared_ptr<CommodityIndex>
index,
46 ext::shared_ptr<CommodityIndex>
index()
const {
return index_; }
53 ext::shared_ptr<CommodityIndex>
index_;
const ext::shared_ptr< SecondaryCosts > & secondaryCosts() const
const CommodityType & commodityType() const
void performCalculations() const override
bool isExpired() const override
returns whether the instrument might have value greater than zero.
const CommodityUnitCost & tradePrice() const
CommodityUnitCost tradePrice_
Quantity quantity() const override
ext::shared_ptr< CommodityIndex > index_
ext::shared_ptr< CommodityIndex > index() const
QL_INTEGER Integer
integer number