fawazahmed0 / currency-api

Free Currency Exchange Rates API with 150+ Currencies & No Rate Limits

Home Page:https://github.com/fawazahmed0/currency-api#readme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing September 14th data

kaleabmelkie opened this issue · comments

2021-09-14 seems to be skipped. Is it possible to patch it now?

Github actions was failing on that day. That's why the data is not available.
There is not much I could do to get the 2021-09-14 data back

Also don't forget to use fallback urls, otherwise you will face issues, for example if you want to fetch usd to eur rate:

const fetchWithFallback = async (links,obj) => {
  let response;
  for(let link of links)
  {  try{
      response = await fetch(link,obj)
      if(response.ok)
          return response
        }catch(e){}
  }
   return response
}

fetchWithFallback(["https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/usd/eur.min.json","https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/usd/eur.json"]).then(res => res.json()).then(console.log)

No data from 20-08 until 08-11?