brianriley / python-currency

A currency converter module that uses Yahoo Finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

>>> converter.convert(from_curr='usd', to_curr='jpy')
u'92.045'
>>> converter.convert(from_curr='jpy')  # default is USD
u'0.011'
>>> converter.convert(from_curr='usd', to_curr='jpy', amount=2.5)
u'230.113'

Disclaimer

This module uses Yahoo Finance to convert currencies. As such, it is not intended for up-to-the-minute accuracy. Use at your own risk.

About

A currency converter module that uses Yahoo Finance

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%