Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency conversion for USD to LKR not found #80

Closed
lakithasahan opened this issue Jul 30, 2020 · 2 comments
Closed

Currency conversion for USD to LKR not found #80

lakithasahan opened this issue Jul 30, 2020 · 2 comments

Comments

@lakithasahan
Copy link

raise RatesNotAvailableError("Currency Rates Source Not Ready")
forex_python.converter.RatesNotAvailableError: Currency Rates Source Not Ready

@peshotan
Copy link

Hi @lakithasahan, it looks like the source_url() (https://api.exchangeratesapi.io/api/) used by the library does not support LKR in it, hence it throws a RatesNotAvailableError.

Following are the currencies supported by the API link:

{
   "rates":{
      "CAD":1.5444,
      "HKD":9.4132,
      "ISK":157.0,
      "PHP":58.379,
      "DKK":7.439,
      "HUF":358.61,
      "CZK":26.08,
      "AUD":1.5709,
      "RON":4.8748,
      "SEK":10.0715,
      "IDR":17126.85,
      "INR":88.5555,
      "BRL":6.5816,
      "RUB":91.2538,
      "HRK":7.563,
      "JPY":125.93,
      "THB":36.405,
      "CHF":1.0789,
      "SGD":1.6099,
      "PLN":4.5465,
      "BGN":1.9558,
      "TRY":8.9269,
      "CNY":7.8537,
      "NOK":10.3873,
      "NZD":1.6793,
      "ZAR":18.4065,
      "USD":1.2143,
      "MXN":24.3386,
      "ILS":3.9692,
      "GBP":0.88698,
      "KRW":1339.51,
      "MYR":4.9161
   },
   "base":"EUR",
   "date":"2021-01-26"
}

@ashwin31
Copy link
Member

ashwin31 commented Jun 8, 2021

this is depending on a free service. We will add optional paid api support soon. someone raise a merge request and it will get merged eventually.

@ashwin31 ashwin31 closed this as completed Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants