public class WebSocketApiGeneral extends Object implements WebSocketApiModule
Constructor and Description |
---|
WebSocketApiGeneral(com.binance.connector.client.utils.websocketapi.WebSocketApiRequestHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
exchangeInfo(org.json.JSONObject parameters)
Query current exchange trading rules, rate limits, and symbol information.
Notes: Without parameters, exchangeInfo displays all symbols with ["SPOT, "MARGIN", "LEVERAGED"] permissions. In order to list all active symbols on the exchange, you need to explicitly request all permissions. Available Permissions |
void |
ping(org.json.JSONObject parameters)
Test connectivity to the WebSocket API.
Note: You can use regular WebSocket ping frames to test connectivity as well, WebSocket API will respond with pong frames as soon as possible. ping request along with time is a safe way to test request-response handling in your application. |
void |
serverTime(org.json.JSONObject parameters)
Test connectivity to the WebSocket API and get the current server time.
|
public WebSocketApiGeneral(com.binance.connector.client.utils.websocketapi.WebSocketApiRequestHandler handler)
public void ping(org.json.JSONObject parameters)
parameters
- JSONObject composed by key-value pairs:
public void serverTime(org.json.JSONObject parameters)
parameters
- JSONObject composed by key-value pairs:
public void exchangeInfo(org.json.JSONObject parameters)
parameters
- JSONObject composed by key-value pairs:
Copyright © 2023. All rights reserved.