Go to file
2017-01-03 12:50:54 +00:00
config Remove unused logger 2017-01-03 12:50:54 +00:00
db/migrate Set TargetRubyVersion to 2.3 in Rubocop 2016-04-11 15:05:15 +01:00
deploy Use Rubocop and fix existing offences 2017-01-03 12:36:05 +00:00
lib Fold conversion into quote 2017-01-03 12:44:13 +00:00
public Add public folder 2015-12-22 20:20:34 +00:00
spec Fold conversion into quote 2017-01-03 12:44:13 +00:00
.gitignore Deploy to Digital Ocean 2015-03-09 14:56:52 +00:00
.pryrc Deploy to Digital Ocean 2015-03-09 14:56:52 +00:00
.rubocop.yml Disable Metrics/LineLength cop 2016-04-24 16:17:00 +01:00
.ruby-gemset Add RVM configuration 2016-05-03 15:27:35 +02:00
.ruby-version Add RVM configuration 2016-05-03 15:27:35 +02:00
.travis.yml Bump ruby version 2016-05-03 15:26:54 +02:00
config.ru Use Rubocop and fix existing offences 2017-01-03 12:36:05 +00:00
docker-compose.yml Improve Docker setup 2016-04-12 14:57:20 +01:00
Dockerfile Bump ruby version 2016-05-03 15:26:54 +02:00
Gemfile Use Rubocop and fix existing offences 2017-01-03 12:36:05 +00:00
Gemfile.lock Use Rubocop and fix existing offences 2017-01-03 12:36:05 +00:00
LICENSE Remove dates from license 2017-01-03 12:44:13 +00:00
Procfile First commit 2012-11-20 16:36:12 +00:00
Rakefile Use Rubocop and fix existing offences 2017-01-03 12:36:05 +00:00
README.md Improve Docker setup 2016-04-12 14:57:20 +01:00
wait-for-it.sh Improve Docker setup 2016-04-12 14:57:20 +01:00

Fixer.io

fixer

Travis

Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central Bank.

The rates are updated daily around 3PM CET.

Usage

Get the latest foreign exchange reference rates in JSON format.

GET /latest
Host: api.fixer.io

Get historical rates for any day since 1999.

GET /2000-01-03
Host: api.fixer.io

Rates are quoted against the Euro by default. Quote against a different currency by setting the base parameter in your request.

GET /latest?base=USD
Host: api.fixer.io

Request specific exchange rates by setting the symbols or currencies parameter.

GET /latest?symbols=USD,GBP
Host: api.fixer.io

Make cross-domain JSONP requests.

GET /latest?callback=?
Host: api.fixer.io

An HTTPS endpoint is also available at https://api.fixer.io.

Use money.js in the browser.

var demo = function(data) {
  fx.rates = data.rates
  var rate = fx(1).from("GBP").to("USD")
  alert("£1 = $" + rate.toFixed(4))
}

$.getJSON("http://api.fixer.io/latest", demo)

Docker

You can run a local instance of the app using Docker.

Bring the stack up.

docker-compose up -d

Initialize the database and seed data.

docker-compose run web rake db:migrate rates:load
docker-compose restart web