exchangerate.host icon indicating copy to clipboard operation
exchangerate.host copied to clipboard

Is there a way to get the last update time?

Open ozgurg opened this issue 3 years ago • 1 comments
trafficstars

Hi. When we make a GET request to the API, it responds as follows:

{
  "motd": {
    "msg": "If you or your company use this project or like what we doing, please consider backing us so we can continue maintaining and evolving this project.",
    "url": "https://exchangerate.host/#/donate"
  },
  "success": true,
  "base": "USD",
  "date": "2022-07-13",
  "rates": {
    "TRY": 17.321539
  }
}

As you can see the date (2022-07-13) is in the formatted YYYY-MM-DD. Is there a way to get the last update time with hours and minutes?

The API is not updated instantly, so I want to notify the user when it was last updated.

ozgurg avatar Jul 13 '22 15:07 ozgurg

Related: #74

sal0max avatar Jul 13 '22 15:07 sal0max

data is updated 5 minutes after midnight, ecb source update are after 4 p.m (UTC time)

arzzen avatar Oct 05 '22 14:10 arzzen