Pybit

Latest version: v5.7.0

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

Scan your dependencies

Page 13 of 13

1.1.0

Added

- New `HTTP` methods.
- New argument for `HTTP` class to log each outgoing request.
- New argument for `WebSocket` class to attempt restart after an error is
detected.

Modified

- Mass simplification of all methods—each method now takes a series keyword
arguments rather than a set number of required pre-defined arguments. This
makes the library future-proof and prevents breaking on significant updates
to the REST API endpoints. This, however, requires the user to study the
API documentation and know which arguments are required for each endpoint.
- One new exception has been added—`InvalidRequestError`. This exception will be
raised if Bybit returns with an error, or if `requests` is unable to complete
the request.
- Inverse and Linear endpoints are now handled accordingly by differentiating
from the symbol argument.
- Updated existing `HTTP` method names to follow the same naming procedure as
listed in the Bybit API documentation.
- Reformatting of code to follow PEP-8 standards.
- New docstring format.

1.0.2

Added

- Various logging features added to both HTTP and WebSocket classes.

Modified

- Extensive WebSocket class updates.
- Modified the WebSocketApp to send a heartbeat packet every 30 seconds,
with a timeout of 10 seconds. These settings can be modified using the
'ping_interval' and 'ping_timeout' arguments of the WebSocket
constructor.
- User no longer needs to manage the incoming stream; `pybit` does all the
work (insert, update, delete).
- Modified `ws.ping()` for ease of use; simply use the function to send
heartbeat packets. When something happens to the connection, Python will
raise an `Exception` which the end-user can catch and handle.
- Redundancy updates to the HTTP class.
- Modified the HTTP class to use an endpoint argument, allowing users to
take advantage of the USDT endpoints.

1.0.1

Modified

- The setup.py file has been fixed to correctly install the pybit package.

1.0.0

Added

- The `pybit` module.
- MANIFEST, README, LICENSE, and CHANGELOG files.

Page 13 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.