Thursday 23 June 2016

Get currency exchange rate in python

Using below code, you can get currency exchange rate.

>>> import requests
>>> response = requests.get("http://api.fixer.io/latest", params={
...     "base": "USD",
...     "symbols": "INR"
... })
>>> value = response.json()
>>> print value
{u'date': u'2016-06-22', u'base': u'USD', u'rates': {u'INR': 67.496}}
>>> 

2 comments:

  1. A very nice software for calculating the currency value in very simple steps and also save the time.

    currency exchange | money exchange | currency converter

    ReplyDelete
  2. I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing 20 euros to dollars for me if possible feel free to let me know, im always look for people to check out my web site.

    ReplyDelete