Just a few notable updates to money.js and the open exchange rates API:
In a nutshell:
- We’ve added exchange rate data going back to 1999, thanks to the hard work of Sebastian Majstorovic and his epic 390,000-line pull request
- The data is now collected from the public Yahoo! Finance API, which seems to be more accurate and reliable.
- The proxy at openexchangerates.org now supports JSONP requests (like this) by adding a
`callback`parameter to the URL. This works for historical files, too.
- The proxy also now downloads, caches and serves the API files statically instead of requesting them from github each time (should be 10x faster, no benchmarks yet though.)
This project has really taken on a life of its own, thanks to a bunch of great people and feedback and the ever-diligent Currency Bot. Check out the homepage if you’ve not seen it yet. The documentation still needs work in the coming weeks.
Oh, and the code is now under MIT license, but the data license we’re still trying to figure out. Anybody a lawyer?
- Added a license (MIT) which it turns out is a really big deal for people wanting to use the library in commercial applications. Now everyone can do whatever they like, wherever they please.
- Added basic parsing, so you can write e.g.
`fx("$1.99 HKD").to("EUR")`and have it work exactly as you’d expect.
Beyond a few fixes and extra comments, not much has changed. It’s still tiny (~1.2kb minified, probably around 0.6kb gzipped) and still does everything you need out of the box, with no dependencies, so give it a shot!
Mail ’em in!
If you’re using money.js and/or the Open Exchange Rates API in any neat projects, please let me know so I can build a showcase!
By the way – I’m shooting for a post every few days until New Year to clear a several-month backlog of 90%-finished drafts and ideas.