Logo
Reference manual - version qle_version
Public Member Functions | List of all members
CommodityIndexedAverageLeg Class Reference

Helper class building a sequence of commodity indexed average cashflows. More...

#include <qle/cashflows/commodityindexedaveragecashflow.hpp>

Public Member Functions

 CommodityIndexedAverageLeg (const QuantLib::Schedule &schedule, const ext::shared_ptr< CommodityIndex > &index)
 
CommodityIndexedAverageLegwithQuantities (QuantLib::Real quantity)
 
CommodityIndexedAverageLegwithQuantities (const std::vector< QuantLib::Real > &quantities)
 
CommodityIndexedAverageLegwithPaymentLag (QuantLib::Natural paymentLag)
 
CommodityIndexedAverageLegwithPaymentCalendar (const QuantLib::Calendar &paymentCalendar)
 
CommodityIndexedAverageLegwithPaymentConvention (QuantLib::BusinessDayConvention paymentConvention)
 
CommodityIndexedAverageLegwithPricingCalendar (const QuantLib::Calendar &pricingCalendar)
 
CommodityIndexedAverageLegwithSpreads (QuantLib::Real spread)
 
CommodityIndexedAverageLegwithSpreads (const std::vector< QuantLib::Real > &spreads)
 
CommodityIndexedAverageLegwithGearings (QuantLib::Real gearing)
 
CommodityIndexedAverageLegwithGearings (const std::vector< QuantLib::Real > &gearings)
 
CommodityIndexedAverageLegpaymentTiming (CommodityIndexedAverageCashFlow::PaymentTiming paymentTiming)
 
CommodityIndexedAverageLeguseFuturePrice (bool flag=false)
 
CommodityIndexedAverageLegwithDeliveryDateRoll (QuantLib::Natural deliveryDateRoll)
 
CommodityIndexedAverageLegwithFutureMonthOffset (QuantLib::Natural futureMonthOffset)
 
CommodityIndexedAverageLegwithFutureExpiryCalculator (const ext::shared_ptr< FutureExpiryCalculator > &calc=nullptr)
 
CommodityIndexedAverageLegpayAtMaturity (bool flag=false)
 
CommodityIndexedAverageLegincludeEndDate (bool flag=true)
 
CommodityIndexedAverageLegexcludeStartDate (bool flag=true)
 
CommodityIndexedAverageLegwithPaymentDates (const std::vector< QuantLib::Date > &paymentDates)
 
CommodityIndexedAverageLeguseBusinessDays (bool flag=true)
 
CommodityIndexedAverageLegwithQuantityFrequency (CommodityQuantityFrequency quantityFrequency)
 
CommodityIndexedAverageLegwithHoursPerDay (QuantLib::Natural hoursPerDay)
 
CommodityIndexedAverageLegwithDailyExpiryOffset (QuantLib::Natural dailyExpiryOffset)
 
CommodityIndexedAverageLegunrealisedQuantity (bool flag=false)
 
CommodityIndexedAverageLegwithOffPeakPowerData (const boost::optional< std::pair< QuantLib::Calendar, QuantLib::Real >> &offPeakPowerData)
 
CommodityIndexedAverageLegwithFxIndex (const ext::shared_ptr< FxIndex > &fxIndex)
 
 operator Leg () const
 

Detailed Description

Helper class building a sequence of commodity indexed average cashflows.