Skip to content

Instantly share code, notes, and snippets.

@ksafranski
Last active November 23, 2024 03:12
Show Gist options
  • Save ksafranski/2973986 to your computer and use it in GitHub Desktop.
Save ksafranski/2973986 to your computer and use it in GitHub Desktop.
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
"CAD": {
"symbol": "CA$",
"name": "Canadian Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "CAD",
"name_plural": "Canadian dollars"
},
"EUR": {
"symbol": "",
"name": "Euro",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "EUR",
"name_plural": "euros"
},
"AED": {
"symbol": "AED",
"name": "United Arab Emirates Dirham",
"symbol_native": "د.إ.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "AED",
"name_plural": "UAE dirhams"
},
"AFN": {
"symbol": "Af",
"name": "Afghan Afghani",
"symbol_native": "؋",
"decimal_digits": 0,
"rounding": 0,
"code": "AFN",
"name_plural": "Afghan Afghanis"
},
"ALL": {
"symbol": "ALL",
"name": "Albanian Lek",
"symbol_native": "Lek",
"decimal_digits": 0,
"rounding": 0,
"code": "ALL",
"name_plural": "Albanian lekë"
},
"AMD": {
"symbol": "AMD",
"name": "Armenian Dram",
"symbol_native": "դր.",
"decimal_digits": 0,
"rounding": 0,
"code": "AMD",
"name_plural": "Armenian drams"
},
"ARS": {
"symbol": "AR$",
"name": "Argentine Peso",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "ARS",
"name_plural": "Argentine pesos"
},
"AUD": {
"symbol": "AU$",
"name": "Australian Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "AUD",
"name_plural": "Australian dollars"
},
"AZN": {
"symbol": "man.",
"name": "Azerbaijani Manat",
"symbol_native": "ман.",
"decimal_digits": 2,
"rounding": 0,
"code": "AZN",
"name_plural": "Azerbaijani manats"
},
"BAM": {
"symbol": "KM",
"name": "Bosnia-Herzegovina Convertible Mark",
"symbol_native": "KM",
"decimal_digits": 2,
"rounding": 0,
"code": "BAM",
"name_plural": "Bosnia-Herzegovina convertible marks"
},
"BDT": {
"symbol": "Tk",
"name": "Bangladeshi Taka",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "BDT",
"name_plural": "Bangladeshi takas"
},
"BGN": {
"symbol": "BGN",
"name": "Bulgarian Lev",
"symbol_native": "лв.",
"decimal_digits": 2,
"rounding": 0,
"code": "BGN",
"name_plural": "Bulgarian leva"
},
"BHD": {
"symbol": "BD",
"name": "Bahraini Dinar",
"symbol_native": "د.ب.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "BHD",
"name_plural": "Bahraini dinars"
},
"BIF": {
"symbol": "FBu",
"name": "Burundian Franc",
"symbol_native": "FBu",
"decimal_digits": 0,
"rounding": 0,
"code": "BIF",
"name_plural": "Burundian francs"
},
"BND": {
"symbol": "BN$",
"name": "Brunei Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "BND",
"name_plural": "Brunei dollars"
},
"BOB": {
"symbol": "Bs",
"name": "Bolivian Boliviano",
"symbol_native": "Bs",
"decimal_digits": 2,
"rounding": 0,
"code": "BOB",
"name_plural": "Bolivian bolivianos"
},
"BRL": {
"symbol": "R$",
"name": "Brazilian Real",
"symbol_native": "R$",
"decimal_digits": 2,
"rounding": 0,
"code": "BRL",
"name_plural": "Brazilian reals"
},
"BWP": {
"symbol": "BWP",
"name": "Botswanan Pula",
"symbol_native": "P",
"decimal_digits": 2,
"rounding": 0,
"code": "BWP",
"name_plural": "Botswanan pulas"
},
"BYN": {
"symbol": "Br",
"name": "Belarusian Ruble",
"symbol_native": "руб.",
"decimal_digits": 2,
"rounding": 0,
"code": "BYN",
"name_plural": "Belarusian rubles"
},
"BZD": {
"symbol": "BZ$",
"name": "Belize Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "BZD",
"name_plural": "Belize dollars"
},
"CDF": {
"symbol": "CDF",
"name": "Congolese Franc",
"symbol_native": "FrCD",
"decimal_digits": 2,
"rounding": 0,
"code": "CDF",
"name_plural": "Congolese francs"
},
"CHF": {
"symbol": "CHF",
"name": "Swiss Franc",
"symbol_native": "CHF",
"decimal_digits": 2,
"rounding": 0.05,
"code": "CHF",
"name_plural": "Swiss francs"
},
"CLP": {
"symbol": "CL$",
"name": "Chilean Peso",
"symbol_native": "$",
"decimal_digits": 0,
"rounding": 0,
"code": "CLP",
"name_plural": "Chilean pesos"
},
"CNY": {
"symbol": "CN¥",
"name": "Chinese Yuan",
"symbol_native": "CN¥",
"decimal_digits": 2,
"rounding": 0,
"code": "CNY",
"name_plural": "Chinese yuan"
},
"COP": {
"symbol": "CO$",
"name": "Colombian Peso",
"symbol_native": "$",
"decimal_digits": 0,
"rounding": 0,
"code": "COP",
"name_plural": "Colombian pesos"
},
"CRC": {
"symbol": "",
"name": "Costa Rican Colón",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "CRC",
"name_plural": "Costa Rican colóns"
},
"CVE": {
"symbol": "CV$",
"name": "Cape Verdean Escudo",
"symbol_native": "CV$",
"decimal_digits": 2,
"rounding": 0,
"code": "CVE",
"name_plural": "Cape Verdean escudos"
},
"CZK": {
"symbol": "",
"name": "Czech Republic Koruna",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "CZK",
"name_plural": "Czech Republic korunas"
},
"DJF": {
"symbol": "Fdj",
"name": "Djiboutian Franc",
"symbol_native": "Fdj",
"decimal_digits": 0,
"rounding": 0,
"code": "DJF",
"name_plural": "Djiboutian francs"
},
"DKK": {
"symbol": "Dkr",
"name": "Danish Krone",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "DKK",
"name_plural": "Danish kroner"
},
"DOP": {
"symbol": "RD$",
"name": "Dominican Peso",
"symbol_native": "RD$",
"decimal_digits": 2,
"rounding": 0,
"code": "DOP",
"name_plural": "Dominican pesos"
},
"DZD": {
"symbol": "DA",
"name": "Algerian Dinar",
"symbol_native": "د.ج.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "DZD",
"name_plural": "Algerian dinars"
},
"EEK": {
"symbol": "Ekr",
"name": "Estonian Kroon",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "EEK",
"name_plural": "Estonian kroons"
},
"EGP": {
"symbol": "EGP",
"name": "Egyptian Pound",
"symbol_native": "ج.م.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "EGP",
"name_plural": "Egyptian pounds"
},
"ERN": {
"symbol": "Nfk",
"name": "Eritrean Nakfa",
"symbol_native": "Nfk",
"decimal_digits": 2,
"rounding": 0,
"code": "ERN",
"name_plural": "Eritrean nakfas"
},
"ETB": {
"symbol": "Br",
"name": "Ethiopian Birr",
"symbol_native": "Br",
"decimal_digits": 2,
"rounding": 0,
"code": "ETB",
"name_plural": "Ethiopian birrs"
},
"GBP": {
"symbol": "£",
"name": "British Pound Sterling",
"symbol_native": "£",
"decimal_digits": 2,
"rounding": 0,
"code": "GBP",
"name_plural": "British pounds sterling"
},
"GEL": {
"symbol": "GEL",
"name": "Georgian Lari",
"symbol_native": "GEL",
"decimal_digits": 2,
"rounding": 0,
"code": "GEL",
"name_plural": "Georgian laris"
},
"GHS": {
"symbol": "GH₵",
"name": "Ghanaian Cedi",
"symbol_native": "GH₵",
"decimal_digits": 2,
"rounding": 0,
"code": "GHS",
"name_plural": "Ghanaian cedis"
},
"GNF": {
"symbol": "FG",
"name": "Guinean Franc",
"symbol_native": "FG",
"decimal_digits": 0,
"rounding": 0,
"code": "GNF",
"name_plural": "Guinean francs"
},
"GTQ": {
"symbol": "GTQ",
"name": "Guatemalan Quetzal",
"symbol_native": "Q",
"decimal_digits": 2,
"rounding": 0,
"code": "GTQ",
"name_plural": "Guatemalan quetzals"
},
"HKD": {
"symbol": "HK$",
"name": "Hong Kong Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "HKD",
"name_plural": "Hong Kong dollars"
},
"HNL": {
"symbol": "HNL",
"name": "Honduran Lempira",
"symbol_native": "L",
"decimal_digits": 2,
"rounding": 0,
"code": "HNL",
"name_plural": "Honduran lempiras"
},
"HRK": {
"symbol": "kn",
"name": "Croatian Kuna",
"symbol_native": "kn",
"decimal_digits": 2,
"rounding": 0,
"code": "HRK",
"name_plural": "Croatian kunas"
},
"HUF": {
"symbol": "Ft",
"name": "Hungarian Forint",
"symbol_native": "Ft",
"decimal_digits": 0,
"rounding": 0,
"code": "HUF",
"name_plural": "Hungarian forints"
},
"IDR": {
"symbol": "Rp",
"name": "Indonesian Rupiah",
"symbol_native": "Rp",
"decimal_digits": 0,
"rounding": 0,
"code": "IDR",
"name_plural": "Indonesian rupiahs"
},
"ILS": {
"symbol": "",
"name": "Israeli New Sheqel",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "ILS",
"name_plural": "Israeli new sheqels"
},
"INR": {
"symbol": "Rs",
"name": "Indian Rupee",
"symbol_native": "টকা",
"decimal_digits": 2,
"rounding": 0,
"code": "INR",
"name_plural": "Indian rupees"
},
"IQD": {
"symbol": "IQD",
"name": "Iraqi Dinar",
"symbol_native": "د.ع.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "IQD",
"name_plural": "Iraqi dinars"
},
"IRR": {
"symbol": "IRR",
"name": "Iranian Rial",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "IRR",
"name_plural": "Iranian rials"
},
"ISK": {
"symbol": "Ikr",
"name": "Icelandic Króna",
"symbol_native": "kr",
"decimal_digits": 0,
"rounding": 0,
"code": "ISK",
"name_plural": "Icelandic krónur"
},
"JMD": {
"symbol": "J$",
"name": "Jamaican Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "JMD",
"name_plural": "Jamaican dollars"
},
"JOD": {
"symbol": "JD",
"name": "Jordanian Dinar",
"symbol_native": "د.أ.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "JOD",
"name_plural": "Jordanian dinars"
},
"JPY": {
"symbol": "¥",
"name": "Japanese Yen",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "JPY",
"name_plural": "Japanese yen"
},
"KES": {
"symbol": "Ksh",
"name": "Kenyan Shilling",
"symbol_native": "Ksh",
"decimal_digits": 2,
"rounding": 0,
"code": "KES",
"name_plural": "Kenyan shillings"
},
"KHR": {
"symbol": "KHR",
"name": "Cambodian Riel",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "KHR",
"name_plural": "Cambodian riels"
},
"KMF": {
"symbol": "CF",
"name": "Comorian Franc",
"symbol_native": "FC",
"decimal_digits": 0,
"rounding": 0,
"code": "KMF",
"name_plural": "Comorian francs"
},
"KRW": {
"symbol": "",
"name": "South Korean Won",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "KRW",
"name_plural": "South Korean won"
},
"KWD": {
"symbol": "KD",
"name": "Kuwaiti Dinar",
"symbol_native": "د.ك.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "KWD",
"name_plural": "Kuwaiti dinars"
},
"KZT": {
"symbol": "KZT",
"name": "Kazakhstani Tenge",
"symbol_native": "тңг.",
"decimal_digits": 2,
"rounding": 0,
"code": "KZT",
"name_plural": "Kazakhstani tenges"
},
"LBP": {
"symbol": "L.L.",
"name": "Lebanese Pound",
"symbol_native": "ل.ل.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "LBP",
"name_plural": "Lebanese pounds"
},
"LKR": {
"symbol": "SLRs",
"name": "Sri Lankan Rupee",
"symbol_native": "SL Re",
"decimal_digits": 2,
"rounding": 0,
"code": "LKR",
"name_plural": "Sri Lankan rupees"
},
"LTL": {
"symbol": "Lt",
"name": "Lithuanian Litas",
"symbol_native": "Lt",
"decimal_digits": 2,
"rounding": 0,
"code": "LTL",
"name_plural": "Lithuanian litai"
},
"LVL": {
"symbol": "Ls",
"name": "Latvian Lats",
"symbol_native": "Ls",
"decimal_digits": 2,
"rounding": 0,
"code": "LVL",
"name_plural": "Latvian lati"
},
"LYD": {
"symbol": "LD",
"name": "Libyan Dinar",
"symbol_native": "د.ل.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "LYD",
"name_plural": "Libyan dinars"
},
"MAD": {
"symbol": "MAD",
"name": "Moroccan Dirham",
"symbol_native": "د.م.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "MAD",
"name_plural": "Moroccan dirhams"
},
"MDL": {
"symbol": "MDL",
"name": "Moldovan Leu",
"symbol_native": "MDL",
"decimal_digits": 2,
"rounding": 0,
"code": "MDL",
"name_plural": "Moldovan lei"
},
"MGA": {
"symbol": "MGA",
"name": "Malagasy Ariary",
"symbol_native": "MGA",
"decimal_digits": 0,
"rounding": 0,
"code": "MGA",
"name_plural": "Malagasy Ariaries"
},
"MKD": {
"symbol": "MKD",
"name": "Macedonian Denar",
"symbol_native": "MKD",
"decimal_digits": 2,
"rounding": 0,
"code": "MKD",
"name_plural": "Macedonian denari"
},
"MMK": {
"symbol": "MMK",
"name": "Myanma Kyat",
"symbol_native": "K",
"decimal_digits": 0,
"rounding": 0,
"code": "MMK",
"name_plural": "Myanma kyats"
},
"MOP": {
"symbol": "MOP$",
"name": "Macanese Pataca",
"symbol_native": "MOP$",
"decimal_digits": 2,
"rounding": 0,
"code": "MOP",
"name_plural": "Macanese patacas"
},
"MUR": {
"symbol": "MURs",
"name": "Mauritian Rupee",
"symbol_native": "MURs",
"decimal_digits": 0,
"rounding": 0,
"code": "MUR",
"name_plural": "Mauritian rupees"
},
"MXN": {
"symbol": "MX$",
"name": "Mexican Peso",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "MXN",
"name_plural": "Mexican pesos"
},
"MYR": {
"symbol": "RM",
"name": "Malaysian Ringgit",
"symbol_native": "RM",
"decimal_digits": 2,
"rounding": 0,
"code": "MYR",
"name_plural": "Malaysian ringgits"
},
"MZN": {
"symbol": "MTn",
"name": "Mozambican Metical",
"symbol_native": "MTn",
"decimal_digits": 2,
"rounding": 0,
"code": "MZN",
"name_plural": "Mozambican meticals"
},
"NAD": {
"symbol": "N$",
"name": "Namibian Dollar",
"symbol_native": "N$",
"decimal_digits": 2,
"rounding": 0,
"code": "NAD",
"name_plural": "Namibian dollars"
},
"NGN": {
"symbol": "",
"name": "Nigerian Naira",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "NGN",
"name_plural": "Nigerian nairas"
},
"NIO": {
"symbol": "C$",
"name": "Nicaraguan Córdoba",
"symbol_native": "C$",
"decimal_digits": 2,
"rounding": 0,
"code": "NIO",
"name_plural": "Nicaraguan córdobas"
},
"NOK": {
"symbol": "Nkr",
"name": "Norwegian Krone",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "NOK",
"name_plural": "Norwegian kroner"
},
"NPR": {
"symbol": "NPRs",
"name": "Nepalese Rupee",
"symbol_native": "नेरू",
"decimal_digits": 2,
"rounding": 0,
"code": "NPR",
"name_plural": "Nepalese rupees"
},
"NZD": {
"symbol": "NZ$",
"name": "New Zealand Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "NZD",
"name_plural": "New Zealand dollars"
},
"OMR": {
"symbol": "OMR",
"name": "Omani Rial",
"symbol_native": "ر.ع.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "OMR",
"name_plural": "Omani rials"
},
"PAB": {
"symbol": "B/.",
"name": "Panamanian Balboa",
"symbol_native": "B/.",
"decimal_digits": 2,
"rounding": 0,
"code": "PAB",
"name_plural": "Panamanian balboas"
},
"PEN": {
"symbol": "S/.",
"name": "Peruvian Nuevo Sol",
"symbol_native": "S/.",
"decimal_digits": 2,
"rounding": 0,
"code": "PEN",
"name_plural": "Peruvian nuevos soles"
},
"PHP": {
"symbol": "",
"name": "Philippine Peso",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "PHP",
"name_plural": "Philippine pesos"
},
"PKR": {
"symbol": "PKRs",
"name": "Pakistani Rupee",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "PKR",
"name_plural": "Pakistani rupees"
},
"PLN": {
"symbol": "",
"name": "Polish Zloty",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "PLN",
"name_plural": "Polish zlotys"
},
"PYG": {
"symbol": "",
"name": "Paraguayan Guarani",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "PYG",
"name_plural": "Paraguayan guaranis"
},
"QAR": {
"symbol": "QR",
"name": "Qatari Rial",
"symbol_native": "ر.ق.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "QAR",
"name_plural": "Qatari rials"
},
"RON": {
"symbol": "RON",
"name": "Romanian Leu",
"symbol_native": "RON",
"decimal_digits": 2,
"rounding": 0,
"code": "RON",
"name_plural": "Romanian lei"
},
"RSD": {
"symbol": "din.",
"name": "Serbian Dinar",
"symbol_native": "дин.",
"decimal_digits": 0,
"rounding": 0,
"code": "RSD",
"name_plural": "Serbian dinars"
},
"RUB": {
"symbol": "RUB",
"name": "Russian Ruble",
"symbol_native": "₽.",
"decimal_digits": 2,
"rounding": 0,
"code": "RUB",
"name_plural": "Russian rubles"
},
"RWF": {
"symbol": "RWF",
"name": "Rwandan Franc",
"symbol_native": "FR",
"decimal_digits": 0,
"rounding": 0,
"code": "RWF",
"name_plural": "Rwandan francs"
},
"SAR": {
"symbol": "SR",
"name": "Saudi Riyal",
"symbol_native": "ر.س.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "SAR",
"name_plural": "Saudi riyals"
},
"SDG": {
"symbol": "SDG",
"name": "Sudanese Pound",
"symbol_native": "SDG",
"decimal_digits": 2,
"rounding": 0,
"code": "SDG",
"name_plural": "Sudanese pounds"
},
"SEK": {
"symbol": "Skr",
"name": "Swedish Krona",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "SEK",
"name_plural": "Swedish kronor"
},
"SGD": {
"symbol": "S$",
"name": "Singapore Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "SGD",
"name_plural": "Singapore dollars"
},
"SOS": {
"symbol": "Ssh",
"name": "Somali Shilling",
"symbol_native": "Ssh",
"decimal_digits": 0,
"rounding": 0,
"code": "SOS",
"name_plural": "Somali shillings"
},
"SYP": {
"symbol": "SY£",
"name": "Syrian Pound",
"symbol_native": "ل.س.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "SYP",
"name_plural": "Syrian pounds"
},
"THB": {
"symbol": "฿",
"name": "Thai Baht",
"symbol_native": "฿",
"decimal_digits": 2,
"rounding": 0,
"code": "THB",
"name_plural": "Thai baht"
},
"TND": {
"symbol": "DT",
"name": "Tunisian Dinar",
"symbol_native": "د.ت.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "TND",
"name_plural": "Tunisian dinars"
},
"TOP": {
"symbol": "T$",
"name": "Tongan Paʻanga",
"symbol_native": "T$",
"decimal_digits": 2,
"rounding": 0,
"code": "TOP",
"name_plural": "Tongan paʻanga"
},
"TRY": {
"symbol": "TL",
"name": "Turkish Lira",
"symbol_native": "TL",
"decimal_digits": 2,
"rounding": 0,
"code": "TRY",
"name_plural": "Turkish Lira"
},
"TTD": {
"symbol": "TT$",
"name": "Trinidad and Tobago Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "TTD",
"name_plural": "Trinidad and Tobago dollars"
},
"TWD": {
"symbol": "NT$",
"name": "New Taiwan Dollar",
"symbol_native": "NT$",
"decimal_digits": 2,
"rounding": 0,
"code": "TWD",
"name_plural": "New Taiwan dollars"
},
"TZS": {
"symbol": "TSh",
"name": "Tanzanian Shilling",
"symbol_native": "TSh",
"decimal_digits": 0,
"rounding": 0,
"code": "TZS",
"name_plural": "Tanzanian shillings"
},
"UAH": {
"symbol": "",
"name": "Ukrainian Hryvnia",
"symbol_native": "",
"decimal_digits": 2,
"rounding": 0,
"code": "UAH",
"name_plural": "Ukrainian hryvnias"
},
"UGX": {
"symbol": "USh",
"name": "Ugandan Shilling",
"symbol_native": "USh",
"decimal_digits": 0,
"rounding": 0,
"code": "UGX",
"name_plural": "Ugandan shillings"
},
"UYU": {
"symbol": "$U",
"name": "Uruguayan Peso",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "UYU",
"name_plural": "Uruguayan pesos"
},
"UZS": {
"symbol": "UZS",
"name": "Uzbekistan Som",
"symbol_native": "UZS",
"decimal_digits": 0,
"rounding": 0,
"code": "UZS",
"name_plural": "Uzbekistan som"
},
"VEF": {
"symbol": "Bs.F.",
"name": "Venezuelan Bolívar",
"symbol_native": "Bs.F.",
"decimal_digits": 2,
"rounding": 0,
"code": "VEF",
"name_plural": "Venezuelan bolívars"
},
"VND": {
"symbol": "",
"name": "Vietnamese Dong",
"symbol_native": "",
"decimal_digits": 0,
"rounding": 0,
"code": "VND",
"name_plural": "Vietnamese dong"
},
"XAF": {
"symbol": "FCFA",
"name": "CFA Franc BEAC",
"symbol_native": "FCFA",
"decimal_digits": 0,
"rounding": 0,
"code": "XAF",
"name_plural": "CFA francs BEAC"
},
"XOF": {
"symbol": "CFA",
"name": "CFA Franc BCEAO",
"symbol_native": "CFA",
"decimal_digits": 0,
"rounding": 0,
"code": "XOF",
"name_plural": "CFA francs BCEAO"
},
"YER": {
"symbol": "YR",
"name": "Yemeni Rial",
"symbol_native": "ر.ي.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "YER",
"name_plural": "Yemeni rials"
},
"ZAR": {
"symbol": "R",
"name": "South African Rand",
"symbol_native": "R",
"decimal_digits": 2,
"rounding": 0,
"code": "ZAR",
"name_plural": "South African rand"
},
"ZMK": {
"symbol": "ZK",
"name": "Zambian Kwacha",
"symbol_native": "ZK",
"decimal_digits": 0,
"rounding": 0,
"code": "ZMK",
"name_plural": "Zambian kwachas"
},
"ZWL": {
"symbol": "ZWL$",
"name": "Zimbabwean Dollar",
"symbol_native": "ZWL$",
"decimal_digits": 0,
"rounding": 0,
"code": "ZWL",
"name_plural": "Zimbabwean Dollar"
}
}
@fdq09eca
Copy link

