This Go Library allows you to retrieve currency exchange rates from the official European Central Bank service.
go get github.com/miguelbemartin/eurex
- Go 1.10+
//...
import (
eurex "github.com/miguelbemartin/eurex"
)
//...
client := eurex.NewClient()
rate, err := client.Exchange.Get(14.50, "USD", "CHF", "2019-06-15")
if err != nil {
// handle your error
}
go test . -v
- Open a PR: https://github.com/miguelbemartin/eurex/pulls
- Open an issue: https://github.com/miguelbemartin/eurex/issues
- Miguel Ángel Martín - @miguelbemartin
This project is licensed under the MIT License - see the LICENSE.md file for details