
GO Client Library for Global Exchange Rates API
If you’re building with Go and need reliable exchange rate data, we’ve just published an official client library to make working with our API even easier.
The globalexchangerates
package is now available at pkg.go.dev and GitHub.
The library covers all the endpoints of the API, including latest rates, historical rates and conversions. It’s compatible with standard Go projects and is designed for developers who need to fetch currency exchange rates in GO for backend, accounting, finance, or integration use cases.
Quick Start
Install the package:
go get github.com/globalexchangerates/GO_GlobalExchangeRates
Create a client instance in your code:
client := globalexchangerates.NewClient("your_api_key")
Retrieve the latest exchange rates:
rates, err := client.GetLatest(context.Background(), nil)
if err != nil {
log.Fatal(err)
}
Let us know if you use the library in a project or have feature requests—we’re always interested in improving things for Go developers.