A foreign exchange rates and currency conversion API. Golang implementation of fixer.io (Ruby). Data from European Central Bank API.
The rates are updated daily around 4PM CET.
Get the latest foreign exchange reference rates in JSON format.
GET /latest
Host: exr.mikolajczakluq.com
Get historical rates for any day since 1999-01-04.
GET /2008-03-18
Host: exr.mikolajczakluq.com
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: exr.mikolajczaluq.com
Request specific exchange rates by setting the symbols parameter.
GET /latest?symbols=USD,GBP
Host: exr.mikolajczakluq.com
Response format.
{
"base": "EUR",
"date": "2017-05-05",
"rates": {
"AUD": 1.4832,
"PLN": 4.2173,
"MYR": 4.7543,
"USD": 1.0961,
"...": "and so on...",
}
}
go run goexrates.go
- Requests caching
Currently this API is available here but it might change at any time. I created it for .go learning purposes.