Practical overview
When it fits
Use it when a Python application needs a client interface to Coinbase Pro API endpoints, and the developer can work with the exchange’s API documentation and, for private endpoints, configured API credentials.
Who it is for
- Python developers building applications that retrieve Coinbase Pro market data.
- Developers integrating authenticated Coinbase Pro account operations into scripts or applications.
Documented uses
- Retrieve product listings, order books, tickers, trades, historical rates and 24-hour statistics.
- Access account details, history, holds and fills through authenticated endpoints.
- Build Python scripts that submit buy or sell orders through the authenticated client.
Requirements & limits
The library is released under the MIT License. Public endpoints can be accessed through PublicClient; authenticated endpoints require API access configured in account settings and credentials supplied to AuthenticatedClient.
- The client exposes both public and authenticated endpoint workflows.
- Some calls are paginated; generator iteration may make multiple HTTP requests.
- The README cautions that the library may be subtly broken or buggy.
- Test scripts and additional real-time order-book functionality are identified as under development.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install the library and initialize a public client
Set up the Python package and create a client for documented public API calls.
Before you start
- Python environment with pip
- Familiarity with the Coinbase Pro API documentation
Steps
Install the package with the command below, or install the repository version with the command below.
pip install cbpropip install git+git://github.com/danpaquin/coinbasepro-python.gitImport
cbproin a Python script.Create a public client with
public_client = cbpro.PublicClient().Use documented public-client methods such as
get_product_order_book('BTC-USD')orget_product_ticker(product_id='ETH-USD').
Expected outcome
A Python client instance ready to call documented public endpoints, such as product and market-data methods.
Guide limitations
- Only some API endpoints are public.
- The README advises consulting the official API documentation and function docstrings for full syntax.
- The README cautions that the library may be buggy.
Initialize an authenticated client
Configure the client for endpoints that require account authentication.
Before you start
- Coinbase account API access configured in account settings
- API key, base64 secret and passphrase
Steps
Set up API access in the account settings.
Import
cbpro.Create an authenticated client with
cbpro.AuthenticatedClient(key, b64secret, passphrase).Use an authenticated-client method documented by the README, such as
get_accounts().
Expected outcome
An authenticated client instance for documented account endpoints; it also inherits public-client methods.
Guide limitations
- The API credentials must be configured in account settings.
- The README notes that not all endpoints are available without authentication.
- The README advises consulting official API documentation and function docstrings.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 October 2026
- Original website title
- danpaquin/coinbasepro-python · Official homepage title · retained in its source language

