Official Coinbase Advanced Trade API Python SDK. Current version: 1.8.2 (Mar 2026). TWO deprecated packages to avoid: 'coinbase' (old Coinbase Commerce SDK, EOL) and 'cbpro' (Coinbase Pro, discontinued). The correct package is 'coinbase-advanced-py'. Uses CDP (Coinbase Developer Platform) API keys with EC private key format — NOT the old HMAC API key format. Import is 'from coinbase.rest import RESTClient'.
pip install coinbase-advanced-pyVerified import paths — ran on the pinned version, not inferred.
Coinbase Advanced Trade Python SDK — accounts, product info, and market order.
pip install coinbase-advanced-py; from coinbase.rest import RESTClient
pip install coinbase-advanced-py. Migration guide at docs.cdp.coinbase.com
Generate CDP API key from developer.coinbase.com — downloads a JSON file with name and privateKey fields.
Use client_order_id='' for auto-generation, or generate your own UUID.
Buy $10 of BTC: quote_size='10'. Sell 0.001 BTC: base_size='0.001'.
No dependency data recorded yet.