QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
unitedstates.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl
5 Copyright (C) 2003, 2004, 2005, 2006 StatPro Italia srl
6 Copyright (C) 2004 Ferdinando Ametrano
7 Copyright (C) 2017 Peter Caspers
8 Copyright (C) 2017 Oleg Kulkov
9
10 This file is part of QuantLib, a free-software/open-source library
11 for financial quantitative analysts and developers - http://quantlib.org/
12
13 QuantLib is free software: you can redistribute it and/or modify it
14 under the terms of the QuantLib license. You should have received a
15 copy of the license along with this program; if not, please email
16 <quantlib-dev@lists.sf.net>. The license is also available online at
17 <http://quantlib.org/license.shtml>.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21 FOR A PARTICULAR PURPOSE. See the license for more details.
22*/
23
28#ifndef quantlib_united_states_calendar_hpp
29#define quantlib_united_states_calendar_hpp
30
31#include <ql/time/calendar.hpp>
32
33namespace QuantLib {
34
36
133 class UnitedStates : public Calendar {
134 private:
136 public:
137 std::string name() const override { return "US settlement"; }
138 bool isBusinessDay(const Date&) const override;
139 };
140 class LiborImpactImpl final : public SettlementImpl {
141 public:
142 std::string name() const override { return "US with Libor impact"; }
143 bool isBusinessDay(const Date&) const override;
144 };
145 class NyseImpl final : public Calendar::WesternImpl {
146 public:
147 std::string name() const override { return "New York stock exchange"; }
148 bool isBusinessDay(const Date&) const override;
149 };
151 public:
152 std::string name() const override { return "US government bond market"; }
153 bool isBusinessDay(const Date&) const override;
154 };
155 class SofrImpl final : public GovernmentBondImpl {
156 public:
157 std::string name() const override { return "SOFR fixing calendar"; }
158 bool isBusinessDay(const Date&) const override;
159 };
160 class NercImpl final : public Calendar::WesternImpl {
161 public:
162 std::string name() const override {
163 return "North American Energy Reliability Council";
164 }
165 bool isBusinessDay(const Date&) const override;
166 };
168 public:
169 std::string name() const override { return "Federal Reserve Bankwire System"; }
170 bool isBusinessDay(const Date&) const override;
171 };
172 public:
180 SOFR
181 };
182
183 explicit UnitedStates(Market market);
184 };
185
186}
187
188
189#endif
partial calendar implementation
Definition: calendar.hpp:168
calendar class
Definition: calendar.hpp:61
Concrete date class.
Definition: date.hpp:125
bool isBusinessDay(const Date &) const override
bool isBusinessDay(const Date &) const override
bool isBusinessDay(const Date &) const override
std::string name() const override
bool isBusinessDay(const Date &) const override
std::string name() const override
bool isBusinessDay(const Date &) const override
std::string name() const override
bool isBusinessDay(const Date &) const override
std::string name() const override
bool isBusinessDay(const Date &) const override
std::string name() const override
United States calendars.
@ FederalReserve
Federal Reserve Bankwire System.
@ NYSE
New York stock exchange calendar.
@ LiborImpact
Libor impact calendar.
@ GovernmentBond
government-bond calendar
@ NERC
off-peak days for NERC
@ Settlement
generic settlement calendar
@ SOFR
SOFR fixing calendar.
Definition: any.hpp:35