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.
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.
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
Initialize the Go module in your project with go mod init.
Import github.com/preichenberger/go-coinbasepro/v2 and create a client with coinbasepro.NewClient().
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.
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
Set COINBASE_PRO_SANDBOX=1 to enable the sandbox URL.
Set COINBASE_PRO_KEY, COINBASE_PRO_PASSPHRASE and COINBASE_PRO_SECRET to the sandbox credentials.
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.
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

