Giter Site home page Giter Site logo

Comments (2)

AlliedToasters avatar AlliedToasters commented on July 16, 2024

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

from forex-python.

gusbemacbe avatar gusbemacbe commented on July 16, 2024

@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.

from forex-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.