coinbase-advanced-py
Coinbase Advanced API Python SDK
Decision gist · record as of 2026-08-14
Yes. This is the official Coinbase SDK with active maintenance, no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to programmatically trade on Coinbase or consume their Advanced API—it is the canonical choice for Python developers. Ensure you secure your API credentials properly (use a secrets manager, not hardcoded values).AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Coinbase Developer Platform (CDP) API credentials (Ed25519 or ECDSA key pair); set COINBASE_API_KEY and COINBASE_API_SECRET environment variables or pass them explicitly to RESTClient.
- Low friction install with five stable runtime dependencies (requests, cryptography, PyJWT, websockets, backoff).
- Actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
last release 2026-06-19 (56 days) · last repo commit 2026-06-19 · 355 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 242,844 downloads/mo, #8,835 on PyPI
Alternatives
Verify before relying
pip install coinbase-advanced-py
from coinbase.rest import RESTClient
client = RESTClient() # Uses COINBASE_API_KEY and COINBASE_API_SECRET env vars
accounts = client.get_accounts()
print(accounts.to_dict())- Exact scope and completeness of Advanced Trade API endpoint coverage in this SDK version
- WebSocket reconnection and error-handling behavior under network interruptions
- Rate limiting and backoff strategy details beyond what the description states
What it is and what it does
This is the official Coinbase Python SDK for the Advanced API, providing both REST and WebSocket interfaces to trade cryptocurrencies, manage orders, and stream real-time market data. It wraps the Coinbase Advanced Trade API with typed response objects, automatic JWT signing (supporting both Ed25519 and ECDSA key types), and convenience methods for common operations like placing market orders and fetching account balances.
The SDK handles authentication via Coinbase Developer Platform (CDP) API keys, supports environment variable configuration for secrets, and includes built-in rate-limit header tracking. It depends on requests for HTTP, cryptography and PyJWT for signing, websockets for live data streams, and backoff for retry logic. The package targets Python 3.8 and later and is actively maintained by Coinbase.
Use it for
- Build automated trading bots that place orders and monitor positions via the REST API.
- Stream real-time order book and trade data using the WebSocket client for live market analysis.
- Retrieve account balances, portfolio information, and transaction history programmatically.
- Integrate Coinbase trading into a larger financial application or dashboard.
- Backtest trading strategies by fetching historical market data through API endpoints.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is the official Coinbase SDK with active maintenance, no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to programmatically trade on Coinbase or consume their Advanced API—it is the canonical choice for Python developers. Ensure you secure your API credentials properly (use a secrets manager, not hardcoded values).
Install
coinbase-advanced-py on PyPI
Before you install
Low friction install with five stable runtime dependencies (requests, cryptography, PyJWT, websockets, backoff). Actively maintained with a recent release and no known vulnerabilities.
Requires Coinbase Developer Platform (CDP) API credentials (Ed25519 or ECDSA key pair); set COINBASE_API_KEY and COINBASE_API_SECRET environment variables or pass them explicitly to RESTClient.
License in practice
Licensed under Apache 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install coinbase-advanced-py
from coinbase.rest import RESTClient
client = RESTClient() # Uses COINBASE_API_KEY and COINBASE_API_SECRET env vars
accounts = client.get_accounts()
print(accounts.to_dict())
Verify before relying
- Exact scope and completeness of Advanced Trade API endpoint coverage in this SDK version
- WebSocket reconnection and error-handling behavior under network interruptions
- Rate limiting and backoff strategy details beyond what the description states
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesrequestscryptographyPyJWTwebsocketsbackoff |
| Maintenance | Actively maintained 56 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 242,844 / month, #8,835 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: coinbase_advanced_py-1.8.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “coinbase api python sdk”
- coinbase-advanced-pyOfficial Python SDK for the Coinbase Advanced API, providing REST and…
- cdp-sdkPython client library for the Coinbase Developer Platform that…
- aliyun-python-sdk-coreProvides core client infrastructure for calling Alibaba Cloud APIs…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also cdp-sdk · massive · python-kraken-sdk · python-okx · WooCommerce · pybit · binance-connector · polygon-api-client · smartapi-python · paradime-io