schleinzer / kraken-go-api-client

Example client library in GO for use with the kraken.com API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kraken GO API Client

A simple API Client for the Kraken Trading platform.

This is a fork of kraken-go-api-client which uses strings instead of typed symbol constants.

Example usage:

package main

import (
	"fmt"
	"log"

	"github.com/wthorp/kraken-go-api-client"
)

func main() {
	api := krakenapi.New("KEY", "SECRET")

	ticker, err := api.Ticker("STORJUSD")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("Bid price: %s\n", (*ticker)["STORJUSD"].Bid[0])
}

About

Example client library in GO for use with the kraken.com API.

License:MIT License


Languages

Language:Go 100.0%