freecurrencyapi-go: Golang Currency Converter
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.
Usage
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:
Status Endpoint
freecurrencyapi.Status()
Currencies Endpoint
freecurrencyapi.Currencies()
Latest Endpoint
freecurrencyapi.Latest({
"base_currency": "USD",
"currencies": "EUR"
})
Historical Endpoint
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
License
The MIT License (MIT). Please see License File for more information.