valr-go

module
v0.0.0-...-848065e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2019 License: MIT

README

Valr Golang API Client

Go API wrapper for the valr exchange

Based on the luno exchange API wrapper

Installation
go get github.com/i-norden/valr-go
Authentication

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

Example usage
import (
	"context"
	
	valr "github.com/i-norden/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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL