Repository navigation
v1.4.0
v1.4.0 — Bybit V5 reliability, Demo Trading, and CI
This release modernizes the SDK around the current Bybit V5 API, strengthens signed-request handling, and adds automated quality and security checks.
Highlights
- Signed REST requests now send the exact canonical query string or JSON payload used for signature generation.
- Added typed
BybitHttpExceptionerrors for non-successful HTTP responses. - Added current regional REST and WebSocket endpoints for EU, Indonesia, Japan, Hong Kong, and Turkey.
- Demo Trading now supports RSA authentication for private WebSocket streams. Public Demo Trading streams correctly use mainnet market-data endpoints.
- Added V5 helpers for batch orders, execution history, account instruments, transferable funds, asset operations, spot margin, collateral, greeks, and Demo Trading accounts.
- Improved TradFi support: fixed
GOOGLUSDT, paginated instrument discovery, stock filtering, and multi-symbol ticker aggregation. - Added GitHub Actions for PHP 7.4–8.4 tests, Xdebug coverage, Codecov uploads, Composer security audits, Dependency Review, OpenSSF Scorecard, and Dependabot.
Upgrade notes
testnetanddemoTradingare now mutually exclusive.X-Refereris sent only whenBYBIT_BROKER_IDis configured. Broker applications should set this value explicitly.- HTTP responses with non-2xx status codes now throw
BybitHttpException. - Demo Trading requires API keys created in the production account’s Demo Trading area; Testnet requires Testnet keys.
See the updated README for configuration details, supported regional endpoints, and new V5 helper methods.