- More defined custom response type objects
- New fields for
Account
,HistoricalMarketTrade
andGetProductBookResponse
- Removed redundant response enum types
- Removed redundant Public endpoint response types, now use same response types as Product endpoints
- Move custom object locations to their respective endpoints where response objects are defined
- Support for converting custom REST and WebSocket response type objects to dict via new
to_dict()
function
- Importing from
coinbase.websocket.types
- Custom response type object for WebSocket channels
- Custom response types to REST endpoints
- Dot-notation and auto-completing fields for defined objects
- Support for RESTClient to append rate limit response headers to REST response bodies by setting
rate_limit_headers
toTrue
.
- Add WSUserClient to SDK documents
- Support for WSUserClient to connect to the Coinbase Advanced Trade WebSocket user channel and futures_balance_summary channel
get_all_products
parameter toget_products
andget_public_products
aggregation_price_increment
parameter toget_product_book
andget_public_product_book
- Support for API key permissions endpoint with
get_api_key_permissions
- Support for auto generating unique client_order_id when set to empty string
- Support for Futures Balance Summary Channel in
WSClient
- Heartbeats channel methods no longer require
product_ids
order_ids
,time_in_forces
andsort_by
parameters in List Orderstrade_ids
andsort_by
in List Fills
skip_fcm_risk_check
parameter removed from various Orders methods.product_id
andorder_type
has been replaced byproduct_ids
andorder_types
in List Ordersorder_id
andproduct_id
has been replaced byorder_ids
andproduct_ids
in List Fills
retail_portfolio_id
to theget_fills
method.get_tradability_status
to theget_product
andget_products
method.
iss
on the signed JWT changed fromcoinbase-cloud
tocdp
- Support for market order buys in base currency with
base_size
in themarket_order_buy
andpreview_market_order_buy
methods - Support for the following Futures Intraday Leverage API endpoints:
- GetCurrentMarginWindow
- GetIntradayMarginSetting
- SetIntradayMarginSetting
- Support for the following Perpetual Futures Trading API endpoints:
- Get Perpetuals Portfolio Asset Balances
- Opt-In Multi Asset Collateral
- Support for limit Fill-or-Kill (FOK) order types
- Support for trigger bracket orders
- Support for public endpoints in RESTClient and public channels in WSClient that do not require authentication
retail_portfolio_id
toget_accounts
method
- "Coinbase Cloud" now referred to as "Coinbase Developer Platform (CDP)"
- Support for ClosePosition endpoint
- Audience no longer included in JWT generation
retail_portfolio_id
to allpreview_order
methods
- Requests now made via request.Sessions() to reduce latency by reusing existing HTTP connection
- Timestamp no longer needed for websocket signing
- Support for limit IOC order types
- Support for payments endpoints
- get_unix_time() no longer requires authentication
- Log message when subscribing or unsubscribing via WSClient
- Unsubscribe_all() no longer sends message if not subscribed to any channel
- Full MyPy annotations with return types for function definitions
- Detailed documentation for all exposed functions of the SDK
- Support for PreviewOrder endpoint
- Support for Perpetuals API endpoints
- Initial release of WebSocket API client
- Verbose logging option for RESTClient
- Fixed bug where
move_portfolio_funds
params were set incorrectly
- JWT generation expiry updated to 2 minutes to be consistent with Advanced Trade docs
- Support for files for using JSON files for API key and secret
- Improve user facing messages for common errors
- Support for Futures API endpoints
- Initial release of the Coinbase Advanced Trading API Python SDK