fdq09eca commented Oct 4, 2020

@gotexis as referenced in wiki there are CNH and CNT for offshore trading involving Hong Kong and Taiwan respectively, however, these are less common than RBM and NTD which are frequently used in the listed company annual report.

@TBG-FR
Copy link

TBG-FR commented Jan 6, 2021

Awesome "dataset" and very exhaustive !

@imrealashu
Copy link

Please update the Indian data to be like this.

"INR": {
		"symbol": "₹",
		"name": "Indian Rupee",
		"symbol_native": "रुपया",
		"decimal_digits": 2,
		"rounding": 0,
		"code": "INR",
		"name_plural": "Indian rupees"
	},

Thanks!

@multiwebinc
Copy link

CRC plural is called Costa Rican colones

@regevbr
Copy link

regevbr commented Mar 15, 2021

If you are looking for a library to properly parse price strings and handle different currencies, decimal separators, and digits grouping marks, you can use the battle-tested price-extractor

@Yerlan
Copy link

Yerlan commented Mar 28, 2021

Hello, for KZT incorrect symbol_native is used. This should be an officially accepted Unicode 5.2.0 symbol instead.

Cheers :)

@DerienTech
Copy link

Code:- USD
Symbol:-$
Name:-United States Dollar
not availabel USD json data please add "USD"

@multiwebinc
Copy link

@DerienTech USD is literally the first one on the list.

@MohamadObeid
Copy link

Lebanese pounds (LBP) symbol is: 'L.L.'

@ksafranski
Copy link
Author

@MohamadObeid Updated

@multiwebinc
Copy link

@Fluidbyte Why not apply all of the other updates that people are commenting here too instead of just the last comment?

@jrolopez20
Copy link

jrolopez20 commented Jun 21, 2021

Hi @Fluidbyte The cuban peso should be there.

"CUP": {
	"symbol": "$",
	"name": "Cuban Peso",
	"symbol_native": "$",
	"decimal_digits": 2,
	"rounding": 0,
	"code": "CUP",
	"name_plural": "Cuban pesos"
}

@Deparagon
Copy link

Deparagon commented Jul 12, 2021

Array version also added the numeric iso code from https://datahub.io/core/currency-codes
`array( 0 => array ( 'symbol' => '$', 'name' => 'US Dollar', 'code' => 'USD', 'numeric_code' => '840', 'name_plural' => 'US dollars', 'symbol_native' => '$', ),

1 => array ( 'symbol' => 'CA$', 'name' => 'Canadian Dollar', 'code' => 'CAD', 'numeric_code' => '124', 'name_plural' => 'Canadian dollars', 'symbol_native' => '$', ),

2 => array ( 'symbol' => '€', 'name' => 'Euro', 'code' => 'EUR', 'numeric_code' => '978', 'name_plural' => 'euros', 'symbol_native' => '€', ),

3 => array ( 'symbol' => 'AED', 'name' => 'United Arab Emirates Dirham', 'code' => 'AED', 'numeric_code' => '784', 'name_plural' => 'UAE dirhams', 'symbol_native' => 'د.إ.‏', ),

4 => array ( 'symbol' => 'Af', 'name' => 'Afghan Afghani', 'code' => 'AFN', 'numeric_code' => '971', 'name_plural' => 'Afghan Afghanis', 'symbol_native' => '؋', ),

5 => array ( 'symbol' => 'ALL', 'name' => 'Albanian Lek', 'code' => 'ALL', 'numeric_code' => '8', 'name_plural' => 'Albanian lekë', 'symbol_native' => 'Lek', ),

6 => array ( 'symbol' => 'AMD', 'name' => 'Armenian Dram', 'code' => 'AMD', 'numeric_code' => '51', 'name_plural' => 'Armenian drams', 'symbol_native' => 'դր.', ),

7 => array ( 'symbol' => 'AR$', 'name' => 'Argentine Peso', 'code' => 'ARS', 'numeric_code' => '32', 'name_plural' => 'Argentine pesos', 'symbol_native' => '$', ),

8 => array ( 'symbol' => 'AU$', 'name' => 'Australian Dollar', 'code' => 'AUD', 'numeric_code' => '36', 'name_plural' => 'Australian dollars', 'symbol_native' => '$', ),

9 => array ( 'symbol' => 'man.', 'name' => 'Azerbaijani Manat', 'code' => 'AZN', 'numeric_code' => '944', 'name_plural' => 'Azerbaijani manats', 'symbol_native' => 'ман.', ),

10 => array ( 'symbol' => 'KM', 'name' => 'Bosnia-Herzegovina Convertible Mark', 'code' => 'BAM', 'numeric_code' => '977', 'name_plural' => 'Bosnia-Herzegovina convertible marks', 'symbol_native' => 'KM', ),

11 => array ( 'symbol' => 'Tk', 'name' => 'Bangladeshi Taka', 'code' => 'BDT', 'numeric_code' => '50', 'name_plural' => 'Bangladeshi takas', 'symbol_native' => '৳', ),

12 => array ( 'symbol' => 'BGN', 'name' => 'Bulgarian Lev', 'code' => 'BGN', 'numeric_code' => '975', 'name_plural' => 'Bulgarian leva', 'symbol_native' => 'лв.', ),

13 => array ( 'symbol' => 'BD', 'name' => 'Bahraini Dinar', 'code' => 'BHD', 'numeric_code' => '48', 'name_plural' => 'Bahraini dinars', 'symbol_native' => 'د.ب.‏', ),

14 => array ( 'symbol' => 'FBu', 'name' => 'Burundian Franc', 'code' => 'BIF', 'numeric_code' => '108', 'name_plural' => 'Burundian francs', 'symbol_native' => 'FBu', ),

15 => array ( 'symbol' => 'BN$', 'name' => 'Brunei Dollar', 'code' => 'BND', 'numeric_code' => '96', 'name_plural' => 'Brunei dollars', 'symbol_native' => '$', ),

16 => array ( 'symbol' => 'Bs', 'name' => 'Bolivian Boliviano', 'code' => 'BOB', 'numeric_code' => '68', 'name_plural' => 'Bolivian bolivianos', 'symbol_native' => 'Bs', ),

17 => array ( 'symbol' => 'R$', 'name' => 'Brazilian Real', 'code' => 'BRL', 'numeric_code' => '986', 'name_plural' => 'Brazilian reals', 'symbol_native' => 'R$', ),

18 => array ( 'symbol' => 'BWP', 'name' => 'Botswanan Pula', 'code' => 'BWP', 'numeric_code' => '72', 'name_plural' => 'Botswanan pulas', 'symbol_native' => 'P', ),

19 => array ( 'symbol' => 'Br', 'name' => 'Belarusian Ruble', 'code' => 'BYN', 'numeric_code' => '933', 'name_plural' => 'Belarusian rubles', 'symbol_native' => 'руб.', ),

20 => array ( 'symbol' => 'BZ$', 'name' => 'Belize Dollar', 'code' => 'BZD', 'numeric_code' => '84', 'name_plural' => 'Belize dollars', 'symbol_native' => '$', ),

21 => array ( 'symbol' => 'CDF', 'name' => 'Congolese Franc', 'code' => 'CDF', 'numeric_code' => '976', 'name_plural' => 'Congolese francs', 'symbol_native' => 'FrCD', ),

22 => array ( 'symbol' => 'CHF', 'name' => 'Swiss Franc', 'code' => 'CHF', 'numeric_code' => '756', 'name_plural' => 'Swiss francs', 'symbol_native' => 'CHF', ),

23 => array ( 'symbol' => 'CL$', 'name' => 'Chilean Peso', 'code' => 'CLP', 'numeric_code' => '152', 'name_plural' => 'Chilean pesos', 'symbol_native' => '$', ),

24 => array ( 'symbol' => 'CN¥', 'name' => 'Chinese Yuan', 'code' => 'CNY', 'numeric_code' => '156', 'name_plural' => 'Chinese yuan', 'symbol_native' => 'CN¥', ),

25 => array ( 'symbol' => 'CO$', 'name' => 'Colombian Peso', 'code' => 'COP', 'numeric_code' => '170', 'name_plural' => 'Colombian pesos', 'symbol_native' => '$', ),

26 => array ( 'symbol' => '₡', 'name' => 'Costa Rican Colón', 'code' => 'CRC', 'numeric_code' => '188', 'name_plural' => 'Costa Rican colóns', 'symbol_native' => '₡', ),

27 => array ( 'symbol' => 'CV$', 'name' => 'Cape Verdean Escudo', 'code' => 'CVE', 'numeric_code' => '132', 'name_plural' => 'Cape Verdean escudos', 'symbol_native' => 'CV$', ),

28 => array ( 'symbol' => 'Kč', 'name' => 'Czech Republic Koruna', 'code' => 'CZK', 'numeric_code' => '203', 'name_plural' => 'Czech Republic korunas', 'symbol_native' => 'Kč', ),

29 => array ( 'symbol' => 'Fdj', 'name' => 'Djiboutian Franc', 'code' => 'DJF', 'numeric_code' => '262', 'name_plural' => 'Djiboutian francs', 'symbol_native' => 'Fdj', ),

30 => array ( 'symbol' => 'Dkr', 'name' => 'Danish Krone', 'code' => 'DKK', 'numeric_code' => '208', 'name_plural' => 'Danish kroner', 'symbol_native' => 'kr', ),

31 => array ( 'symbol' => 'RD$', 'name' => 'Dominican Peso', 'code' => 'DOP', 'numeric_code' => '214', 'name_plural' => 'Dominican pesos', 'symbol_native' => 'RD$', ),

32 => array ( 'symbol' => 'DA', 'name' => 'Algerian Dinar', 'code' => 'DZD', 'numeric_code' => '12', 'name_plural' => 'Algerian dinars', 'symbol_native' => 'د.ج.‏', ),

33 => array ( 'symbol' => 'Ekr', 'name' => 'Estonian Kroon', 'code' => 'EEK', 'numeric_code' => '233', 'name_plural' => 'Estonian kroons', 'symbol_native' => 'kr', ),

34 => array ( 'symbol' => 'EGP', 'name' => 'Egyptian Pound', 'code' => 'EGP', 'numeric_code' => '818', 'name_plural' => 'Egyptian pounds', 'symbol_native' => 'ج.م.‏', ),

35 => array ( 'symbol' => 'Nfk', 'name' => 'Eritrean Nakfa', 'code' => 'ERN', 'numeric_code' => '232', 'name_plural' => 'Eritrean nakfas', 'symbol_native' => 'Nfk', ),

36 => array ( 'symbol' => 'Br', 'name' => 'Ethiopian Birr', 'code' => 'ETB', 'numeric_code' => '230', 'name_plural' => 'Ethiopian birrs', 'symbol_native' => 'Br', ),

37 => array ( 'symbol' => '£', 'name' => 'British Pound Sterling', 'code' => 'GBP', 'numeric_code' => '826', 'name_plural' => 'British pounds sterling', 'symbol_native' => '£', ),

38 => array ( 'symbol' => 'GEL', 'name' => 'Georgian Lari', 'code' => 'GEL', 'numeric_code' => '981', 'name_plural' => 'Georgian laris', 'symbol_native' => 'GEL', ),

39 => array ( 'symbol' => 'GH₵', 'name' => 'Ghanaian Cedi', 'code' => 'GHS', 'numeric_code' => '936', 'name_plural' => 'Ghanaian cedis', 'symbol_native' => 'GH₵', ),

40 => array ( 'symbol' => 'FG', 'name' => 'Guinean Franc', 'code' => 'GNF', 'numeric_code' => '324', 'name_plural' => 'Guinean francs', 'symbol_native' => 'FG', ),

41 => array ( 'symbol' => 'GTQ', 'name' => 'Guatemalan Quetzal', 'code' => 'GTQ', 'numeric_code' => '320', 'name_plural' => 'Guatemalan quetzals', 'symbol_native' => 'Q', ),

42 => array ( 'symbol' => 'HK$', 'name' => 'Hong Kong Dollar', 'code' => 'HKD', 'numeric_code' => '344', 'name_plural' => 'Hong Kong dollars', 'symbol_native' => '$', ),

43 => array ( 'symbol' => 'HNL', 'name' => 'Honduran Lempira', 'code' => 'HNL', 'numeric_code' => '340', 'name_plural' => 'Honduran lempiras', 'symbol_native' => 'L', ),

44 => array ( 'symbol' => 'kn', 'name' => 'Croatian Kuna', 'code' => 'HRK', 'numeric_code' => '191', 'name_plural' => 'Croatian kunas', 'symbol_native' => 'kn', ),

45 => array ( 'symbol' => 'Ft', 'name' => 'Hungarian Forint', 'code' => 'HUF', 'numeric_code' => '348', 'name_plural' => 'Hungarian forints', 'symbol_native' => 'Ft', ),

46 => array ( 'symbol' => 'Rp', 'name' => 'Indonesian Rupiah', 'code' => 'IDR', 'numeric_code' => '360', 'name_plural' => 'Indonesian rupiahs', 'symbol_native' => 'Rp', ),

47 => array ( 'symbol' => '₪', 'name' => 'Israeli New Sheqel', 'code' => 'ILS', 'numeric_code' => '376', 'name_plural' => 'Israeli new sheqels', 'symbol_native' => '₪', ),

48 => array ( 'symbol' => 'Rs', 'name' => 'Indian Rupee', 'code' => 'INR', 'numeric_code' => '356', 'name_plural' => 'Indian rupees', 'symbol_native' => 'টকা', ),

49 => array ( 'symbol' => 'IQD', 'name' => 'Iraqi Dinar', 'code' => 'IQD', 'numeric_code' => '368', 'name_plural' => 'Iraqi dinars', 'symbol_native' => 'د.ع.‏', ),

50 => array ( 'symbol' => 'IRR', 'name' => 'Iranian Rial', 'code' => 'IRR', 'numeric_code' => '364', 'name_plural' => 'Iranian rials', 'symbol_native' => '﷼', ),

51 => array ( 'symbol' => 'Ikr', 'name' => 'Icelandic Króna', 'code' => 'ISK', 'numeric_code' => '352', 'name_plural' => 'Icelandic krónur', 'symbol_native' => 'kr', ),

52 => array ( 'symbol' => 'J$', 'name' => 'Jamaican Dollar', 'code' => 'JMD', 'numeric_code' => '388', 'name_plural' => 'Jamaican dollars', 'symbol_native' => '$', ),

53 => array ( 'symbol' => 'JD', 'name' => 'Jordanian Dinar', 'code' => 'JOD', 'numeric_code' => '400', 'name_plural' => 'Jordanian dinars', 'symbol_native' => 'د.أ.‏', ),

54 => array ( 'symbol' => '¥', 'name' => 'Japanese Yen', 'code' => 'JPY', 'numeric_code' => '392', 'name_plural' => 'Japanese yen', 'symbol_native' => '¥', ),

55 => array ( 'symbol' => 'Ksh', 'name' => 'Kenyan Shilling', 'code' => 'KES', 'numeric_code' => '404', 'name_plural' => 'Kenyan shillings', 'symbol_native' => 'Ksh', ),

56 => array ( 'symbol' => 'KHR', 'name' => 'Cambodian Riel', 'code' => 'KHR', 'numeric_code' => '116', 'name_plural' => 'Cambodian riels', 'symbol_native' => '៛', ),

57 => array ( 'symbol' => 'CF', 'name' => 'Comorian Franc', 'code' => 'KMF', 'numeric_code' => '174', 'name_plural' => 'Comorian francs', 'symbol_native' => 'FC', ),

58 => array ( 'symbol' => '₩', 'name' => 'South Korean Won', 'code' => 'KRW', 'numeric_code' => '410', 'name_plural' => 'South Korean won', 'symbol_native' => '₩', ),

59 => array ( 'symbol' => 'KD', 'name' => 'Kuwaiti Dinar', 'code' => 'KWD', 'numeric_code' => '414', 'name_plural' => 'Kuwaiti dinars', 'symbol_native' => 'د.ك.‏', ),

60 => array ( 'symbol' => 'KZT', 'name' => 'Kazakhstani Tenge', 'code' => 'KZT', 'numeric_code' => '398', 'name_plural' => 'Kazakhstani tenges', 'symbol_native' => 'тңг.', ),

61 => array ( 'symbol' => 'LB£', 'name' => 'Lebanese Pound', 'code' => 'LBP', 'numeric_code' => '422', 'name_plural' => 'Lebanese pounds', 'symbol_native' => 'ل.ل.‏', ),

62 => array ( 'symbol' => 'SLRs', 'name' => 'Sri Lankan Rupee', 'code' => 'LKR', 'numeric_code' => '144', 'name_plural' => 'Sri Lankan rupees', 'symbol_native' => 'SL Re', ),

63 => array ( 'symbol' => 'Lt', 'name' => 'Lithuanian Litas', 'code' => 'LTL', 'numeric_code' => '440', 'name_plural' => 'Lithuanian litai', 'symbol_native' => 'Lt', ),

64 => array ( 'symbol' => 'Ls', 'name' => 'Latvian Lats', 'code' => 'LVL', 'numeric_code' => '428', 'name_plural' => 'Latvian lati', 'symbol_native' => 'Ls', ),

65 => array ( 'symbol' => 'LD', 'name' => 'Libyan Dinar', 'code' => 'LYD', 'numeric_code' => '434', 'name_plural' => 'Libyan dinars', 'symbol_native' => 'د.ل.‏', ),

66 => array ( 'symbol' => 'MAD', 'name' => 'Moroccan Dirham', 'code' => 'MAD', 'numeric_code' => '504', 'name_plural' => 'Moroccan dirhams', 'symbol_native' => 'د.م.‏', ),

67 => array ( 'symbol' => 'MDL', 'name' => 'Moldovan Leu', 'code' => 'MDL', 'numeric_code' => '498', 'name_plural' => 'Moldovan lei', 'symbol_native' => 'MDL', ),

68 => array ( 'symbol' => 'MGA', 'name' => 'Malagasy Ariary', 'code' => 'MGA', 'numeric_code' => '969', 'name_plural' => 'Malagasy Ariaries', 'symbol_native' => 'MGA', ),

69 => array ( 'symbol' => 'MKD', 'name' => 'Macedonian Denar', 'code' => 'MKD', 'numeric_code' => '807', 'name_plural' => 'Macedonian denari', 'symbol_native' => 'MKD', ),

70 => array ( 'symbol' => 'MMK', 'name' => 'Myanma Kyat', 'code' => 'MMK', 'numeric_code' => '104', 'name_plural' => 'Myanma kyats', 'symbol_native' => 'K', ),

71 => array ( 'symbol' => 'MOP$', 'name' => 'Macanese Pataca', 'code' => 'MOP', 'numeric_code' => '446', 'name_plural' => 'Macanese patacas', 'symbol_native' => 'MOP$', ),

72 => array ( 'symbol' => 'MURs', 'name' => 'Mauritian Rupee', 'code' => 'MUR', 'numeric_code' => '480', 'name_plural' => 'Mauritian rupees', 'symbol_native' => 'MURs', ),

73 => array ( 'symbol' => 'MX$', 'name' => 'Mexican Peso', 'code' => 'MXN', 'numeric_code' => '484', 'name_plural' => 'Mexican pesos', 'symbol_native' => '$', ),

74 => array ( 'symbol' => 'RM', 'name' => 'Malaysian Ringgit', 'code' => 'MYR', 'numeric_code' => '458', 'name_plural' => 'Malaysian ringgits', 'symbol_native' => 'RM', ),

75 => array ( 'symbol' => 'MTn', 'name' => 'Mozambican Metical', 'code' => 'MZN', 'numeric_code' => '943', 'name_plural' => 'Mozambican meticals', 'symbol_native' => 'MTn', ),

76 => array ( 'symbol' => 'N$', 'name' => 'Namibian Dollar', 'code' => 'NAD', 'numeric_code' => '516', 'name_plural' => 'Namibian dollars', 'symbol_native' => 'N$', ),

77 => array ( 'symbol' => '₦', 'name' => 'Nigerian Naira', 'code' => 'NGN', 'numeric_code' => '566', 'name_plural' => 'Nigerian nairas', 'symbol_native' => '₦', ),

78 => array ( 'symbol' => 'C$', 'name' => 'Nicaraguan Córdoba', 'code' => 'NIO', 'numeric_code' => '558', 'name_plural' => 'Nicaraguan córdobas', 'symbol_native' => 'C$', ),

79 => array ( 'symbol' => 'Nkr', 'name' => 'Norwegian Krone', 'code' => 'NOK', 'numeric_code' => '578', 'name_plural' => 'Norwegian kroner', 'symbol_native' => 'kr', ),

80 => array ( 'symbol' => 'NPRs', 'name' => 'Nepalese Rupee', 'code' => 'NPR', 'numeric_code' => '524', 'name_plural' => 'Nepalese rupees', 'symbol_native' => 'नेरू', ),

81 => array ( 'symbol' => 'NZ$', 'name' => 'New Zealand Dollar', 'code' => 'NZD', 'numeric_code' => '554', 'name_plural' => 'New Zealand dollars', 'symbol_native' => '$', ),

82 => array ( 'symbol' => 'OMR', 'name' => 'Omani Rial', 'code' => 'OMR', 'numeric_code' => '512', 'name_plural' => 'Omani rials', 'symbol_native' => 'ر.ع.‏', ),

83 => array ( 'symbol' => 'B/.', 'name' => 'Panamanian Balboa', 'code' => 'PAB', 'numeric_code' => '590', 'name_plural' => 'Panamanian balboas', 'symbol_native' => 'B/.', ),

84 => array ( 'symbol' => 'S/.', 'name' => 'Peruvian Nuevo Sol', 'code' => 'PEN', 'numeric_code' => '604', 'name_plural' => 'Peruvian nuevos soles', 'symbol_native' => 'S/.', ),

85 => array ( 'symbol' => '₱', 'name' => 'Philippine Peso', 'code' => 'PHP', 'numeric_code' => '608', 'name_plural' => 'Philippine pesos', 'symbol_native' => '₱', ),

86 => array ( 'symbol' => 'PKRs', 'name' => 'Pakistani Rupee', 'code' => 'PKR', 'numeric_code' => '586', 'name_plural' => 'Pakistani rupees', 'symbol_native' => '₨', ),

87 => array ( 'symbol' => 'zł', 'name' => 'Polish Zloty', 'code' => 'PLN', 'numeric_code' => '985', 'name_plural' => 'Polish zlotys', 'symbol_native' => 'zł', ),

88 => array ( 'symbol' => '₲', 'name' => 'Paraguayan Guarani', 'code' => 'PYG', 'numeric_code' => '600', 'name_plural' => 'Paraguayan guaranis', 'symbol_native' => '₲', ),

89 => array ( 'symbol' => 'QR', 'name' => 'Qatari Rial', 'code' => 'QAR', 'numeric_code' => '634', 'name_plural' => 'Qatari rials', 'symbol_native' => 'ر.ق.‏', ),

90 => array ( 'symbol' => 'RON', 'name' => 'Romanian Leu', 'code' => 'RON', 'numeric_code' => '946', 'name_plural' => 'Romanian lei', 'symbol_native' => 'RON', ),

91 => array ( 'symbol' => 'din.', 'name' => 'Serbian Dinar', 'code' => 'RSD', 'numeric_code' => '941', 'name_plural' => 'Serbian dinars', 'symbol_native' => 'дин.', ),

92 => array ( 'symbol' => 'RUB', 'name' => 'Russian Ruble', 'code' => 'RUB', 'numeric_code' => '643', 'name_plural' => 'Russian rubles', 'symbol_native' => '₽.', ),

93 => array ( 'symbol' => 'RWF', 'name' => 'Rwandan Franc', 'code' => 'RWF', 'numeric_code' => '646', 'name_plural' => 'Rwandan francs', 'symbol_native' => 'FR', ),

94 => array ( 'symbol' => 'SR', 'name' => 'Saudi Riyal', 'code' => 'SAR', 'numeric_code' => '682', 'name_plural' => 'Saudi riyals', 'symbol_native' => 'ر.س.‏', ),

95 => array ( 'symbol' => 'SDG', 'name' => 'Sudanese Pound', 'code' => 'SDG', 'numeric_code' => '938', 'name_plural' => 'Sudanese pounds', 'symbol_native' => 'SDG', ),

96 => array ( 'symbol' => 'Skr', 'name' => 'Swedish Krona', 'code' => 'SEK', 'numeric_code' => '752', 'name_plural' => 'Swedish kronor', 'symbol_native' => 'kr', ),

97 => array ( 'symbol' => 'S$', 'name' => 'Singapore Dollar', 'code' => 'SGD', 'numeric_code' => '702', 'name_plural' => 'Singapore dollars', 'symbol_native' => '$', ),

98 => array ( 'symbol' => 'Ssh', 'name' => 'Somali Shilling', 'code' => 'SOS', 'numeric_code' => '706', 'name_plural' => 'Somali shillings', 'symbol_native' => 'Ssh', ),

99 => array ( 'symbol' => 'SY£', 'name' => 'Syrian Pound', 'code' => 'SYP', 'numeric_code' => '760', 'name_plural' => 'Syrian pounds', 'symbol_native' => 'ل.س.‏', ),

100 => array ( 'symbol' => '฿', 'name' => 'Thai Baht', 'code' => 'THB', 'numeric_code' => '764', 'name_plural' => 'Thai baht', 'symbol_native' => '฿', ),

101 => array ( 'symbol' => 'DT', 'name' => 'Tunisian Dinar', 'code' => 'TND', 'numeric_code' => '788', 'name_plural' => 'Tunisian dinars', 'symbol_native' => 'د.ت.‏', ),

102 => array ( 'symbol' => 'T$', 'name' => 'Tongan Paʻanga', 'code' => 'TOP', 'numeric_code' => '776', 'name_plural' => 'Tongan paʻanga', 'symbol_native' => 'T$', ),

103 => array ( 'symbol' => 'TL', 'name' => 'Turkish Lira', 'code' => 'TRY', 'numeric_code' => '949', 'name_plural' => 'Turkish Lira', 'symbol_native' => 'TL', ),

104 => array ( 'symbol' => 'TT$', 'name' => 'Trinidad and Tobago Dollar', 'code' => 'TTD', 'numeric_code' => '780', 'name_plural' => 'Trinidad and Tobago dollars', 'symbol_native' => '$', ),

105 => array ( 'symbol' => 'NT$', 'name' => 'New Taiwan Dollar', 'code' => 'TWD', 'numeric_code' => '901', 'name_plural' => 'New Taiwan dollars', 'symbol_native' => 'NT$', ),

106 => array ( 'symbol' => 'TSh', 'name' => 'Tanzanian Shilling', 'code' => 'TZS', 'numeric_code' => '834', 'name_plural' => 'Tanzanian shillings', 'symbol_native' => 'TSh', ),

107 => array ( 'symbol' => '₴', 'name' => 'Ukrainian Hryvnia', 'code' => 'UAH', 'numeric_code' => '980', 'name_plural' => 'Ukrainian hryvnias', 'symbol_native' => '₴', ),

108 => array ( 'symbol' => 'USh', 'name' => 'Ugandan Shilling', 'code' => 'UGX', 'numeric_code' => '800', 'name_plural' => 'Ugandan shillings', 'symbol_native' => 'USh', ),

109 => array ( 'symbol' => '$U', 'name' => 'Uruguayan Peso', 'code' => 'UYU', 'numeric_code' => '858', 'name_plural' => 'Uruguayan pesos', 'symbol_native' => '$', ),

110 => array ( 'symbol' => 'UZS', 'name' => 'Uzbekistan Som', 'code' => 'UZS', 'numeric_code' => '860', 'name_plural' => 'Uzbekistan som', 'symbol_native' => 'UZS', ),

111 => array ( 'symbol' => 'Bs.F.', 'name' => 'Venezuelan Bolívar', 'code' => 'VEF', 'numeric_code' => '937', 'name_plural' => 'Venezuelan bolívars', 'symbol_native' => 'Bs.F.', ),

112 => array ( 'symbol' => '₫', 'name' => 'Vietnamese Dong', 'code' => 'VND', 'numeric_code' => '704', 'name_plural' => 'Vietnamese dong', 'symbol_native' => '₫', ),

113 => array ( 'symbol' => 'FCFA', 'name' => 'CFA Franc BEAC', 'code' => 'XAF', 'numeric_code' => '950', 'name_plural' => 'CFA francs BEAC', 'symbol_native' => 'FCFA', ),

114 => array ( 'symbol' => 'CFA', 'name' => 'CFA Franc BCEAO', 'code' => 'XOF', 'numeric_code' => '952', 'name_plural' => 'CFA francs BCEAO', 'symbol_native' => 'CFA', ),

115 => array ( 'symbol' => 'YR', 'name' => 'Yemeni Rial', 'code' => 'YER', 'numeric_code' => '886', 'name_plural' => 'Yemeni rials', 'symbol_native' => 'ر.ي.‏', ),

116 => array ( 'symbol' => 'R', 'name' => 'South African Rand', 'code' => 'ZAR', 'numeric_code' => '710', 'name_plural' => 'South African rand', 'symbol_native' => 'R', ),

117 => array ( 'symbol' => 'ZK', 'name' => 'Zambian Kwacha', 'code' => 'ZMK', 'numeric_code' => '894', 'name_plural' => 'Zambian kwachas', 'symbol_native' => 'ZK', ),

118 => array ( 'symbol' => 'ZWL$', 'name' => 'Zimbabwean Dollar', 'code' => 'ZWL', 'numeric_code' => '932', 'name_plural' => 'Zimbabwean Dollar', 'symbol_native' => 'ZWL$') );`

 

