Show HN: Free API service for crypto and foreign exchange rates
exchangerate.host
exchangerate.host
I'm probably a unique use case, but I'd like to use this to "fix" the exchange rates portion of Apple's currency converter dashboard widget, and I want it to work even on very old OS's. That means I can't use TLS 1.2, and the root certs are often out of date anyway.
I'm currently using exchangeratesapi.io, which doesn't support HTTP either, but does support TLS 1.0, so it kind of works. However, outdated root certs mean I need to instruct users to manually install exchangeratesapi's certificate, which I'd rather not do.
(Also, I'm the founder of ReadMe; we do API docs... if you want to use us, my emails in my bio :) )
```
fetch(url)
.then((resp) => resp.json())
.then((data) => { console.log(data) })
```
instead of
```
var requestURL = 'https://api.exchangerate.host/latest';
var request = new XMLHttpRequest();
request.open('GET', requestURL);
request.responseType = 'json';
request.send();
request.onload = function() {
var response = request.response;
console.log(response);
}```
I do have plenty of questions though.
Does this service get historical rates from its sources in real time or does it store those in its own local database?
How long will this service be free for? What’s the business model that’s being thought about?
What kind of rate limiting, if any, is used so that a developer who uses these APIs doesn’t have their app go down because someone else is hammering the server with a lot of requests?
> Does this service get historical rates from its sources in real time or does it store those in its own local database?
Historical data are stored and synchronized at regular intervals in the local db.
> How long will this service be free for? What’s the business model that’s being thought about?
I was looking for stable service and i did not find any, that would have satisfied my needs, so i decidide create myself. Current features will be as free in the future as they are now.
> What kind of rate limiting, if any, is used so that a developer who uses these APIs doesn’t have their app go down because someone else is hammering the server with a lot of requests?
Yes, there are rate limit, currently 300 per minute, you can see it in the response header.
Very curious about the front-end! I'd get many more side-projects out the door if I understood the path to get a polished landing page / front-end like yours!
All my personal projects fall over with my poor design and frontend skills.
I thought it meant literally converting, not calculating.
What's the daily run rate like, sustainable? I see you have GitHub donations, is that covering costs currently?