Skip to content

5.6.0

Compare
Choose a tag to compare
@dextertd dextertd released this 28 Sep 17:48
· 37 commits to master since this release
852a3f5

[5.6.0] - 2023-09-28

Added

  • Add RSA authentication for HTTP and WebSocket (choose "Self-generated API Keys" when creating an API key) (#157)
    • 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
    • See examples files: HTTP and WebSocket
  • 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 (#154)

Deprecated

  • The HTTP method enable_universal_transfer_for_sub_uid()

Fixed

  • Improve close_position() logic

[5.5.0] - 2023-07-17

Added

  • helpers.py which includes the Helpers class and the close_position() method, which can be imported and employed like so:
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] - 2023-06-23

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