in Projects

Open Exchange Rates Project (and money.js) update

Just a few notable updates to money.js and the open exchange rates API:

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 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?

money.js (JavaScript Currency Conversion library)

What’s new:

  • 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.

Write a Comment


  1. It would be cool, and easy I guess. if you add the posibility to show negatives between brackets, like excel do. -12,456.26 -> (12,456.26)