currency-api
currency-api copied to clipboard
Dates of eur.json and eur/jpy.json are not same sometimes
Currently I see, date "2022-06-22" of below link https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/eur.json
and date "2022-06-23" of below link https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/eur/jpy.json
I cleared browser cache, also tried to make eur.json?d=123 . But date of above link is lagging 1 day.
It will take little time(max 12 hours) for updated values to get reflected
I have realized that https://raw.githubusercontent.com/fawazahmed0/currency-api/1/latest/currencies/eur.json link shows correct date.
I am using jsdelivr, it may take max 12 hours before the updated values show up
which you suggest us to use, for more accurate dates and rates ? jsdelivr or https://raw.githubusercontent.com . Because I use this json in my php script where it retrieves rates twice a day like before 13:00 and after 13:00 and show our assets in terms of 6 currencies (usd, eur, try, tmt, uzs, aed). If there is12 hours lag, it might show misleading result to me.
jsdelivr links are faster and they have proper response headers and it has no rate limits. raw.githubusercontent links have some limitations, but if it works fine in your code, then you can use it.
Is this still relevant?