Pybit

Latest version: v5.10.0

Safety actively analyzes 725393 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 14

2.3.0

Added
- `HTTP` methods for the spot API's [Leveraged Token](https://bybit-exchange.github.io/docs/spot/#t-ltinfos) and [Cross Margin](https://bybit-exchange.github.io/docs/spot/#t-crossmargintrading) endpoints
- `agentSource` parameter when sending requests to place spot orders, which uses the `referral_id` argument, so that affiliates can track orders

2.2.3

- There was a packaging problem with the previous version. There are no changes compared with 2.2.2.

2.2.2

- See below release candidates for further changes. TLDR: Improved WebSocket stability and reconnection logic.

Added
- `retries` argument so that users specify how many times the WebSocket tries to reconnect upon disconnection
- The default is `10`. To retry forever, set it to `0`. pybit will wait 1 second between each retry.

Modified
- Improved the logging around WebSocket disconnection

2.2.2rc2

Added
- WebSocket topic resubscription so that when a WebSocket connection is dropped and then reconnected it should resume pushing the same data as before. Essentially, completes the expected functionality of reconnecting to the WebSocket.

Modified
- `is_connected()` function to work with modules that utilise >1 WebSocket connections

2.2.2rc1

Added
- `is_connected()` function to `WebSocket` class so that you can check if your WebSocket connection is alive

Fixed
- Bug where, upon WebSocket disconnection, pybit rapidly tries to re-establish the connection, which results in being banned by the CDN for malicious activity

2.2.2rc0

Modified
- Improved HTTP error handling and logging to ease troubleshooting

Page 5 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.