Class UserData
java.lang.Object
com.binance.connector.client.impl.spot.UserData
User Data Streams Endpoints
All endpoints under the User Data Streams section of the API documentation will be implemented in this class.Response will be returned in String format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloseIsloatedListenKey(LinkedHashMap<String,Object> parameters)
DELETE /sapi/v1/userDataStream/isolatedcloseListenKey(LinkedHashMap<String,Object> parameters)
Close out a user data stream.closeMarginListenKey(LinkedHashMap<String,Object> parameters)
DELETE /sapi/v1/userDataStreamcreateIsloatedListenKey(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/userDataStream/isolatedStart a new user data stream.POST /sapi/v1/userDataStreamextendIsloatedListenKey(LinkedHashMap<String,Object> parameters)
PUT /sapi/v1/userDataStream/isolatedextendListenKey(LinkedHashMap<String,Object> parameters)
Keepalive a user data stream to prevent a time out.extendMarginListenKey(LinkedHashMap<String,Object> parameters)
PUT /sapi/v1/userDataStream
-
Constructor Details
-
UserData
-
-
Method Details
-
createListenKey
Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
POST /api/v3/userDataStream- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-spot
-
extendListenKey
Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 30 minutes.
PUT /api/v3/userDataStream- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
listenKey -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-spot
-
closeListenKey
Close out a user data stream.
DELETE /api/v3/userDataStream- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
listenKey -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-spot
-
createMarginListenKey
POST /sapi/v1/userDataStream- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-margin
-
extendMarginListenKey
PUT /sapi/v1/userDataStream- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
listenKey -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-margin
-
closeMarginListenKey
DELETE /sapi/v1/userDataStream- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
listenKey -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-margin
-
createIsloatedListenKey
POST /sapi/v1/userDataStream/isolated- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
symbol -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-isolated-margin
-
extendIsloatedListenKey
PUT /sapi/v1/userDataStream/isolated- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
symbol -- mandatory/string
listenKey -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-isolated-margin
-
closeIsloatedListenKey
DELETE /sapi/v1/userDataStream/isolated- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
symbol -- mandatory/string
listenKey -- mandatory/string- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#listen-key-isolated-margin
-