public class SpotAlgo extends Object
Constructor and Description |
---|
SpotAlgo(String baseUrl,
String apiKey,
com.binance.connector.client.utils.signaturegenerator.SignatureGenerator signatureGenerator,
boolean showLimitUsage,
com.binance.connector.client.utils.ProxyAuth proxy) |
SpotAlgo(String baseUrl,
String apiKey,
String secretKey,
boolean showLimitUsage,
com.binance.connector.client.utils.ProxyAuth proxy) |
Modifier and Type | Method and Description |
---|---|
String |
cancelOrder(Map<String,Object> parameters)
Cancel an open TWAP order
DELETE /sapi/v1/algo/spot/order |
String |
getHistoricalOrders(Map<String,Object> parameters)
Get all historical SPOT TWAP orders
GET /sapi/v1/algo/spot/historicalOrders |
String |
getOpenOrders(Map<String,Object> parameters)
Get all open SPOT TWAP orders
GET /sapi/v1/algo/spot/openOrders |
String |
getSubOrders(Map<String,Object> parameters)
Get respective sub orders for a specified algoId
GET /sapi/v1/algo/spot/subOrders |
String |
twapOrder(Map<String,Object> parameters)
Place a new spot TWAP order with Algo service.
|
public SpotAlgo(String baseUrl, String apiKey, String secretKey, boolean showLimitUsage, com.binance.connector.client.utils.ProxyAuth proxy)
public String twapOrder(Map<String,Object> parameters)
parameters
- Map of String,Object pair
where String is the name of the parameter and Object is the value of the parameter
public String cancelOrder(Map<String,Object> parameters)
parameters
- Map of String,Object pair
where String is the name of the parameter and Object is the value of the parameter
public String getOpenOrders(Map<String,Object> parameters)
parameters
- Map of String,Object pair
where String is the name of the parameter and Object is the value of the parameter
public String getHistoricalOrders(Map<String,Object> parameters)
parameters
- Map of String,Object pair
where String is the name of the parameter and Object is the value of the parameter
public String getSubOrders(Map<String,Object> parameters)
parameters
- Map of String,Object pair
where String is the name of the parameter and Object is the value of the parameter
Copyright © 2023. All rights reserved.