coinbase

package module
v0.0.0-...-7090a5b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: MIT Imports: 6 Imported by: 0

README

Coinbase Wallet Golang Client

This is a golang client library for the Coinbase Wallet API v2.

Important: As this library is targeted for newer API v2, it requires v2 permissions (i.e. wallet:accounts:read).

Installation
$ go get github.com/damnpoet/coinbase-golang

Authentication

API Key (HMAC Client)
require 'coinbase/wallet'
client = Coinbase::Wallet::Client.new(api_key: <api key>, api_secret: <api secret>)
import "github.com/damnpoet/coinbase-golang"

c := coinbase.NewClient("<api key>", "<api secret>")

Documentation

Index

Constants

View Source
const (
	APIv2Url = "https://api.coinbase.com/v2"

	Bitcoin  = "BTC"
	Ethereum = "ETH"
	Litecoin = "LTC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetCurrencies() ([]models.Currency, error)
	GetBuyPrice(src string, dest currency.Unit) (*models.Price, error)
}

func NewClient

func NewClient(apiEndpoint, key, secret string) Client

NewClient creates a new HMAC Client

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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