QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
BMAIndex Class Reference

Bond Market Association index. More...

#include <ql/indexes/bmaindex.hpp>

Inheritance diagram for BMAIndex:

Public Member Functions

 BMAIndex (Handle< YieldTermStructure > h={})
Index interface
bool isValidFixingDate (const Date &fixingDate) const override
Inspectors
Handle< YieldTermStructureforwardingTermStructure () const
Public Member Functions inherited from InterestRateIndex
 InterestRateIndex (std::string familyName, const Period &tenor, Natural settlementDays, Currency currency, Calendar fixingCalendar, DayCounter dayCounter)
std::string name () const override
 Returns the name of the index.
Calendar fixingCalendar () const override
 returns the calendar defining valid fixing dates
bool isValidFixingDate (const Date &fixingDate) const override
 returns TRUE if the fixing date is a valid one
Rate fixing (const Date &fixingDate, bool forecastTodaysFixing=false) const override
 returns the fixing at the given date
std::string familyName () const
Period tenor () const
Natural fixingDays () const
const Currencycurrency () const
const DayCounterdayCounter () const
virtual Date fixingDate (const Date &valueDate) const
virtual Date valueDate (const Date &fixingDate) const
Public Member Functions inherited from Index
bool hasHistoricalFixing (const Date &fixingDate) const
 returns whether a historical fixing was stored for the given date
virtual Real pastFixing (const Date &fixingDate) const
 returns a past fixing at the given date
const TimeSeries< Real > & timeSeries () const
 returns the fixing TimeSeries
virtual bool allowsNativeFixings ()
 check if index allows for native fixings.
void update () override
virtual void addFixing (const Date &fixingDate, Real fixing, bool forceOverwrite=false)
void addFixings (const TimeSeries< Real > &t, bool forceOverwrite=false)
 stores historical fixings from a TimeSeries
template<class DateIterator, class ValueIterator>
void addFixings (DateIterator dBegin, DateIterator dEnd, ValueIterator vBegin, bool forceOverwrite=false)
 stores historical fixings at the given dates
void clearFixings ()
 clears all stored historical fixings
Public Member Functions inherited from Observable
 Observable (const Observable &)
Observableoperator= (const Observable &)
 Observable (Observable &&)=delete
Observableoperator= (Observable &&)=delete
void notifyObservers ()
Public Member Functions inherited from Observer
 Observer (const Observer &)
Observeroperator= (const Observer &)
std::pair< iterator, bool > registerWith (const ext::shared_ptr< Observable > &)
void registerWithObservables (const ext::shared_ptr< Observer > &)
Size unregisterWith (const ext::shared_ptr< Observable > &)
void unregisterWithAll ()
virtual void deepUpdate ()

Date calculations

Handle< YieldTermStructuretermStructure_
Date maturityDate (const Date &valueDate) const override
Schedule fixingSchedule (const Date &start, const Date &end)
Rate forecastFixing (const Date &fixingDate) const override
 It can be overridden to implement particular conventions.

Additional Inherited Members

Public Types inherited from Observer
typedef set_type::iterator iterator
ext::shared_ptr< Observablenotifier () const
std::string familyName_
Period tenor_
Natural fixingDays_
Currency currency_
DayCounter dayCounter_
std::string name_

Detailed Description

Bond Market Association index.

The BMA index is the short-term tax-exempt reference index of the Bond Market Association. It has tenor one week, is fixed weekly on Wednesdays and is applied with a one-day's fixing gap from Thursdays on for one week. It is the tax-exempt correspondent of the 1M USD-Libor.

Member Function Documentation

◆ isValidFixingDate()

bool isValidFixingDate ( const Date & fixingDate) const
overridevirtual

BMA is fixed weekly on Wednesdays.

Implements Index.

◆ maturityDate()

Date maturityDate ( const Date & valueDate) const
overridevirtual

Implements InterestRateIndex.

◆ fixingSchedule()

Schedule fixingSchedule ( const Date & start,
const Date & end )

This method returns a schedule of fixing dates between start and end.

◆ forecastFixing()

Rate forecastFixing ( const Date & fixingDate) const
overrideprotectedvirtual

It can be overridden to implement particular conventions.

Implements InterestRateIndex.