-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
currencies.js
68 lines (65 loc) · 5.52 KB
/
currencies.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/// List of currencies with various keywords to look for
/// 'rate' should be provided in comparison to United States Dollars (USD)
///
/// New rates will be downloaded automatically with from network by looking for each currency key in server response
/// Period of update specified in configs.updateRatesEveryDays
/** URLs for loading currency rates
* Currencies are fetched in {@link fetchCurrencyRates} in src/function/background.js
* {@link urlToLoadCurrencyRates}.
* {@link urlToLoadCryptoCurrencies}.
*/
const currenciesList = {
"AUD": { currencyName: "Australian Dollar", currencySymbol: "A$", rate: 1.29009, currencyKeywords: ['australian dollar', 'австралийских доллар'] },
"BGN": { currencyName: "Bulgarian Lev", currencySymbol: "лв", rate: 1.640562 },
"BRL": { currencyName: "Brazilian real", currencySymbol: "R$", rate: 5.616101 },
"BTC": { currencyName: "Bitcoin", rate: 0.000018, currencyKeywords: ['bitcoins', 'биткоин'] },
"BYN": { currencyName: "Belarussian Ruble", rate: 2.596137, currencyKeywords: ['белорусских рублей'] },
"CAD": { currencyName: "Canadian Dollar", currencySymbol: "C$", rate: 1.269384, currencyKeywords: ['canadian dollar', 'канадских доллар'] },
"CHF": { currencyName: "Swiss Franc", currencySymbol: "CHF", rate: 0.926525 },
"CNY": { currencyName: "Chinese Yuan", currencySymbol: "¥", rate: 6.497301, currencyKeywords: ['yuan', 'юаней'] },
"CRC": { currencyName: "Costa Rican Colon", currencySymbol: "₡", rate: 610.339772 },
"CZK": { currencyName: "Czech Koruna", currencySymbol: "Kč", rate: 21.936455 },
"DKK": { currencyName: "Danish Krone", currencySymbol: " kr", rate: 6.229502 },
"EUR": { currencyName: "Euro", currencySymbol: "€", rate: 0.8378, currencyKeywords: ['euro', 'евро'], },
"GBP": { currencyName: "British Pound", currencySymbol: "£", rate: 0.721124, currencyKeywords: ['фунтов стерлингов', 'british pound'], },
"HKD": { currencyName: "Hong Kong dollar", currencySymbol: "HK$", rate: 7.765632 },
"HUF": { currencyName: "Hungarian forint", rate: 316.005504 },
"IDR": { currencyName: "Indonesian Rupiah", currencySymbol: "Rp", rate: 15711.86182839, currencyKeywords: ['Rp', 'Rupiah'] },
"ILS": { currencyName: "Israeli New Sheqel", currencySymbol: "₪", rate: 3.310401 },
"INR": { currencyName: "Indian Rupee", currencySymbol: "₹", rate: 72.452006, currencyKeywords: ['rupees', 'рупий'], },
"IRR": { currencyName: "Iranian Rial", currencySymbol: "﷼", rate: 42105.017329 },
"JPY": { currencyName: "Japanese Yen", currencySymbol: "¥", rate: 109.188027, currencyKeywords: [' yen', ' йен'] },
"KRW": { currencyName: "South Korean Won", currencySymbol: "₩", rate: 1193.057307 },
"KPW": { currencyName: "North Korean Won", currencySymbol: "₩", rate: 900.00022 },
"KZT": { currencyName: "Kazakhstani Tenge", currencySymbol: "₸", rate: 418.821319, currencyKeywords: ['тенге'] },
"MNT": { currencyName: "Mongolian Tugrik", currencySymbol: "₮", rate: 2849.930035 },
"MXN": { currencyName: "Mexican Peso", currencySymbol: "peso", rate: 20.655212, currencyKeywords: ['peso', 'песо'] },
"MYR": { currencyName: "Malaysian Ringgit", currencySymbol: "RM", rate: 4.208613, currencyKeywords: ['myr'] },
"NGN": { currencyName: "Nigerian Naira", currencySymbol: "₦", rate: 410.317377 },
"NOK": { currencyName: "Norwegian Krone", currencySymbol: " kr", rate: 8.51191 },
"PHP": { currencyName: "Philippine Peso", currencySymbol: "₱", rate: 56.012, currencyKeywords: ['pesos', 'php'], searchInText: false},
"PLN": { currencyName: "Polish złoty", currencySymbol: "zł", rate: 3.845051 },
"RON": { currencyName: "Romanian leu", currencySymbol: "leu", rate: 5.058587 },
"RUB": { currencyName: "Russian Ruble", currencySymbol: "₽", rate: 72.880818, currencyKeywords: ['rubles', 'рублей', 'руб', ' р.'] },
"SAR": { currencyName: "Saudi Riyal", currencySymbol: "﷼", rate: 3.750694 },
"SEK": { currencyName: "Swedish Krona", currencySymbol: " kr", rate: 8.514027 },
"THB": { currencyName: "Thai Baht", currencySymbol: "฿", rate: 34.700854, currencyKeywords: ['THB', 'Baht', 'baht'] },
"TRY": { currencyName: "Turkish Lira", currencySymbol: "₺", rate: 0.14 },
"TWD": { currencyName: "New Taiwan dollar", currencySymbol: "NT$", rate: 31.99368752 },
"UAH": { currencyName: "Ukrainian Hryvnia", currencySymbol: "₴", rate: 27.852288, currencyKeywords: ['hryvnia', 'гривен', 'грн'] },
"USD": { currencyName: "United States Dollar", currencySymbol: "$", rate: 1, currencyKeywords: ['dollar', 'dolar', 'доллар'] },
"VND": { currencyName: "Vietnamese Dong", currencySymbol: "₫", rate: 23054.385489 },
"ZAR": { currencyName: "Rand", rate: 14.856969 },
/// Crypto
"ETH": { currencyName: "Ethereum", rate: 0.0003208, crypto: true },
"LTC": { currencyName: "Litecoin", rate: 0.006242, crypto: true },
"ADA": { currencyName: "Cardano", rate: 0.4492, crypto: true },
"MIOTA": { currencyName: "MIOTA", rate: 0.7418, crypto: true },
"EOS": { currencyName: "EOS", rate: 0.2336, crypto: true },
"BCH": { currencyName: "BCH", rate: 0.001843, crypto: true },
"XRP": { currencyName: "XRP", rate: 1.016, crypto: true },
"ZEC": { currencyName: "ZEC", rate: 0.008209, crypto: true },
"XMR": { currencyName: "XMR", rate: 0.004037, crypto: true },
"ZCL": { currencyName: "XMR", rate: 7.348, crypto: true },
"DOGE": { currencyName: "DOGE", rate: 4.537, crypto: true },
}