Replaced fixer api with exchangeratesapi (#14347)
This commit is contained in:
parent
fc03a0463c
commit
7cf01e7c75
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user