Skip to content

Real-time and historical exchange rates for 154 world currencies provided in JSON format and works for any programming environment.

Notifications You must be signed in to change notification settings

currencystack/currencystack-go

Repository files navigation

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

About

Real-time and historical exchange rates for 154 world currencies provided in JSON format and works for any programming environment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages