openbb-imf 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openbb_imf/__init__.py +19 -0
- openbb_imf/assets/__init__.py +1 -0
- openbb_imf/assets/imf_country_map.json +259 -0
- openbb_imf/assets/imf_symbols.json +2058 -0
- openbb_imf/models/__init__.py +1 -0
- openbb_imf/models/available_indicators.py +81 -0
- openbb_imf/models/direction_of_trade.py +275 -0
- openbb_imf/models/economic_indicators.py +197 -0
- openbb_imf/utils/__init__.py +1 -0
- openbb_imf/utils/constants.py +93 -0
- openbb_imf/utils/dot_helpers.py +87 -0
- openbb_imf/utils/irfcl_helpers.py +311 -0
- openbb_imf-1.0.0.dist-info/METADATA +51 -0
- openbb_imf-1.0.0.dist-info/RECORD +16 -0
- openbb_imf-1.0.0.dist-info/WHEEL +4 -0
- openbb_imf-1.0.0.dist-info/entry_points.txt +3 -0
openbb_imf/__init__.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""OpenBB IMF Provider Module."""
|
|
2
|
+
|
|
3
|
+
from openbb_core.provider.abstract.provider import Provider
|
|
4
|
+
|
|
5
|
+
from openbb_imf.models.available_indicators import ImfAvailableIndicatorsFetcher
|
|
6
|
+
from openbb_imf.models.direction_of_trade import ImfDirectionOfTradeFetcher
|
|
7
|
+
from openbb_imf.models.economic_indicators import ImfEconomicIndicatorsFetcher
|
|
8
|
+
|
|
9
|
+
imf_provider = Provider(
|
|
10
|
+
name="imf",
|
|
11
|
+
website="https://datahelp.imf.org/knowledgebase/articles/667681-using-json-restful-web-service",
|
|
12
|
+
description="This provider allows you to access International Monetary Fund data through the IMF Public Data API.",
|
|
13
|
+
fetcher_dict={
|
|
14
|
+
"AvailableIndicators": ImfAvailableIndicatorsFetcher,
|
|
15
|
+
"DirectionOfTrade": ImfDirectionOfTradeFetcher,
|
|
16
|
+
"EconomicIndicators": ImfEconomicIndicatorsFetcher,
|
|
17
|
+
},
|
|
18
|
+
repr_name="International Monetary Fund (IMF) Public Data API",
|
|
19
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""IMF Static Assets."""
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AF": "Afghanistan",
|
|
3
|
+
"AL": "Albania",
|
|
4
|
+
"DZ": "Algeria",
|
|
5
|
+
"AS": "American Samoa",
|
|
6
|
+
"AO": "Angola",
|
|
7
|
+
"AI": "Anguilla",
|
|
8
|
+
"AG": "Antigua and Barbuda",
|
|
9
|
+
"AR": "Argentina",
|
|
10
|
+
"AM": "Armenia",
|
|
11
|
+
"AW": "Aruba",
|
|
12
|
+
"S19": "Asia not allocated",
|
|
13
|
+
"AU": "Australia",
|
|
14
|
+
"AT": "Austria",
|
|
15
|
+
"AZ": "Azerbaijan",
|
|
16
|
+
"BS": "Bahamas",
|
|
17
|
+
"BH": "Bahrain",
|
|
18
|
+
"BD": "Bangladesh",
|
|
19
|
+
"BB": "Barbados",
|
|
20
|
+
"BY": "Belarus",
|
|
21
|
+
"BE": "Belgium",
|
|
22
|
+
"R1": "Belgo-Luxembourg Economic Union",
|
|
23
|
+
"BZ": "Belize",
|
|
24
|
+
"BJ": "Benin",
|
|
25
|
+
"BM": "Bermuda",
|
|
26
|
+
"BT": "Bhutan",
|
|
27
|
+
"BO": "Bolivia",
|
|
28
|
+
"BA": "Bosnia and Herzegovina",
|
|
29
|
+
"BW": "Botswana",
|
|
30
|
+
"BR": "Brazil",
|
|
31
|
+
"BN": "Brunei Darussalam",
|
|
32
|
+
"BG": "Bulgaria",
|
|
33
|
+
"BF": "Burkina Faso",
|
|
34
|
+
"BI": "Burundi",
|
|
35
|
+
"CV": "Cabo Verde",
|
|
36
|
+
"KH": "Cambodia",
|
|
37
|
+
"CM": "Cameroon",
|
|
38
|
+
"CA": "Canada",
|
|
39
|
+
"CF": "Central African Republic",
|
|
40
|
+
"TD": "Chad",
|
|
41
|
+
"CL": "Chile",
|
|
42
|
+
"HK": "Hong Kong",
|
|
43
|
+
"MO": "Macao",
|
|
44
|
+
"CN": "China",
|
|
45
|
+
"CO": "Colombia",
|
|
46
|
+
"KM": "Comoros",
|
|
47
|
+
"CD": "Democratic Republic of the Congo",
|
|
48
|
+
"CG": "Congo",
|
|
49
|
+
"CR": "Costa Rica",
|
|
50
|
+
"CI": "Ivory Coast",
|
|
51
|
+
"HR": "Croatia",
|
|
52
|
+
"CU": "Cuba",
|
|
53
|
+
"CW": "Curacao",
|
|
54
|
+
"CY": "Cyprus",
|
|
55
|
+
"CZ": "Czech Republic",
|
|
56
|
+
"CSH": "Former Czechoslovakia",
|
|
57
|
+
"DK": "Denmark",
|
|
58
|
+
"DJ": "Djibouti",
|
|
59
|
+
"DM": "Dominica",
|
|
60
|
+
"DO": "Dominican Republic",
|
|
61
|
+
"DE2": "East Germany",
|
|
62
|
+
"EC": "Ecuador",
|
|
63
|
+
"EG": "Egypt",
|
|
64
|
+
"SV": "El Salvador",
|
|
65
|
+
"GQ": "Equatorial Guinea",
|
|
66
|
+
"ER": "Eritrea",
|
|
67
|
+
"EE": "Estonia",
|
|
68
|
+
"SZ": "Eswatini",
|
|
69
|
+
"ET": "Ethiopia",
|
|
70
|
+
"E19": "Europe not allocated",
|
|
71
|
+
"FK": "Falkland Islands (Malvinas)",
|
|
72
|
+
"FO": "Faroe Islands",
|
|
73
|
+
"FJ": "Fiji",
|
|
74
|
+
"FI": "Finland",
|
|
75
|
+
"FR": "France",
|
|
76
|
+
"PF": "French Polynesia",
|
|
77
|
+
"GA": "Gabon",
|
|
78
|
+
"GM": "Gambia",
|
|
79
|
+
"GE": "Georgia",
|
|
80
|
+
"DE": "Germany",
|
|
81
|
+
"GH": "Ghana",
|
|
82
|
+
"GI": "Gibraltar",
|
|
83
|
+
"GR": "Greece",
|
|
84
|
+
"GL": "Greenland",
|
|
85
|
+
"GD": "Grenada",
|
|
86
|
+
"GU": "Guam",
|
|
87
|
+
"GT": "Guatemala",
|
|
88
|
+
"GN": "Guinea",
|
|
89
|
+
"GW": "Guinea-Bissau",
|
|
90
|
+
"GY": "Guyana",
|
|
91
|
+
"HT": "Haiti",
|
|
92
|
+
"VA": "Vatican City State",
|
|
93
|
+
"HN": "Honduras",
|
|
94
|
+
"HU": "Hungary",
|
|
95
|
+
"IS": "Iceland",
|
|
96
|
+
"IN": "India",
|
|
97
|
+
"ID": "Indonesia",
|
|
98
|
+
"IR": "Iran",
|
|
99
|
+
"IQ": "Iraq",
|
|
100
|
+
"IE": "Ireland",
|
|
101
|
+
"IL": "Israel",
|
|
102
|
+
"IT": "Italy",
|
|
103
|
+
"JM": "Jamaica",
|
|
104
|
+
"JP": "Japan",
|
|
105
|
+
"JO": "Jordan",
|
|
106
|
+
"KZ": "Kazakhstan",
|
|
107
|
+
"KE": "Kenya",
|
|
108
|
+
"KI": "Kiribati",
|
|
109
|
+
"KP": "North Korea",
|
|
110
|
+
"KR": "South Korea",
|
|
111
|
+
"XK": "Kosovo",
|
|
112
|
+
"KW": "Kuwait",
|
|
113
|
+
"KG": "Kyrgyzstan",
|
|
114
|
+
"LA": "Lao",
|
|
115
|
+
"LV": "Latvia",
|
|
116
|
+
"LB": "Lebanon",
|
|
117
|
+
"LS": "Lesotho",
|
|
118
|
+
"LR": "Liberia",
|
|
119
|
+
"LY": "Libya",
|
|
120
|
+
"LT": "Lithuania",
|
|
121
|
+
"LU": "Luxembourg",
|
|
122
|
+
"MG": "Madagascar",
|
|
123
|
+
"MW": "Malawi",
|
|
124
|
+
"MY": "Malaysia",
|
|
125
|
+
"1C_554": "West Malaysia",
|
|
126
|
+
"MV": "Maldives",
|
|
127
|
+
"ML": "Mali",
|
|
128
|
+
"MT": "Malta",
|
|
129
|
+
"MH": "Marshall islands",
|
|
130
|
+
"MR": "Mauritania",
|
|
131
|
+
"MU": "Mauritius",
|
|
132
|
+
"MX": "Mexico",
|
|
133
|
+
"FM": "Micronesia",
|
|
134
|
+
"F979": "Middle East and Central Asia not specified",
|
|
135
|
+
"MD": "Moldova",
|
|
136
|
+
"MN": "Mongolia",
|
|
137
|
+
"ME": "Montenegro",
|
|
138
|
+
"MS": "Montserrat",
|
|
139
|
+
"MA": "Morocco",
|
|
140
|
+
"MZ": "Mozambique",
|
|
141
|
+
"MM": "Myanmar",
|
|
142
|
+
"NA": "Namibia",
|
|
143
|
+
"NR": "Nauru",
|
|
144
|
+
"NP": "Nepal",
|
|
145
|
+
"AN": "Antilles",
|
|
146
|
+
"NL": "Netherlands",
|
|
147
|
+
"NC": "New Caledonia",
|
|
148
|
+
"NZ": "New Zealand",
|
|
149
|
+
"NI": "Nicaragua",
|
|
150
|
+
"NE": "Niger",
|
|
151
|
+
"NG": "Nigeria",
|
|
152
|
+
"MK": "North Macedonia",
|
|
153
|
+
"1C_958": "North Vietnam",
|
|
154
|
+
"NO": "Norway",
|
|
155
|
+
"OM": "Oman",
|
|
156
|
+
"PK": "Pakistan",
|
|
157
|
+
"PW": "Palau",
|
|
158
|
+
"PA": "Panama",
|
|
159
|
+
"PG": "Papua New Guinea",
|
|
160
|
+
"PY": "Paraguay",
|
|
161
|
+
"PE": "Peru",
|
|
162
|
+
"PH": "Philippines",
|
|
163
|
+
"PL": "Poland",
|
|
164
|
+
"PT": "Portugal",
|
|
165
|
+
"QA": "Qatar",
|
|
166
|
+
"RO": "Romania",
|
|
167
|
+
"RU": "Russia",
|
|
168
|
+
"RW": "Rwanda",
|
|
169
|
+
"WS": "Samoa",
|
|
170
|
+
"SM": "San Marino",
|
|
171
|
+
"ST": "Sao Tome and Principe",
|
|
172
|
+
"SA": "Saudi Arabia",
|
|
173
|
+
"SN": "Senegal",
|
|
174
|
+
"CS": "Serbia and Montenegro",
|
|
175
|
+
"RS": "Serbia",
|
|
176
|
+
"SC": "Seychelles",
|
|
177
|
+
"SL": "Sierra Leone",
|
|
178
|
+
"SG": "Singapore",
|
|
179
|
+
"SX": "Sint Maarten (Dutch part)",
|
|
180
|
+
"SK": "Slovakia",
|
|
181
|
+
"SI": "Slovenia",
|
|
182
|
+
"SB": "Solomon Islands",
|
|
183
|
+
"SO": "Somalia",
|
|
184
|
+
"ZA": "South Africa",
|
|
185
|
+
"1C_198": "South African Common Customs Area",
|
|
186
|
+
"SS": "South Sudan",
|
|
187
|
+
"ES": "Spain",
|
|
188
|
+
"LK": "Sri Lanka",
|
|
189
|
+
"KN": "Saint Kitts and Nevis",
|
|
190
|
+
"LC": "Saint Lucia",
|
|
191
|
+
"VC": "Saint Vincent and the Grenadines",
|
|
192
|
+
"SD": "Sudan",
|
|
193
|
+
"SR": "Suriname",
|
|
194
|
+
"SE": "Sweden",
|
|
195
|
+
"CH": "Switzerland",
|
|
196
|
+
"SY": "Syria",
|
|
197
|
+
"TW": "Taiwan",
|
|
198
|
+
"TJ": "Tajikistan",
|
|
199
|
+
"TZ": "Tanzania",
|
|
200
|
+
"TH": "Thailand",
|
|
201
|
+
"TL": "Timor-Leste",
|
|
202
|
+
"TG": "Togo",
|
|
203
|
+
"TO": "Tonga",
|
|
204
|
+
"TT": "Trinidad and Tobago",
|
|
205
|
+
"TN": "Tunisia",
|
|
206
|
+
"TR": "Turkey",
|
|
207
|
+
"TM": "Turkmenistan",
|
|
208
|
+
"TV": "Tuvalu",
|
|
209
|
+
"UG": "Uganda",
|
|
210
|
+
"UA": "Ukraine",
|
|
211
|
+
"AE": "United Arab Emirates",
|
|
212
|
+
"GB": "United Kingdom",
|
|
213
|
+
"US": "United States",
|
|
214
|
+
"UY": "Uruguay",
|
|
215
|
+
"SUH": "Former USSR",
|
|
216
|
+
"UZ": "Uzbekistan",
|
|
217
|
+
"VU": "Vanuatu",
|
|
218
|
+
"VE": "Venezuela",
|
|
219
|
+
"VN": "Viet Nam",
|
|
220
|
+
"PS": "Palestine",
|
|
221
|
+
"YE": "Yemen",
|
|
222
|
+
"YUC": "Former Yugoslavia",
|
|
223
|
+
"ZM": "Zambia",
|
|
224
|
+
"ZW": "Zimbabwe",
|
|
225
|
+
"R14": "Community of Independent States",
|
|
226
|
+
"U2": "Euro Area",
|
|
227
|
+
"E1": "Europe",
|
|
228
|
+
"B0": "European Union",
|
|
229
|
+
"F97": "Middle East",
|
|
230
|
+
"XS5": "Middle East and Central Asia",
|
|
231
|
+
"X88": "Other Countries n.i.e. (IMF)",
|
|
232
|
+
"F1": "Africa",
|
|
233
|
+
"F6": "Sub-Saharan Africa",
|
|
234
|
+
"F19": "Africa not allocated",
|
|
235
|
+
"A10": "Western Hemisphere",
|
|
236
|
+
"A109": "Western Hemisphere not allocated",
|
|
237
|
+
"W00": "World",
|
|
238
|
+
"XR99": "Special Categories and Economic Zones",
|
|
239
|
+
"XS25": "Developing Asia (IMF)",
|
|
240
|
+
"XR43": "Emerging and Developing Countries",
|
|
241
|
+
"XR29": "Advanced Economies (IMF)",
|
|
242
|
+
"1C_ALLC": "All Countries",
|
|
243
|
+
"1C_ALL": "All Countries and Country Groups",
|
|
244
|
+
"1C_ALLG": "All Country Groups",
|
|
245
|
+
"1C_903": "Emerging and Developing Europe",
|
|
246
|
+
"1C_080": "Export Earnings: Fuel",
|
|
247
|
+
"1C_092": "Export Earnings: Nonfuel",
|
|
248
|
+
"1C_440": "Middle East, North Africa, Afghanistan, and Pakistan",
|
|
249
|
+
"1C_473": "Yemen Arab Rep",
|
|
250
|
+
"1C_459": "Yemen P.D. Rep",
|
|
251
|
+
"1C_All_Reporting_Countries_Data": "All Reporting Countries, Data",
|
|
252
|
+
"1C_All_Reporting_Countries_Metadata": "All Reporting Countries, Metadata",
|
|
253
|
+
"1C_Daily_Reporters": "Daily Reporters",
|
|
254
|
+
"1C_Dual_Reporters": "Dual Reporters",
|
|
255
|
+
"1C_Monthly_Reporters": "Monthly Reporters",
|
|
256
|
+
"1C_Single_Reporters": "Single Reporters",
|
|
257
|
+
"1C_Single_Reporters_USA_and_Peru": "Single Reporters - USA and Peru",
|
|
258
|
+
"_X": "Unspecified"
|
|
259
|
+
}
|