By Admin on Monday, 28 November 2022
Category: All

Bybit Client API

​From sgcWebSockets 2022.10.0 Bybit Crypto Exchange is supported. The following APIs supported


The following product APIs are implemented:

Properties 

You can configure the following properties in the Bybit property.

Connection 

When the client successfully connects to Bybit servers, the event OnConnect is fired. After the event OnConnect is fired, then you can start to send and receive messages to/from Bybit servers. If you are connecting to the private websocket channel, you must wait till OnBybitAuthentication event is fired and check if the success parameter is true, before subscribe to any channel.

The client supports several APIs, so use the property BybitClient to set which API you want to use:


Find below an example of connecting to WebSocket Spot Private API.

After a successfull connection to the Spot WebSocket Server, you can start to subscribe to WebSocket channels, just access the SPOT property and then call any of the subscribe/unsubscribe methods available.

Find below the list of the Bybit APIs objects:

Subscribe to WebSocket Channels 

​Find below an example of subscribing to the Private Spot Websocket Channels after a successful authentication.

Placing Orders 

Find below an example of Placing a Market Order for USDT Perpetual.


Enter some title here...

Related Posts