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

Old date with USD & EUR #59

Closed
sal0max opened this issue Jun 17, 2021 · 1 comment
Closed

Old date with USD & EUR #59

sal0max opened this issue Jun 17, 2021 · 1 comment

Comments

@sal0max
Copy link

sal0max commented Jun 17, 2021

Hi, depending on the base currency, the response features an old date.

Here, everything is fine:
https://api.exchangerate.host/latest -> 2021-06-17

However, with USD and EUR the date is old:
https://api.exchangerate.host/latest?base=USD -> 2021-06-13
https://api.exchangerate.host/latest?base=EUR -> 2021-06-14

But that's only the case with the default source. Take ecb, boc or rba and it's up-to-date, again:
https://api.exchangerate.host/latest?base=USD&source=ecb -> 2021-06-17
https://api.exchangerate.host/latest?base=USD&source=boc -> 2021-06-17
https://api.exchangerate.host/latest?base=USD&source=rba -> 2021-06-17
https://api.exchangerate.host/latest?base=EUR&source=ecb -> 2021-06-17

Can you look into this?

@arzzen
Copy link
Collaborator

arzzen commented Jun 18, 2021

See notice in the faq section called "Response showing old date" (#55)

 API requests are cached by default. You can try to add an additional parameter &v=_actual_date_ in the query, where _actual_date_ enter the day in the format for example Y-m-d (or you can add only hour value). 

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