currency-api icon indicating copy to clipboard operation
currency-api copied to clipboard

Dates of eur.json and eur/jpy.json are not same sometimes

Open ihlassovbetov opened this issue 3 years ago • 6 comments
trafficstars

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.

ihlassovbetov avatar Jun 23 '22 10:06 ihlassovbetov

It will take little time(max 12 hours) for updated values to get reflected

fawazahmed0 avatar Jun 23 '22 10:06 fawazahmed0

I have realized that https://raw.githubusercontent.com/fawazahmed0/currency-api/1/latest/currencies/eur.json link shows correct date.

ihlassovbetov avatar Jun 23 '22 10:06 ihlassovbetov

I am using jsdelivr, it may take max 12 hours before the updated values show up

fawazahmed0 avatar Jun 23 '22 10:06 fawazahmed0

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.

ihlassovbetov avatar Jun 23 '22 10:06 ihlassovbetov

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.

fawazahmed0 avatar Jun 23 '22 10:06 fawazahmed0

Is this still relevant?

RaptaG avatar Jan 13 '24 13:01 RaptaG