sal0max / currencies

An exchange rates currency converter for Android
GNU General Public License v3.0
229 stars 23 forks source link

Add more currency #2

Closed Oymate closed 3 years ago

Oymate commented 3 years ago

Such as BDT

sal0max commented 3 years ago

This is the free API I'm using: https://api.exchangeratesapi.io/latest Sadly it doesn't provide BDT data.

All other that I'm aware of (https://github.com/sal0max/currencies/blob/master/doc/API.md) do cost money, which I can't spend with this free app.

Do you know of an API I could use for BDT?

Oymate commented 3 years ago

I am thinking if gnome foundation has one, maybe you could take a look?

sal0max commented 3 years ago

Thanks for your input.

I could not find an exchange rate API by the GNOME Foundation. Maybe you thought of the data they seem to use in their calculator app? There, they call two external sources:

See here: https://github.com/linuxmint/gnome-calculator/blob/master/lib/currency.vala

I took the time to compare both data sources. Although they offer a different variety of currencies, BDT doesn't seem to be provided by either one.

So, unless you find a free API for BDT, I don't see a chance to add it.

Currency ISO 4217 ECB IMF
U.A.E. dirham AED -
Australian dollar AUD
Bulgarian lev BGN -
Brunei dollar BND -
Brazilian real BRL
Botswana pula BWP -
Canadian dollar CAD
Swiss franc CHF
Chilean peso CLP -
Chinese yuan CNY
Colombian peso COP -
Czech koruna CZK
Danish krone DKK
Algerian dinar DZD -
Euro EUR
U.K. pound GBP
Hong Kong dollar HKD -
Croatian kuna HRK -
Hungarian forint HUF -
Indonesian rupiah IDR -
Israeli New Shekel ILS
Indian rupee INR
Icelandic króna ISK -
Japanese yen JPY
Korean won KRW
Kuwaiti dinar KWD -
Mauritian rupee MUR -
Mexican peso MXN
Malaysian ringgit MYR
Norwegian krone NOK
New Zealand dollar NZD
Omani rial OMR -
Peruvian sol PEN -
Philippine peso PHP
Polish zloty PLN
Qatari riyal QAR -
Romanian leu RON -
Russian ruble RUB
Saudi Arabian riyal SAR -
Swedish krona SEK
Singapore dollar SGD
Thai baht THB
Turkish lira TRY -
Trinidadian dollar TTD -
U.S. dollar USD
Uruguayan peso UYU -
South African rand ZAR
Oymate commented 3 years ago

Hmm, I will keep searching then :)

sal0max commented 3 years ago

I've added a bunch of currencies with 56e8cdcb1d81e655b150e2df32d67fafe4b0345e

sal0max commented 3 years ago

BDT added with https://github.com/sal0max/currencies/commit/662132e641ddbbcd89109edb542454d72613cbc9 Now offering 162 currencies. 🙂