精选85pybit(Bybit 官方 Python SDK)交易所与金融 API
pybit v5.15.0:新增端点,弃用旧方法
5.15.0
推荐理由
量化开发者注意:pybit 5.15.0 新增了法币兑换、经纪商限流等大量端点,并重命名了部分方法(如 set_no_convert_repay 改为 manual_no_convert_repay),同时要求 Python 3.10+。升级前请核对你的代码是否用到这些变更,避免接口失效。
[5.15.0] - 2026-03-27
Formally release changes from the pre-releases: 5.15.0rc1, 5.15.0rc2.
In addition:
Fixed
- HTTP retry logic for retriable Bybit API errors, so that retryable retCodes now perform another request instead of raising Exception: Retryable error occurred, retrying...
- HTTP retry logic for retCode 10002, so that the expanded recv_window is carried into the next retry attempt
- WebSocket exit() so that it cancels the scheduled custom ping and does not raise WebSocketConnectionClosedException after shutdown
- WebSocket connect and exit loops so that they do not busy-wait on socket state changes
[5.15.0rc2] - 2026-03-18
Added
- Account HTTP endpoint set_delta_mode()
- Asset HTTP endpoints
- get_asset_overview()
- get_funding_acc_history()
- Fiat convert HTTP endpoints
- get_fiat_balance()
- get_fiat_trading_pair_list()
- get_fiat_convert_history()
- request_a_quote_fiat_convert()
- get_fiat_reference_price()
- confirm_a_quote_fiat_convert()
- get_fiat_convert_status()
- Broker HTTP endpoints
- get_broker_all_rate_limits()
- get_broker_rate_limit_cap()
- set_broker_rate_limit()
- Crypto Loan HTTP endpoint get_max_loan_amount_new_crypto_loan()
- Position HTTP endpoint confirm_new_risk_limit()
- Spot Margin Trading HTTP endpoint spot_margin_trade_get_currency_data()
- User HTTP endpoints
- sign_agreement()
- get_friend_referrals()
Changed
- Account HTTP endpoint set_no_convert_repay() to manual_no_convert_repay(), to match the API's current semantics
- Account HTTP endpoint get_instruments_info() to get_account_instruments_info(), to avoid ambiguity with other product groups
- Account HTTP endpoint set_hedging_mode() so that its arg is setHedgingMode with values ON or OFF
- Spread Trading HTTP endpoint names to be prefixed with spread_, to avoid clashing with the unified trading methods
[5.15.0rc1] - 2026-03-14
Changed
- Dropped Python 3.6 to 3.9 support, as these versions have reached EOL
- pybit now requires Python 3.10 or higher
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力