- More defined custom response type objects
- New fields for
Account,HistoricalMarketTradeandGetProductBookResponse
- 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_headerstoTrue.
- 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_productsparameter toget_productsandget_public_productsaggregation_price_incrementparameter toget_product_bookandget_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_forcesandsort_byparameters in List Orderstrade_idsandsort_byin List Fills
skip_fcm_risk_checkparameter removed from various Orders methods.product_idandorder_typehas been replaced byproduct_idsandorder_typesin List Ordersorder_idandproduct_idhas been replaced byorder_idsandproduct_idsin List Fills
retail_portfolio_idto theget_fillsmethod.get_tradability_statusto theget_productandget_productsmethod.
isson the signed JWT changed fromcoinbase-cloudtocdp
- Support for market order buys in base currency with
base_sizein themarket_order_buyandpreview_market_order_buymethods - 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_idtoget_accountsmethod
- "Coinbase Cloud" now referred to as "Coinbase Developer Platform (CDP)"
- Support for ClosePosition endpoint
- Audience no longer included in JWT generation
retail_portfolio_idto allpreview_ordermethods
- 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_fundsparams 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