Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ihlassovbetov opened this issue Jun 23, 2022 · 7 comments
Closed

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

ihlassovbetov opened this issue Jun 23, 2022 · 7 comments

Comments

@ihlassovbetov
Copy link

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.

@fawazahmed0
Copy link
Owner

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

@ihlassovbetov
Copy link
Author

ihlassovbetov commented Jun 23, 2022

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

@fawazahmed0
Copy link
Owner

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

@ihlassovbetov
Copy link
Author

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.

@fawazahmed0
Copy link
Owner

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.

@RaptaG
Copy link

RaptaG commented Jan 13, 2024

Is this still relevant?

@fawazahmed0 fawazahmed0 transferred this issue from another repository Feb 29, 2024
@fawazahmed0
Copy link
Owner

currency-api has stopped working, Please read the migration guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants