/src/quantlib/ql/time/calendars/northmacedonia.hpp
Line | Count | Source |
1 | | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | |
3 | | /* |
4 | | Copyright (C) 2026 SoftSolution srl |
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 | | <https://www.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 northmacedonia.hpp |
21 | | \brief North Macedonia calendars |
22 | | */ |
23 | | |
24 | | #ifndef quantlib_northmacedonia_calendar_hpp |
25 | | #define quantlib_northmacedonia_calendar_hpp |
26 | | |
27 | | #include <ql/time/calendar.hpp> |
28 | | |
29 | | namespace QuantLib { |
30 | | |
31 | | //! North Macedonian calendars |
32 | | /*! Holidays for the North Macedonian (see https://www.timeanddate.com/holidays/macedonia/2026?hol=1): |
33 | | <ul> |
34 | | <li>Saturdays</li> |
35 | | <li>Sundays</li> |
36 | | <li>New Year, January 1st & 2nd</li> |
37 | | <li>Orthodox Christmas, January 7th</li> |
38 | | <li>Orthodox Easter Monday, variable date<</li> |
39 | | <li>Labour Day, May 1st</li> |
40 | | <li>Saints Cyril and Methodius Day, May 24th</li> |
41 | | <li>Republic Day, August 2nd</li> |
42 | | <li>Independence Day, September 8th</li> |
43 | | <li>Revolution Day, October 11th</li> |
44 | | <li>Day of the Macedonian Uprising, October 23rd</li> |
45 | | <li>Saint Clement of Ohrid Day, December 8th</li> |
46 | | <li>Eid al-Fitr (Ramazan Bajram), variable date</li> |
47 | | <li>Eid al-Adha (Kurban Bayram), variable date</li> |
48 | | </ul> |
49 | | \ingroup calendars |
50 | | */ |
51 | | class NorthMacedonia : public Calendar { |
52 | | private: |
53 | | class MseImpl final : public Calendar::OrthodoxImpl { |
54 | | public: |
55 | 0 | std::string name() const override { return "Macedonian Stock Exchange"; } |
56 | | bool isBusinessDay(const Date&) const override; |
57 | | }; |
58 | | |
59 | | public: |
60 | | enum Market { |
61 | | MSE //!< Macedonian Stock Exchange |
62 | | }; |
63 | | explicit NorthMacedonia(Market m = MSE); |
64 | | }; |
65 | | |
66 | | } |
67 | | |
68 | | #endif |