@ksafranski
Copy link
Author

@multiwebinc I apologize, it's been hard for me to keep up with this, I should probably make a repo and allow pull requests :)

@multiwebinc
Copy link

@Fluidbyte Yes, that would be a great idea. Making it an npm package to be easily included in a project would be a good idea as well.

@multiwebinc
Copy link

Let me know if you need help.

@TBG-FR
Copy link

TBG-FR commented Jul 14, 2021

+1 to the repo, and to the npm package !

@sgraaf
Copy link

sgraaf commented Aug 8, 2021

+1 for the repo!

@ourworldincode
Copy link

Try this list with 172 world circulating currencies.

https://github.com/ourworldincode/currency

Copy link

ghost commented May 5, 2022

export const CurrencySymbolMap = {
USD: "$",
CAD: "CA$",
EUR: "€",
AED: "AED",
AFN: "Af",
ALL: "ALL",
AMD: "AMD",
ARS: "AR$",
AUD: "AU$",
AZN: "man.",
BAM: "KM",
BDT: "Tk",
BGN: "BGN",
BHD: "BD",
BIF: "FBu",
BND: "BN$",
BOB: "Bs",
BRL: "R$",
BWP: "BWP",
BYN: "Br",
BZD: "BZ$",
CDF: "CDF",
CHF: "CHF",
CLP: "CL$",
CNY: "CN¥",
COP: "CO$",
CRC: "₡",
CVE: "CV$",
CZK: "Kč",
DJF: "Fdj",
DKK: "Dkr",
DOP: "RD$",
DZD: "DA",
EEK: "Ekr",
EGP: "EGP",
ERN: "Nfk",
ETB: "Br",
GBP: "£",
GEL: "GEL",
GHS: "GH₵",
GNF: "FG",
GTQ: "GTQ",
HKD: "HK$",
HNL: "HNL",
HRK: "kn",
HUF: "Ft",
IDR: "Rp",
ILS: "₪",
INR: "₹",
IQD: "IQD",
IRR: "IRR",
ISK: "Ikr",
JMD: "J$",
JOD: "JD",
JPY: "¥",
KES: "Ksh",
KHR: "KHR",
KMF: "CF",
KRW: "₩",
KWD: "KD",
KZT: "KZT",
LBP: "L.L.",
LKR: "SLRs",
LTL: "Lt",
LVL: "Ls",
LYD: "LD",
MAD: "MAD",
MDL: "MDL",
MGA: "MGA",
MKD: "MKD",
MMK: "MMK",
MOP: "MOP$",
MUR: "MURs",
MXN: "MX$",
MYR: "RM",
MZN: "MTn",
NAD: "N$",
NGN: "₦",
NIO: "C$",
NOK: "Nkr",
NPR: "NPRs",
NZD: "NZ$",
OMR: "OMR",
PAB: "B/.",
PEN: "S/.",
PHP: "₱",
PKR: "PKRs",
PLN: "zł",
PYG: "₲",
QAR: "QR",
RON: "RON",
RSD: "din.",
RUB: "RUB",
RWF: "RWF",
SAR: "SR",
SDG: "SDG",
SEK: "Skr",
SGD: "S$",
SOS: "Ssh",
SYP: "SY£",
THB: "฿",
TND: "DT",
TOP: "T$",
TRY: "TL",
TTD: "TT$",
TWD: "NT$",
TZS: "TSh",
UAH: "₴",
UGX: "USh",
UYU: "$U",
UZS: "UZS",
VEF: "Bs.F.",
VND: "₫",
XAF: "FCFA",
XOF: "CFA",
YER: "YR",
ZAR: "R",
ZMK: "ZK",
ZWL: "ZWL$",
};

@brijeshneoxl
Copy link

brijeshneoxl commented May 3, 2023

currency code with name and symbol if anyone need in this format

