public class Trade extends Object
Constructor and Description |
---|
Trade(String baseUrl,
String apiKey,
com.binance.connector.client.utils.signaturegenerator.SignatureGenerator signatureGenerator,
boolean showLimitUsage,
com.binance.connector.client.utils.ProxyAuth proxy) |
Trade(String baseUrl,
String apiKey,
String secretKey,
boolean showLimitUsage,
com.binance.connector.client.utils.ProxyAuth proxy) |
Modifier and Type | Method and Description |
---|---|
String |
account(Map<String,Object> parameters)
Get current account information.
|
String |
cancelOCO(Map<String,Object> parameters)
Cancel an entire Order List.
|
String |
cancelOpenOrders(Map<String,Object> parameters)
Cancels all active orders on a symbol.
|
String |
cancelOrder(Map<String,Object> parameters)
Cancel an active order.
|
String |
cancelReplace(Map<String,Object> parameters)
Cancels an existing order and places a new order on the same symbol.
Filters are evaluated before the cancel order is placed. If the new order placement is successfully sent to the engine, the order count will increase by 1. |
String |
commission(Map<String,Object> parameters)
Get current account commission rates.
|
String |
getOCOOrder(Map<String,Object> parameters)
Retrieves a specific OCO based on provided optional parameters
GET /api/v3/orderList |
String |
getOCOOrders(Map<String,Object> parameters)
Retrieves all OCO based on provided optional parameters
GET /api/v3/allOrderList |
String |
getOpenOCOOrders(Map<String,Object> parameters)
GET /api/v3/openOrderList
|
String |
getOpenOrders(Map<String,Object> parameters)
Get all open orders on a symbol.
|
String |
getOrder(Map<String,Object> parameters)
Check an order's status.
|
String |
getOrders(Map<String,Object> parameters)
Get all account orders; active, canceled, or filled.
|
String |
myTrades(Map<String,Object> parameters)
Get trades for a specific account and symbol.
|
String |
newOrder(Map<String,Object> parameters)
Send in a new order.
|
String |
ocoOrder(Map<String,Object> parameters)
Send in a new OCO.
|
String |
preventedMatches(Map<String,Object> parameters)
Displays the list of orders that were expired because of STP.
|
String |
rateLimitOrder(Map<String,Object> parameters)
Displays the user's current order count usage for all intervals.
|
String |
sorAllocations(Map<String,Object> parameters)
Retrieves allocations resulting from SOR order placement.
|
String |
sorOrder(Map<String,Object> parameters)
Places an order using smart order routing (SOR).
|
String |
testNewOrder(Map<String,Object> parameters)
Test new order creation and signature/recvWindow long.
|
String |
testSorOrder(Map<String,Object> parameters)
Test new order creation and signature/recvWindow using smart order routing (SOR).
|
public Trade(String baseUrl, String apiKey, String secretKey, boolean showLimitUsage, com.binance.connector.client.utils.ProxyAuth proxy)
public String testNewOrder(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 newOrder(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 cancelOpenOrders(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 getOrder(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 cancelReplace(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 getOrders(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 ocoOrder(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 cancelOCO(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 getOCOOrder(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 getOCOOrders(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 getOpenOCOOrders(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 account(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 myTrades(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 rateLimitOrder(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 preventedMatches(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 sorAllocations(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 commission(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 sorOrder(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 testSorOrder(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.