Fawaz Ahmed
Fawaz Ahmed
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
Github actions can run any time after UTC 00:00, for example today it ran on [~ UTC 01:30](https://github.com/fawazahmed0/exchange-api/actions/runs/10756056362)
today is `2024-03-14`, it might take some time [currencies to publish](https://github.com/fawazahmed0/exchange-api/actions/runs/8273910538) As the currencies for today are already published, the following links should work fine: https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-14/v1/currencies/eur.json https://cdn.jsdelivr.net/npm/@fawazahmed0/[email protected]/v1/currencies/eur.json
You should always use `latest` to avoid any issue https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/eur.json https://latest.currency-api.pages.dev/v1/currencies/eur.json
> justice for /currencies/{currencyCode}/{currencyCode} Api user **Old Currency API:** ```js json = fetchJSON(`/currencies/{fromCurrency}/{toCurrency}`) rate = json[toCurrency] ``` **New Currency API:** ```js json = fetchJSON(`/currencies/{fromCurrency}`) rate = json[fromCurrency][toCurrency] ```
Thanks for your feedback. > There is no wiki or a website explaining how this API works [Here](https://github.com/fawazahmed0/currency-api?tab=readme-ov-file#readme) > There is no explanation on when the currencies refresh and also...
https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies.json link is used by alot many people. Any changes will break things for other.
You will have to update [this file](https://github.com/fawazahmed0/currency-api/blob/1/allcurrencies.min.json) to fix issues in [currencies.json](https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies.json)
> This file include >7000 entries, does this API include th Add entries for `1000sats` etc in [this file](https://github.com/fawazahmed0/currency-api/blob/1/allcurrencies.min.json) to fix empty names issue in [currencies.json](https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies.json)
no, not possible, this will break things