kraken-go is a library for the kraken.com - API. Writen in golang.
✔️ Get server time
✔️ Get asset info
✔️ Get tradable asset pairs
✔️ Get ticker information
✔️ Get Balance
✔️ Get Open Orders
✔️ Get Closed Orders
✔️ Get Trades History
✔️ Get Ledgers Info
Install kraken-go:
go get github.com/TobiEiss/kraken-go
Write your first kraken-go-program:
package main
import (
"log"
"github.com/TobiEiss/kraken-go"
)
func main() {
// new kraken.com - session
session := krakenGo.CreateKrakenSession()
// get server-time
serverTime, err := session.GetServerTime()
if err != nil {
panic(err)
}
log.Printf("Unix-ServerTime on kraken.com: %d", serverTime.Unixtime)
// add private API-key and secret
session.UsePrivateAPI("API-key", "API-Secret")
// get balance
accountBalance, err := session.AccountBalance()
log.Println(accountBalance)
if err != nil {
panic(err)
}
}