Added - [WebSocket Trading](https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline) support - Add `get_contract_transaction_log`
5.7.0
Added - [Demo Trading](https://bybit-exchange.github.io/docs/v5/demo) support - Add methods for the [Institutional Loan](https://bybit-exchange.github.io/docs/v5/otc/margin-product-info) endpoints - Add [Account](https://bybit-exchange.github.io/docs/v5/account/wallet-balance) methods `repay_liability()`, `set_collateral_coin()`, `batch_set_collateral_coin()` - `tld` arg for users in The Netherlands and Hong Kong for `HTTP` sessions
Fixed - Options WebSocket failing to maintain connection (https://github.com/bybit-exchange/pybit/issues/164)
5.6.1
Changed - Improved the IP rate limit error message to indicate that an HTTP status code 403 may also mean that the IP address was identified as being from the USA – all requests from USA IPs are [banned](https://t.me/BybitAPI/180420) by Bybit.
5.6.0
Added - Add RSA authentication for HTTP and WebSocket (choose "Self-generated API Keys" when [creating](https://testnet.bybit.com/app/user/api-management) an API key) - To use it, pass `rsa_authentication=True` along with your `api_key` and `api_secret` - Your `api_key` is given to you after inputting your public key (RSA) into Bybit's API management system - Your `api_secret` is the private key (RSA) you generate - Learn more [here](https://www.bybit.com/en-US/help-center/bybitHC_Article?id=000001923&language=en_US) - See examples files: [HTTP](https://github.com/bybit-exchange/pybit/blob/master/examples/http_example_rsa_authentication.py) and [WebSocket](https://github.com/bybit-exchange/pybit/blob/master/examples/websocket_example_rsa_authentication.py) - Add the `HTTP` method `get_server_time()` - Add `HTTP` methods for spot margin trading - Add `HTTP` method `get_long_short_ratio()` - Add optional `private_auth_expire` arg for WebSocket (https://github.com/bybit-exchange/pybit/pull/154)
Deprecated - The `HTTP` method `enable_universal_transfer_for_sub_uid()`
Fixed - Improve `close_position` logic
5.5.0
Added - `helpers.py` which includes the `Helpers` class and the `close_position` method, which can be imported and employed like so: python from pybit.helpers import Helpers my_helper = Helpers(session) your HTTP session object (eg, from pybit.unified_trading import HTTP) print(my_helper.close_position(category="linear", symbol="BTCUSDT"))
5.4.0
Added - The following new endpoints to `unified_trading`: - `get_broker_earnings` - `get_announcement` - `get_pre_upgrade_order_history` - `get_pre_upgrade_trade_history` - `get_pre_upgrade_closed_pnl` - `get_pre_upgrade_transaction_log` - `get_pre_upgrade_option_delivery_record` - `get_pre_upgrade_usdc_session_settlement` - `get_affiliate_user_info` - `get_uid_wallet_type`