-
Notifications
You must be signed in to change notification settings - Fork 2
/
utils_iso_codes.go
5324 lines (5310 loc) · 123 KB
/
utils_iso_codes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package valix
const (
ISO4217TestCurrencyCode = "XTS"
ISO4217TestCurrencyCodeNumeric = "963"
ISO4217NoCurrencyCode = "XXX"
ISO4217NoCurrencyCodeNumeric = "999"
)
var iSO4217CurrencyCodes = map[string]bool{
"AED": true, // United Arab Emirates dirham
"AFN": true, // Afghan afghani
"ALL": true, // Albanian lek
"AMD": true, // Armenian dram
"ANG": true, // Netherlands Antillean guilder
"AOA": true, // Angolan kwanza
"ARS": true, // Argentine peso
"AUD": true, // Australian dollar
"AWG": true, // Aruban florin
"AZN": true, // Azerbaijani manat
"BAM": true, // Bosnia and Herzegovina convertible mark
"BBD": true, // Barbados dollar
"BDT": true, // Bangladeshi taka
"BGN": true, // Bulgarian lev
"BHD": true, // Bahraini dinar
"BIF": true, // Burundian franc
"BMD": true, // Bermudian dollar
"BND": true, // Brunei dollar
"BOB": true, // Boliviano
"BOV": true, // Bolivian Mvdol (funds code)
"BRL": true, // Brazilian real
"BSD": true, // Bahamian dollar
"BTN": true, // Bhutanese ngultrum
"BWP": true, // Botswana pula
"BYN": true, // Belarusian ruble
"BZD": true, // Belize dollar
"CAD": true, // Canadian dollar
"CDF": true, // Congolese franc
"CHE": true, // WIR euro (complementary currency)
"CHF": true, // Swiss franc
"CHW": true, // WIR franc (complementary currency)
"CLF": true, // Unidad de Fomento (funds code)
"CLP": true, // Chilean peso
"CNY": true, // Renminbi
"COP": true, // Colombian peso
"COU": true, // Unidad de Valor Real (UVR) (funds code)
"CRC": true, // Costa Rican colon
"CUC": true, // Cuban convertible peso
"CUP": true, // Cuban peso
"CVE": true, // Cape Verdean escudo
"CZK": true, // Czech koruna
"DJF": true, // Djiboutian franc
"DKK": true, // Danish krone
"DOP": true, // Dominican peso
"DZD": true, // Algerian dinar
"EGP": true, // Egyptian pound
"ERN": true, // Eritrean nakfa
"ETB": true, // Ethiopian birr
"EUR": true, // Euro
"FJD": true, // Fiji dollar
"FKP": true, // Falkland Islands pound
"GBP": true, // Pound sterling
"GEL": true, // Georgian lari
"GHS": true, // Ghanaian cedi
"GIP": true, // Gibraltar pound
"GMD": true, // Gambian dalasi
"GNF": true, // Guinean franc
"GTQ": true, // Guatemalan quetzal
"GYD": true, // Guyanese dollar
"HKD": true, // Hong Kong dollar
"HNL": true, // Honduran lempira
"HRK": true, // Croatian kuna
"HTG": true, // Haitian gourde
"HUF": true, // Hungarian forint
"IDR": true, // Indonesian rupiah
"ILS": true, // Israeli new shekel
"INR": true, // Indian rupee
"IQD": true, // Iraqi dinar
"IRR": true, // Iranian rial
"ISK": true, // Icelandic króna (plural: krónur)
"JMD": true, // Jamaican dollar
"JOD": true, // Jordanian dinar
"JPY": true, // Japanese yen
"KES": true, // Kenyan shilling
"KGS": true, // Kyrgyzstani som
"KHR": true, // Cambodian riel
"KMF": true, // Comoro franc
"KPW": true, // North Korean won
"KRW": true, // South Korean won
"KWD": true, // Kuwaiti dinar
"KYD": true, // Cayman Islands dollar
"KZT": true, // Kazakhstani tenge
"LAK": true, // Lao kip
"LBP": true, // Lebanese pound
"LKR": true, // Sri Lankan rupee
"LRD": true, // Liberian dollar
"LSL": true, // Lesotho loti
"LYD": true, // Libyan dinar
"MAD": true, // Moroccan dirham
"MDL": true, // Moldovan leu
"MGA": true, // Malagasy ariary
"MKD": true, // Macedonian denar
"MMK": true, // Myanmar kyat
"MNT": true, // Mongolian tögrög
"MOP": true, // Macanese pataca
"MRU": true, // Mauritanian ouguiya
"MUR": true, // Mauritian rupee
"MVR": true, // Maldivian rufiyaa
"MWK": true, // Malawian kwacha
"MXN": true, // Mexican peso
"MXV": true, // Mexican Unidad de Inversion (UDI) (funds code)
"MYR": true, // Malaysian ringgit
"MZN": true, // Mozambican metical
"NAD": true, // Namibian dollar
"NGN": true, // Nigerian naira
"NIO": true, // Nicaraguan córdoba
"NOK": true, // Norwegian krone
"NPR": true, // Nepalese rupee
"NZD": true, // New Zealand dollar
"OMR": true, // Omani rial
"PAB": true, // Panamanian balboa
"PEN": true, // Peruvian sol
"PGK": true, // Papua New Guinean kina
"PHP": true, // Philippine peso
"PKR": true, // Pakistani rupee
"PLN": true, // Polish złoty
"PYG": true, // Paraguayan guaraní
"QAR": true, // Qatari riyal
"RON": true, // Romanian leu
"RSD": true, // Serbian dinar
"RUB": true, // Russian ruble
"RWF": true, // Rwandan franc
"SAR": true, // Saudi riyal
"SBD": true, // Solomon Islands dollar
"SCR": true, // Seychelles rupee
"SDG": true, // Sudanese pound
"SEK": true, // Swedish krona (plural: kronor)
"SGD": true, // Singapore dollar
"SHP": true, // Saint Helena pound
"SLE": true, // Sierra Leonean leone
"SLL": true, // Sierra Leonean leone
"SOS": true, // Somali shilling
"SRD": true, // Surinamese dollar
"SSP": true, // South Sudanese pound
"STN": true, // São Tomé and Príncipe dobra
"SVC": true, // Salvadoran colón
"SYP": true, // Syrian pound
"SZL": true, // Swazi lilangeni
"THB": true, // Thai baht
"TJS": true, // Tajikistani somoni
"TMT": true, // Turkmenistan manat
"TND": true, // Tunisian dinar
"TOP": true, // Tongan paʻanga
"TRY": true, // Turkish lira
"TTD": true, // Trinidad and Tobago dollar
"TWD": true, // New Taiwan dollar
"TZS": true, // Tanzanian shilling
"UAH": true, // Ukrainian hryvnia
"UGX": true, // Ugandan shilling
"USD": true, // United States dollar
"USN": true, // United States dollar (next day) (funds code)
"UYI": true, // Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code)
"UYU": true, // Uruguayan peso
"UYW": true, // Unidad previsional
"UZS": true, // Uzbekistan som
"VED": true, // Venezuelan bolívar digital
"VES": true, // Venezuelan bolívar soberano
"VND": true, // Vietnamese đồng
"VUV": true, // Vanuatu vatu
"WST": true, // Samoan tala
"XAF": true, // CFA franc BEAC
"XAG": true, // Silver (one troy ounce)
"XAU": true, // Gold (one troy ounce)
"XBA": true, // European Composite Unit (EURCO) (bond market unit)
"XBB": true, // European Monetary Unit (E.M.U.-6) (bond market unit)
"XBC": true, // European Unit of Account 9 (E.U.A.-9) (bond market unit)
"XBD": true, // European Unit of Account 17 (E.U.A.-17) (bond market unit)
"XCD": true, // East Caribbean dollar
"XDR": true, // Special drawing rights
"XOF": true, // CFA franc BCEAO
"XPD": true, // Palladium (one troy ounce)
"XPF": true, // CFP franc (franc Pacifique) French territories of the Pacific Ocean
"XPT": true, // Platinum (one troy ounce)
"XSU": true, // SUCRE Unified System for Regional Compensation (SUCRE)
"XUA": true, // ADB Unit of Account African Development Bank
"YER": true, // Yemeni rial
"ZAR": true, // South African rand
"ZMW": true, // Zambian kwacha
"ZWL": true, // Zimbabwean dollar
//"XTS": true, // Code reserved for testing
//"XXX": true, // No currency
}
var iSO4217CurrencyCodesNumeric = map[string]bool{
"008": true, // ALL Albanian lek
"012": true, // DZD Algerian dinar
"032": true, // ARS Argentine peso
"036": true, // AUD Australian dollar
"044": true, // BSD Bahamian dollar
"048": true, // BHD Bahraini dinar
"050": true, // BDT Bangladeshi taka
"051": true, // AMD Armenian dram
"052": true, // BBD Barbados dollar
"060": true, // BMD Bermudian dollar
"064": true, // BTN Bhutanese ngultrum
"068": true, // BOB Boliviano
"072": true, // BWP Botswana pula
"084": true, // BZD Belize dollar
"090": true, // SBD Solomon Islands dollar
"096": true, // BND Brunei dollar
"104": true, // MMK Myanmar kyat
"108": true, // BIF Burundian franc
"116": true, // KHR Cambodian riel
"124": true, // CAD Canadian dollar
"132": true, // CVE Cape Verdean escudo
"136": true, // KYD Cayman Islands dollar
"144": true, // LKR Sri Lankan rupee
"152": true, // CLP Chilean peso
"156": true, // CNY Renminbi
"170": true, // COP Colombian peso
"174": true, // KMF Comoro franc
"188": true, // CRC Costa Rican colon
"191": true, // HRK Croatian kuna
"192": true, // CUP Cuban peso
"203": true, // CZK Czech koruna
"208": true, // DKK Danish krone
"214": true, // DOP Dominican peso
"222": true, // SVC Salvadoran colón
"230": true, // ETB Ethiopian birr
"232": true, // ERN Eritrean nakfa
"238": true, // FKP Falkland Islands pound
"242": true, // FJD Fiji dollar
"262": true, // DJF Djiboutian franc
"270": true, // GMD Gambian dalasi
"292": true, // GIP Gibraltar pound
"320": true, // GTQ Guatemalan quetzal
"324": true, // GNF Guinean franc
"328": true, // GYD Guyanese dollar
"332": true, // HTG Haitian gourde
"340": true, // HNL Honduran lempira
"344": true, // HKD Hong Kong dollar
"348": true, // HUF Hungarian forint
"352": true, // ISK Icelandic króna (plural: krónur)
"356": true, // INR Indian rupee
"360": true, // IDR Indonesian rupiah
"364": true, // IRR Iranian rial
"368": true, // IQD Iraqi dinar
"376": true, // ILS Israeli new shekel
"388": true, // JMD Jamaican dollar
"392": true, // JPY Japanese yen
"398": true, // KZT Kazakhstani tenge
"400": true, // JOD Jordanian dinar
"404": true, // KES Kenyan shilling
"408": true, // KPW North Korean won
"410": true, // KRW South Korean won
"414": true, // KWD Kuwaiti dinar
"417": true, // KGS Kyrgyzstani som
"418": true, // LAK Lao kip
"422": true, // LBP Lebanese pound
"426": true, // LSL Lesotho loti
"430": true, // LRD Liberian dollar
"434": true, // LYD Libyan dinar
"446": true, // MOP Macanese pataca
"454": true, // MWK Malawian kwacha
"458": true, // MYR Malaysian ringgit
"462": true, // MVR Maldivian rufiyaa
"480": true, // MUR Mauritian rupee
"484": true, // MXN Mexican peso
"496": true, // MNT Mongolian tögrög
"498": true, // MDL Moldovan leu
"504": true, // MAD Moroccan dirham
"512": true, // OMR Omani rial
"516": true, // NAD Namibian dollar
"524": true, // NPR Nepalese rupee
"532": true, // ANG Netherlands Antillean guilder
"533": true, // AWG Aruban florin
"548": true, // VUV Vanuatu vatu
"554": true, // NZD New Zealand dollar
"558": true, // NIO Nicaraguan córdoba
"566": true, // NGN Nigerian naira
"578": true, // NOK Norwegian krone
"586": true, // PKR Pakistani rupee
"590": true, // PAB Panamanian balboa
"598": true, // PGK Papua New Guinean kina
"600": true, // PYG Paraguayan guaraní
"604": true, // PEN Peruvian sol
"608": true, // PHP Philippine peso
"634": true, // QAR Qatari riyal
"643": true, // RUB Russian ruble
"646": true, // RWF Rwandan franc
"654": true, // SHP Saint Helena pound
"682": true, // SAR Saudi riyal
"690": true, // SCR Seychelles rupee
"694": true, // SLL Sierra Leonean leone
"702": true, // SGD Singapore dollar
"704": true, // VND Vietnamese đồng
"706": true, // SOS Somali shilling
"710": true, // ZAR South African rand
"728": true, // SSP South Sudanese pound
"748": true, // SZL Swazi lilangeni
"752": true, // SEK Swedish krona (plural: kronor)
"756": true, // CHF Swiss franc
"760": true, // SYP Syrian pound
"764": true, // THB Thai baht
"776": true, // TOP Tongan paʻanga
"780": true, // TTD Trinidad and Tobago dollar
"784": true, // AED United Arab Emirates dirham
"788": true, // TND Tunisian dinar
"800": true, // UGX Ugandan shilling
"807": true, // MKD Macedonian denar
"818": true, // EGP Egyptian pound
"826": true, // GBP Pound sterling
"834": true, // TZS Tanzanian shilling
"840": true, // USD United States dollar
"858": true, // UYU Uruguayan peso
"860": true, // UZS Uzbekistan som
"882": true, // WST Samoan tala
"886": true, // YER Yemeni rial
"901": true, // TWD New Taiwan dollar
"925": true, // SLE Sierra Leonean leone
"926": true, // VED Venezuelan bolívar digital
"927": true, // UYW Unidad previsional
"928": true, // VES Venezuelan bolívar soberano
"929": true, // MRU Mauritanian ouguiya
"930": true, // STN São Tomé and Príncipe dobra
"931": true, // CUC Cuban convertible peso
"932": true, // ZWL Zimbabwean dollar
"933": true, // BYN Belarusian ruble
"934": true, // TMT Turkmenistan manat
"936": true, // GHS Ghanaian cedi
"938": true, // SDG Sudanese pound
"940": true, // UYI Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code)
"941": true, // RSD Serbian dinar
"943": true, // MZN Mozambican metical
"944": true, // AZN Azerbaijani manat
"946": true, // RON Romanian leu
"947": true, // CHE WIR euro (complementary currency)
"948": true, // CHW WIR franc (complementary currency)
"949": true, // TRY Turkish lira
"950": true, // XAF CFA franc BEAC
"951": true, // XCD East Caribbean dollar
"952": true, // XOF CFA franc BCEAO
"953": true, // XPF CFP franc (franc Pacifique) French territories of the Pacific Ocean
"955": true, // XBA European Composite Unit (EURCO) (bond market unit)
"956": true, // XBB European Monetary Unit (E.M.U.-6) (bond market unit)
"957": true, // XBC European Unit of Account 9 (E.U.A.-9) (bond market unit)
"958": true, // XBD European Unit of Account 17 (E.U.A.-17) (bond market unit)
"959": true, // XAU Gold (one troy ounce)
"960": true, // XDR Special drawing rights
"961": true, // XAG Silver (one troy ounce)
"962": true, // XPT Platinum (one troy ounce)
"964": true, // XPD Palladium (one troy ounce)
"965": true, // XUA ADB Unit of Account African Development Bank
"967": true, // ZMW Zambian kwacha
"968": true, // SRD Surinamese dollar
"969": true, // MGA Malagasy ariary
"970": true, // COU Unidad de Valor Real (UVR) (funds code)
"971": true, // AFN Afghan afghani
"972": true, // TJS Tajikistani somoni
"973": true, // AOA Angolan kwanza
"975": true, // BGN Bulgarian lev
"976": true, // CDF Congolese franc
"977": true, // BAM Bosnia and Herzegovina convertible mark
"978": true, // EUR Euro
"979": true, // MXV Mexican Unidad de Inversion (UDI) (funds code)
"980": true, // UAH Ukrainian hryvnia
"981": true, // GEL Georgian lari
"984": true, // BOV Bolivian Mvdol (funds code)
"985": true, // PLN Polish złoty
"986": true, // BRL Brazilian real
"990": true, // CLF Unidad de Fomento (funds code)
"994": true, // XSU Unified System for Regional Compensation (SUCRE)
"997": true, // USN United States dollar (next day) (funds code)
//"963": true, // XTS Code reserved for testing
//"999": true, // XXX No currency
}
var iSO4217CurrencyCodesHistorical = map[string]bool{
"ADP": true, // Andorran peseta
"AFA": true, // Afghan afghani
"ALK": true, // Old Albanian lek
"AOK": true, // Angolan kwanza
"AON": true, // Angolan novo kwanza
"AOR": true, // Angolan kwanza reajustado
"ARA": true, // Argentine austral
"ARP": true, // Argentine peso argentino
"ARY": true, // Argentine peso
"ATS": true, // Austrian schilling
"AYM": true, // Azerbaijani manat
"AZM": true, // Azerbaijani manat
"BAD": true, // Bosnia and Herzegovina dinar
"BEC": true, // Belgian convertible franc (funds code)
"BEF": true, // Belgian franc
"BEL": true, // Belgian financial franc (funds code)
"BGJ": true, // Bulgarian lev (first)
"BGK": true, // Bulgarian lev (second)
"BGL": true, // Bulgarian lev (third)
"BOP": true, // Bolivian peso
"BRB": true, // Brazilian cruzeiro
"BRC": true, // Brazilian cruzado
"BRE": true, // Brazilian cruzeiro
"BRN": true, // Brazilian cruzado novo
"BRR": true, // Brazilian cruzeiro real
"BUK": true, // Burmese kyat
"BYB": true, // Belarusian ruble
"BYR": true, // Belarusian ruble
"CHC": true, // WIR franc (for electronic currency)
"CSD": true, // Serbian dinar
"CSJ": true, // Czechoslovak koruna (second)
"CSK": true, // Czechoslovak koruna
"CYP": true, // Cypriot pound
"DDM": true, // East German mark
"DEM": true, // German mark
"ECS": true, // Ecuadorian sucre
"ECV": true, // Ecuador Unidad de Valor Constante (funds code)
"EEK": true, // Estonian kroon
"ESA": true, // Spanish peseta (account A)
"ESB": true, // Spanish peseta (account B)
"ESP": true, // Spanish peseta
"FIM": true, // Finnish markka
"FRF": true, // French franc
"GEK": true, // Georgian kuponi
"GHC": true, // Ghanaian cedi
"GHP": true, // Ghanaian cedi
"GNE": true, // Guinean syli
"GNS": true, // Guinean syli
"GQE": true, // Equatorial Guinean ekwele
"GRD": true, // Greek drachma
"GWE": true, // Guinean escudo
"GWP": true, // Guinea-Bissau peso
"HRD": true, // Croatian dinar
"IEP": true, // Irish pound
"ILP": true, // Israeli lira
"ILR": true, // Israeli shekel
"ISJ": true, // Icelandic króna
"ITL": true, // Italian lira
"LAJ": true, // Lao kip
"LSM": true, // Lesotho loti
"LTL": true, // Lithuanian litas
"LTT": true, // Lithuanian talonas[56]
"LUC": true, // Luxembourg convertible franc (funds code)
"LUF": true, // Luxembourg franc
"LUL": true, // Luxembourg financial franc (funds code)
"LVL": true, // Latvian lats
"LVR": true, // Latvian rublis
"MGF": true, // Malagasy franc
"MLF": true, // Malian franc
"MRO": true, // Mauritanian ouguiya
"MTL": true, // Maltese lira
"MTP": true, // Maltese pound
"MVQ": true, // Maldivian rupee
"MXP": true, // Mexican peso
"MZE": true, // Mozambican escudo
"MZM": true, // Mozambican metical
"NIC": true, // Nicaraguan córdoba
"NLG": true, // Dutch guilder
"PEH": true, // Peruvian old sol
"PEI": true, // Peruvian inti
"PES": true, // Peruvian sol
"PLZ": true, // Polish zloty
"PTE": true, // Portuguese escudo
"RHD": true, // Rhodesian dollar
"ROK": true, // Romanian leu (second)
"ROL": true, // Romanian leu (third)
"RUR": true, // Russian ruble
"SDD": true, // Sudanese dinar
"SDP": true, // Sudanese old pound
"SIT": true, // Slovenian tolar
"SKK": true, // Slovak koruna
"SRG": true, // Surinamese guilder
"STD": true, // São Tomé and Príncipe dobra
"SUR": true, // Soviet Union ruble
"TJR": true, // Tajikistani ruble
"TMM": true, // Turkmenistani manat
"TPE": true, // Portuguese Timorese escudo
"TRL": true, // Turkish lira
"UAK": true, // Ukrainian karbovanets
"UGS": true, // Ugandan shilling
"USS": true, // United States dollar (same day) (funds code)[59]
"UYN": true, // Uruguay peso
"UYP": true, // Uruguay new peso
"VEB": true, // Venezuelan bolívar
"VEF": true, // Venezuelan bolívar fuerte
"VNC": true, // Old Vietnamese dong
"XEU": true, // European Currency Unit
"XFO": true, // Gold franc (special settlement currency)
"XFU": true, // UIC franc (special settlement currency)
"XRE": true, // RINET funds code[63]
"YDD": true, // South Yemeni dinar
"YUD": true, // Yugoslav dinar
"YUM": true, // Yugoslav dinar
"YUN": true, // Yugoslav dinar
"ZAL": true, // South African financial rand (funds code)
"ZMK": true, // Zambian kwacha
"ZRN": true, // Zairean new zaire
"ZRZ": true, // Zairean zaire
"ZWC": true, // Rhodesian dollar
"ZWD": true, // Zimbabwean dollar
"ZWN": true, // Zimbabwean dollar
"ZWR": true, // Zimbabwean dollar
}
var iSO4217CurrencyCodesNumericHistorical = map[string]bool{
"004": true, // Afghan afghani
"020": true, // Andorran peseta
"024": true, // Angolan kwanza
"031": true, // Azerbaijani manat
"040": true, // Austrian schilling
"056": true, // Belgian franc
"070": true, // Bosnia and Herzegovina dinar
"076": true, // Brazilian cruzeiro
"100": true, // Bulgarian lev
"112": true, // Belarusian ruble
"180": true, // Zairean zaire
"196": true, // Cypriot pound
"200": true, // Czechoslovak koruna
"218": true, // Ecuadorian sucre
"226": true, // Equatorial Guinean ekwele
"233": true, // Estonian kroon
"246": true, // Finnish markka
"250": true, // French franc
"268": true, // Georgian kuponi
"276": true, // German mark
"278": true, // East German mark
"288": true, // Ghanaian cedi
"300": true, // Greek drachma
"372": true, // Irish pound
"380": true, // Italian lira
"428": true, // Latvian lats / Latvian rublis
"440": true, // Lithuanian litas / Lithuanian talonas
"442": true, // Luxembourg franc
"450": true, // Malagasy franc
"466": true, // Malian franc
"470": true, // Maltese lira / Maltese pound
"478": true, // Mauritanian ouguiya
"508": true, // Mozambican escudo / Mozambican metical
"528": true, // Dutch guilder
"616": true, // Polish zloty
"620": true, // Portuguese escudo
"624": true, // Guinean escudo / Guinea-Bissau peso
"626": true, // Portuguese Timorese escudo
"642": true, // Romanian leu
"678": true, // São Tomé and Príncipe dobra
"703": true, // Slovak koruna
"705": true, // Slovenian tolar
"716": true, // Rhodesian dollar / Zimbabwean dollar
"720": true, // South Yemeni dinar
"724": true, // Spanish peseta
"736": true, // Sudanese dinar
"740": true, // Surinamese guilder
"762": true, // Tajikistani ruble
"792": true, // Turkish lira
"795": true, // Turkmenistani manat
"804": true, // Ukrainian karbovanets
"810": true, // Russian ruble / Soviet Union ruble
"862": true, // Venezuelan bolívar
"890": true, // Yugoslav dinar
"891": true, // Yugoslav dinar / Serbian dinar
"894": true, // Zambian kwacha
"935": true, // Zimbabwean dollar
"937": true, // Venezuelan bolívar fuerte
"939": true, // Ghanaian cedi
"942": true, // Zimbabwean dollar
"945": true, // Azerbaijani manat
"954": true, // European Currency Unit
"974": true, // Belarusian ruble
"982": true, // Angolan kwanza reajustado
"983": true, // Ecuador Unidad de Valor Constante (funds code)
"987": true, // Brazilian cruzeiro real
"988": true, // Luxembourg financial franc (funds code)
"989": true, // Luxembourg convertible franc (funds code)
"991": true, // South African financial rand (funds code)
"992": true, // Belgian financial franc (funds code)
"993": true, // Belgian convertible franc (funds code)
"995": true, // Spanish peseta (account B)
"996": true, // Spanish peseta (account A)
"998": true, // United States dollar (same day) (funds code)[59]
}
var unofficialCurrencyCodes = map[string]bool{
"ADF": true, // Andorran franc
"ARL": true, // Argentine peso ley
"BDS": true, // (BBD) Barbados dollar
"CNH": true, // Renminbi (offshore)
"CNT": true, // Renminbi (offshore)
"GGP": true, // Guernsey pound
"IMP": true, // Isle of Man pound
"JEP": true, // Jersey pound
"KID": true, // Kiribati dollar
"MAF": true, // Malian franc
"MCF": true, // Monégasque franc
"MKN": true, // Old Macedonian denar
"NIS": true, // (ILS) Israeli new shekel
"NTD": true, // (TWD) New Taiwan dollar
"PRB": true, // Transnistrian ruble
"RMB": true, // (CNY) Renminbi
"SLS": true, // Somaliland shilling
"SML": true, // San Marinese lira
"STG": true, // (GBP) Sterling
"TVD": true, // Tuvalu dollar
"VAL": true, // Vatican lira
"YUG": true, // Yugoslav dinar
"YUO": true, // Yugoslav dinar
"YUR": true, // Reformed Yugoslav dinar
"ZWB": true, // Zimbabwean bonds
}
var cryptoCurrencyCodes = map[string]bool{
"ADA": true, // Ada Currency on the Cardano platform
"BCH": true, // Bitcoin Cash
"BNB": true, // Binance BNB
"BSV": true, // Bitcoin SV (Bitcoin Satoshi Vision)
"BTC": true, // Bitcoin BTC
"DASH": true, // DASH
"DOGE": true, // Dogecoin
"EOS": true, // EOS
"ETH": true, // Ethereum
"LTC": true, // Litecoin
"VTC": true, // Vertcoin
"XBT": true, // Bitcoin BTC
"XLM": true, // Stellar Lumen
"XMR": true, // Monero
"XNO": true, // Nano
"XRP": true, // XRP
"XTZ": true, // Tez
"ZEC": true, // Zcash
}
var iSO3166_2_CountryCodes = map[string]map[string]bool{
"AD": { // Andorra
"02": true, "03": true, "04": true, "05": true, "06": true, "07": true, "08": true,
},
"AE": { // United Arab Emirates
"AZ": true, "AJ": true, "FU": true, "SH": true, "DU": true, "RK": true, "UQ": true,
},
"AF": { // Afghanistan
"BDS": true,
"BDG": true,
"BGL": true,
"BAL": true,
"BAM": true,
"DAY": true,
"FRA": true,
"FYB": true,
"GHA": true,
"GHO": true,
"HEL": true,
"HER": true,
"JOW": true,
"KAB": true,
"KAN": true,
"KAP": true,
"KHO": true,
"KNR": true,
"KDZ": true,
"LAG": true,
"LOG": true,
"NAN": true,
"NIM": true,
"NUR": true,
"PKA": true,
"PIA": true,
"PAN": true,
"PAR": true,
"SAM": true,
"SAR": true,
"TAK": true,
"URU": true,
"WAR": true,
"ZAB": true,
},
"AG": { // Antigua and Barbuda
"03": true, "04": true, "05": true, "06": true, "07": true, "08": true, "10": true, "11": true,
},
"AI": {}, // Anguilla
"AL": { // Albania
"01": true, "09": true, "02": true, "03": true, "04": true, "05": true,
"06": true, "07": true, "08": true, "10": true, "11": true, "12": true,
},
"AM": { // Armenia
"ER": true,
"AG": true,
"AR": true,
"AV": true,
"GR": true,
"KT": true,
"LO": true,
"SH": true,
"SU": true,
"TV": true,
"VD": true,
},
"AO": { // Angola
"BGO": true,
"BGU": true,
"BIE": true,
"CAB": true,
"CNN": true,
"HUA": true,
"HUI": true,
"CCU": true,
"CNO": true,
"CUS": true,
"LUA": true,
"LNO": true,
"LSU": true,
"MAL": true,
"MOX": true,
"NAM": true,
"UIG": true,
"ZAI": true,
},
"AQ": {}, // Antarctica
"AR": { // Argentina
"C": true, "B": true, "K": true, "H": true, "U": true, "X": true, "W": true, "E": true,
"P": true, "Y": true, "L": true, "F": true, "M": true, "N": true, "Q": true, "R": true,
"A": true, "J": true, "D": true, "Z": true, "S": true, "G": true, "V": true, "T": true,
},
"AS": {}, // American Samoa
"AT": { // Austria
"1": true, "2": true, "3": true, "4": true, "5": true, "6": true, "7": true, "8": true, "9": true,
},
"AU": { // Australia
"NSW": true, "QLD": true, "SA": true, "TAS": true, "VIC": true, "WA": true, "ACT": true, "NT": true,
},
"AW": {}, // Aruba
"AX": {}, // Åland Islands
"AZ": { // Azerbaijan
"NX": true,
"BA": true,
"GA": true,
"LA": true,
"MI": true,
"NA": true,
"NV": true,
"SA": true,
"SR": true,
"SM": true,
"XA": true,
"YE": true,
"ABS": true,
"AGC": true,
"AGM": true,
"AGS": true,
"AGA": true,
"AGU": true,
"AST": true,
"BAB": true,
"BAL": true,
"BAR": true,
"BEY": true,
"BIL": true,
"CAB": true,
"CAL": true,
"CUL": true,
"DAS": true,
"FUZ": true,
"GAD": true,
"GOR": true,
"GOY": true,
"GYG": true,
"HAC": true,
"IMI": true,
"ISM": true,
"KAL": true,
"KAN": true,
"KUR": true,
"LAC": true,
"LAN": true,
"LER": true,
"MAS": true,
"NEF": true,
"OGU": true,
"ORD": true,
"QAB": true,
"QAX": true,
"QAZ": true,
"QOB": true,
"QBA": true,
"QBI": true,
"QUS": true,
"SAT": true,
"SAB": true,
"SBN": true,
"SAD": true,
"SAH": true,
"SAK": true,
"SAL": true,
"SMI": true,
"SKR": true,
"SMX": true,
"SAR": true,
"SIY": true,
"SUS": true,
"TAR": true,
"TOV": true,
"UCA": true,
"XAC": true,
"XIZ": true,
"XCI": true,
"XVD": true,
"YAR": true,
"YEV": true,
"ZAN": true,
"ZAQ": true,
"ZAR": true,
},
"BA": { // Bosnia and Herzegovina
"BIH": true,
"SRP": true,
"BRC": true,
},
"BB": { // Barbados
"01": true,
"02": true,
"03": true,
"04": true,
"05": true,
"06": true,
"07": true,
"08": true,
"09": true,
"10": true,
"11": true,
},
"BD": { // Bangladesh
"A": true, "B": true, "C": true, "D": true, "H": true, "E": true, "F": true, "G": true, "05": true,
"01": true, "02": true, "06": true, "07": true, "03": true, "04": true, "09": true, "45": true, "10": true, "12": true,
"11": true, "08": true, "13": true, "14": true, "15": true, "16": true, "19": true, "18": true, "17": true, "20": true,
"21": true, "22": true, "25": true, "23": true, "24": true, "29": true, "27": true, "26": true, "28": true, "30": true,
"31": true, "32": true, "36": true, "37": true, "33": true, "39": true, "38": true, "35": true, "34": true, "48": true,
"43": true, "40": true, "42": true, "44": true, "41": true, "46": true, "47": true, "49": true, "52": true, "51": true,
"50": true, "53": true, "54": true, "56": true, "55": true, "58": true, "62": true, "57": true, "59": true, "61": true,
"60": true, "63": true, "64": true,
},
"BE": { // Belgium
"BRU": true,
"VLG": true,
"WAL": true,
"VAN": true,
"WBR": true,
"WHT": true,
"WLG": true,
"VLI": true,
"WLX": true,
"WNA": true,
"VOV": true,
"VBR": true,
"VWV": true,
},
"BF": { // Burkina Faso
"01": true, "02": true, "03": true, "04": true, "05": true, "06": true, "07": true, "08": true, "09": true,
"10": true, "11": true, "12": true, "13": true,
"BAL": true,
"BAM": true,
"BAN": true,
"BAZ": true,
"BGR": true,
"BLG": true,
"BLK": true,
"COM": true,
"GAN": true,
"GNA": true,
"GOU": true,
"HOU": true,
"IOB": true,
"KAD": true,
"KEN": true,
"KMD": true,
"KMP": true,
"KOS": true,
"KOP": true,
"KOT": true,
"KOW": true,
"LER": true,
"LOR": true,
"MOU": true,
"NAO": true,
"NAM": true,
"NAY": true,
"NOU": true,
"OUB": true,
"OUD": true,
"PAS": true,
"PON": true,
"SNG": true,
"SMT": true,
"SEN": true,
"SIS": true,
"SOM": true,
"SOR": true,
"TAP": true,
"TUI": true,
"YAG": true,
"YAT": true,
"ZIR": true,
"ZON": true,
"ZOU": true,
},
"BG": { // Bulgaria
"01": true, "02": true, "08": true, "07": true, "26": true, "09": true, "10": true, "11": true, "12": true, "13": true,
"14": true, "15": true, "16": true, "17": true, "18": true, "27": true, "19": true, "20": true, "21": true, "23": true,
"22": true, "24": true, "25": true, "03": true, "04": true, "05": true, "06": true, "28": true,
},
"BH": { // Bahrain
"13": true, "14": true, "15": true, "17": true,
},
"BI": { // Burundi
"BB": true,
"BM": true,
"BL": true,
"BR": true,
"CA": true,
"CI": true,
"GI": true,
"KR": true,
"KY": true,
"KI": true,
"MA": true,
"MU": true,
"MY": true,
"MW": true,
"NG": true,
"RM": true,
"RT": true,
"RY": true,
},
"BJ": { // Benin
"AL": true,
"AK": true,
"AQ": true,
"BO": true,
"CO": true,
"KO": true,
"DO": true,
"LI": true,
"MO": true,
"OU": true,
"PL": true,
"ZO": true,
},
"BL": {}, // Saint Barthélemy
"BM": {}, // Bermuda
"BN": { // Brunei Darussalam
"BE": true,
"BM": true,
"TE": true,
"TU": true,
},
"BO": { // Bolivia (Plurinational State of)
"C": true, "H": true, "B": true, "L": true, "O": true, "N": true, "P": true, "S": true, "T": true,
},
"BQ": { // Bonaire, Sint Eustatius and Saba
"BO": true, "SA": true, "SE": true,
},
"BR": { // Brazil
"AC": true,
"AL": true,
"AP": true,
"AM": true,
"BA": true,
"CE": true,
"DF": true,
"ES": true,
"GO": true,
"MA": true,
"MT": true,
"MS": true,
"MG": true,
"PA": true,
"PB": true,
"PR": true,
"PE": true,
"PI": true,
"RJ": true,
"RN": true,
"RS": true,
"RO": true,
"RR": true,
"SC": true,
"SP": true,
"SE": true,
"TO": true,
},
"BS": { // Bahamas
"AK": true,
"BY": true,
"BI": true,
"BP": true,
"CI": true,
"CO": true,
"CS": true,
"CE": true,
"FP": true,
"CK": true,
"EG": true,
"EX": true,
"GC": true,
"HI": true,
"HT": true,