Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akarat/exchange

Get current exchange rate.
https://github.com/akarat/exchange

Last synced: about 2 months ago
JSON representation

Get current exchange rate.

Awesome Lists containing this project

README

        

Exchange Rate
=============

Get current exchange rate.

It parses current exchange rate from these services:

* Yahoo finance
* fixer.io
* European Central Bank

Installation
------------

Using pip to install it::

$ pip install exchange

Usage
-----

The only method you would use is ``rate``::

>>> import exchange
>>> exchange.rate('USD', 'CNY')
Decimal('6.070')

License
-------

This project is licensed with BSD. See LICENSE for more detail.