5.0.0
[5.0.0] - 2023-04-03
This version upgrades pybit to Bybit's version 5 (v5) APIs. It supports both Unified Trading Accounts (UTA) and non-UTA accounts. Bybit is not expected to develop any more major API versions in the future, so Bybit's v5 API (and subsequently, pybit's 5.0.0) is expected to be supported in the long-term.
See the examples folder for examples on how to interact with the latest modules.
Added
- Bybit's v5 HTTP and WebSocket APIs in the
unified_trading
module. See what markets All-In-One V5 API supports in the upgrade guide.
Modified
- Non-v5 modules like
copy_trading
,usdc_options
, andusdc_perpetuals
to continue to work from alegacy
subpackage. Import like so:from pybit.legacy.copy_trading import HTTP
. These modules are maintained because they are currently not supported by the v5 API; see the upgrade guide.
Removed
- Various legacy modules which have been superseded by the v5 API via the
unified_trading
module
Fixed
- Tests for V5 endpoints