This package is a Golang wrapper for freecurrencyapi.com that aims to make the usage of freecurrencyapi.com API as easy as possible in your project.
Initialize the API with your API Key (get one for free at freecurrencyapi.com):
freecurrencyapi.Init("YOUR-API-KEY")
Afterwards you can make calls to the API like this:
freecurrencyapi.Status()
freecurrencyapi.Currencies()
freecurrencyapi.Latest({
"base_currency": "USD",
"currencies": "EUR"
})
freecurrencyapi.Historical({
"base_currency": "USD",
"currencies": "EUR",
"date": "2022-09-04"
})
Find out more about our endpoints, parameters and response data structure in the docs
The MIT License (MIT). Please see License File for more information.