public class WebSocketApiAuth extends Object implements WebSocketApiModule
Constructor and Description |
---|
WebSocketApiAuth(com.binance.connector.client.utils.websocketapi.WebSocketApiRequestHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
logon(org.json.JSONObject parameters)
Authenticate WebSocket connection using the provided API key.
After calling session.logon, future requests under same connection won't send apiKey and signature parameters. |
void |
logout(org.json.JSONObject parameters)
Forget the API key previously authenticated.
|
void |
status(org.json.JSONObject parameters)
Query the status of the WebSocket connection, inspecting which API key (if any) is used to authorize requests.
|
public WebSocketApiAuth(com.binance.connector.client.utils.websocketapi.WebSocketApiRequestHandler handler)
public void logon(org.json.JSONObject parameters)
parameters
- JSONObject composed by key-value pairs:
public void status(org.json.JSONObject parameters)
parameters
- JSONObject composed by key-value pairs:
public void logout(org.json.JSONObject parameters)
parameters
- JSONObject composed by key-value pairs:
Copyright © 2023. All rights reserved.