Real-time and historical exchange rates for 154 world currencies provided in JSON format and works for any programming environment.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
constants
fixtures
helpers
.gitignore
.travis.yml
CurrenyConvertion.go
client.go
currency_convert_api.go
currency_convert_api_test.go
http_client.go
http_client_test.go
http_error.go
readme.md

readme.md

Currencystack.io golang library Build Status

golang client library for currencystack.io

Installation

go get -u github.com/currencystack/currencystack-go

usage

Get ip info:

package main

import (
	currencystack "github.com/currencystack/currencystack-go"
	"fmt"
)

func main() {

	currencystackClient, err := currencystack.NewClient("API key here")
	if err != nil {
		fmt.Println(err)
		return
	}

	response, err := currencystackClient.CurrencyRepo.GetCurrencyConvertion("eur", []string{"Usd", "egp", "aed"})
	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(response)
}


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT