QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
bmaindex.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007 Roland Lichters
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20/*! \file bmaindex.hpp
21 \brief Bond Market Association index
22*/
23
24#ifndef quantlib_bma_index_hpp
25#define quantlib_bma_index_hpp
26
29#include <ql/time/schedule.hpp>
30
31namespace QuantLib {
32
33 //! Bond Market Association index
34 /*! The BMA index is the short-term tax-exempt reference index of
35 the Bond Market Association. It has tenor one week, is fixed
36 weekly on Wednesdays and is applied with a one-day's fixing
37 gap from Thursdays on for one week. It is the tax-exempt
38 correspondent of the 1M USD-Libor.
39 */
40 class BMAIndex : public InterestRateIndex {
41 public:
42 explicit BMAIndex(Handle<YieldTermStructure> h = {});
43 //! \name Index interface
44 //@{
45 /*! BMA is fixed weekly on Wednesdays.
46 */
47 bool isValidFixingDate(const Date& fixingDate) const override;
48 //@}
49 //! \name Inspectors
50 //@{
52 //@}
53 //! \name Date calculations
54 //@{
55 Date maturityDate(const Date& valueDate) const override;
56 /*! This method returns a schedule of fixing dates between
57 start and end.
58 */
59 Schedule fixingSchedule(const Date& start,
60 const Date& end);
61 // @}
62 protected:
63 Rate forecastFixing(const Date& fixingDate) const override;
65 };
66
67}
68
69#endif
Bond Market Association index.
Definition: bmaindex.hpp:40
Handle< YieldTermStructure > forwardingTermStructure() const
Definition: bmaindex.cpp:67
Date maturityDate(const Date &valueDate) const override
Definition: bmaindex.cpp:71
bool isValidFixingDate(const Date &fixingDate) const override
Definition: bmaindex.cpp:54
Handle< YieldTermStructure > termStructure_
Definition: bmaindex.hpp:64
Rate forecastFixing(const Date &fixingDate) const override
It can be overridden to implement particular conventions.
Definition: bmaindex.cpp:87
Schedule fixingSchedule(const Date &start, const Date &end)
Definition: bmaindex.cpp:78
Concrete date class.
Definition: date.hpp:125
Shared handle to an observable.
Definition: handle.hpp:41
base class for interest rate indexes
virtual Date valueDate(const Date &fixingDate) const
Date fixingDate(const Date &valueDate) const
Payment schedule.
Definition: schedule.hpp:40
Real Rate
interest rates
Definition: types.hpp:70
base class for interest rate indexes
Definition: any.hpp:35
date schedule
Interest-rate term structure.