This Go package provides a wrapper for the Luno API.
Please visit godoc.org for the full package documentation.
go get github.com/luno/luno-go
Please visit the Settings page to generate an API key.
import luno "github.com/luno/luno-go"
lunoClient := luno.NewClient()
lunoClient.SetAuth("api_key_id", "api_key_secret")
req := luno.GetOrderBookRequest{Pair: "XBTZAR"}
res, err := lunoClient.GetOrderBook(&req)
if err != nil {
log.Fatal(err)
}
log.Println(res)