{
  "ADP": {"name": "Andorran Peseta", "symbol": "ADP"},
  "AED": {"name": "United Arab Emirates Dirham", "symbol": "AED"},
  "AFA": {"name": "Afghan Afghani (1927–2002)", "symbol": "AFA"},
  "AFN": {"name": "Afghan Afghani", "symbol": "AFN"},
  "ALK": {"name": "Albanian Lek (1946–1965)", "symbol": "ALK"},
  "ALL": {"name": "Albanian Lek", "symbol": "ALL"},
  "AMD": {"name": "Armenian Dram", "symbol": "AMD"},
  "ANG": {"name": "Netherlands Antillean Guilder", "symbol": "ANG"},
  "AOA": {"name": "Angolan Kwanza", "symbol": "AOA"},
  "AOK": {"name": "Angolan Kwanza (1977–1991)", "symbol": "AOK"},
  "AON": {"name": "Angolan New Kwanza (1990–2000)", "symbol": "AON"},
  "AOR": {"name": "Angolan Readjusted Kwanza (1995–1999)", "symbol": "AOR"},
  "ARA": {"name": "Argentine Austral", "symbol": "ARA"},
  "ARL": {"name": "Argentine Peso Ley (1970–1983)", "symbol": "ARL"},
  "ARM": {"name": "Argentine Peso (1881–1970)", "symbol": "ARM"},
  "ARP": {"name": "Argentine Peso (1983–1985)", "symbol": "ARP"},
  "ARS": {"name": "Argentine Peso", "symbol": "ARS"},
  "ATS": {"name": "Austrian Schilling", "symbol": "ATS"},
  "AUD": {"name": "Australian Dollar", "symbol": "A$"},
  "AWG": {"name": "Aruban Florin", "symbol": "AWG"},
  "AZM": {"name": "Azerbaijani Manat (1993–2006)", "symbol": "AZM"},
  "AZN": {"name": "Azerbaijani Manat", "symbol": "AZN"},
  "BAD": {"name": "Bosnia-Herzegovina Dinar (1992–1994)", "symbol": "BAD"},
  "BAM": {"name": "Bosnia-Herzegovina Convertible Mark", "symbol": "BAM"},
  "BAN": {"name": "Bosnia-Herzegovina New Dinar (1994–1997)", "symbol": "BAN"},
  "BBD": {"name": "Barbadian Dollar", "symbol": "BBD"},
  "BDT": {"name": "Bangladeshi Taka", "symbol": "BDT"},
  "BEC": {"name": "Belgian Franc (convertible)", "symbol": "BEC"},
  "BEF": {"name": "Belgian Franc", "symbol": "BEF"},
  "BEL": {"name": "Belgian Franc (financial)", "symbol": "BEL"},
  "BGL": {"name": "Bulgarian Hard Lev", "symbol": "BGL"},
  "BGM": {"name": "Bulgarian Socialist Lev", "symbol": "BGM"},
  "BGN": {"name": "Bulgarian Lev", "symbol": "BGN"},
  "BGO": {"name": "Bulgarian Lev (1879–1952)", "symbol": "BGO"},
  "BHD": {"name": "Bahraini Dinar", "symbol": "BHD"},
  "BIF": {"name": "Burundian Franc", "symbol": "BIF"},
  "BMD": {"name": "Bermudan Dollar", "symbol": "BMD"},
  "BND": {"name": "Brunei Dollar", "symbol": "BND"},
  "BOB": {"name": "Bolivian Boliviano", "symbol": "BOB"},
  "BOL": {"name": "Bolivian Boliviano (1863–1963)", "symbol": "BOL"},
  "BOP": {"name": "Bolivian Peso", "symbol": "BOP"},
  "BOV": {"name": "Bolivian Mvdol", "symbol": "BOV"},
  "BRB": {"name": "Brazilian New Cruzeiro (1967–1986)", "symbol": "BRB"},
  "BRC": {"name": "Brazilian Cruzado (1986–1989)", "symbol": "BRC"},
  "BRE": {"name": "Brazilian Cruzeiro (1990–1993)", "symbol": "BRE"},
  "BRL": {"name": "Brazilian Real", "symbol": "R$"},
  "BRN": {"name": "Brazilian New Cruzado (1989–1990)", "symbol": "BRN"},
  "BRR": {"name": "Brazilian Cruzeiro (1993–1994)", "symbol": "BRR"},
  "BRZ": {"name": "Brazilian Cruzeiro (1942–1967)", "symbol": "BRZ"},
  "BSD": {"name": "Bahamian Dollar", "symbol": "BSD"},
  "BTN": {"name": "Bhutanese Ngultrum", "symbol": "BTN"},
  "BUK": {"name": "Burmese Kyat", "symbol": "BUK"},
  "BWP": {"name": "Botswanan Pula", "symbol": "BWP"},
  "BYB": {"name": "Belarusian New Ruble (1994–1999)", "symbol": "BYB"},
  "BYR": {"name": "Belarusian Ruble", "symbol": "BYR"},
  "BZD": {"name": "Belize Dollar", "symbol": "BZD"},
  "CAD": {"name": "Canadian Dollar", "symbol": "CA$"},
  "CDF": {"name": "Congolese Franc", "symbol": "CDF"},
  "CHE": {"name": "WIR Euro", "symbol": "CHE"},
  "CHF": {"name": "Swiss Franc", "symbol": "CHF"},
  "CHW": {"name": "WIR Franc", "symbol": "CHW"},
  "CLE": {"name": "Chilean Escudo", "symbol": "CLE"},
  "CLF": {"name": "Chilean Unit of Account (UF)", "symbol": "CLF"},
  "CLP": {"name": "Chilean Peso", "symbol": "CLP"},
  "CNX": {"name": "Chinese People’s Bank Dollar", "symbol": "CNX"},
  "CNY": {"name": "Chinese Yuan", "symbol": "CN¥"},
  "COP": {"name": "Colombian Peso", "symbol": "COP"},
  "COU": {"name": "Colombian Real Value Unit", "symbol": "COU"},
  "CRC": {"name": "Costa Rican Colón", "symbol": "CRC"},
  "CSD": {"name": "Serbian Dinar (2002–2006)", "symbol": "CSD"},
  "CSK": {"name": "Czechoslovak Hard Koruna", "symbol": "CSK"},
  "CUC": {"name": "Cuban Convertible Peso", "symbol": "CUC"},
  "CUP": {"name": "Cuban Peso", "symbol": "CUP"},
  "CVE": {"name": "Cape Verdean Escudo", "symbol": "CVE"},
  "CYP": {"name": "Cypriot Pound", "symbol": "CYP"},
  "CZK": {"name": "Czech Republic Koruna", "symbol": "CZK"},
  "DDM": {"name": "East German Mark", "symbol": "DDM"},
  "DEM": {"name": "German Mark", "symbol": "DEM"},
  "DJF": {"name": "Djiboutian Franc", "symbol": "DJF"},
  "DKK": {"name": "Danish Krone", "symbol": "DKK"},
  "DOP": {"name": "Dominican Peso", "symbol": "DOP"},
  "DZD": {"name": "Algerian Dinar", "symbol": "DZD"},
  "ECS": {"name": "Ecuadorian Sucre", "symbol": "ECS"},
  "ECV": {"name": "Ecuadorian Unit of Constant Value", "symbol": "ECV"},
  "EEK": {"name": "Estonian Kroon", "symbol": "EEK"},
  "EGP": {"name": "Egyptian Pound", "symbol": "EGP"},
  "ERN": {"name": "Eritrean Nakfa", "symbol": "ERN"},
  "ESA": {"name": "Spanish Peseta (A account)", "symbol": "ESA"},
  "ESB": {"name": "Spanish Peseta (convertible account)", "symbol": "ESB"},
  "ESP": {"name": "Spanish Peseta", "symbol": "ESP"},
  "ETB": {"name": "Ethiopian Birr", "symbol": "ETB"},
  "EUR": {"name": "Euro", "symbol": ""},
  "FIM": {"name": "Finnish Markka", "symbol": "FIM"},
  "FJD": {"name": "Fijian Dollar", "symbol": "FJD"},
  "FKP": {"name": "Falkland Islands Pound", "symbol": "FKP"},
  "FRF": {"name": "French Franc", "symbol": "FRF"},
  "GBP": {"name": "British Pound Sterling", "symbol": "£"},
  "GEK": {"name": "Georgian Kupon Larit", "symbol": "GEK"},
  "GEL": {"name": "Georgian Lari", "symbol": "GEL"},
  "GHC": {"name": "Ghanaian Cedi (1979–2007)", "symbol": "GHC"},
  "GHS": {"name": "Ghanaian Cedi", "symbol": "GHS"},
  "GIP": {"name": "Gibraltar Pound", "symbol": "GIP"},
  "GMD": {"name": "Gambian Dalasi", "symbol": "GMD"},
  "GNF": {"name": "Guinean Franc", "symbol": "GNF"},
  "GNS": {"name": "Guinean Syli", "symbol": "GNS"},
  "GQE": {"name": "Equatorial Guinean Ekwele", "symbol": "GQE"},
  "GRD": {"name": "Greek Drachma", "symbol": "GRD"},
  "GTQ": {"name": "Guatemalan Quetzal", "symbol": "GTQ"},
  "GWE": {"name": "Portuguese Guinea Escudo", "symbol": "GWE"},
  "GWP": {"name": "Guinea-Bissau Peso", "symbol": "GWP"},
  "GYD": {"name": "Guyanaese Dollar", "symbol": "GYD"},
  "HKD": {"name": "Hong Kong Dollar", "symbol": "HK$"},
  "HNL": {"name": "Honduran Lempira", "symbol": "HNL"},
  "HRD": {"name": "Croatian Dinar", "symbol": "HRD"},
  "HRK": {"name": "Croatian Kuna", "symbol": "HRK"},
  "HTG": {"name": "Haitian Gourde", "symbol": "HTG"},
  "HUF": {"name": "Hungarian Forint", "symbol": "HUF"},
  "IDR": {"name": "Indonesian Rupiah", "symbol": "IDR"},
  "IEP": {"name": "Irish Pound", "symbol": "IEP"},
  "ILP": {"name": "Israeli Pound", "symbol": "ILP"},
  "ILR": {"name": "Israeli Sheqel (1980–1985)", "symbol": "ILR"},
  "ILS": {"name": "Israeli New Sheqel", "symbol": ""},
  "INR": {"name": "Indian Rupee", "symbol": ""},
  "IQD": {"name": "Iraqi Dinar", "symbol": "IQD"},
  "IRR": {"name": "Iranian Rial", "symbol": "IRR"},
  "ISJ": {"name": "Icelandic Króna (1918–1981)", "symbol": "ISJ"},
  "ISK": {"name": "Icelandic Króna", "symbol": "ISK"},
  "ITL": {"name": "Italian Lira", "symbol": "ITL"},
  "JMD": {"name": "Jamaican Dollar", "symbol": "JMD"},
  "JOD": {"name": "Jordanian Dinar", "symbol": "JOD"},
  "JPY": {"name": "Japanese Yen", "symbol": "¥"},
  "KES": {"name": "Kenyan Shilling", "symbol": "KES"},
  "KGS": {"name": "Kyrgystani Som", "symbol": "KGS"},
  "KHR": {"name": "Cambodian Riel", "symbol": "KHR"},
  "KMF": {"name": "Comorian Franc", "symbol": "KMF"},
  "KPW": {"name": "North Korean Won", "symbol": "KPW"},
  "KRH": {"name": "South Korean Hwan (1953–1962)", "symbol": "KRH"},
  "KRO": {"name": "South Korean Won (1945–1953)", "symbol": "KRO"},
  "KRW": {"name": "South Korean Won", "symbol": ""},
  "KWD": {"name": "Kuwaiti Dinar", "symbol": "KWD"},
  "KYD": {"name": "Cayman Islands Dollar", "symbol": "KYD"},
  "KZT": {"name": "Kazakhstani Tenge", "symbol": "KZT"},
  "LAK": {"name": "Laotian Kip", "symbol": "LAK"},
  "LBP": {"name": "Lebanese Pound", "symbol": "LBP"},
  "LKR": {"name": "Sri Lankan Rupee", "symbol": "LKR"},
  "LRD": {"name": "Liberian Dollar", "symbol": "LRD"},
  "LSL": {"name": "Lesotho Loti", "symbol": "LSL"},
  "LTL": {"name": "Lithuanian Litas", "symbol": "LTL"},
  "LTT": {"name": "Lithuanian Talonas", "symbol": "LTT"},
  "LUC": {"name": "Luxembourgian Convertible Franc", "symbol": "LUC"},
  "LUF": {"name": "Luxembourgian Franc", "symbol": "LUF"},
  "LUL": {"name": "Luxembourg Financial Franc", "symbol": "LUL"},
  "LVL": {"name": "Latvian Lats", "symbol": "LVL"},
  "LVR": {"name": "Latvian Ruble", "symbol": "LVR"},
  "LYD": {"name": "Libyan Dinar", "symbol": "LYD"},
  "MAD": {"name": "Moroccan Dirham", "symbol": "MAD"},
  "MAF": {"name": "Moroccan Franc", "symbol": "MAF"},
  "MCF": {"name": "Monegasque Franc", "symbol": "MCF"},
  "MDC": {"name": "Moldovan Cupon", "symbol": "MDC"},
  "MDL": {"name": "Moldovan Leu", "symbol": "MDL"},
  "MGA": {"name": "Malagasy Ariary", "symbol": "MGA"},
  "MGF": {"name": "Malagasy Franc", "symbol": "MGF"},
  "MKD": {"name": "Macedonian Denar", "symbol": "MKD"},
  "MKN": {"name": "Macedonian Denar (1992–1993)", "symbol": "MKN"},
  "MLF": {"name": "Malian Franc", "symbol": "MLF"},
  "MMK": {"name": "Myanmar Kyat", "symbol": "MMK"},
  "MNT": {"name": "Mongolian Tugrik", "symbol": "MNT"},
  "MOP": {"name": "Macanese Pataca", "symbol": "MOP"},
  "MRO": {"name": "Mauritanian Ouguiya", "symbol": "MRO"},
  "MTL": {"name": "Maltese Lira", "symbol": "MTL"},
  "MTP": {"name": "Maltese Pound", "symbol": "MTP"},
  "MUR": {"name": "Mauritian Rupee", "symbol": "MUR"},
  "MVP": {"name": "Maldivian Rupee (1947–1981)", "symbol": "MVP"},
  "MVR": {"name": "Maldivian Rufiyaa", "symbol": "MVR"},
  "MWK": {"name": "Malawian Kwacha", "symbol": "MWK"},
  "MXN": {"name": "Mexican Peso", "symbol": "MX$"},
  "MXP": {"name": "Mexican Silver Peso (1861–1992)", "symbol": "MXP"},
  "MXV": {"name": "Mexican Investment Unit", "symbol": "MXV"},
  "MYR": {"name": "Malaysian Ringgit", "symbol": "MYR"},
  "MZE": {"name": "Mozambican Escudo", "symbol": "MZE"},
  "MZM": {"name": "Mozambican Metical (1980–2006)", "symbol": "MZM"},
  "MZN": {"name": "Mozambican Metical", "symbol": "MZN"},
  "NAD": {"name": "Namibian Dollar", "symbol": "NAD"},
  "NGN": {"name": "Nigerian Naira", "symbol": "NGN"},
  "NIC": {"name": "Nicaraguan Córdoba (1988–1991)", "symbol": "NIC"},
  "NIO": {"name": "Nicaraguan Córdoba", "symbol": "NIO"},
  "NLG": {"name": "Dutch Guilder", "symbol": "NLG"},
  "NOK": {"name": "Norwegian Krone", "symbol": "NOK"},
  "NPR": {"name": "Nepalese Rupee", "symbol": "NPR"},
  "NZD": {"name": "New Zealand Dollar", "symbol": "NZ$"},
  "OMR": {"name": "Omani Rial", "symbol": "OMR"},
  "PAB": {"name": "Panamanian Balboa", "symbol": "PAB"},
  "PEI": {"name": "Peruvian Inti", "symbol": "PEI"},
  "PEN": {"name": "Peruvian Nuevo Sol", "symbol": "PEN"},
  "PES": {"name": "Peruvian Sol (1863–1965)", "symbol": "PES"},
  "PGK": {"name": "Papua New Guinean Kina", "symbol": "PGK"},
  "PHP": {"name": "Philippine Peso", "symbol": "PHP"},
  "PKR": {"name": "Pakistani Rupee", "symbol": "PKR"},
  "PLN": {"name": "Polish Zloty", "symbol": "PLN"},
  "PLZ": {"name": "Polish Zloty (1950–1995)", "symbol": "PLZ"},
  "PTE": {"name": "Portuguese Escudo", "symbol": "PTE"},
  "PYG": {"name": "Paraguayan Guarani", "symbol": "PYG"},
  "QAR": {"name": "Qatari Rial", "symbol": "QAR"},
  "RHD": {"name": "Rhodesian Dollar", "symbol": "RHD"},
  "ROL": {"name": "Romanian Leu (1952–2006)", "symbol": "ROL"},
  "RON": {"name": "Romanian Leu", "symbol": "RON"},
  "RSD": {"name": "Serbian Dinar", "symbol": "RSD"},
  "RUB": {"name": "Russian Ruble", "symbol": "RUB"},
  "RUR": {"name": "Russian Ruble (1991–1998)", "symbol": "RUR"},
  "RWF": {"name": "Rwandan Franc", "symbol": "RWF"},
  "SAR": {"name": "Saudi Riyal", "symbol": "SAR"},
  "SBD": {"name": "Solomon Islands Dollar", "symbol": "SBD"},
  "SCR": {"name": "Seychellois Rupee", "symbol": "SCR"},
  "SDD": {"name": "Sudanese Dinar (1992–2007)", "symbol": "SDD"},
  "SDG": {"name": "Sudanese Pound", "symbol": "SDG"},
  "SDP": {"name": "Sudanese Pound (1957–1998)", "symbol": "SDP"},
  "SEK": {"name": "Swedish Krona", "symbol": "SEK"},
  "SGD": {"name": "Singapore Dollar", "symbol": "SGD"},
  "SHP": {"name": "St. Helena Pound", "symbol": "SHP"},
  "SIT": {"name": "Slovenian Tolar", "symbol": "SIT"},
  "SKK": {"name": "Slovak Koruna", "symbol": "SKK"},
  "SLL": {"name": "Sierra Leonean Leone", "symbol": "SLL"},
  "SOS": {"name": "Somali Shilling", "symbol": "SOS"},
  "SRD": {"name": "Surinamese Dollar", "symbol": "SRD"},
  "SRG": {"name": "Surinamese Guilder", "symbol": "SRG"},
  "SSP": {"name": "South Sudanese Pound", "symbol": "SSP"},
  "STD": {"name": "São Tomé & Príncipe Dobra", "symbol": "STD"},
  "SUR": {"name": "Soviet Rouble", "symbol": "SUR"},
  "SVC": {"name": "Salvadoran Colón", "symbol": "SVC"},
  "SYP": {"name": "Syrian Pound", "symbol": "SYP"},
  "SZL": {"name": "Swazi Lilangeni", "symbol": "SZL"},
  "THB": {"name": "Thai Baht", "symbol": "THB"},
  "TJR": {"name": "Tajikistani Ruble", "symbol": "TJR"},
  "TJS": {"name": "Tajikistani Somoni", "symbol": "TJS"},
  "TMM": {"name": "Turkmenistani Manat (1993–2009)", "symbol": "TMM"},
  "TMT": {"name": "Turkmenistani Manat", "symbol": "TMT"},
  "TND": {"name": "Tunisian Dinar", "symbol": "TND"},
  "TOP": {"name": "Tongan Paʻanga", "symbol": "TOP"},
  "TPE": {"name": "Timorese Escudo", "symbol": "TPE"},
  "TRL": {"name": "Turkish Lira (1922–2005)", "symbol": "TRL"},
  "TRY": {"name": "Turkish Lira", "symbol": "TRY"},
  "TTD": {"name": "Trinidad & Tobago Dollar", "symbol": "TTD"},
  "TWD": {"name": "New Taiwan Dollar", "symbol": "NT$"},
  "TZS": {"name": "Tanzanian Shilling", "symbol": "TZS"},
  "UAH": {"name": "Ukrainian Hryvnia", "symbol": "UAH"},
  "UAK": {"name": "Ukrainian Karbovanets", "symbol": "UAK"},
  "UGS": {"name": "Ugandan Shilling (1966–1987)", "symbol": "UGS"},
  "UGX": {"name": "Ugandan Shilling", "symbol": "UGX"},
  "USD": {"name": "US Dollar", "symbol": "$"},
  "USN": {"name": "US Dollar (Next day)", "symbol": "USN"},
  "USS": {"name": "US Dollar (Same day)", "symbol": "USS"},
  "UYI": {"name": "Uruguayan Peso (Indexed Units)", "symbol": "UYI"},
  "UYP": {"name": "Uruguayan Peso (1975–1993)", "symbol": "UYP"},
  "UYU": {"name": "Uruguayan Peso", "symbol": "UYU"},
  "UZS": {"name": "Uzbekistan Som", "symbol": "UZS"},
  "VEB": {"name": "Venezuelan Bolívar (1871–2008)", "symbol": "VEB"},
  "VEF": {"name": "Venezuelan Bolívar", "symbol": "VEF"},
  "VND": {"name": "Vietnamese Dong", "symbol": ""},
  "VNN": {"name": "Vietnamese Dong (1978–1985)", "symbol": "VNN"},
  "VUV": {"name": "Vanuatu Vatu", "symbol": "VUV"},
  "WST": {"name": "Samoan Tala", "symbol": "WST"},
  "XAF": {"name": "CFA Franc BEAC", "symbol": "FCFA"},
  "XAG": {"name": "Silver", "symbol": "XAG"},
  "XAU": {"name": "Gold", "symbol": "XAU"},
  "XBA": {"name": "European Composite Unit", "symbol": "XBA"},
  "XBB": {"name": "European Monetary Unit", "symbol": "XBB"},
  "XBC": {"name": "European Unit of Account (XBC)", "symbol": "XBC"},
  "XBD": {"name": "European Unit of Account (XBD)", "symbol": "XBD"},
  "XCD": {"name": "East Caribbean Dollar", "symbol": "EC$"},
  "XDR": {"name": "Special Drawing Rights", "symbol": "XDR"},
  "XEU": {"name": "European Currency Unit", "symbol": "XEU"},
  "XFO": {"name": "French Gold Franc", "symbol": "XFO"},
  "XFU": {"name": "French UIC-Franc", "symbol": "XFU"},
  "XOF": {"name": "CFA Franc BCEAO", "symbol": "CFA"},
  "XPD": {"name": "Palladium", "symbol": "XPD"},
  "XPF": {"name": "CFP Franc", "symbol": "CFPF"},
  "XPT": {"name": "Platinum", "symbol": "XPT"},
  "XRE": {"name": "RINET Funds", "symbol": "XRE"},
  "XSU": {"name": "Sucre", "symbol": "XSU"},
  "XTS": {"name": "Testing Currency Code", "symbol": "XTS"},
  "XUA": {"name": "ADB Unit of Account", "symbol": "XUA"},
  "YDD": {"name": "Yemeni Dinar", "symbol": "YDD"},
  "YER": {"name": "Yemeni Rial", "symbol": "YER"},
  "YUD": {"name": "Yugoslavian Hard Dinar (1966–1990)", "symbol": "YUD"},
  "YUM": {"name": "Yugoslavian New Dinar (1994–2002)", "symbol": "YUM"},
  "YUN": {"name": "Yugoslavian Convertible Dinar (1990–1992)", "symbol": "YUN"},
  "YUR": {"name": "Yugoslavian Reformed Dinar (1992–1993)", "symbol": "YUR"},
  "ZAL": {"name": "South African Rand (financial)", "symbol": "ZAL"},
  "ZAR": {"name": "South African Rand", "symbol": "ZAR"},
  "ZMK": {"name": "Zambian Kwacha (1968–2012)", "symbol": "ZMK"},
  "ZMW": {"name": "Zambian Kwacha", "symbol": "ZMW"},
  "ZRN": {"name": "Zairean New Zaire (1993–1998)", "symbol": "ZRN"},
  "ZRZ": {"name": "Zairean Zaire (1971–1993)", "symbol": "ZRZ"},
  "ZWD": {"name": "Zimbabwean Dollar (1980–2008)", "symbol": "ZWD"},
  "ZWL": {"name": "Zimbabwean Dollar (2009)", "symbol": "ZWL"},
  "ZWR": {"name": "Zimbabwean Dollar (2008)", "symbol": "ZWR"}
}

@divinity76
Copy link

@bitfactory-robin-martijn

For those who are reading along:

I've just put this gist in a repository so PR's can be made: https://github.com/expedition-robin-martijn/common-currency/blob/main/common-currency.json

Feel free to make a PR for missing/incorrect data.

@imrealashu
Copy link

imrealashu commented Sep 6, 2023 via email

@JustAmalll
Copy link

@nikolayshm
Copy link

`class Currency
{

public const USD = 'USD';
public const CAD = 'CAD';
public const EUR = 'EUR';
public const AED = 'AED';
public const AFN = 'AFN';
public const ALL = 'ALL';
public const AMD = 'AMD';
public const ARS = 'ARS';
public const AUD = 'AUD';
public const AZN = 'AZN';
public const BAM = 'BAM';
public const BDT = 'BDT';
public const BGN = 'BGN';
public const BHD = 'BHD';
public const BIF = 'BIF';
public const BND = 'BND';
public const BOB = 'BOB';
public const BRL = 'BRL';
public const BWP = 'BWP';
public const BYN = 'BYN';
public const BZD = 'BZD';
public const CDF = 'CDF';
public const CHF = 'CHF';
public const CLP = 'CLP';
public const CNY = 'CNY';
public const COP = 'COP';
public const CRC = 'CRC';
public const CVE = 'CVE';
public const CZK = 'CZK';
public const DJF = 'DJF';
public const DKK = 'DKK';
public const DOP = 'DOP';
public const DZD = 'DZD';
public const EEK = 'EEK';
public const EGP = 'EGP';
public const ERN = 'ERN';
public const ETB = 'ETB';
public const GBP = 'GBP';
public const GEL = 'GEL';
public const GHS = 'GHS';
public const GNF = 'GNF';
public const GTQ = 'GTQ';
public const HKD = 'HKD';
public const HNL = 'HNL';
public const HRK = 'HRK';
public const HUF = 'HUF';
public const IDR = 'IDR';
public const ILS = 'ILS';
public const INR = 'INR';
public const IQD = 'IQD';
public const IRR = 'IRR';
public const ISK = 'ISK';
public const JMD = 'JMD';
public const JOD = 'JOD';
public const JPY = 'JPY';
public const KES = 'KES';
public const KHR = 'KHR';
public const KMF = 'KMF';
public const KRW = 'KRW';
public const KWD = 'KWD';
public const KZT = 'KZT';
public const LBP = 'LBP';
public const LKR = 'LKR';
public const LTL = 'LTL';
public const LVL = 'LVL';
public const LYD = 'LYD';
public const MAD = 'MAD';
public const MDL = 'MDL';
public const MGA = 'MGA';
public const MKD = 'MKD';
public const MMK = 'MMK';
public const MOP = 'MOP';
public const MUR = 'MUR';
public const MXN = 'MXN';
public const MYR = 'MYR';
public const MZN = 'MZN';
public const NAD = 'NAD';
public const NGN = 'NGN';
public const NIO = 'NIO';
public const NOK = 'NOK';
public const NPR = 'NPR';
public const NZD = 'NZD';
public const OMR = 'OMR';
public const PAB = 'PAB';
public const PEN = 'PEN';
public const PHP = 'PHP';
public const PKR = 'PKR';
public const PLN = 'PLN';
public const PYG = 'PYG';
public const QAR = 'QAR';
public const RON = 'RON';
public const RSD = 'RSD';
public const RUB = 'RUB';
public const RWF = 'RWF';
public const SAR = 'SAR';
public const SDG = 'SDG';
public const SEK = 'SEK';
public const SGD = 'SGD';
public const SOS = 'SOS';
public const SYP = 'SYP';
public const THB = 'THB';
public const TND = 'TND';
public const TOP = 'TOP';
public const TRY = 'TRY';
public const TTD = 'TTD';
public const TWD = 'TWD';
public const TZS = 'TZS';
public const UAH = 'UAH';
public const UGX = 'UGX';
public const UYU = 'UYU';
public const UZS = 'UZS';
public const VEF = 'VEF';
public const VND = 'VND';
public const XAF = 'XAF';
public const XOF = 'XOF';
public const YER = 'YER';
public const ZAR = 'ZAR';
public const ZMK = 'ZMK';
public const ZWL = 'ZWL';


private const CODE = 'code';
private const COUNTRY_NAME = 'country_name';
private const CURRENCY = 'currency';
private const SYMBOL = 'symbol';
private const SYMBOL_NATIVE = 'symbol_native';
private const DECIMAL_DIGITS = 'decimal_digits';
private const ROUNDING = 'rounding';
private const NAME_PLURAL = 'name_plural';


private static array $currencies = [
    self::USD => [self::COUNTRY_NAME => 'US Dollar', self::CODE => self::USD, self::CURRENCY => 'US Dollar', self::SYMBOL => '$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'US dollars'],
    self::CAD => [self::COUNTRY_NAME => 'Canadian Dollar', self::CODE => self::CAD, self::CURRENCY => 'Canadian Dollar', self::SYMBOL => 'CA$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Canadian dollars'],
    self::EUR => [self::COUNTRY_NAME => 'Euro', self::CODE => self::EUR, self::CURRENCY => 'Euro', self::SYMBOL => '€', self::SYMBOL_NATIVE => '€', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'euros'],
    self::AED => [self::COUNTRY_NAME => 'United Arab Emirates Dirham', self::CODE => self::AED, self::CURRENCY => 'United Arab Emirates Dirham', self::SYMBOL => 'AED', self::SYMBOL_NATIVE => 'د.إ.‏', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'UAE dirhams'],
    self::AFN => [self::COUNTRY_NAME => 'Afghan Afghani', self::CODE => self::AFN, self::CURRENCY => 'Afghan Afghani', self::SYMBOL => 'Af', self::SYMBOL_NATIVE => '؋', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Afghan Afghanis'],
    self::ALL => [self::COUNTRY_NAME => 'Albanian Lek', self::CODE => self::ALL, self::CURRENCY => 'Albanian Lek', self::SYMBOL => 'ALL', self::SYMBOL_NATIVE => 'Lek', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Albanian lekë'],
    self::AMD => [self::COUNTRY_NAME => 'Armenian Dram', self::CODE => self::AMD, self::CURRENCY => 'Armenian Dram', self::SYMBOL => 'AMD', self::SYMBOL_NATIVE => 'դր.', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Armenian drams'],
    self::ARS => [self::COUNTRY_NAME => 'Argentine Peso', self::CODE => self::ARS, self::CURRENCY => 'Argentine Peso', self::SYMBOL => 'AR$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Argentine pesos'],
    self::AUD => [self::COUNTRY_NAME => 'Australian Dollar', self::CODE => self::AUD, self::CURRENCY => 'Australian Dollar', self::SYMBOL => 'AU$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Australian dollars'],
    self::AZN => [self::COUNTRY_NAME => 'Azerbaijani Manat', self::CODE => self::AZN, self::CURRENCY => 'Azerbaijani Manat', self::SYMBOL => 'man.', self::SYMBOL_NATIVE => 'ман.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Azerbaijani manats'],
    self::BAM => [self::COUNTRY_NAME => 'Bosnia-Herzegovina Convertible Mark', self::CODE => self::BAM, self::CURRENCY => 'Bosnia-Herzegovina Convertible Mark', self::SYMBOL => 'KM', self::SYMBOL_NATIVE => 'KM', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Bosnia-Herzegovina convertible marks'],
    self::BDT => [self::COUNTRY_NAME => 'Bangladeshi Taka', self::CODE => self::BDT, self::CURRENCY => 'Bangladeshi Taka', self::SYMBOL => 'Tk', self::SYMBOL_NATIVE => '৳', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Bangladeshi takas'],
    self::BGN => [self::COUNTRY_NAME => 'Bulgarian Lev', self::CODE => self::BGN, self::CURRENCY => 'Bulgarian Lev', self::SYMBOL => 'BGN', self::SYMBOL_NATIVE => 'лв.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Bulgarian leva'],
    self::BHD => [self::COUNTRY_NAME => 'Bahraini Dinar', self::CODE => self::BHD, self::CURRENCY => 'Bahraini Dinar', self::SYMBOL => 'BD', self::SYMBOL_NATIVE => 'د.ب.‏', self::DECIMAL_DIGITS => 3, self::ROUNDING => 0, self::NAME_PLURAL => 'Bahraini dinars'],
    self::BIF => [self::COUNTRY_NAME => 'Burundian Franc', self::CODE => self::BIF, self::CURRENCY => 'Burundian Franc', self::SYMBOL => 'FBu', self::SYMBOL_NATIVE => 'FBu', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Burundian francs'],
    self::BND => [self::COUNTRY_NAME => 'Brunei Dollar', self::CODE => self::BND, self::CURRENCY => 'Brunei Dollar', self::SYMBOL => 'BN$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Brunei dollars'],
    self::BOB => [self::COUNTRY_NAME => 'Bolivian Boliviano', self::CODE => self::BOB, self::CURRENCY => 'Bolivian Boliviano', self::SYMBOL => 'Bs', self::SYMBOL_NATIVE => 'Bs', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Bolivian bolivianos'],
    self::BRL => [self::COUNTRY_NAME => 'Brazilian Real', self::CODE => self::BRL, self::CURRENCY => 'Brazilian Real', self::SYMBOL => 'R$', self::SYMBOL_NATIVE => 'R$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Brazilian reals'],
    self::BWP => [self::COUNTRY_NAME => 'Botswanan Pula', self::CODE => self::BWP, self::CURRENCY => 'Botswanan Pula', self::SYMBOL => 'BWP', self::SYMBOL_NATIVE => 'P', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Botswanan pulas'],
    self::BYN => [self::COUNTRY_NAME => 'Belarusian Ruble', self::CODE => self::BYN, self::CURRENCY => 'Belarusian Ruble', self::SYMBOL => 'Br', self::SYMBOL_NATIVE => 'руб.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Belarusian rubles'],
    self::BZD => [self::COUNTRY_NAME => 'Belize Dollar', self::CODE => self::BZD, self::CURRENCY => 'Belize Dollar', self::SYMBOL => 'BZ$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Belize dollars'],
    self::CDF => [self::COUNTRY_NAME => 'Congolese Franc', self::CODE => self::CDF, self::CURRENCY => 'Congolese Franc', self::SYMBOL => 'CDF', self::SYMBOL_NATIVE => 'FrCD', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Congolese francs'],
    self::CHF => [self::COUNTRY_NAME => 'Swiss Franc', self::CODE => self::CHF, self::CURRENCY => 'Swiss Franc', self::SYMBOL => 'CHF', self::SYMBOL_NATIVE => 'CHF', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0.05, self::NAME_PLURAL => 'Swiss francs'],
    self::CLP => [self::COUNTRY_NAME => 'Chilean Peso', self::CODE => self::CLP, self::CURRENCY => 'Chilean Peso', self::SYMBOL => 'CL$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Chilean pesos'],
    self::CNY => [self::COUNTRY_NAME => 'Chinese Yuan', self::CODE => self::CNY, self::CURRENCY => 'Chinese Yuan', self::SYMBOL => 'CN¥', self::SYMBOL_NATIVE => 'CN¥', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Chinese yuan'],
    self::COP => [self::COUNTRY_NAME => 'Colombian Peso', self::CODE => self::COP, self::CURRENCY => 'Colombian Peso', self::SYMBOL => 'CO$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Colombian pesos'],
    self::CRC => [self::COUNTRY_NAME => 'Costa Rican Colón', self::CODE => self::CRC, self::CURRENCY => 'Costa Rican Colón', self::SYMBOL => '₡', self::SYMBOL_NATIVE => '₡', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Costa Rican colóns'],
    self::CVE => [self::COUNTRY_NAME => 'Cape Verdean Escudo', self::CODE => self::CVE, self::CURRENCY => 'Cape Verdean Escudo', self::SYMBOL => 'CV$', self::SYMBOL_NATIVE => 'CV$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Cape Verdean escudos'],
    self::CZK => [self::COUNTRY_NAME => 'Czech Republic Koruna', self::CODE => self::CZK, self::CURRENCY => 'Czech Republic Koruna', self::SYMBOL => 'Kč', self::SYMBOL_NATIVE => 'Kč', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Czech Republic korunas'],
    self::DJF => [self::COUNTRY_NAME => 'Djiboutian Franc', self::CODE => self::DJF, self::CURRENCY => 'Djiboutian Franc', self::SYMBOL => 'Fdj', self::SYMBOL_NATIVE => 'Fdj', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Djiboutian francs'],
    self::DKK => [self::COUNTRY_NAME => 'Danish Krone', self::CODE => self::DKK, self::CURRENCY => 'Danish Krone', self::SYMBOL => 'Dkr', self::SYMBOL_NATIVE => 'kr', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Danish kroner'],
    self::DOP => [self::COUNTRY_NAME => 'Dominican Peso', self::CODE => self::DOP, self::CURRENCY => 'Dominican Peso', self::SYMBOL => 'RD$', self::SYMBOL_NATIVE => 'RD$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Dominican pesos'],
    self::DZD => [self::COUNTRY_NAME => 'Algerian Dinar', self::CODE => self::DZD, self::CURRENCY => 'Algerian Dinar', self::SYMBOL => 'DA', self::SYMBOL_NATIVE => 'د.ج.‏', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Algerian dinars'],
    self::EEK => [self::COUNTRY_NAME => 'Estonian Kroon', self::CODE => self::EEK, self::CURRENCY => 'Estonian Kroon', self::SYMBOL => 'Ekr', self::SYMBOL_NATIVE => 'kr', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Estonian kroons'],
    self::EGP => [self::COUNTRY_NAME => 'Egyptian Pound', self::CODE => self::EGP, self::CURRENCY => 'Egyptian Pound', self::SYMBOL => 'EGP', self::SYMBOL_NATIVE => 'ج.م.‏', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Egyptian pounds'],
    self::ERN => [self::COUNTRY_NAME => 'Eritrean Nakfa', self::CODE => self::ERN, self::CURRENCY => 'Eritrean Nakfa', self::SYMBOL => 'Nfk', self::SYMBOL_NATIVE => 'Nfk', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Eritrean nakfas'],
    self::ETB => [self::COUNTRY_NAME => 'Ethiopian Birr', self::CODE => self::ETB, self::CURRENCY => 'Ethiopian Birr', self::SYMBOL => 'Br', self::SYMBOL_NATIVE => 'Br', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Ethiopian birrs'],
    self::GBP => [self::COUNTRY_NAME => 'British Pound Sterling', self::CODE => self::GBP, self::CURRENCY => 'British Pound Sterling', self::SYMBOL => '£', self::SYMBOL_NATIVE => '£', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'British pounds sterling'],
    self::GEL => [self::COUNTRY_NAME => 'Georgian Lari', self::CODE => self::GEL, self::CURRENCY => 'Georgian Lari', self::SYMBOL => 'GEL', self::SYMBOL_NATIVE => 'GEL', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Georgian laris'],
    self::GHS => [self::COUNTRY_NAME => 'Ghanaian Cedi', self::CODE => self::GHS, self::CURRENCY => 'Ghanaian Cedi', self::SYMBOL => 'GH₵', self::SYMBOL_NATIVE => 'GH₵', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Ghanaian cedis'],
    self::GNF => [self::COUNTRY_NAME => 'Guinean Franc', self::CODE => self::GNF, self::CURRENCY => 'Guinean Franc', self::SYMBOL => 'FG', self::SYMBOL_NATIVE => 'FG', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Guinean francs'],
    self::GTQ => [self::COUNTRY_NAME => 'Guatemalan Quetzal', self::CODE => self::GTQ, self::CURRENCY => 'Guatemalan Quetzal', self::SYMBOL => 'GTQ', self::SYMBOL_NATIVE => 'Q', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Guatemalan quetzals'],
    self::HKD => [self::COUNTRY_NAME => 'Hong Kong Dollar', self::CODE => self::HKD, self::CURRENCY => 'Hong Kong Dollar', self::SYMBOL => 'HK$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Hong Kong dollars'],
    self::HNL => [self::COUNTRY_NAME => 'Honduran Lempira', self::CODE => self::HNL, self::CURRENCY => 'Honduran Lempira', self::SYMBOL => 'HNL', self::SYMBOL_NATIVE => 'L', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Honduran lempiras'],
    self::HRK => [self::COUNTRY_NAME => 'Croatian Kuna', self::CODE => self::HRK, self::CURRENCY => 'Croatian Kuna', self::SYMBOL => 'kn', self::SYMBOL_NATIVE => 'kn', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Croatian kunas'],
    self::HUF => [self::COUNTRY_NAME => 'Hungarian Forint', self::CODE => self::HUF, self::CURRENCY => 'Hungarian Forint', self::SYMBOL => 'Ft', self::SYMBOL_NATIVE => 'Ft', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Hungarian forints'],
    self::IDR => [self::COUNTRY_NAME => 'Indonesian Rupiah', self::CODE => self::IDR, self::CURRENCY => 'Indonesian Rupiah', self::SYMBOL => 'Rp', self::SYMBOL_NATIVE => 'Rp', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Indonesian rupiahs'],
    self::ILS => [self::COUNTRY_NAME => 'Israeli New Sheqel', self::CODE => self::ILS, self::CURRENCY => 'Israeli New Sheqel', self::SYMBOL => '₪', self::SYMBOL_NATIVE => '₪', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Israeli new sheqels'],
    self::INR => [self::COUNTRY_NAME => 'Indian Rupee', self::CODE => self::INR, self::CURRENCY => 'Indian Rupee', self::SYMBOL => 'Rs', self::SYMBOL_NATIVE => 'টকা', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Indian rupees'],
    self::IQD => [self::COUNTRY_NAME => 'Iraqi Dinar', self::CODE => self::IQD, self::CURRENCY => 'Iraqi Dinar', self::SYMBOL => 'IQD', self::SYMBOL_NATIVE => 'د.ع.‏', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Iraqi dinars'],
    self::IRR => [self::COUNTRY_NAME => 'Iranian Rial', self::CODE => self::IRR, self::CURRENCY => 'Iranian Rial', self::SYMBOL => 'IRR', self::SYMBOL_NATIVE => '﷼', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Iranian rials'],
    self::ISK => [self::COUNTRY_NAME => 'Icelandic Króna', self::CODE => self::ISK, self::CURRENCY => 'Icelandic Króna', self::SYMBOL => 'Ikr', self::SYMBOL_NATIVE => 'kr', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Icelandic krónur'],
    self::JMD => [self::COUNTRY_NAME => 'Jamaican Dollar', self::CODE => self::JMD, self::CURRENCY => 'Jamaican Dollar', self::SYMBOL => 'J$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Jamaican dollars'],
    self::JOD => [self::COUNTRY_NAME => 'Jordanian Dinar', self::CODE => self::JOD, self::CURRENCY => 'Jordanian Dinar', self::SYMBOL => 'JD', self::SYMBOL_NATIVE => 'د.أ.‏', self::DECIMAL_DIGITS => 3, self::ROUNDING => 0, self::NAME_PLURAL => 'Jordanian dinars'],
    self::JPY => [self::COUNTRY_NAME => 'Japanese Yen', self::CODE => self::JPY, self::CURRENCY => 'Japanese Yen', self::SYMBOL => '¥', self::SYMBOL_NATIVE => '¥', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Japanese yen'],
    self::KES => [self::COUNTRY_NAME => 'Kenyan Shilling', self::CODE => self::KES, self::CURRENCY => 'Kenyan Shilling', self::SYMBOL => 'Ksh', self::SYMBOL_NATIVE => 'Ksh', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Kenyan shillings'],
    self::KHR => [self::COUNTRY_NAME => 'Cambodian Riel', self::CODE => self::KHR, self::CURRENCY => 'Cambodian Riel', self::SYMBOL => 'KHR', self::SYMBOL_NATIVE => '៛', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Cambodian riels'],
    self::KMF => [self::COUNTRY_NAME => 'Comorian Franc', self::CODE => self::KMF, self::CURRENCY => 'Comorian Franc', self::SYMBOL => 'CF', self::SYMBOL_NATIVE => 'FC', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Comorian francs'],
    self::KRW => [self::COUNTRY_NAME => 'South Korean Won', self::CODE => self::KRW, self::CURRENCY => 'South Korean Won', self::SYMBOL => '₩', self::SYMBOL_NATIVE => '₩', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'South Korean won'],
    self::KWD => [self::COUNTRY_NAME => 'Kuwaiti Dinar', self::CODE => self::KWD, self::CURRENCY => 'Kuwaiti Dinar', self::SYMBOL => 'KD', self::SYMBOL_NATIVE => 'د.ك.‏', self::DECIMAL_DIGITS => 3, self::ROUNDING => 0, self::NAME_PLURAL => 'Kuwaiti dinars'],
    self::KZT => [self::COUNTRY_NAME => 'Kazakhstani Tenge', self::CODE => self::KZT, self::CURRENCY => 'Kazakhstani Tenge', self::SYMBOL => 'KZT', self::SYMBOL_NATIVE => 'тңг.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Kazakhstani tenges'],
    self::LBP => [self::COUNTRY_NAME => 'Lebanese Pound', self::CODE => self::LBP, self::CURRENCY => 'Lebanese Pound', self::SYMBOL => 'L.L.', self::SYMBOL_NATIVE => 'ل.ل.‏', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Lebanese pounds'],
    self::LKR => [self::COUNTRY_NAME => 'Sri Lankan Rupee', self::CODE => self::LKR, self::CURRENCY => 'Sri Lankan Rupee', self::SYMBOL => 'SLRs', self::SYMBOL_NATIVE => 'SL Re', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Sri Lankan rupees'],
    self::LTL => [self::COUNTRY_NAME => 'Lithuanian Litas', self::CODE => self::LTL, self::CURRENCY => 'Lithuanian Litas', self::SYMBOL => 'Lt', self::SYMBOL_NATIVE => 'Lt', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Lithuanian litai'],
    self::LVL => [self::COUNTRY_NAME => 'Latvian Lats', self::CODE => self::LVL, self::CURRENCY => 'Latvian Lats', self::SYMBOL => 'Ls', self::SYMBOL_NATIVE => 'Ls', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Latvian lati'],
    self::LYD => [self::COUNTRY_NAME => 'Libyan Dinar', self::CODE => self::LYD, self::CURRENCY => 'Libyan Dinar', self::SYMBOL => 'LD', self::SYMBOL_NATIVE => 'د.ل.‏', self::DECIMAL_DIGITS => 3, self::ROUNDING => 0, self::NAME_PLURAL => 'Libyan dinars'],
    self::MAD => [self::COUNTRY_NAME => 'Moroccan Dirham', self::CODE => self::MAD, self::CURRENCY => 'Moroccan Dirham', self::SYMBOL => 'MAD', self::SYMBOL_NATIVE => 'د.م.‏', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Moroccan dirhams'],
    self::MDL => [self::COUNTRY_NAME => 'Moldovan Leu', self::CODE => self::MDL, self::CURRENCY => 'Moldovan Leu', self::SYMBOL => 'MDL', self::SYMBOL_NATIVE => 'MDL', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Moldovan lei'],
    self::MGA => [self::COUNTRY_NAME => 'Malagasy Ariary', self::CODE => self::MGA, self::CURRENCY => 'Malagasy Ariary', self::SYMBOL => 'MGA', self::SYMBOL_NATIVE => 'MGA', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Malagasy Ariaries'],
    self::MKD => [self::COUNTRY_NAME => 'Macedonian Denar', self::CODE => self::MKD, self::CURRENCY => 'Macedonian Denar', self::SYMBOL => 'MKD', self::SYMBOL_NATIVE => 'MKD', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Macedonian denari'],
    self::MMK => [self::COUNTRY_NAME => 'Myanma Kyat', self::CODE => self::MMK, self::CURRENCY => 'Myanma Kyat', self::SYMBOL => 'MMK', self::SYMBOL_NATIVE => 'K', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Myanma kyats'],
    self::MOP => [self::COUNTRY_NAME => 'Macanese Pataca', self::CODE => self::MOP, self::CURRENCY => 'Macanese Pataca', self::SYMBOL => 'MOP$', self::SYMBOL_NATIVE => 'MOP$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Macanese patacas'],
    self::MUR => [self::COUNTRY_NAME => 'Mauritian Rupee', self::CODE => self::MUR, self::CURRENCY => 'Mauritian Rupee', self::SYMBOL => 'MURs', self::SYMBOL_NATIVE => 'MURs', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Mauritian rupees'],
    self::MXN => [self::COUNTRY_NAME => 'Mexican Peso', self::CODE => self::MXN, self::CURRENCY => 'Mexican Peso', self::SYMBOL => 'MX$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Mexican pesos'],
    self::MYR => [self::COUNTRY_NAME => 'Malaysian Ringgit', self::CODE => self::MYR, self::CURRENCY => 'Malaysian Ringgit', self::SYMBOL => 'RM', self::SYMBOL_NATIVE => 'RM', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Malaysian ringgits'],
    self::MZN => [self::COUNTRY_NAME => 'Mozambican Metical', self::CODE => self::MZN, self::CURRENCY => 'Mozambican Metical', self::SYMBOL => 'MTn', self::SYMBOL_NATIVE => 'MTn', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Mozambican meticals'],
    self::NAD => [self::COUNTRY_NAME => 'Namibian Dollar', self::CODE => self::NAD, self::CURRENCY => 'Namibian Dollar', self::SYMBOL => 'N$', self::SYMBOL_NATIVE => 'N$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Namibian dollars'],
    self::NGN => [self::COUNTRY_NAME => 'Nigerian Naira', self::CODE => self::NGN, self::CURRENCY => 'Nigerian Naira', self::SYMBOL => '₦', self::SYMBOL_NATIVE => '₦', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Nigerian nairas'],
    self::NIO => [self::COUNTRY_NAME => 'Nicaraguan Córdoba', self::CODE => self::NIO, self::CURRENCY => 'Nicaraguan Córdoba', self::SYMBOL => 'C$', self::SYMBOL_NATIVE => 'C$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Nicaraguan córdobas'],
    self::NOK => [self::COUNTRY_NAME => 'Norwegian Krone', self::CODE => self::NOK, self::CURRENCY => 'Norwegian Krone', self::SYMBOL => 'Nkr', self::SYMBOL_NATIVE => 'kr', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Norwegian kroner'],
    self::NPR => [self::COUNTRY_NAME => 'Nepalese Rupee', self::CODE => self::NPR, self::CURRENCY => 'Nepalese Rupee', self::SYMBOL => 'NPRs', self::SYMBOL_NATIVE => 'नेरू', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Nepalese rupees'],
    self::NZD => [self::COUNTRY_NAME => 'New Zealand Dollar', self::CODE => self::NZD, self::CURRENCY => 'New Zealand Dollar', self::SYMBOL => 'NZ$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'New Zealand dollars'],
    self::OMR => [self::COUNTRY_NAME => 'Omani Rial', self::CODE => self::OMR, self::CURRENCY => 'Omani Rial', self::SYMBOL => 'OMR', self::SYMBOL_NATIVE => 'ر.ع.‏', self::DECIMAL_DIGITS => 3, self::ROUNDING => 0, self::NAME_PLURAL => 'Omani rials'],
    self::PAB => [self::COUNTRY_NAME => 'Panamanian Balboa', self::CODE => self::PAB, self::CURRENCY => 'Panamanian Balboa', self::SYMBOL => 'B/.', self::SYMBOL_NATIVE => 'B/.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Panamanian balboas'],
    self::PEN => [self::COUNTRY_NAME => 'Peruvian Nuevo Sol', self::CODE => self::PEN, self::CURRENCY => 'Peruvian Nuevo Sol', self::SYMBOL => 'S/.', self::SYMBOL_NATIVE => 'S/.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Peruvian nuevos soles'],
    self::PHP => [self::COUNTRY_NAME => 'Philippine Peso', self::CODE => self::PHP, self::CURRENCY => 'Philippine Peso', self::SYMBOL => '₱', self::SYMBOL_NATIVE => '₱', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Philippine pesos'],
    self::PKR => [self::COUNTRY_NAME => 'Pakistani Rupee', self::CODE => self::PKR, self::CURRENCY => 'Pakistani Rupee', self::SYMBOL => 'PKRs', self::SYMBOL_NATIVE => '₨', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Pakistani rupees'],
    self::PLN => [self::COUNTRY_NAME => 'Polish Zloty', self::CODE => self::PLN, self::CURRENCY => 'Polish Zloty', self::SYMBOL => 'zł', self::SYMBOL_NATIVE => 'zł', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Polish zlotys'],
    self::PYG => [self::COUNTRY_NAME => 'Paraguayan Guarani', self::CODE => self::PYG, self::CURRENCY => 'Paraguayan Guarani', self::SYMBOL => '₲', self::SYMBOL_NATIVE => '₲', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Paraguayan guaranis'],
    self::QAR => [self::COUNTRY_NAME => 'Qatari Rial', self::CODE => self::QAR, self::CURRENCY => 'Qatari Rial', self::SYMBOL => 'QR', self::SYMBOL_NATIVE => 'ر.ق.‏', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Qatari rials'],
    self::RON => [self::COUNTRY_NAME => 'Romanian Leu', self::CODE => self::RON, self::CURRENCY => 'Romanian Leu', self::SYMBOL => 'RON', self::SYMBOL_NATIVE => 'RON', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Romanian lei'],
    self::RSD => [self::COUNTRY_NAME => 'Serbian Dinar', self::CODE => self::RSD, self::CURRENCY => 'Serbian Dinar', self::SYMBOL => 'din.', self::SYMBOL_NATIVE => 'дин.', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Serbian dinars'],
    self::RUB => [self::COUNTRY_NAME => 'Russian Ruble', self::CODE => self::RUB, self::CURRENCY => 'Russian Ruble', self::SYMBOL => 'RUB', self::SYMBOL_NATIVE => '₽.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Russian rubles'],
    self::RWF => [self::COUNTRY_NAME => 'Rwandan Franc', self::CODE => self::RWF, self::CURRENCY => 'Rwandan Franc', self::SYMBOL => 'RWF', self::SYMBOL_NATIVE => 'FR', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Rwandan francs'],
    self::SAR => [self::COUNTRY_NAME => 'Saudi Riyal', self::CODE => self::SAR, self::CURRENCY => 'Saudi Riyal', self::SYMBOL => 'SR', self::SYMBOL_NATIVE => 'ر.س.‏', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Saudi riyals'],
    self::SDG => [self::COUNTRY_NAME => 'Sudanese Pound', self::CODE => self::SDG, self::CURRENCY => 'Sudanese Pound', self::SYMBOL => 'SDG', self::SYMBOL_NATIVE => 'SDG', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Sudanese pounds'],
    self::SEK => [self::COUNTRY_NAME => 'Swedish Krona', self::CODE => self::SEK, self::CURRENCY => 'Swedish Krona', self::SYMBOL => 'Skr', self::SYMBOL_NATIVE => 'kr', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Swedish kronor'],
    self::SGD => [self::COUNTRY_NAME => 'Singapore Dollar', self::CODE => self::SGD, self::CURRENCY => 'Singapore Dollar', self::SYMBOL => 'S$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Singapore dollars'],
    self::SOS => [self::COUNTRY_NAME => 'Somali Shilling', self::CODE => self::SOS, self::CURRENCY => 'Somali Shilling', self::SYMBOL => 'Ssh', self::SYMBOL_NATIVE => 'Ssh', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Somali shillings'],
    self::SYP => [self::COUNTRY_NAME => 'Syrian Pound', self::CODE => self::SYP, self::CURRENCY => 'Syrian Pound', self::SYMBOL => 'SY£', self::SYMBOL_NATIVE => 'ل.س.‏', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Syrian pounds'],
    self::THB => [self::COUNTRY_NAME => 'Thai Baht', self::CODE => self::THB, self::CURRENCY => 'Thai Baht', self::SYMBOL => '฿', self::SYMBOL_NATIVE => '฿', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Thai baht'],
    self::TND => [self::COUNTRY_NAME => 'Tunisian Dinar', self::CODE => self::TND, self::CURRENCY => 'Tunisian Dinar', self::SYMBOL => 'DT', self::SYMBOL_NATIVE => 'د.ت.‏', self::DECIMAL_DIGITS => 3, self::ROUNDING => 0, self::NAME_PLURAL => 'Tunisian dinars'],
    self::TOP => [self::COUNTRY_NAME => 'Tongan Paʻanga', self::CODE => self::TOP, self::CURRENCY => 'Tongan Paʻanga', self::SYMBOL => 'T$', self::SYMBOL_NATIVE => 'T$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Tongan paʻanga'],
    self::TRY => [self::COUNTRY_NAME => 'Turkish Lira', self::CODE => self::TRY, self::CURRENCY => 'Turkish Lira', self::SYMBOL => 'TL', self::SYMBOL_NATIVE => 'TL', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Turkish Lira'],
    self::TTD => [self::COUNTRY_NAME => 'Trinidad and Tobago Dollar', self::CODE => self::TTD, self::CURRENCY => 'Trinidad and Tobago Dollar', self::SYMBOL => 'TT$', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Trinidad and Tobago dollars'],
    self::TWD => [self::COUNTRY_NAME => 'New Taiwan Dollar', self::CODE => self::TWD, self::CURRENCY => 'New Taiwan Dollar', self::SYMBOL => 'NT$', self::SYMBOL_NATIVE => 'NT$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'New Taiwan dollars'],
    self::TZS => [self::COUNTRY_NAME => 'Tanzanian Shilling', self::CODE => self::TZS, self::CURRENCY => 'Tanzanian Shilling', self::SYMBOL => 'TSh', self::SYMBOL_NATIVE => 'TSh', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Tanzanian shillings'],
    self::UAH => [self::COUNTRY_NAME => 'Ukrainian Hryvnia', self::CODE => self::UAH, self::CURRENCY => 'Ukrainian Hryvnia', self::SYMBOL => '₴', self::SYMBOL_NATIVE => '₴', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Ukrainian hryvnias'],
    self::UGX => [self::COUNTRY_NAME => 'Ugandan Shilling', self::CODE => self::UGX, self::CURRENCY => 'Ugandan Shilling', self::SYMBOL => 'USh', self::SYMBOL_NATIVE => 'USh', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Ugandan shillings'],
    self::UYU => [self::COUNTRY_NAME => 'Uruguayan Peso', self::CODE => self::UYU, self::CURRENCY => 'Uruguayan Peso', self::SYMBOL => '$U', self::SYMBOL_NATIVE => '$', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Uruguayan pesos'],
    self::UZS => [self::COUNTRY_NAME => 'Uzbekistan Som', self::CODE => self::UZS, self::CURRENCY => 'Uzbekistan Som', self::SYMBOL => 'UZS', self::SYMBOL_NATIVE => 'UZS', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Uzbekistan som'],
    self::VEF => [self::COUNTRY_NAME => 'Venezuelan Bolívar', self::CODE => self::VEF, self::CURRENCY => 'Venezuelan Bolívar', self::SYMBOL => 'Bs.F.', self::SYMBOL_NATIVE => 'Bs.F.', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'Venezuelan bolívars'],
    self::VND => [self::COUNTRY_NAME => 'Vietnamese Dong', self::CODE => self::VND, self::CURRENCY => 'Vietnamese Dong', self::SYMBOL => '₫', self::SYMBOL_NATIVE => '₫', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Vietnamese dong'],
    self::XAF => [self::COUNTRY_NAME => 'CFA Franc BEAC', self::CODE => self::XAF, self::CURRENCY => 'CFA Franc BEAC', self::SYMBOL => 'FCFA', self::SYMBOL_NATIVE => 'FCFA', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'CFA francs BEAC'],
    self::XOF => [self::COUNTRY_NAME => 'CFA Franc BCEAO', self::CODE => self::XOF, self::CURRENCY => 'CFA Franc BCEAO', self::SYMBOL => 'CFA', self::SYMBOL_NATIVE => 'CFA', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'CFA francs BCEAO'],
    self::YER => [self::COUNTRY_NAME => 'Yemeni Rial', self::CODE => self::YER, self::CURRENCY => 'Yemeni Rial', self::SYMBOL => 'YR', self::SYMBOL_NATIVE => 'ر.ي.‏', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Yemeni rials'],
    self::ZAR => [self::COUNTRY_NAME => 'South African Rand', self::CODE => self::ZAR, self::CURRENCY => 'South African Rand', self::SYMBOL => 'R', self::SYMBOL_NATIVE => 'R', self::DECIMAL_DIGITS => 2, self::ROUNDING => 0, self::NAME_PLURAL => 'South African rand'],
    self::ZMK => [self::COUNTRY_NAME => 'Zambian Kwacha', self::CODE => self::ZMK, self::CURRENCY => 'Zambian Kwacha', self::SYMBOL => 'ZK', self::SYMBOL_NATIVE => 'ZK', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Zambian kwachas'],
    self::ZWL => [self::COUNTRY_NAME => 'Zimbabwean Dollar', self::CODE => self::ZWL, self::CURRENCY => 'Zimbabwean Dollar', self::SYMBOL => 'ZWL$', self::SYMBOL_NATIVE => 'ZWL$', self::DECIMAL_DIGITS => 0, self::ROUNDING => 0, self::NAME_PLURAL => 'Zimbabwean Dollar']
];

}`

@gemmadlou
Copy link

For those who are reading along:

I've just put this gist in a repository so PR's can be made: https://github.com/expedition-robin-martijn/common-currency/blob/main/common-currency.json

Feel free to make a PR for missing/incorrect data.

Thanks @bitfactory-robin-martijn

@CappaCoppa
Copy link

[
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
{
"symbol": "CA$",
"name": "Canadian Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "CAD",
"name_plural": "Canadian dollars"
},
{
"symbol": "€",
"name": "Euro",
"symbol_native": "€",
"decimal_digits": 2,
"rounding": 0,
"code": "EUR",
"name_plural": "euros"
},
{
"symbol": "AED",
"name": "United Arab Emirates Dirham",
"symbol_native": "د.إ.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "AED",
"name_plural": "UAE dirhams"
},
{
"symbol": "Af",
"name": "Afghan Afghani",
"symbol_native": "؋",
"decimal_digits": 0,
"rounding": 0,
"code": "AFN",
"name_plural": "Afghan Afghanis"
},
{
"symbol": "ALL",
"name": "Albanian Lek",
"symbol_native": "Lek",
"decimal_digits": 0,
"rounding": 0,
"code": "ALL",
"name_plural": "Albanian lekë"
},
{
"symbol": "AMD",
"name": "Armenian Dram",
"symbol_native": "դր.",
"decimal_digits": 0,
"rounding": 0,
"code": "AMD",
"name_plural": "Armenian drams"
},
{
"symbol": "AR$",
"name": "Argentine Peso",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "ARS",
"name_plural": "Argentine pesos"
},
{
"symbol": "AU$",
"name": "Australian Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "AUD",
"name_plural": "Australian dollars"
},
{
"symbol": "man.",
"name": "Azerbaijani Manat",
"symbol_native": "ман.",
"decimal_digits": 2,
"rounding": 0,
"code": "AZN",
"name_plural": "Azerbaijani manats"
},
{
"symbol": "KM",
"name": "Bosnia-Herzegovina Convertible Mark",
"symbol_native": "KM",
"decimal_digits": 2,
"rounding": 0,
"code": "BAM",
"name_plural": "Bosnia-Herzegovina convertible marks"
},
{
"symbol": "Tk",
"name": "Bangladeshi Taka",
"symbol_native": "৳",
"decimal_digits": 2,
"rounding": 0,
"code": "BDT",
"name_plural": "Bangladeshi takas"
},
{
"symbol": "BGN",
"name": "Bulgarian Lev",
"symbol_native": "лв.",
"decimal_digits": 2,
"rounding": 0,
"code": "BGN",
"name_plural": "Bulgarian leva"
},
{
"symbol": "BD",
"name": "Bahraini Dinar",
"symbol_native": "د.ب.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "BHD",
"name_plural": "Bahraini dinars"
},
{
"symbol": "FBu",
"name": "Burundian Franc",
"symbol_native": "FBu",
"decimal_digits": 0,
"rounding": 0,
"code": "BIF",
"name_plural": "Burundian francs"
},
{
"symbol": "BN$",
"name": "Brunei Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "BND",
"name_plural": "Brunei dollars"
},
{
"symbol": "Bs",
"name": "Bolivian Boliviano",
"symbol_native": "Bs",
"decimal_digits": 2,
"rounding": 0,
"code": "BOB",
"name_plural": "Bolivian bolivianos"
},
{
"symbol": "R$",
"name": "Brazilian Real",
"symbol_native": "R$",
"decimal_digits": 2,
"rounding": 0,
"code": "BRL",
"name_plural": "Brazilian reals"
},
{
"symbol": "BWP",
"name": "Botswanan Pula",
"symbol_native": "P",
"decimal_digits": 2,
"rounding": 0,
"code": "BWP",
"name_plural": "Botswanan pulas"
},
{
"symbol": "Br",
"name": "Belarusian Ruble",
"symbol_native": "руб.",
"decimal_digits": 2,
"rounding": 0,
"code": "BYN",
"name_plural": "Belarusian rubles"
},
{
"symbol": "BZ$",
"name": "Belize Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "BZD",
"name_plural": "Belize dollars"
},
{
"symbol": "CDF",
"name": "Congolese Franc",
"symbol_native": "FrCD",
"decimal_digits": 2,
"rounding": 0,
"code": "CDF",
"name_plural": "Congolese francs"
},
{
"symbol": "CHF",
"name": "Swiss Franc",
"symbol_native": "CHF",
"decimal_digits": 2,
"rounding": 0.05,
"code": "CHF",
"name_plural": "Swiss francs"
},
{
"symbol": "CL$",
"name": "Chilean Peso",
"symbol_native": "$",
"decimal_digits": 0,
"rounding": 0,
"code": "CLP",
"name_plural": "Chilean pesos"
},
{
"symbol": "CN¥",
"name": "Chinese Yuan",
"symbol_native": "CN¥",
"decimal_digits": 2,
"rounding": 0,
"code": "CNY",
"name_plural": "Chinese yuan"
},
{
"symbol": "CO$",
"name": "Colombian Peso",
"symbol_native": "$",
"decimal_digits": 0,
"rounding": 0,
"code": "COP",
"name_plural": "Colombian pesos"
},
{
"symbol": "₡",
"name": "Costa Rican Colón",
"symbol_native": "₡",
"decimal_digits": 0,
"rounding": 0,
"code": "CRC",
"name_plural": "Costa Rican colóns"
},
{
"symbol": "CV$",
"name": "Cape Verdean Escudo",
"symbol_native": "CV$",
"decimal_digits": 2,
"rounding": 0,
"code": "CVE",
"name_plural": "Cape Verdean escudos"
},
{
"symbol": "Kč",
"name": "Czech Republic Koruna",
"symbol_native": "Kč",
"decimal_digits": 2,
"rounding": 0,
"code": "CZK",
"name_plural": "Czech Republic korunas"
},
{
"symbol": "Fdj",
"name": "Djiboutian Franc",
"symbol_native": "Fdj",
"decimal_digits": 0,
"rounding": 0,
"code": "DJF",
"name_plural": "Djiboutian francs"
},
{
"symbol": "Dkr",
"name": "Danish Krone",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "DKK",
"name_plural": "Danish kroner"
},
{
"symbol": "RD$",
"name": "Dominican Peso",
"symbol_native": "RD$",
"decimal_digits": 2,
"rounding": 0,
"code": "DOP",
"name_plural": "Dominican pesos"
},
{
"symbol": "DA",
"name": "Algerian Dinar",
"symbol_native": "د.ج.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "DZD",
"name_plural": "Algerian dinars"
},
{
"symbol": "Ekr",
"name": "Estonian Kroon",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "EEK",
"name_plural": "Estonian kroons"
},
{
"symbol": "EGP",
"name": "Egyptian Pound",
"symbol_native": "ج.م.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "EGP",
"name_plural": "Egyptian pounds"
},
{
"symbol": "Nfk",
"name": "Eritrean Nakfa",
"symbol_native": "Nfk",
"decimal_digits": 2,
"rounding": 0,
"code": "ERN",
"name_plural": "Eritrean nakfas"
},
{
"symbol": "Br",
"name": "Ethiopian Birr",
"symbol_native": "Br",
"decimal_digits": 2,
"rounding": 0,
"code": "ETB",
"name_plural": "Ethiopian birrs"
},
{
"symbol": "£",
"name": "British Pound Sterling",
"symbol_native": "£",
"decimal_digits": 2,
"rounding": 0,
"code": "GBP",
"name_plural": "British pounds sterling"
},
{
"symbol": "GEL",
"name": "Georgian Lari",
"symbol_native": "GEL",
"decimal_digits": 2,
"rounding": 0,
"code": "GEL",
"name_plural": "Georgian laris"
},
{
"symbol": "GH₵",
"name": "Ghanaian Cedi",
"symbol_native": "GH₵",
"decimal_digits": 2,
"rounding": 0,
"code": "GHS",
"name_plural": "Ghanaian cedis"
},
{
"symbol": "FG",
"name": "Guinean Franc",
"symbol_native": "FG",
"decimal_digits": 0,
"rounding": 0,
"code": "GNF",
"name_plural": "Guinean francs"
},
{
"symbol": "GTQ",
"name": "Guatemalan Quetzal",
"symbol_native": "Q",
"decimal_digits": 2,
"rounding": 0,
"code": "GTQ",
"name_plural": "Guatemalan quetzals"
},
{
"symbol": "HK$",
"name": "Hong Kong Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "HKD",
"name_plural": "Hong Kong dollars"
},
{
"symbol": "HNL",
"name": "Honduran Lempira",
"symbol_native": "L",
"decimal_digits": 2,
"rounding": 0,
"code": "HNL",
"name_plural": "Honduran lempiras"
},
{
"symbol": "kn",
"name": "Croatian Kuna",
"symbol_native": "kn",
"decimal_digits": 2,
"rounding": 0,
"code": "HRK",
"name_plural": "Croatian kunas"
},
{
"symbol": "Ft",
"name": "Hungarian Forint",
"symbol_native": "Ft",
"decimal_digits": 0,
"rounding": 0,
"code": "HUF",
"name_plural": "Hungarian forints"
},
{
"symbol": "Rp",
"name": "Indonesian Rupiah",
"symbol_native": "Rp",
"decimal_digits": 0,
"rounding": 0,
"code": "IDR",
"name_plural": "Indonesian rupiahs"
},
{
"symbol": "₪",
"name": "Israeli New Sheqel",
"symbol_native": "₪",
"decimal_digits": 2,
"rounding": 0,
"code": "ILS",
"name_plural": "Israeli new sheqels"
},
{
"symbol": "Rs",
"name": "Indian Rupee",
"symbol_native": "টকা",
"decimal_digits": 2,
"rounding": 0,
"code": "INR",
"name_plural": "Indian rupees"
},
{
"symbol": "IQD",
"name": "Iraqi Dinar",
"symbol_native": "د.ع.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "IQD",
"name_plural": "Iraqi dinars"
},
{
"symbol": "IRR",
"name": "Iranian Rial",
"symbol_native": "﷼",
"decimal_digits": 0,
"rounding": 0,
"code": "IRR",
"name_plural": "Iranian rials"
},
{
"symbol": "Ikr",
"name": "Icelandic Króna",
"symbol_native": "kr",
"decimal_digits": 0,
"rounding": 0,
"code": "ISK",
"name_plural": "Icelandic krónur"
},
{
"symbol": "J$",
"name": "Jamaican Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "JMD",
"name_plural": "Jamaican dollars"
},
{
"symbol": "JD",
"name": "Jordanian Dinar",
"symbol_native": "د.أ.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "JOD",
"name_plural": "Jordanian dinars"
},
{
"symbol": "¥",
"name": "Japanese Yen",
"symbol_native": "¥",
"decimal_digits": 0,
"rounding": 0,
"code": "JPY",
"name_plural": "Japanese yen"
},
{
"symbol": "Ksh",
"name": "Kenyan Shilling",
"symbol_native": "Ksh",
"decimal_digits": 2,
"rounding": 0,
"code": "KES",
"name_plural": "Kenyan shillings"
},
{
"symbol": "KHR",
"name": "Cambodian Riel",
"symbol_native": "៛",
"decimal_digits": 2,
"rounding": 0,
"code": "KHR",
"name_plural": "Cambodian riels"
},
{
"symbol": "CF",
"name": "Comorian Franc",
"symbol_native": "FC",
"decimal_digits": 0,
"rounding": 0,
"code": "KMF",
"name_plural": "Comorian francs"
},
{
"symbol": "₩",
"name": "South Korean Won",
"symbol_native": "₩",
"decimal_digits": 0,
"rounding": 0,
"code": "KRW",
"name_plural": "South Korean won"
},
{
"symbol": "KD",
"name": "Kuwaiti Dinar",
"symbol_native": "د.ك.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "KWD",
"name_plural": "Kuwaiti dinars"
},
{
"symbol": "KZT",
"name": "Kazakhstani Tenge",
"symbol_native": "тңг.",
"decimal_digits": 2,
"rounding": 0,
"code": "KZT",
"name_plural": "Kazakhstani tenges"
},
{
"symbol": "L.L.",
"name": "Lebanese Pound",
"symbol_native": "ل.ل.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "LBP",
"name_plural": "Lebanese pounds"
},
{
"symbol": "SLRs",
"name": "Sri Lankan Rupee",
"symbol_native": "SL Re",
"decimal_digits": 2,
"rounding": 0,
"code": "LKR",
"name_plural": "Sri Lankan rupees"
},
{
"symbol": "Lt",
"name": "Lithuanian Litas",
"symbol_native": "Lt",
"decimal_digits": 2,
"rounding": 0,
"code": "LTL",
"name_plural": "Lithuanian litai"
},
{
"symbol": "Ls",
"name": "Latvian Lats",
"symbol_native": "Ls",
"decimal_digits": 2,
"rounding": 0,
"code": "LVL",
"name_plural": "Latvian lati"
},
{
"symbol": "LD",
"name": "Libyan Dinar",
"symbol_native": "د.ل.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "LYD",
"name_plural": "Libyan dinars"
},
{
"symbol": "MAD",
"name": "Moroccan Dirham",
"symbol_native": "د.م.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "MAD",
"name_plural": "Moroccan dirhams"
},
{
"symbol": "MDL",
"name": "Moldovan Leu",
"symbol_native": "MDL",
"decimal_digits": 2,
"rounding": 0,
"code": "MDL",
"name_plural": "Moldovan lei"
},
{
"symbol": "MGA",
"name": "Malagasy Ariary",
"symbol_native": "MGA",
"decimal_digits": 0,
"rounding": 0,
"code": "MGA",
"name_plural": "Malagasy Ariaries"
},
{
"symbol": "MKD",
"name": "Macedonian Denar",
"symbol_native": "MKD",
"decimal_digits": 2,
"rounding": 0,
"code": "MKD",
"name_plural": "Macedonian denari"
},
{
"symbol": "MMK",
"name": "Myanma Kyat",
"symbol_native": "K",
"decimal_digits": 0,
"rounding": 0,
"code": "MMK",
"name_plural": "Myanma kyats"
},
{
"symbol": "MOP$",
"name": "Macanese Pataca",
"symbol_native": "MOP$",
"decimal_digits": 2,
"rounding": 0,
"code": "MOP",
"name_plural": "Macanese patacas"
},
{
"symbol": "MURs",
"name": "Mauritian Rupee",
"symbol_native": "MURs",
"decimal_digits": 0,
"rounding": 0,
"code": "MUR",
"name_plural": "Mauritian rupees"
},
{
"symbol": "MX$",
"name": "Mexican Peso",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "MXN",
"name_plural": "Mexican pesos"
},
{
"symbol": "RM",
"name": "Malaysian Ringgit",
"symbol_native": "RM",
"decimal_digits": 2,
"rounding": 0,
"code": "MYR",
"name_plural": "Malaysian ringgits"
},
{
"symbol": "MTn",
"name": "Mozambican Metical",
"symbol_native": "MTn",
"decimal_digits": 2,
"rounding": 0,
"code": "MZN",
"name_plural": "Mozambican meticals"
},
{
"symbol": "N$",
"name": "Namibian Dollar",
"symbol_native": "N$",
"decimal_digits": 2,
"rounding": 0,
"code": "NAD",
"name_plural": "Namibian dollars"
},
{
"symbol": "₦",
"name": "Nigerian Naira",
"symbol_native": "₦",
"decimal_digits": 2,
"rounding": 0,
"code": "NGN",
"name_plural": "Nigerian nairas"
},
{
"symbol": "C$",
"name": "Nicaraguan Córdoba",
"symbol_native": "C$",
"decimal_digits": 2,
"rounding": 0,
"code": "NIO",
"name_plural": "Nicaraguan córdobas"
},
{
"symbol": "Nkr",
"name": "Norwegian Krone",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "NOK",
"name_plural": "Norwegian kroner"
},
{
"symbol": "NPRs",
"name": "Nepalese Rupee",
"symbol_native": "नेरू",
"decimal_digits": 2,
"rounding": 0,
"code": "NPR",
"name_plural": "Nepalese rupees"
},
{
"symbol": "NZ$",
"name": "New Zealand Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "NZD",
"name_plural": "New Zealand dollars"
},
{
"symbol": "OMR",
"name": "Omani Rial",
"symbol_native": "ر.ع.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "OMR",
"name_plural": "Omani rials"
},
{
"symbol": "B/.",
"name": "Panamanian Balboa",
"symbol_native": "B/.",
"decimal_digits": 2,
"rounding": 0,
"code": "PAB",
"name_plural": "Panamanian balboas"
},
{
"symbol": "S/.",
"name": "Peruvian Nuevo Sol",
"symbol_native": "S/.",
"decimal_digits": 2,
"rounding": 0,
"code": "PEN",
"name_plural": "Peruvian nuevos soles"
},
{
"symbol": "₱",
"name": "Philippine Peso",
"symbol_native": "₱",
"decimal_digits": 2,
"rounding": 0,
"code": "PHP",
"name_plural": "Philippine pesos"
},
{
"symbol": "PKRs",
"name": "Pakistani Rupee",
"symbol_native": "₨",
"decimal_digits": 0,
"rounding": 0,
"code": "PKR",
"name_plural": "Pakistani rupees"
},
{
"symbol": "zł",
"name": "Polish Zloty",
"symbol_native": "zł",
"decimal_digits": 2,
"rounding": 0,
"code": "PLN",
"name_plural": "Polish zlotys"
},
{
"symbol": "₲",
"name": "Paraguayan Guarani",
"symbol_native": "₲",
"decimal_digits": 0,
"rounding": 0,
"code": "PYG",
"name_plural": "Paraguayan guaranis"
},
{
"symbol": "QR",
"name": "Qatari Rial",
"symbol_native": "ر.ق.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "QAR",
"name_plural": "Qatari rials"
},
{
"symbol": "RON",
"name": "Romanian Leu",
"symbol_native": "RON",
"decimal_digits": 2,
"rounding": 0,
"code": "RON",
"name_plural": "Romanian lei"
},
{
"symbol": "din.",
"name": "Serbian Dinar",
"symbol_native": "дин.",
"decimal_digits": 0,
"rounding": 0,
"code": "RSD",
"name_plural": "Serbian dinars"
},
{
"symbol": "RUB",
"name": "Russian Ruble",
"symbol_native": "₽.",
"decimal_digits": 2,
"rounding": 0,
"code": "RUB",
"name_plural": "Russian rubles"
},
{
"symbol": "RWF",
"name": "Rwandan Franc",
"symbol_native": "FR",
"decimal_digits": 0,
"rounding": 0,
"code": "RWF",
"name_plural": "Rwandan francs"
},
{
"symbol": "SR",
"name": "Saudi Riyal",
"symbol_native": "ر.س.‏",
"decimal_digits": 2,
"rounding": 0,
"code": "SAR",
"name_plural": "Saudi riyals"
},
{
"symbol": "SDG",
"name": "Sudanese Pound",
"symbol_native": "SDG",
"decimal_digits": 2,
"rounding": 0,
"code": "SDG",
"name_plural": "Sudanese pounds"
},
{
"symbol": "Skr",
"name": "Swedish Krona",
"symbol_native": "kr",
"decimal_digits": 2,
"rounding": 0,
"code": "SEK",
"name_plural": "Swedish kronor"
},
{
"symbol": "S$",
"name": "Singapore Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "SGD",
"name_plural": "Singapore dollars"
},
{
"symbol": "Ssh",
"name": "Somali Shilling",
"symbol_native": "Ssh",
"decimal_digits": 0,
"rounding": 0,
"code": "SOS",
"name_plural": "Somali shillings"
},
{
"symbol": "SY£",
"name": "Syrian Pound",
"symbol_native": "ل.س.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "SYP",
"name_plural": "Syrian pounds"
},
{
"symbol": "฿",
"name": "Thai Baht",
"symbol_native": "฿",
"decimal_digits": 2,
"rounding": 0,
"code": "THB",
"name_plural": "Thai baht"
},
{
"symbol": "DT",
"name": "Tunisian Dinar",
"symbol_native": "د.ت.‏",
"decimal_digits": 3,
"rounding": 0,
"code": "TND",
"name_plural": "Tunisian dinars"
},
{
"symbol": "T$",
"name": "Tongan Paʻanga",
"symbol_native": "T$",
"decimal_digits": 2,
"rounding": 0,
"code": "TOP",
"name_plural": "Tongan paʻanga"
},
{
"symbol": "TL",
"name": "Turkish Lira",
"symbol_native": "TL",
"decimal_digits": 2,
"rounding": 0,
"code": "TRY",
"name_plural": "Turkish Lira"
},
{
"symbol": "TT$",
"name": "Trinidad and Tobago Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "TTD",
"name_plural": "Trinidad and Tobago dollars"
},
{
"symbol": "NT$",
"name": "New Taiwan Dollar",
"symbol_native": "NT$",
"decimal_digits": 2,
"rounding": 0,
"code": "TWD",
"name_plural": "New Taiwan dollars"
},
{
"symbol": "TSh",
"name": "Tanzanian Shilling",
"symbol_native": "TSh",
"decimal_digits": 0,
"rounding": 0,
"code": "TZS",
"name_plural": "Tanzanian shillings"
},
{
"symbol": "₴",
"name": "Ukrainian Hryvnia",
"symbol_native": "₴",
"decimal_digits": 2,
"rounding": 0,
"code": "UAH",
"name_plural": "Ukrainian hryvnias"
},
{
"symbol": "USh",
"name": "Ugandan Shilling",
"symbol_native": "USh",
"decimal_digits": 0,
"rounding": 0,
"code": "UGX",
"name_plural": "Ugandan shillings"
},
{
"symbol": "$U",
"name": "Uruguayan Peso",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "UYU",
"name_plural": "Uruguayan pesos"
},
{
"symbol": "UZS",
"name": "Uzbekistan Som",
"symbol_native": "UZS",
"decimal_digits": 0,
"rounding": 0,
"code": "UZS",
"name_plural": "Uzbekistan som"
},
{
"symbol": "Bs.F.",
"name": "Venezuelan Bolívar",
"symbol_native": "Bs.F.",
"decimal_digits": 2,
"rounding": 0,
"code": "VEF",
"name_plural": "Venezuelan bolívars"
},
{
"symbol": "₫",
"name": "Vietnamese Dong",
"symbol_native": "₫",
"decimal_digits": 0,
"rounding": 0,
"code": "VND",
"name_plural": "Vietnamese dong"
},
{
"symbol": "FCFA",
"name": "CFA Franc BEAC",
"symbol_native": "FCFA",
"decimal_digits": 0,
"rounding": 0,
"code": "XAF",
"name_plural": "CFA francs BEAC"
},
{
"symbol": "CFA",
"name": "CFA Franc BCEAO",
"symbol_native": "CFA",
"decimal_digits": 0,
"rounding": 0,
"code": "XOF",
"name_plural": "CFA francs BCEAO"
},
{
"symbol": "YR",
"name": "Yemeni Rial",
"symbol_native": "ر.ي.‏",
"decimal_digits": 0,
"rounding": 0,
"code": "YER",
"name_plural": "Yemeni rials"
},
{
"symbol": "R",
"name": "South African Rand",
"symbol_native": "R",
"decimal_digits": 2,
"rounding": 0,
"code": "ZAR",
"name_plural": "South African rand"
},
{
"symbol": "ZK",
"name": "Zambian Kwacha",
"symbol_native": "ZK",
"decimal_digits": 0,
"rounding": 0,
"code": "ZMK",
"name_plural": "Zambian kwachas"
},
{
"symbol": "ZWL$",
"name": "Zimbabwean Dollar",
"symbol_native": "ZWL$",
"decimal_digits": 0,
"rounding": 0,
"code": "ZWL",
"name_plural": "Zimbabwean Dollar"
}
]
. Just quickly transformed this one with the chatgpt into an array. one more thing is that some of the currencies does not exist anymore like (LT "litas") just in case go and look thru it.

