Loading [MathJax]/extensions/tex2jax.js
QuantLib
: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
i
l
m
n
p
r
s
t
Typedefs
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
y
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
j
l
m
n
o
p
q
s
t
u
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
g
h
i
k
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
a
b
c
d
f
i
m
n
o
p
q
r
s
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Macros
b
d
i
m
n
p
q
s
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
ql
time
calendars
mexico.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) 2005 StatPro Italia srl
5
Copyright (C) 2024 Skandinaviska Enskilda Banken AB (publ)
6
7
This file is part of QuantLib, a free-software/open-source library
8
for financial quantitative analysts and developers - http://quantlib.org/
9
10
QuantLib is free software: you can redistribute it and/or modify it
11
under the terms of the QuantLib license. You should have received a
12
copy of the license along with this program; if not, please email
13
<quantlib-dev@lists.sf.net>. The license is also available online at
14
<http://quantlib.org/license.shtml>.
15
16
This program is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18
FOR A PARTICULAR PURPOSE. See the license for more details.
19
*/
20
21
/*! \file mexico.hpp
22
\brief Mexican calendars
23
*/
24
25
#ifndef quantlib_mexico_calendar_hpp
26
#define quantlib_mexico_calendar_hpp
27
28
#include <
ql/time/calendar.hpp
>
29
30
namespace
QuantLib
{
31
32
//! %Mexican calendars
33
/*! Holidays for the Mexican stock exchange
34
(data from <http://www.bmv.com.mx/>):
35
<ul>
36
<li>Saturdays</li>
37
<li>Sundays</li>
38
<li>New Year's Day, January 1st</li>
39
<li>Constitution Day, first Monday in February
40
(February 5th before 2006)</li>
41
<li>Birthday of Benito Juarez, third Monday in February
42
(March 21st before 2006)</li>
43
<li>Holy Thursday</li>
44
<li>Good Friday</li>
45
<li>Labour Day, May 1st</li>
46
<li>National Day, September 16th</li>
47
<li>Inauguration Day, October 1st, every sixth year starting 2024</li>
48
<li>All Souls Day, November 2nd (bank holiday, not a public one)</li>
49
<li>Revolution Day, third Monday in November
50
(November 20th before 2006)</li>
51
<li>Our Lady of Guadalupe, December 12th</li>
52
<li>Christmas, December 25th</li>
53
</ul>
54
55
\ingroup calendars
56
*/
57
class
Mexico
:
public
Calendar
{
58
private
:
59
class
BmvImpl
final :
public
Calendar::WesternImpl
{
60
public
:
61
std::string
name
()
const override
{
return
"Mexican stock exchange"
; }
62
bool
isBusinessDay
(
const
Date
&)
const override
;
63
};
64
public
:
65
enum
Market
{
BMV
//!< Mexican stock exchange
66
};
67
Mexico
(
Market
m =
BMV
);
68
};
69
70
}
71
72
73
#endif
calendar.hpp
calendar class
QuantLib::Calendar::WesternImpl
partial calendar implementation
Definition:
calendar.hpp:168
QuantLib::Calendar
calendar class
Definition:
calendar.hpp:61
QuantLib::Date
Concrete date class.
Definition:
date.hpp:125
QuantLib::Mexico::BmvImpl
Definition:
mexico.hpp:59
QuantLib::Mexico::BmvImpl::isBusinessDay
bool isBusinessDay(const Date &) const override
Definition:
mexico.cpp:31
QuantLib::Mexico::BmvImpl::name
std::string name() const override
Definition:
mexico.hpp:61
QuantLib::Mexico
Mexican calendars
Definition:
mexico.hpp:57
QuantLib::Mexico::Market
Market
Definition:
mexico.hpp:65
QuantLib::Mexico::BMV
@ BMV
Mexican stock exchange.
Definition:
mexico.hpp:65
QuantLib
Definition:
any.hpp:35
Generated by
Doxygen
1.9.5