Repository navigation
v1.4.1
v1.4.1 — Correct Demo Trading Isolation
This release aligns the PHP SDK’s Demo Trading behavior with Bybit’s actual environment model: Demo Trading and Testnet are separate services with separate credentials and endpoints.
Fixed
- Testnet now always uses Bybit’s official global endpoints:
- REST:
https://api-testnet.bybit.com - WebSocket:
wss://stream-testnet.bybit.com
- REST:
- Removed unsupported regional Testnet routing for Japan and Hong Kong.
- Preserved strict separation between Testnet and Demo Trading; they cannot be enabled together.
Added
BybitClient::demo()factory for creating an isolated Demo Trading client without manually configuring flags.requestDemoFundsSimple()helper for requesting or reducing funds for one supported Demo Trading coin: BTC, ETH, USDT, or USDC.getDemoApiKeyInfo()helper for reading the active Demo Trading API key information.subscribeGreeks()for the Demo Trading private WebSocket stream.- Tests covering Demo Trading routing, the simplified funding payload, Demo API key access, and Testnet endpoint selection.
Notes
- Demo Trading REST requests use
https://api-demo.bybit.com. - Demo private WebSocket streams use
wss://stream-demo.bybit.com/v5/private. - Public Demo market data is served through the mainnet public WebSocket.
- Bybit WebSocket Trade is not available in Demo Trading.
See the Bybit Demo Trading documentation for the complete list of supported operations and service limitations.