8000 Could we get the time of the last update? · Issue #94 · fawazahmed0/exchange-api · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@tim-nz

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

Activity

  1. fawazahmed0 commented on Mar 16, 2024

    @fawazahmed0
    Owner

    update time is roughly utc 00:00

  2. dyncan commented on Mar 22, 2024

    @dyncan

    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.

  3. ukcasso commented on Sep 8, 2024

    @ukcasso

    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

  4. ukcasso commented on Sep 8, 2024

    @ukcasso
  5. fawazahmed0 commented on Sep 8, 2024

    @fawazahmed0
    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

  6. ukcasso commented on Sep 8, 2024

    @ukcasso

    @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

  7. fawazahmed0 commented on Sep 8, 2024

    @fawazahmed0
    Owner

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

  8. ukcasso commented on Sep 8, 2024

    @ukcasso

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0