OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Go Coinbasepro

Go Coinbasepro is an open-source Go client library for integrating applications with the Coinbase Pro API. It provides a Go-facing client for public and private exchange workflows, with documented examples for account and ledger retrieval, order creation, transfers, trade history, pagination and WebSocket messages.

Independent OpenViST project profile, based on linked sources.

Go Coinbasepro — OpenViST project profile in Exchanges & Trading.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when implementing Coinbase Pro API workflows in a Go application and you want a client library rather than writing the integration directly against the API.

Who it is for

  • Go developers building services or application integrations that use Coinbase Pro API workflows.
  • Teams that want a Go client interface for exchange account, order, transfer or market-data tasks.

Documented uses

  • Retrieve account details, ledger entries and trade history from Go code.
  • Create an order or transfer through the API.
  • Handle paginated results with the library's cursor pattern.
  • Receive WebSocket messages using the documented subscription example.
Before you choose

Requirements & limits

The repository is public and lists an MIT license. Its README documents installation through Go modules and a sandbox configuration for tests.

  • The README says the library supports public and private endpoints, but specific endpoint coverage should be checked in its GoDoc documentation.
  • Price values are sent as strings; the README recommends a decimal library for price calculations.
  • The client can be configured using environment variables or ClientConfig, and can switch to the sandbox URL with COINBASE_PRO_SANDBOX.
  • The README documents retry configuration and cursor-based pagination.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up a Go Coinbase Pro API client

Install the library and initialize a client with Coinbase Pro connection settings.

Before you start

  • A Go project using Go modules; the README specifies Go version 1.11 or later.
  • Coinbase Pro API settings: base URL, key, passphrase and secret, supplied through environment variables or ClientConfig.

Steps

  1. Initialize the Go module in your project with go mod init.

  2. Import github.com/preichenberger/go-coinbasepro/v2 and create a client with coinbasepro.NewClient().

  3. Provide connection settings through the documented environment variables or call UpdateConfig with a ClientConfig.

Expected outcome

A configured Go client ready for application code to call the API.

Guide limitations

  • This setup guide does not demonstrate a successful API request.
  • Private API operations require the relevant credentials.
Source-based practical guide

Configure the documented sandbox test setup

Point the client at the Coinbase Pro sandbox and prepare the environment variables described for running repository tests.

Before you start

  • A Go development environment and the repository's Go test suite.
  • Sandbox key, passphrase and secret.
  • A sandbox account with at least 2,000 USD and 2 BTC, as specified in the README.

Steps

  1. Set COINBASE_PRO_SANDBOX=1 to enable the sandbox URL.

  2. Set COINBASE_PRO_KEY, COINBASE_PRO_PASSPHRASE and COINBASE_PRO_SECRET to the sandbox credentials.

  3. Run go test from the repository.

Expected outcome

The documented test command is configured to use Coinbase's public sandbox.

Guide limitations

  • The README states that the sandbox account needs at least 2,000 USD and 2 BTC for the tests.
  • This describes the repository's test setup, not an independently verified test result.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 October 2026
Original website title
preichenberger/go-coinbasepro · Official homepage title · retained in its source language