Skip to content

A foreign exchange rates and currency conversion API. Golang implementation of fixer.io (Ruby). Data from European Central Bank API.

Notifications You must be signed in to change notification settings

devsekhar/goexrates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💰 goexrates

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.

Usage

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...",
    }
}

Run

go run goexrates.go

TODO

  • Requests caching

Important note

Currently this API is available here but it might change at any time. I created it for .go learning purposes.

About

A foreign exchange rates and currency conversion API. Golang implementation of fixer.io (Ruby). Data from European Central Bank API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%