QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
america.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) 2004, 2005, 2008 StatPro Italia srl
5 Copyright (C) 2016 Quaternion Risk Management Ltd
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 america.hpp
22 \brief American currencies
23
24 Data from http://fx.sauder.ubc.ca/currency_table.html
25 and http://www.thefinancials.com/vortex/CurrencyFormats.html
26*/
27
28#ifndef quantlib_american_currencies_hpp
29#define quantlib_american_currencies_hpp
30
31#include <ql/currency.hpp>
32
33#if defined(QL_PATCH_MSVC)
34#pragma warning(push)
35#pragma warning(disable:4819)
36#endif
37
38namespace QuantLib {
39
40 //! Argentinian peso
41 /*! The ISO three-letter code is ARS; the numeric code is 32.
42 It is divided in 100 centavos.
43
44 \ingroup currencies
45 */
46 class ARSCurrency : public Currency {
47 public:
49 };
50
51 //! Brazilian real
52 /*! The ISO three-letter code is BRL; the numeric code is 986.
53 It is divided in 100 centavos.
54
55 \ingroup currencies
56 */
57 class BRLCurrency : public Currency {
58 public:
60 };
61
62 //! Canadian dollar
63 /*! The ISO three-letter code is CAD; the numeric code is 124.
64 It is divided into 100 cents.
65
66 \ingroup currencies
67 */
68 class CADCurrency : public Currency {
69 public:
71 };
72
73 //! Chilean peso
74 /*! The ISO three-letter code is CLP; the numeric code is 152.
75 It is divided in 100 centavos.
76
77 \ingroup currencies
78 */
79 class CLPCurrency : public Currency {
80 public:
82 };
83
84 //! Colombian peso
85 /*! The ISO three-letter code is COP; the numeric code is 170.
86 It is divided in 100 centavos.
87
88 \ingroup currencies
89 */
90 class COPCurrency : public Currency {
91 public:
93 };
94
95 //! Mexican peso
96 /*! The ISO three-letter code is MXN; the numeric code is 484.
97 It is divided in 100 centavos.
98
99 \ingroup currencies
100 */
101 class MXNCurrency : public Currency {
102 public:
103 MXNCurrency();
104 };
105
106 //! Peruvian nuevo sol
107 /*! The ISO three-letter code is PEN; the numeric code is 604.
108 It is divided in 100 centimos.
109
110 \ingroup currencies
111 */
112 class PENCurrency : public Currency {
113 public:
114 PENCurrency();
115 };
116
117 //! Peruvian inti
118 /*! The ISO three-letter code was PEI.
119 It was divided in 100 centimos. A numeric code is not available;
120 as per ISO 3166-1, we assign 998 as a user-defined code.
121
122 Obsoleted by the nuevo sol since July 1991.
123
124 \ingroup currencies
125 */
126 class PEICurrency : public Currency {
127 public:
128 PEICurrency();
129 };
130
131 //! Peruvian sol
132 /*! The ISO three-letter code was PEH. A numeric code is not available;
133 as per ISO 3166-1, we assign 999 as a user-defined code.
134 It was divided in 100 centavos.
135
136 Obsoleted by the inti since February 1985.
137
138 \ingroup currencies
139 */
140 class PEHCurrency : public Currency {
141 public:
142 PEHCurrency();
143 };
144
145 //! Trinidad & Tobago dollar
146 /*! The ISO three-letter code is TTD; the numeric code is 780.
147 It is divided in 100 cents.
148
149 \ingroup currencies
150 */
151 class TTDCurrency : public Currency {
152 public:
153 TTDCurrency();
154 };
155
156 //! U.S. dollar
157 /*! The ISO three-letter code is USD; the numeric code is 840.
158 It is divided in 100 cents.
159
160 \ingroup currencies
161 */
162 class USDCurrency : public Currency {
163 public:
164 USDCurrency();
165 };
166
167 //! Venezuelan bolivar
168 /*! The ISO three-letter code is VEB; the numeric code is 862.
169 It is divided in 100 centimos.
170
171 \ingroup currencies
172 */
173 class VEBCurrency : public Currency {
174 public:
175 VEBCurrency();
176 };
177 //! Mexican Unidad de Inversion
178 /*! The ISO three-letter code is MXV; the numeric code is 979.
179 A unit of account used in Mexico.
180 \ingroup currencies
181 */
182 class MXVCurrency : public Currency {
183 public:
184 MXVCurrency();
185 };
186
187 //! Unidad de Valor Real
188 /*! The ISO three-letter code is COU; the numeric code is 970.
189 A unit of account used in Colombia.
190 \ingroup currencies
191 */
192 class COUCurrency : public Currency {
193 public:
194 COUCurrency();
195 };
196
197 //! Unidad de Fomento (funds code)
198 /*! The ISO three-letter code is CLF; the numeric code is 990.
199 A unit of account used in Chile.
200 \ingroup currencies
201 */
202 class CLFCurrency : public Currency {
203 public:
204 CLFCurrency();
205 };
206
207 //! Uruguayan peso
208 /*! The ISO three-letter code is UYU; the numeric code is 858.
209 A unit of account used in Uruguay.
210 \ingroup currencies
211 */
212 class UYUCurrency : public Currency {
213 public:
214 UYUCurrency();
215 };
216
217}
218
219#if defined(QL_PATCH_MSVC)
220#pragma warning(pop)
221#endif
222
223#endif
Argentinian peso.
Definition: america.hpp:46
Brazilian real.
Definition: america.hpp:57
Canadian dollar.
Definition: america.hpp:68
Unidad de Fomento (funds code)
Definition: america.hpp:202
Chilean peso.
Definition: america.hpp:79
Colombian peso.
Definition: america.hpp:90
Unidad de Valor Real.
Definition: america.hpp:192
Currency specification
Definition: currency.hpp:36
Mexican peso.
Definition: america.hpp:101
Mexican Unidad de Inversion.
Definition: america.hpp:182
Peruvian sol.
Definition: america.hpp:140
Peruvian inti.
Definition: america.hpp:126
Peruvian nuevo sol.
Definition: america.hpp:112
Trinidad & Tobago dollar.
Definition: america.hpp:151
U.S. dollar.
Definition: america.hpp:162
Uruguayan peso.
Definition: america.hpp:212
Venezuelan bolivar.
Definition: america.hpp:173
Currency specification.
Definition: any.hpp:35