Categorygithub.com/Rellum/valr-go
module
0.0.0-20201025182701-586b0ac08533
Repository: https://github.com/rellum/valr-go.git
Documentation: pkg.go.dev

# README

Valr Golang API Client

Go API wrapper for the valr exchange

Based on the luno exchange API wrapper

Installation

go get github.com/Rellum/valr-go

Authentication

Public and private API keys can be generated within your account at the exchange

Example usage

import (
	"context"
	
	valr "github.com/Rellum/valr-go/api"
)
valrClient := valr.NewClient()
valrClient.SetAuth("api_key_public", "api_key_secret")

req := valr.GetOrderBookRequest{Pair: "XBTZAR"}
res, err := valrClient.GetOrderBook(context.Background(), &req)
if err != nil {
  log.Fatal(err)
}
log.Println(res)

License

MIT

# Packages

No description provided by the author