Fork me on GitHub

fxit / fx.modfin.se

A free JSON API for FX exchange rates and operation
(free as in "free speech" and also as in "free beer")
info

fx.modfin.se api provides current and historical foreign exchange rates

The rates are updated daily around 16.00 when European Central Bank does so

The api is provided by www.modularfinance.se

endpoints
  • today GET http://fx.modfin.se/latest
  • history GET http://fx.modfin.se/2010-01-01
  • date_range GET http://fx.modfin.se/2010-01-01/2010-01-05
  • date_range GET http://fx.modfin.se/2010-01-01/2011-01-01/agg
modifiers
  • attach_money GET http://fx.modfin.se/latest?base=usd
  • format_list_numbered GET http://fx.modfin.se/2010-01-01/2010-01-05?symbols=usd,sek
  • functions GET http://fx.modfin.se/2010-01-01/2011-01-01/agg?func=[avg,max,min]
  • keyboard_return GET http://fx.modfin.se/latest?callback=func
money.js
var usdToSek = function(data) {
  fx.rates = data.rates;
  var rate = fx(1).from("USD").to("SEK");
  alert("$1 = " + rate.toFixed(2) + " SEK");
}

$.get("http://fx.modfin.se/latest", usdToSek);
play_arrow
misc
  • ECB data
  • MIT license
  • Source on Github
  • Running on Digital ocean
  • The API is provided "AS IS", without warranty of any kind, expressed or implied.