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
27#include <ql/termstructures/yieldtermstructure.hpp>
28#include <ql/indexes/interestrateindex.hpp>
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(const 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 //@{
51 Handle<YieldTermStructure> forwardingTermStructure() const;
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;
64 Handle<YieldTermStructure> termStructure_;
65 };
66
67}
68
69#endif
70

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of quantlib/ql/indexes/bmaindex.hpp