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

Delay when trying to retrieve the latest conversion rates from USD #73

Closed
Megabyte94 opened this issue Oct 31, 2023 · 5 comments
Closed

Comments

@Megabyte94
Copy link

When I try to access the API with the url https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/usd.json, the .json field of the date has some delay and takes a time to update. But when I use https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/eur.json, converting from EUR, it updates a lot faster...

@fawazahmed0
Copy link
Owner

the data is cached by jsdelivr. It will take few hours to show the updated values

@Megabyte94
Copy link
Author

the data is cached by jsdelivr. It will take few hours to show the updated values

OK, I understand. So, is the url https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/eur.json (EUR) the fastest to update compared to other currencies? Thanks.

@fawazahmed0
Copy link
Owner

fawazahmed0 commented Nov 1, 2023

is the url https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/eur.json (EUR) the fastest to update compared to other currencies?

The simple answer is No.

If you want to fetch most recent values, consider using these urls:
https://raw.githubusercontent.com/fawazahmed0/currency-api/1/latest/currencies/usd.json
https://raw.githubusercontent.com/fawazahmed0/currency-api/1/latest/currencies/eur.json

@Megabyte94
Copy link
Author

Alright, thank you very much.

@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

2 participants