exchangerate.host icon indicating copy to clipboard operation
exchangerate.host copied to clipboard

incorrect rate in euro when calls 2-3 times same api

Open rishabh3354 opened this issue 3 years ago • 1 comments

import requests

    url = "https://api.exchangerate.host/latest?base=USD"
    response = requests.get(url)
    data = supported_currency(response.json())

data : screen shot atta Screenshot from 2022-07-13 09-58-00 ched

last 2 records shows euro rate vs usd is incorrect

[9:55 AM, 7/13/2022] Rishabh Bhardwaj: [{'country_name': 'Euro', 'symbol': '€', 'abbr': 'EUR', 'rate': 0.996818} [9:55 AM, 7/13/2022] Rishabh Bhardwaj: [{'country_name': 'Euro', 'symbol': '€', 'abbr': 'EUR', 'rate': 0.883011},

this is not accepted as this data is absolutely incorrect. yet it is free but not acceptable

i changed my exchange rate provider now.

please fix this serious issue thanks

rishabh3354 avatar Jul 13 '22 05:07 rishabh3354

it seems that it will be a cache problem, try adding some GET parameter for break the cache

arzzen avatar Jul 13 '22 10:07 arzzen