Skip to content

Commit

Permalink
Add new features to indices (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Aug 5, 2024
2 parents f3263b3 + afb571a commit 1e1f08d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SWIG/indexes.i
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class Index : public Observable {
bool hasHistoricalFixing(const Date& fixingDate) const;
Real fixing(const Date& fixingDate,
bool forecastTodaysFixing = false) const;
Real pastFixing(const Date& fixingDate) const;
void addFixing(const Date& fixingDate, Rate fixing,
bool forceOverwrite = false);
const TimeSeries<Real>& timeSeries() const;
Expand Down Expand Up @@ -347,7 +348,6 @@ class SwapSpreadIndex : public InterestRateIndex {
const Real gearing1 = 1.0,
const Real gearing2 = -1.0);
Rate forecastFixing(const Date& fixingDate) const;
Rate pastFixing(const Date& fixingDate) const;
ext::shared_ptr<SwapIndex> swapIndex1();
ext::shared_ptr<SwapIndex> swapIndex2();
Real gearing1();
Expand All @@ -367,7 +367,14 @@ class EquityIndex : public Index {
Handle<YieldTermStructure> interest = {},
Handle<YieldTermStructure> dividend = {},
Handle<Quote> spot = {});
EquityIndex(std::string name,
Calendar fixingCalendar,
Currency currency,
Handle<YieldTermStructure> interest = {},
Handle<YieldTermStructure> dividend = {},
Handle<Quote> spot = {});

Currency currency() const;
Handle<YieldTermStructure> equityInterestRateCurve() const;
Handle<YieldTermStructure> equityDividendCurve() const;
Handle<Quote> spot() const;
Expand Down

0 comments on commit 1e1f08d

Please sign in to comment.