Replaced fixer api with exchangeratesapi (#14347)

This commit is contained in:
rohitwaghchaure 2018-06-05 10:30:20 +05:30 committed by Rushabh Mehta
parent fc03a0463c
commit 7cf01e7c75

View File

@ -95,7 +95,7 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None):
if not value:
import requests
api_url = "http://api.fixer.io/{0}".format(transaction_date)
api_url = "https://exchangeratesapi.io/api/{0}".format(transaction_date)
response = requests.get(api_url, params={
"base": from_currency,
"symbols": to_currency