Open RaptaG opened 10 months ago
I asked ChatGPT to better format https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies.json and these are the results. It does not include some empty things, like "1000sats": ""
, but overall it looks better the existing one in terms of formatting. Manual approval is mandatory though.
Thanks for your feedback.
There is no wiki or a website explaining how this API works
There is no explanation on when the currencies refresh and also the various time gaps
You shouldn't worry about this as long as you are using /latest
You shouldn't worry about this as long as you are using
/latest
I would like to check on my program when to refresh the rates, so that it is done once per 24 hours. I might use the GitHub API for that, but we'll see.
I asked ChatGPT to better format https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies.json and these are the results. It does not include some empty things, like
"1000sats": ""
, but overall it looks better the existing one in terms of formatting. Manual approval is mandatory though. National currencies Cryptocurrencies
What about this @fawazahmed0 (and points 4. & 5. for that matter).
Thanks for the quick response
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.
Can you then explain me why are there so many empty names? Are there rates for all the entries inside this JSON? I believe making an announcement and reformatting the JSON would not be a problem.
Any changes will break things for other.
On that matter adding any new cryptocurrency will break everything as well.
This JSON is awfully organized.
At the very least, we could apply these modifications in a new JSON inside the repo, which would be updated (when a new currency is added) alongside with https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies.json
I could help applying this solution.
Do you agree @fawazahmed0
You will have to update this file to fix issues in currencies.json
I will make a Pull Request, you can approve it once I finish
This file include >7000 entries, does this API include them all?
This file include >7000 entries, does this API include th
Add entries for 1000sats
etc in this file to fix empty names issue in currencies.json
How can I sort the currencies and separate them to national and cryptocurrencies? Is it possible?
no, not possible, this will break things
no, not possible, this will break things
Can I make a Pull Request with two new JSONs, separating the national and the crypto currencies? Then you can indicate people adding new cryptocurrencies in fawazahmed0/exchange-api#40 to update the new crypto file as well when adding a new cryptocurrency and run it through a tool like https://novicelab.org/jsonabc/ so that they are always sorted alphabetically.
@fawazahmed0
Although this project is amazing, supporting many currencies without rate limits, there are still some flaws regarding documentation and organization in general:
I believe 1., 2., 4., and 5. are very major points which should be addressed, to allow more developers to better use this amazing API.
References: fawazahmed0/exchange-api#72, fawazahmed0/exchange-api#78