fawazahmed0 / exchange-api

Free Currency Exchange Rates API with 200+ Currencies & No Rate Limits
https://github.com/fawazahmed0/exchange-api#readme
Creative Commons Zero v1.0 Universal
729 stars 46 forks source link

Missing September 14th data #32

Closed kaleabmelkie closed 2 years ago

kaleabmelkie commented 2 years ago

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

fawazahmed0 commented 2 years ago

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

fawazahmed0 commented 2 years ago

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)
RahulKini commented 1 year ago

No data from 20-08 until 08-11?

fawazahmed0 commented 1 year ago

@RahulKini please see this

fawazahmed0 commented 9 months ago

currency-api has stopped working, Please read the migration guide