- `requests` will use `JSONDecodeError` from `simplejson` if it is available—`pybit` will now do the same to prevent errors. - Fixed a bug where `HTTP` retry would crash on rate limit reached due to undefined variable. - Improved `InvalidRequestError` and `FailedRequestError` to include error codes and times.
1.1.12
Modified
- `WebSocket` will now temporarily differentiate between inverse and linear endpoints for the 'order' topic since incoming data has differing keys.
1.1.11
Added
- `WebSocket` now has `purge_on_fetch` (defaults to `True`), which allows the user to keep data between fetches.
Modified
- Fixed a bug on 'stop_order' for `WebSocket` that would prevent data from being appended due to deprecation of `stop_order_id`.
1.1.10
- See release candidates for details.
1.1.10rc0
Modified
- Rewrote if-condition on `_on_message` in `WebSocket` class to check for linear or non-linear position data.
1.1.9
Modified
- Added ability to handle `from` using `from_time` and `from_id` arguments since `from` is a reserved keyword. - Removed `ignore_retries_for` from `HTTP`. `pybit` now uses a standard list of non-critical errors that can be retried. - Added argument `retry_delay` for `HTTP`—allows user to add a custom retry delay for each retry.