@DEVIXLER
Copy link

it would be great if this included purchasing power

@shivanshtalwar0
Copy link

I filtered out all nonworking currencies below you can find all working ones.

{
    "JOD":{
       "symbol":"JD",
       "name":"Jordanian Dinar",
       "symbol_native":"د.أ.‏",
       "decimal_digits":3,
       "rounding":0,
       "code":"JOD",
       "name_plural":"Jordanian dinars"
    },
    "COP":{
       "symbol":"CO$",
       "name":"Colombian Peso",
       "symbol_native":"$",
       "decimal_digits":0,
       "rounding":0,
       "code":"COP",
       "name_plural":"Colombian pesos"
    },
    "JPY":{
       "symbol":"¥",
       "name":"Japanese Yen",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"JPY",
       "name_plural":"Japanese yen"
    },
    "TZS":{
       "symbol":"TSh",
       "name":"Tanzanian Shilling",
       "symbol_native":"TSh",
       "decimal_digits":0,
       "rounding":0,
       "code":"TZS",
       "name_plural":"Tanzanian shillings"
    },
    "TTD":{
       "symbol":"TT$",
       "name":"Trinidad and Tobago Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"TTD",
       "name_plural":"Trinidad and Tobago dollars"
    },
    "XOF":{
       "symbol":"CFA",
       "name":"CFA Franc BCEAO",
       "symbol_native":"CFA",
       "decimal_digits":0,
       "rounding":0,
       "code":"XOF",
       "name_plural":"CFA francs BCEAO"
    },
    "ILS":{
       "symbol":"",
       "name":"Israeli New Sheqel",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"ILS",
       "name_plural":"Israeli new sheqels"
    },
    "AFN":{
       "symbol":"Af",
       "name":"Afghan Afghani",
       "symbol_native":"؋",
       "decimal_digits":0,
       "rounding":0,
       "code":"AFN",
       "name_plural":"Afghan Afghanis"
    },
    "BGN":{
       "symbol":"BGN",
       "name":"Bulgarian Lev",
       "symbol_native":"лв.",
       "decimal_digits":2,
       "rounding":0,
       "code":"BGN",
       "name_plural":"Bulgarian leva"
    },
    "BHD":{
       "symbol":"BD",
       "name":"Bahraini Dinar",
       "symbol_native":"د.ب.‏",
       "decimal_digits":3,
       "rounding":0,
       "code":"BHD",
       "name_plural":"Bahraini dinars"
    },
    "BDT":{
       "symbol":"Tk",
       "name":"Bangladeshi Taka",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"BDT",
       "name_plural":"Bangladeshi takas"
    },
    "AMD":{
       "symbol":"AMD",
       "name":"Armenian Dram",
       "symbol_native":"դր.",
       "decimal_digits":0,
       "rounding":0,
       "code":"AMD",
       "name_plural":"Armenian drams"
    },
    "BWP":{
       "symbol":"BWP",
       "name":"Botswanan Pula",
       "symbol_native":"P",
       "decimal_digits":2,
       "rounding":0,
       "code":"BWP",
       "name_plural":"Botswanan pulas"
    },
    "ALL":{
       "symbol":"ALL",
       "name":"Albanian Lek",
       "symbol_native":"Lek",
       "decimal_digits":0,
       "rounding":0,
       "code":"ALL",
       "name_plural":"Albanian lekë"
    },
    "BRL":{
       "symbol":"R$",
       "name":"Brazilian Real",
       "symbol_native":"R$",
       "decimal_digits":2,
       "rounding":0,
       "code":"BRL",
       "name_plural":"Brazilian reals"
    },
    "AUD":{
       "symbol":"AU$",
       "name":"Australian Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"AUD",
       "name_plural":"Australian dollars"
    },
    "USD":{
       "symbol":"$",
       "name":"US Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"USD",
       "name_plural":"US dollars"
    },
    "BZD":{
       "symbol":"BZ$",
       "name":"Belize Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"BZD",
       "name_plural":"Belize dollars"
    },
    "IDR":{
       "symbol":"Rp",
       "name":"Indonesian Rupiah",
       "symbol_native":"Rp",
       "decimal_digits":0,
       "rounding":0,
       "code":"IDR",
       "name_plural":"Indonesian rupiahs"
    },
    "CUP":{
       "symbol":"MN$",
       "name":"Cuban peso",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"CUP",
       "name_plural":"Cuban pesos"
    },
    "TND":{
       "symbol":"DT",
       "name":"Tunisian Dinar",
       "symbol_native":"د.ت.‏",
       "decimal_digits":3,
       "rounding":0,
       "code":"TND",
       "name_plural":"Tunisian dinars"
    },
    "BND":{
       "symbol":"BN$",
       "name":"Brunei Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"BND",
       "name_plural":"Brunei dollars"
    },
    "DZD":{
       "symbol":"DA",
       "name":"Algerian Dinar",
       "symbol_native":"د.ج.‏",
       "decimal_digits":2,
       "rounding":0,
       "code":"DZD",
       "name_plural":"Algerian dinars"
    },
    "EGP":{
       "symbol":"EGP",
       "name":"Egyptian Pound",
       "symbol_native":"ج.م.‏",
       "decimal_digits":2,
       "rounding":0,
       "code":"EGP",
       "name_plural":"Egyptian pounds"
    },
    "LBP":{
       "symbol":"L.L.",
       "name":"Lebanese Pound",
       "symbol_native":"ل.ل.‏",
       "decimal_digits":0,
       "rounding":0,
       "code":"LBP",
       "name_plural":"Lebanese pounds"
    },
    "LKR":{
       "symbol":"SLRs",
       "name":"Sri Lankan Rupee",
       "symbol_native":"SL Re",
       "decimal_digits":2,
       "rounding":0,
       "code":"LKR",
       "name_plural":"Sri Lankan rupees"
    },
    "CZK":{
       "symbol":"",
       "name":"Czech Republic Koruna",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"CZK",
       "name_plural":"Czech Republic korunas"
    },
    "IQD":{
       "symbol":"IQD",
       "name":"Iraqi Dinar",
       "symbol_native":"د.ع.‏",
       "decimal_digits":0,
       "rounding":0,
       "code":"IQD",
       "name_plural":"Iraqi dinars"
    },
    "KHR":{
       "symbol":"KHR",
       "name":"Cambodian Riel",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"KHR",
       "name_plural":"Cambodian riels"
    },
    "KZT":{
       "symbol":"KZT",
       "name":"Kazakhstani Tenge",
       "symbol_native":"тңг.",
       "decimal_digits":2,
       "rounding":0,
       "code":"KZT",
       "name_plural":"Kazakhstani tenges"
    },
    "ETB":{
       "symbol":"Br",
       "name":"Ethiopian Birr",
       "symbol_native":"Br",
       "decimal_digits":2,
       "rounding":0,
       "code":"ETB",
       "name_plural":"Ethiopian birrs"
    },
    "GNF":{
       "symbol":"FG",
       "name":"Guinean Franc",
       "symbol_native":"FG",
       "decimal_digits":0,
       "rounding":0,
       "code":"GNF",
       "name_plural":"Guinean francs"
    },
    "RSD":{
       "symbol":"din.",
       "name":"Serbian Dinar",
       "symbol_native":"дин.",
       "decimal_digits":0,
       "rounding":0,
       "code":"RSD",
       "name_plural":"Serbian dinars"
    },
    "HKD":{
       "symbol":"HK$",
       "name":"Hong Kong Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"HKD",
       "name_plural":"Hong Kong dollars"
    },
    "GHS":{
       "symbol":"GH₵",
       "name":"Ghanaian Cedi",
       "symbol_native":"GH₵",
       "decimal_digits":2,
       "rounding":0,
       "code":"GHS",
       "name_plural":"Ghanaian cedis"
    },
    "AED":{
       "symbol":"AED",
       "name":"United Arab Emirates Dirham",
       "symbol_native":"د.إ.‏",
       "decimal_digits":2,
       "rounding":0,
       "code":"AED",
       "name_plural":"UAE dirhams"
    },
    "KMF":{
       "symbol":"CF",
       "name":"Comorian Franc",
       "symbol_native":"FC",
       "decimal_digits":0,
       "rounding":0,
       "code":"KMF",
       "name_plural":"Comorian francs"
    },
    "KRW":{
       "symbol":"",
       "name":"South Korean Won",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"KRW",
       "name_plural":"South Korean won"
    },
    "JMD":{
       "symbol":"J$",
       "name":"Jamaican Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"JMD",
       "name_plural":"Jamaican dollars"
    },
    "MOP":{
       "symbol":"MOP$",
       "name":"Macanese Pataca",
       "symbol_native":"MOP$",
       "decimal_digits":2,
       "rounding":0,
       "code":"MOP",
       "name_plural":"Macanese patacas"
    },
    "GTQ":{
       "symbol":"GTQ",
       "name":"Guatemalan Quetzal",
       "symbol_native":"Q",
       "decimal_digits":2,
       "rounding":0,
       "code":"GTQ",
       "name_plural":"Guatemalan quetzals"
    },
    "ARS":{
       "symbol":"AR$",
       "name":"Argentine Peso",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"ARS",
       "name_plural":"Argentine pesos"
    },
    "AZN":{
       "symbol":"man.",
       "name":"Azerbaijani Manat",
       "symbol_native":"ман.",
       "decimal_digits":2,
       "rounding":0,
       "code":"AZN",
       "name_plural":"Azerbaijani manats"
    },
    "INR":{
       "symbol":"",
       "name":"Indian Rupee",
       "symbol_native":"Rs.",
       "decimal_digits":2,
       "rounding":0,
       "code":"INR",
       "name_plural":"Indian rupees"
    },
    "MMK":{
       "symbol":"MMK",
       "name":"Myanma Kyat",
       "symbol_native":"K",
       "decimal_digits":0,
       "rounding":0,
       "code":"MMK",
       "name_plural":"Myanma kyats"
    },
    "BOB":{
       "symbol":"Bs",
       "name":"Bolivian Boliviano",
       "symbol_native":"Bs",
       "decimal_digits":2,
       "rounding":0,
       "code":"BOB",
       "name_plural":"Bolivian bolivianos"
    },
    "LYD":{
       "symbol":"LD",
       "name":"Libyan Dinar",
       "symbol_native":"د.ل.‏",
       "decimal_digits":3,
       "rounding":0,
       "code":"LYD",
       "name_plural":"Libyan dinars"
    },
    "DOP":{
       "symbol":"RD$",
       "name":"Dominican Peso",
       "symbol_native":"RD$",
       "decimal_digits":2,
       "rounding":0,
       "code":"DOP",
       "name_plural":"Dominican pesos"
    },
    "YER":{
       "symbol":"YR",
       "name":"Yemeni Rial",
       "symbol_native":"ر.ي.‏",
       "decimal_digits":0,
       "rounding":0,
       "code":"YER",
       "name_plural":"Yemeni rials"
    },
    "UYU":{
       "symbol":"$U",
       "name":"Uruguayan Peso",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"UYU",
       "name_plural":"Uruguayan pesos"
    },
    "KES":{
       "symbol":"Ksh",
       "name":"Kenyan Shilling",
       "symbol_native":"Ksh",
       "decimal_digits":2,
       "rounding":0,
       "code":"KES",
       "name_plural":"Kenyan shillings"
    },
    "NZD":{
       "symbol":"NZ$",
       "name":"New Zealand Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"NZD",
       "name_plural":"New Zealand dollars"
    },
    "CRC":{
       "symbol":"",
       "name":"Costa Rican Colón",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"CRC",
       "name_plural":"Costa Rican colóns"
    },
    "KWD":{
       "symbol":"KD",
       "name":"Kuwaiti Dinar",
       "symbol_native":"د.ك.‏",
       "decimal_digits":3,
       "rounding":0,
       "code":"KWD",
       "name_plural":"Kuwaiti dinars"
    },
    "MUR":{
       "symbol":"MURs",
       "name":"Mauritian Rupee",
       "symbol_native":"MURs",
       "decimal_digits":0,
       "rounding":0,
       "code":"MUR",
       "name_plural":"Mauritian rupees"
    },
    "NGN":{
       "symbol":"",
       "name":"Nigerian Naira",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"NGN",
       "name_plural":"Nigerian nairas"
    },
    "CNY":{
       "symbol":"CN¥",
       "name":"Chinese Yuan",
       "symbol_native":"CN¥",
       "decimal_digits":2,
       "rounding":0,
       "code":"CNY",
       "name_plural":"Chinese yuan"
    },
    "PYG":{
       "symbol":"",
       "name":"Paraguayan Guarani",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"PYG",
       "name_plural":"Paraguayan guaranis"
    },
    "MXN":{
       "symbol":"MX$",
       "name":"Mexican Peso",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"MXN",
       "name_plural":"Mexican pesos"
    },
    "ZAR":{
       "symbol":"R",
       "name":"South African Rand",
       "symbol_native":"R",
       "decimal_digits":2,
       "rounding":0,
       "code":"ZAR",
       "name_plural":"South African rand"
    },
    "RWF":{
       "symbol":"RWF",
       "name":"Rwandan Franc",
       "symbol_native":"FR",
       "decimal_digits":0,
       "rounding":0,
       "code":"RWF",
       "name_plural":"Rwandan francs"
    },
    "DJF":{
       "symbol":"Fdj",
       "name":"Djiboutian Franc",
       "symbol_native":"Fdj",
       "decimal_digits":0,
       "rounding":0,
       "code":"DJF",
       "name_plural":"Djiboutian francs"
    },
    "CAD":{
       "symbol":"CA$",
       "name":"Canadian Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"CAD",
       "name_plural":"Canadian dollars"
    },
    "BYN":{
       "symbol":"Br",
       "name":"Belarusian Ruble",
       "symbol_native":"руб.",
       "decimal_digits":2,
       "rounding":0,
       "code":"BYN",
       "name_plural":"Belarusian rubles"
    },
    "UGX":{
       "symbol":"USh",
       "name":"Ugandan Shilling",
       "symbol_native":"USh",
       "decimal_digits":0,
       "rounding":0,
       "code":"UGX",
       "name_plural":"Ugandan shillings"
    },
    "NIO":{
       "symbol":"C$",
       "name":"Nicaraguan Córdoba",
       "symbol_native":"C$",
       "decimal_digits":2,
       "rounding":0,
       "code":"NIO",
       "name_plural":"Nicaraguan córdobas"
    },
    "XCD":{
       "symbol":"EC$",
       "name":"Eastern Caribbean dollar",
       "symbol_native":"EC$",
       "decimal_digits":2,
       "rounding":0,
       "code":"XCD",
       "name_plural":"Eastern Caribbean dollars"
    },
    "NAD":{
       "symbol":"N$",
       "name":"Namibian Dollar",
       "symbol_native":"N$",
       "decimal_digits":2,
       "rounding":0,
       "code":"NAD",
       "name_plural":"Namibian dollars"
    },
    "MYR":{
       "symbol":"RM",
       "name":"Malaysian Ringgit",
       "symbol_native":"RM",
       "decimal_digits":2,
       "rounding":0,
       "code":"MYR",
       "name_plural":"Malaysian ringgits"
    },
    "HUF":{
       "symbol":"Ft",
       "name":"Hungarian Forint",
       "symbol_native":"Ft",
       "decimal_digits":0,
       "rounding":0,
       "code":"HUF",
       "name_plural":"Hungarian forints"
    },
    "PLN":{
       "symbol":"",
       "name":"Polish Zloty",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"PLN",
       "name_plural":"Polish zlotys"
    },
    "SEK":{
       "symbol":"Skr",
       "name":"Swedish Krona",
       "symbol_native":"kr",
       "decimal_digits":2,
       "rounding":0,
       "code":"SEK",
       "name_plural":"Swedish kronor"
    },
    "MDL":{
       "symbol":"MDL",
       "name":"Moldovan Leu",
       "symbol_native":"MDL",
       "decimal_digits":2,
       "rounding":0,
       "code":"MDL",
       "name_plural":"Moldovan lei"
    },
    "OMR":{
       "symbol":"OMR",
       "name":"Omani Rial",
       "symbol_native":"ر.ع.‏",
       "decimal_digits":3,
       "rounding":0,
       "code":"OMR",
       "name_plural":"Omani rials"
    },
    "TRY":{
       "symbol":"TL",
       "name":"Turkish Lira",
       "symbol_native":"TL",
       "decimal_digits":2,
       "rounding":0,
       "code":"TRY",
       "name_plural":"Turkish Lira"
    },
    "PEN":{
       "symbol":"S/.",
       "name":"Peruvian Nuevo Sol",
       "symbol_native":"S/.",
       "decimal_digits":2,
       "rounding":0,
       "code":"PEN",
       "name_plural":"Peruvian nuevos soles"
    },
    "MZN":{
       "symbol":"MTn",
       "name":"Mozambican Metical",
       "symbol_native":"MTn",
       "decimal_digits":2,
       "rounding":0,
       "code":"MZN",
       "name_plural":"Mozambican meticals"
    },
    "XAF":{
       "symbol":"FCFA",
       "name":"CFA Franc BEAC",
       "symbol_native":"FCFA",
       "decimal_digits":0,
       "rounding":0,
       "code":"XAF",
       "name_plural":"CFA francs BEAC"
    },
    "MKD":{
       "symbol":"MKD",
       "name":"Macedonian Denar",
       "symbol_native":"MKD",
       "decimal_digits":2,
       "rounding":0,
       "code":"MKD",
       "name_plural":"Macedonian denari"
    },
    "PAB":{
       "symbol":"B/.",
       "name":"Panamanian Balboa",
       "symbol_native":"B/.",
       "decimal_digits":2,
       "rounding":0,
       "code":"PAB",
       "name_plural":"Panamanian balboas"
    },
    "GBP":{
       "symbol":"£",
       "name":"British Pound Sterling",
       "symbol_native":"£",
       "decimal_digits":2,
       "rounding":0,
       "code":"GBP",
       "name_plural":"British pounds sterling"
    },
    "CLP":{
       "symbol":"CL$",
       "name":"Chilean Peso",
       "symbol_native":"$",
       "decimal_digits":0,
       "rounding":0,
       "code":"CLP",
       "name_plural":"Chilean pesos"
    },
    "PHP":{
       "symbol":"",
       "name":"Philippine Peso",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"PHP",
       "name_plural":"Philippine pesos"
    },
    "TOP":{
       "symbol":"T$",
       "name":"Tongan Paʻanga",
       "symbol_native":"T$",
       "decimal_digits":2,
       "rounding":0,
       "code":"TOP",
       "name_plural":"Tongan paʻanga"
    },
    "GEL":{
       "symbol":"GEL",
       "name":"Georgian Lari",
       "symbol_native":"GEL",
       "decimal_digits":2,
       "rounding":0,
       "code":"GEL",
       "name_plural":"Georgian laris"
    },
    "RUB":{
       "symbol":"RUB",
       "name":"Russian Ruble",
       "symbol_native":"₽.",
       "decimal_digits":2,
       "rounding":0,
       "code":"RUB",
       "name_plural":"Russian rubles"
    },
    "SDG":{
       "symbol":"SDG",
       "name":"Sudanese Pound",
       "symbol_native":"SDG",
       "decimal_digits":2,
       "rounding":0,
       "code":"SDG",
       "name_plural":"Sudanese pounds"
    },
    "RON":{
       "symbol":"RON",
       "name":"Romanian Leu",
       "symbol_native":"RON",
       "decimal_digits":2,
       "rounding":0,
       "code":"RON",
       "name_plural":"Romanian lei"
    },
    "SGD":{
       "symbol":"S$",
       "name":"Singapore Dollar",
       "symbol_native":"$",
       "decimal_digits":2,
       "rounding":0,
       "code":"SGD",
       "name_plural":"Singapore dollars"
    },
    "SOS":{
       "symbol":"Ssh",
       "name":"Somali Shilling",
       "symbol_native":"Ssh",
       "decimal_digits":0,
       "rounding":0,
       "code":"SOS",
       "name_plural":"Somali shillings"
    },
    "THB":{
       "symbol":"฿",
       "name":"Thai Baht",
       "symbol_native":"฿",
       "decimal_digits":2,
       "rounding":0,
       "code":"THB",
       "name_plural":"Thai baht"
    },
    "TWD":{
       "symbol":"NT$",
       "name":"New Taiwan Dollar",
       "symbol_native":"NT$",
       "decimal_digits":2,
       "rounding":0,
       "code":"TWD",
       "name_plural":"New Taiwan dollars"
    },
    "QAR":{
       "symbol":"QR",
       "name":"Qatari Rial",
       "symbol_native":"ر.ق.‏",
       "decimal_digits":2,
       "rounding":0,
       "code":"QAR",
       "name_plural":"Qatari rials"
    },
    "UZS":{
       "symbol":"UZS",
       "name":"Uzbekistan Som",
       "symbol_native":"UZS",
       "decimal_digits":0,
       "rounding":0,
       "code":"UZS",
       "name_plural":"Uzbekistan som"
    },
    "SAR":{
       "symbol":"SR",
       "name":"Saudi Riyal",
       "symbol_native":"ر.س.‏",
       "decimal_digits":2,
       "rounding":0,
       "code":"SAR",
       "name_plural":"Saudi riyals"
    },
    "NOK":{
       "symbol":"Nkr",
       "name":"Norwegian Krone",
       "symbol_native":"kr",
       "decimal_digits":2,
       "rounding":0,
       "code":"NOK",
       "name_plural":"Norwegian kroner"
    },
    "HNL":{
       "symbol":"HNL",
       "name":"Honduran Lempira",
       "symbol_native":"L",
       "decimal_digits":2,
       "rounding":0,
       "code":"HNL",
       "name_plural":"Honduran lempiras"
    },
    "MGA":{
       "symbol":"MGA",
       "name":"Malagasy Ariary",
       "symbol_native":"MGA",
       "decimal_digits":0,
       "rounding":0,
       "code":"MGA",
       "name_plural":"Malagasy Ariaries"
    },
    "NPR":{
       "symbol":"NPRs",
       "name":"Nepalese Rupee",
       "symbol_native":"नेरू",
       "decimal_digits":2,
       "rounding":0,
       "code":"NPR",
       "name_plural":"Nepalese rupees"
    },
    "UAH":{
       "symbol":"",
       "name":"Ukrainian Hryvnia",
       "symbol_native":"",
       "decimal_digits":2,
       "rounding":0,
       "code":"UAH",
       "name_plural":"Ukrainian hryvnias"
    },
    "PKR":{
       "symbol":"PKRs",
       "name":"Pakistani Rupee",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"PKR",
       "name_plural":"Pakistani rupees"
    },
    "VND":{
       "symbol":"",
       "name":"Vietnamese Dong",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"VND",
       "name_plural":"Vietnamese dong"
    },
    "ISK":{
       "symbol":"Ikr",
       "name":"Icelandic Króna",
       "symbol_native":"kr",
       "decimal_digits":0,
       "rounding":0,
       "code":"ISK",
       "name_plural":"Icelandic krónur"
    },
    "BAM":{
       "symbol":"KM",
       "name":"Bosnia-Herzegovina Convertible Mark",
       "symbol_native":"KM",
       "decimal_digits":2,
       "rounding":0,
       "code":"BAM",
       "name_plural":"Bosnia-Herzegovina convertible marks"
    },
    "DKK":{
       "symbol":"Dkr",
       "name":"Danish Krone",
       "symbol_native":"kr",
       "decimal_digits":2,
       "rounding":0,
       "code":"DKK",
       "name_plural":"Danish kroner"
    },
    "CHF":{
       "symbol":"CHF",
       "name":"Swiss Franc",
       "symbol_native":"CHF",
       "decimal_digits":2,
       "rounding":0.05,
       "code":"CHF",
       "name_plural":"Swiss francs"
    },
    "CDF":{
       "symbol":"CDF",
       "name":"Congolese Franc",
       "symbol_native":"FrCD",
       "decimal_digits":2,
       "rounding":0,
       "code":"CDF",
       "name_plural":"Congolese francs"
    },
    "MAD":{
       "symbol":"MAD",
       "name":"Moroccan Dirham",
       "symbol_native":"د.م.‏",
       "decimal_digits":2,
       "rounding":0,
       "code":"MAD",
       "name_plural":"Moroccan dirhams"
    },
    "BIF":{
       "symbol":"FBu",
       "name":"Burundian Franc",
       "symbol_native":"FBu",
       "decimal_digits":0,
       "rounding":0,
       "code":"BIF",
       "name_plural":"Burundian francs"
    },
    "IRR":{
       "symbol":"IRR",
       "name":"Iranian Rial",
       "symbol_native":"",
       "decimal_digits":0,
       "rounding":0,
       "code":"IRR",
       "name_plural":"Iranian rials"
    },
    "CVE":{
       "symbol":"CV$",
       "name":"Cape Verdean Escudo",
       "symbol_native":"CV$",
       "decimal_digits":2,
       "rounding":0,
       "code":"CVE",
       "name_plural":"Cape Verdean escudos"
    }
 }

and wrote a simple script to convert base currency to live rates of all currencies

import axios from 'axios'
import Aigle from 'aigle';
import allCurrencies from '../resources/currencies.json'
import { load } from 'cheerio'
import _ from 'lodash';

async function scrapeExchangeRate(fromCurrency, toCurrency) {
   try {
       const url = `https://www.google.com/finance/quote/${fromCurrency}-${toCurrency}`;
       const response = await axios.get(url, {
           headers: { 'User-Agent': 'Mozilla/5.0' }
       });
       const $ = load(response.data);
       const exchangeRate = $('div.YMlKec.fxKbKc').text().trim();
       return _.toNumber(_.replace(exchangeRate,',',''))
   } catch (error) {
       console.error('Error scraping exchange rate:', error);
   }
}

const run=async ()=>{
   const baseCurrency='EUR'
   const currencyRateMap=await Aigle.transform(allCurrencies,async (currencyRateMap,currency,currencyCode)=>{
       if(baseCurrency!==currencyCode){
           const rate=await scrapeExchangeRate(baseCurrency, currencyCode);
           if(rate){
               currencyRateMap[currencyCode]=rate
           }
       }
   },{})
   console.log(currencyRateMap)
}

run()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment