- Added support for futures endpoints on `HTTP` (using `isdigit` to detect futures symbols).
Modified
- Using `get` method for `dict` for symbol check instead of calling by key. - `endpoint` on `HTTP` will now default to https://api.bybit.com if no argument. - `retry_codes` is now user-definable in the `HTTP` arguments. - All logging is now on `DEBUG` level—user will need to manually set `logging_level` to `DEBUG`. - Added attempted request to `FailedRequestError` and `InvalidRequestError` for improved error logging.
1.1.14
Modified
- Fixed unexpected `tuple` generation for status codes on `InvalidRequestError` and `FailedRequestError`. - Fixed how `Websocket` handles incoming `orderBook` data due to Bybit's topic naming changes.
1.1.13
Modified
- `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`.