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

Could we get the time of the last update? #94

Open
tim-nz opened this issue Mar 16, 2024 · 8 comments
Open

Could we get the time of the last update? #94

tim-nz opened this issue Mar 16, 2024 · 8 comments

Comments

@tim-nz
Copy link

tim-nz commented Mar 16, 2024

I know you include the date, but is it possible to add a time property to the JSON with some kind of timestamp of the last update?

I want to be able to put a "exchange rate last updated" note, but without a time I can't even display a date in the user's timezone.

Thanks

@fawazahmed0
Copy link
Owner

update time is roughly utc 00:00

@dyncan
Copy link

dyncan commented Mar 22, 2024

When can the API generally return the latest exchange rate for the day? I am currently in the GMT+8 time zone, and the latest API still returns data for March 21.

@ukcasso
Copy link

ukcasso commented Sep 8, 2024

In my case as well, I am in the UTC+09 time zone, but it still returns data for September 7. The current time is 10:08 AM in UTC+09 and 1:08 AM in UTC+00. @fawazahmed0

@ukcasso
Copy link

ukcasso commented Sep 8, 2024

@fawazahmed0
스크린샷 2024-09-08 10 10 57

@fawazahmed0
Copy link
Owner

jsdelivr takes some time to update the data. To avoid this, you can use cloudflare url.
For example, the data at https://latest.currency-api.pages.dev/v1/currencies/usd.json will be updated at roughly utc 00:00

@ukcasso
Copy link

ukcasso commented Sep 8, 2024

@fawazahmed0 Thanks for the reply. but,
The screenshot above is an example of using the https://latest.currency-api.pages.dev/v1/currencies/usd.json API.
T.T

@fawazahmed0
Copy link
Owner

Github actions can run any time after UTC 00:00, for example today it ran on ~ UTC 01:30

@ukcasso
Copy link

ukcasso commented Sep 8, 2024

Thank you for the explanation. It may update a little slowly.
Thank you again for your API. @fawazahmed0

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

4 participants