Skip to content

ivanglie/go-coingate-client

Repository files navigation

Golang client for CoinGate exchange rate API

Go Reference Test codecov

Golang client for the CoinGate Exchange Rate API.

Example

First, ensure the library is installed and up to date by running

go get -u github.com/ivanglie/go-coingate-client

This is a very simple app that just displays US Dollar to Chinese Yuan Renminbi conversion.

package main

import (
	"fmt"
	"time"

	coingate "github.com/ivanglie/go-coingate-client"
)

func main() {
	client := coingate.NewClient()
	rate, err := client.GetRate("USD", "CNY")
	if err != nil {
		panic(err)
	}
	fmt.Println(rate)
}

See main.go.

References

For more information check out the following links:

About

Golang client for the CoinGate Exchange Rate API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages