Show HN: Free foreign exchange rates API
exchangerate.host
exchangerate.host
Why should one use this service, instead of using directly ecb(https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xm...)?
How do you keep this service free since there is a server cost?
- default api response is json format, this format is easy to parse then xml (eg directly usage in js/nodejs app..) - server cost is not too hight , api response is only static json data (data are sync. on midnight), so price is only for bandwige
- i plan added crypto and comodities (like gold,silver etc)
1) I can't help but think of all the problems that apply in general to specifying requirements (too vague, too constraining, too expensive to hammer out to sufficient precision).
2) That's different from changing it retroactively. Would you change it again when JSON goes out of fashion? Or mandate HTTPS? I've not read the OP in detail, but the impression I have is that the existing service is very much functional. Even ignoring the cost of changing the law, do we really want our public institutions to be in breach of law whenever fashions change? I'd rather let them set their own priorities to a large extent - for example, specify a very general, minimal set of requirements and do better when they have capacity to do so. I'm fine with people building on top of that where convenient. It seems like a good thing, in fact.
If these kinds of laws infected tech, we'd still be maintaining government mandated SOAP/WSDL services and other overly complicated tech that someone somewhere thought was the global maximum.
It looks like all the rates are published with EUR as a base currency, so if you wanted to get the USD <> KRW exchange rate, you would have to use EUR at an intermediate. This is probably good enough for most applications.
For anyone else that was wondering, this XML feed is linked off of this page (as well as CSV, RSS, and PDF): https://www.ecb.europa.eu/stats/policy_and_exchange_rates/eu...
There is a more general system for accessing ECB data that includes a vast amount beyond exchange rates, described here [2]. I think that lets you get anything they have in their statistical data warehouse. (If you don't need to get it programmatically, they have a web GUI [3]).
The general system is also vastly more complex to use. I was quite happy when I found that 90 day link and did not have to deal with figuring out how to get what I wanted out of the general system.
[1] https://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d...
I'm the founder of https://saasify.sh btw which auto-generates full SaaS products from this type of core API functionality.
Would it be crass to ask for an invite to the beta? I requested access before and again just now but I've been wanting to take a look for awhile.
It's also all open source: https://github.com/saasify-sh/saasify/tree/master/website
Do you have any suggestions on design or building sites with that aesthetic?
Great work!
Side note: I always wonder about those stories like uBlock Origin and fixer.io where the original author sold or lost control of the product and then restarted a fork of their own work :) there’s something slightly weird and fun about it somehow
Would be curious to ask here — are there any alternative APIs you’d recommend for showing financial application examples? (Ideally something that fetches the delayed price of a stock (CUSIP) and related news for it)
For example, if you need the exchange rate on order to convert a quarter's sales from some non-EUR currency to EUR for quarterly VAT MOSS reporting, you are supposed to use the rate reported by the European Central Bank on the last reporting day of the VAT MOSS quarter.
The submitted service is using ECB, so should be fine for that specific use case.
If you detected you could leverage an advantage by lying about the rates, what constraints are there and how do we know?
Banks are highly regulated. What's your regulatory oversight.
Profitable information is hedged by conditions. Therefore beset by utility limits.
You can also check out market places like envato.
There are free open source illustrations - https://news.ycombinator.com/item?id=21858822
Why do I say this? I’ve just spent the last year and a couple of solid corona weeks doing some development on a personal project which requires historical access (-1 day mostly) to high / low / open / close data on all LSE companies.
I’ve hunted round for companies that offer this as an api even as a paid service and I’ve found it ridiculously difficult to get data. Most of the product offerings mean I have to login each time, download a file and parse the cvs or pay for access to incrementally tiered historical data.
In the end I’ve had to scrape data which costs a lot in processing time.
My point is here that this will be useful to someone somewhere. And I’m willing to bet they are also willing to pay for it.
Edit: typo
If I were going to depend on this I'd like some assurance that you'd be able to keep it going. That you've run it for 12+ months (I think) is helpful.
What are some ways people buy foreign currencies as an investment?
https://exchange-rate.bai.uno/
- free
- based on Eu Bank, update daily
- host on a EC2 instance
The API delivers EOD / End of Day historical exchange rates, which become available at 00:05am GMT for the previous day and are time stamped at one second before midnight.