{"library":"coinbase-advanced-py","type":"library","category":null,"description":"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'.","language":"python","status":"active","version":"1.8.2","tags":["coinbase","crypto","trading","python","api"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install coinbase-advanced-py","imports":["from coinbase.rest import RESTClient\nimport os\n\n# CDP API key format — EC private key\nclient = RESTClient(\n    api_key='organizations/{org_id}/apiKeys/{key_id}',\n    api_secret='-----BEGIN EC PRIVATE KEY-----\\nYOUR KEY\\n-----END EC PRIVATE KEY-----\\n'\n)\n# Or from key file downloaded from Coinbase CDP dashboard\nclient = RESTClient(key_file='path/to/cdp_api_key.json')\n\n# List accounts\naccounts = client.get_accounts()\nprint(accounts.to_dict())\n\n# Place market buy order\norder = client.market_order_buy(\n    client_order_id='',  # empty string = auto-generate\n    product_id='BTC-USD',\n    quote_size='10'  # $10 worth of BTC\n)"]}],"homepage":"https://docs.cdp.coinbase.com/advanced-trade/docs/welcome","github":"https://github.com/coinbase/coinbase-advanced-py","docs":null,"changelog":null,"pypi":"https://pypi.org/project/coinbase-advanced-py/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.3,"avg_import_s":0.71,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/coinbase-advanced-py/compatibility"}}