Skip to content

TobiEiss/kraken-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kraken-go is a library for the kraken.com - API. Writen in golang.

Build Status Coverage Status

Currently implemented:

Public:

✔️ Get server time
✔️ Get asset info
✔️ Get tradable asset pairs
✔️ Get ticker information

Private:

✔️ Get Balance
✔️ Get Open Orders
✔️ Get Closed Orders
✔️ Get Trades History
✔️ Get Ledgers Info

Getting started

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)
	}
}

Releases

No releases published

Packages

No packages published

Languages