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

Colombian peso don't work #67

Closed
arubiales opened this issue May 14, 2019 · 2 comments
Closed

Colombian peso don't work #67

arubiales opened this issue May 14, 2019 · 2 comments

Comments

@arubiales
Copy link

RatesNotAvailableError: Currency Rates Source Not Ready

@AlliedToasters
Copy link

AlliedToasters commented Feb 10, 2020

Bump. Argentinian peso does not work.

---------------------------------------------------------------------------
RatesNotAvailableError                    Traceback (most recent call last)
<ipython-input-27-b75b03dbe48d> in <module>
      7     return c.convert(input_currency, output_currency, quantity, dt.datetime.strptime(date, '%Y-%m-%d'))
      8 
----> 9 convert('ARS', 'USD', 100, '2010-01-01')

<ipython-input-27-b75b03dbe48d> in convert(input_currency, output_currency, quantity, date)
      5 
      6 def convert(input_currency='EUR', output_currency='USD', quantity=100, date='2020-01-01'):
----> 7     return c.convert(input_currency, output_currency, quantity, dt.datetime.strptime(date, '%Y-%m-%d'))
      8 
      9 convert('ARS', 'USD', 100, '2010-01-01')

~/miniconda3/envs/learn/lib/python3.6/site-packages/forex_python/converter.py in convert(self, base_cur, dest_cur, amount, date_obj)
     98             except TypeError:
     99                 raise DecimalFloatMismatchError("convert requires amount parameter is of type Decimal when force_decimal=True")
--> 100         raise RatesNotAvailableError("Currency Rates Source Not Ready")
    101 
    102 

RatesNotAvailableError: Currency Rates Source Not Ready

@gusbemacbe
Copy link

@arubiales y @AlliedToasters, según la documentación https://forex-python.readthedocs.io/en/latest/currencysource.html, las monedas argentina, colombiana y de otros países hispanohablantes, excepto el Brasil y el México, no están en la lista de monedas suportadas.

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