Skip to content

AlessandroSechi/go-coinbase

Repository files navigation

Golang client for Coinbase V2 API

This client implements all Coinbase v2 API endpoints.

It works with API Keys authentication.

Installation

go get github.com/AlessandroSechi/go-coinbase

Initialization

import "github.com/AlessandroSechi/go-coinbase"

// Create a new client
c := NewClient("<API Key>", "<API Secret>")

Get current user’s public information

user, err := c.GetUser(context.TODO())

Lists current user’s accounts to which the authentication method has access to.

// pagination contains data about pagination https://developers.coinbase.com/api/v2#pagination
accounts, pagination, err := c.ListAccounts(context.TODO())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages