Binance SPOT Public API
- API version: 1.0.0
- Build date: 2020-11-26T21:41:41.962Z[GMT]
The swagger file of Binance Public API API documents: - https://github.com/binance-exchange/binance-official-api-docs - https://binance-docs.github.io/apidocs/spot/en
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/swagger-java-client-1.0.0.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
InlineResponse20017 result = apiInstance.sapiV1MarginAccountGet(timestamp, signature, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginAccountGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
MarginApi apiInstance = new MarginApi();
try {
List<InlineResponse20012> result = apiInstance.sapiV1MarginAllAssetsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginAllAssetsGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer orderId = 56; // Integer | order id
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
Integer limit = 56; // Integer | Default 500; max 1000.
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
List<MarginOrderDetail> result = apiInstance.sapiV1MarginAllOrdersGet(symbol, timestamp, signature, orderId, startTime, endTime, limit, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginAllOrdersGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
MarginApi apiInstance = new MarginApi();
try {
List<InlineResponse20013> result = apiInstance.sapiV1MarginAllPairsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginAllPairsGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
MarginApi apiInstance = new MarginApi();
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
try {
InlineResponse20010 result = apiInstance.sapiV1MarginAssetGet(asset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginAssetGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
BigDecimal current = new BigDecimal(); // BigDecimal | Currently querying page. Start from 1. Default:1
BigDecimal size = new BigDecimal(); // BigDecimal | Default:10 Max:100
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Object result = apiInstance.sapiV1MarginForceLiquidationRecGet(timestamp, signature, startTime, endTime, current, size, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginForceLiquidationRecGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
BigDecimal current = new BigDecimal(); // BigDecimal | Currently querying page. Start from 1. Default:1
BigDecimal size = new BigDecimal(); // BigDecimal | Default:10 Max:100
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
InlineResponse20016 result = apiInstance.sapiV1MarginInterestHistoryGet(timestamp, signature, asset, startTime, endTime, current, size, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginInterestHistoryGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer txId = 56; // Integer | the tranId in `POST /sapi/v1/margin/loan`
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
BigDecimal current = new BigDecimal(); // BigDecimal | Currently querying page. Start from 1. Default:1
BigDecimal size = new BigDecimal(); // BigDecimal | Default:10 Max:100
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Object result = apiInstance.sapiV1MarginLoanGet(asset, timestamp, signature, txId, startTime, endTime, current, size, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginLoanGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
Float amount = 3.4F; // Float |
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Transaction result = apiInstance.sapiV1MarginLoanPost(asset, amount, timestamp, signature, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginLoanPost");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Object result = apiInstance.sapiV1MarginMaxBorrowableGet(symbol, timestamp, signature, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginMaxBorrowableGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Object result = apiInstance.sapiV1MarginMaxTransferableGet(symbol, timestamp, signature, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginMaxTransferableGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
Integer fromId = 56; // Integer | Trade id to fetch from. Default gets most recent trades.
Integer limit = 56; // Integer | Default 500; max 1000.
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
List<MarginTrade> result = apiInstance.sapiV1MarginMyTradesGet(symbol, timestamp, signature, startTime, endTime, fromId, limit, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginMyTradesGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
List<MarginOrderDetail> result = apiInstance.sapiV1MarginOpenOrdersGet(timestamp, signature, symbol, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginOpenOrdersGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer orderId = 56; // Integer | order id
String origClientOrderId = "origClientOrderId_example"; // String | order id from client
String newClientOrderId = "newClientOrderId_example"; // String | Used to uniquely identify this cancel. Automatically generated by default
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
MarginOrder result = apiInstance.sapiV1MarginOrderDelete(symbol, timestamp, signature, orderId, origClientOrderId, newClientOrderId, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginOrderDelete");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer orderId = 56; // Integer | order id
String origClientOrderId = "origClientOrderId_example"; // String | order id from client
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
MarginOrderDetail result = apiInstance.sapiV1MarginOrderGet(symbol, timestamp, signature, orderId, origClientOrderId, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginOrderGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
String side = "side_example"; // String | SELL or BUY
String type = "type_example"; // String | the order type
Float quantity = 3.4F; // Float | order quantity
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Float price = 3.4F; // Float | order price
Float stopPrice = 3.4F; // Float | Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
String newClientOrderId = "newClientOrderId_example"; // String | Used to uniquely identify this cancel. Automatically generated by default
Float icebergQty = 3.4F; // Float | Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
String newOrderRespType = "newOrderRespType_example"; // String | Set the response JSON. ACK, RESULT, or FULL; MARKET and LIMIT order types default to FULL, all other orders default to ACK.
String sideEffectType = "sideEffectType_example"; // String | default NO_SIDE_EFFECT
String timeInForce = "timeInForce_example"; // String | order time in force
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
InlineResponse20015 result = apiInstance.sapiV1MarginOrderPost(symbol, side, type, quantity, timestamp, signature, price, stopPrice, newClientOrderId, icebergQty, newOrderRespType, sideEffectType, timeInForce, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginOrderPost");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
try {
InlineResponse20011 result = apiInstance.sapiV1MarginPairGet(symbol);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginPairGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
MarginApi apiInstance = new MarginApi();
String symbol = "symbol_example"; // String | trading symbol, e.g. BNBUSDT
try {
InlineResponse20014 result = apiInstance.sapiV1MarginPriceIndexGet(symbol);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginPriceIndexGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer txId = 56; // Integer | the tranId in `POST /sapi/v1/margin/repay`
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
BigDecimal current = new BigDecimal(); // BigDecimal | Currently querying page. Start from 1. Default:1
BigDecimal size = new BigDecimal(); // BigDecimal | Default:10 Max:100
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
InlineResponse2009 result = apiInstance.sapiV1MarginRepayGet(asset, timestamp, signature, txId, startTime, endTime, current, size, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginRepayGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
Float amount = 3.4F; // Float |
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Transaction result = apiInstance.sapiV1MarginRepayPost(asset, amount, timestamp, signature, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginRepayPost");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
String type = "type_example"; // String | Tranfer Type
Integer startTime = 56; // Integer | Timestamp in ms
Integer endTime = 56; // Integer | Timestamp in ms
BigDecimal current = new BigDecimal(); // BigDecimal | Currently querying page. Start from 1. Default:1
BigDecimal size = new BigDecimal(); // BigDecimal | Default:10 Max:100
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Object result = apiInstance.sapiV1MarginTransferGet(timestamp, signature, asset, type, startTime, endTime, current, size, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginTransferGet");
e.printStackTrace();
}
}
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MarginApi;
import java.io.File;
import java.util.*;
public class MarginApiExample {
public static void main(String[] args) {
MarginApi apiInstance = new MarginApi();
String asset = "asset_example"; // String | The asset being transferred, e.g., BTC
Float amount = 3.4F; // Float |
Integer timestamp = 56; // Integer | UTC timestamp
String signature = "signature_example"; // String | signature
Integer type = 56; // Integer | 1 -> transfer from main account to margin account \\ 2 -> transfer from margin account to main account
Integer recvWindow = 56; // Integer | The value cannot be greater than 60000
try {
Transaction result = apiInstance.sapiV1MarginTransferPost(asset, amount, timestamp, signature, type, recvWindow);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarginApi#sapiV1MarginTransferPost");
e.printStackTrace();
}
}
}All URIs are relative to https://virtserver.swaggerhub.com/21staff/Binance/1.0.0
| Class | Method | HTTP request | Description |
|---|---|---|---|
| MarginApi | sapiV1MarginAccountGet | GET /sapi/v1/margin/account | Query Margin Account Details (USER_DATA) |
| MarginApi | sapiV1MarginAllAssetsGet | GET /sapi/v1/margin/allAssets | Get All Margin Assets (MARKET_DATA) |
| MarginApi | sapiV1MarginAllOrdersGet | GET /sapi/v1/margin/allOrders | Query Margin Account's All Order (USER_DATA) |
| MarginApi | sapiV1MarginAllPairsGet | GET /sapi/v1/margin/allPairs | Get All Margin Pairs (MARKET_DATA) |
| MarginApi | sapiV1MarginAssetGet | GET /sapi/v1/margin/asset | Query Margin Asset (MARKET_DATA) |
| MarginApi | sapiV1MarginForceLiquidationRecGet | GET /sapi/v1/margin/forceLiquidationRec | Get Force Liquidation Record (USER_DATA) |
| MarginApi | sapiV1MarginInterestHistoryGet | GET /sapi/v1/margin/interestHistory | Query Interest History (MARKET_DATA) |
| MarginApi | sapiV1MarginLoanGet | GET /sapi/v1/margin/loan | Query Load Record (USER_DATA) |
| MarginApi | sapiV1MarginLoanPost | POST /sapi/v1/margin/loan | Margin Account Borrow (MARGIN) |
| MarginApi | sapiV1MarginMaxBorrowableGet | GET /sapi/v1/margin/maxBorrowable | Query Max Borrow (USER_DATA) |
| MarginApi | sapiV1MarginMaxTransferableGet | GET /sapi/v1/margin/maxTransferable | Query Max Transfer-Out Amount (USER_DATA) |
| MarginApi | sapiV1MarginMyTradesGet | GET /sapi/v1/margin/myTrades | If fromId is set, it will get orders >= that fromId. Otherwise most recent orders are returned. |
| MarginApi | sapiV1MarginOpenOrdersGet | GET /sapi/v1/margin/openOrders | Query Margin Account's Open Order (USER_DATA) |
| MarginApi | sapiV1MarginOrderDelete | DELETE /sapi/v1/margin/order | Margin Account Cancel Order (TRADE) |
| MarginApi | sapiV1MarginOrderGet | GET /sapi/v1/margin/order | Query Margin Account's Order (MARKET_DATA) |
| MarginApi | sapiV1MarginOrderPost | POST /sapi/v1/margin/order | Margin Account New Order (TRADE) |
| MarginApi | sapiV1MarginPairGet | GET /sapi/v1/margin/pair | Query Margin Pair (MARKET_DATA) |
| MarginApi | sapiV1MarginPriceIndexGet | GET /sapi/v1/margin/priceIndex | Query Margin PriceIndex (MARKET_DATA) |
| MarginApi | sapiV1MarginRepayGet | GET /sapi/v1/margin/repay | Query Repay Record (USER_DATA) |
| MarginApi | sapiV1MarginRepayPost | POST /sapi/v1/margin/repay | Margin Account Repay (MARGIN) |
| MarginApi | sapiV1MarginTransferGet | GET /sapi/v1/margin/transfer | Get Transfer History (USER_DATA) |
| MarginApi | sapiV1MarginTransferPost | POST /sapi/v1/margin/transfer | Margin Account Transfer (MARGIN) |
| MarginStreamApi | sapiV1UserDataStreamDelete | DELETE /sapi/v1/userDataStream | Close a ListenKey (USER_STREAM) |
| MarginStreamApi | sapiV1UserDataStreamPost | POST /sapi/v1/userDataStream | Create a ListenKey (USER_STREAM) |
| MarginStreamApi | sapiV1UserDataStreamPut | PUT /sapi/v1/userDataStream | Ping/Keep-alive a ListenKey (USER_STREAM) |
| MarketDataApi | apiV3AggTradesGet | GET /api/v3/aggTrades | Compressed/Aggregate Trades List |
| MarketDataApi | apiV3AvgPriceGet | GET /api/v3/avgPrice | Current Average Price |
| MarketDataApi | apiV3DepthGet | GET /api/v3/depth | Order Book |
| MarketDataApi | apiV3ExchangeInfoGet | GET /api/v3/exchangeInfo | Exchange Information |
| MarketDataApi | apiV3HistoricalTradesGet | GET /api/v3/historicalTrades | Old Trade Lookup |
| MarketDataApi | apiV3KlinesGet | GET /api/v3/klines | Kline/Candlestick Data |
| MarketDataApi | apiV3PingGet | GET /api/v3/ping | Test Connectivity |
| MarketDataApi | apiV3Ticker24hrGet | GET /api/v3/ticker/24hr | 24hr Ticker Price Change Statistics |
| MarketDataApi | apiV3TickerBookTickerGet | GET /api/v3/ticker/bookTicker | Symbol Order Book Ticker |
| MarketDataApi | apiV3TickerPriceGet | GET /api/v3/ticker/price | Symbol Price Ticker |
| MarketDataApi | apiV3TimeGet | GET /api/v3/time | Check Server Time |
| MarketDataApi | apiV3TradesGet | GET /api/v3/trades | Recent Trades List |
| StreamApi | apiV3UserDataStreamDelete | DELETE /api/v3/userDataStream | Close a ListenKey (USER_STREAM) |
| StreamApi | apiV3UserDataStreamPost | POST /api/v3/userDataStream | Create a ListenKey (USER_STREAM) |
| StreamApi | apiV3UserDataStreamPut | PUT /api/v3/userDataStream | Ping/Keep-alive a ListenKey (USER_STREAM) |
| TradeApi | apiV3AccountGet | GET /api/v3/account | Account Information (USER_DATA) |
| TradeApi | apiV3AllOrderListGet | GET /api/v3/allOrderList | Query all OCO (USER_DATA) |
| TradeApi | apiV3AllOrdersGet | GET /api/v3/allOrders | All Orders (USER_DATA) |
| TradeApi | apiV3MyTradesGet | GET /api/v3/myTrades | Account Trade List (USER_DATA) |
| TradeApi | apiV3OpenOrderListGet | GET /api/v3/openOrderList | Query Open OCO (USER_DATA) |
| TradeApi | apiV3OpenOrdersDelete | DELETE /api/v3/openOrders | Cancel all Open Orders on a Symbol (TRADE) |
| TradeApi | apiV3OpenOrdersGet | GET /api/v3/openOrders | Current Open Orders (USER_DATA) |
| TradeApi | apiV3OrderDelete | DELETE /api/v3/order | Cancel Order (TRADE) |
| TradeApi | apiV3OrderGet | GET /api/v3/order | Query Order (USER_DATA) |
| TradeApi | apiV3OrderListDelete | DELETE /api/v3/orderList | Cancel OCO (TRADE) |
| TradeApi | apiV3OrderListGet | GET /api/v3/orderList | Query OCO (USER_DATA) |
| TradeApi | apiV3OrderOcoPost | POST /api/v3/order/oco | New OCO (TRADE) |
| TradeApi | apiV3OrderPost | POST /api/v3/order | New Order (TRADE) |
| TradeApi | apiV3OrderTestPost | POST /api/v3/order/test | Test New Order (TRADE) |
| WalletApi | sapiV1AccountDisableFastWithdrawSwitchPost | POST /sapi/v1/account/disableFastWithdrawSwitch | Disable Fast Withdraw Switch (USER_DATA) |
| WalletApi | sapiV1AccountEnableFastWithdrawSwitchPost | POST /sapi/v1/account/enableFastWithdrawSwitch | Enable Fast Withdraw Switch (USER_DATA) |
| WalletApi | sapiV1AccountSnapshotGet | GET /sapi/v1/accountSnapshot | Daily Account Snapshot (USER_DATA) |
| WalletApi | sapiV1AssetAssetDividendGet | GET /sapi/v1/asset/assetDividend | Dust Transfer |
| WalletApi | sapiV1AssetDustPost | POST /sapi/v1/asset/dust | Dust Transfer |
| WalletApi | sapiV1CapitalConfigGetallGet | GET /sapi/v1/capital/config/getall | All Coins' Information (USER_DATA) |
| WalletApi | sapiV1CapitalDepositAddressGet | GET /sapi/v1/capital/deposit/address | Withdraw History (supporting network) (USER_DATA) |
| WalletApi | sapiV1CapitalDepositHisrecGet | GET /sapi/v1/capital/deposit/hisrec | Deposit History(supporting network) (USER_DATA) |
| WalletApi | sapiV1CapitalWithdrawApplyPost | POST /sapi/v1/capital/withdraw/apply | Withdraw |
| WalletApi | sapiV1CapitalWithdrawHistoryGet | GET /sapi/v1/capital/withdraw/history | Withdraw History (supporting network) (USER_DATA) |
| WalletApi | wapiV3AccountStatusHtmlGet | GET /wapi/v3/accountStatus.html | Account Status (USER_DATA) |
| WalletApi | wapiV3ApiTradingStatusHtmlGet | GET /wapi/v3/apiTradingStatus.html | Account API Trading Status (USER_DATA) |
| WalletApi | wapiV3AssetDetailHtmlGet | GET /wapi/v3/assetDetail.html | Asset Detail (USER_DATA) |
| WalletApi | wapiV3SystemStatusHtmlGet | GET /wapi/v3/systemStatus.html | System Status (System) |
| WalletApi | wapiV3TradeFeeHtmlGet | GET /wapi/v3/tradeFee.html | Trade Fee (USER_DATA) |
| WalletApi | wapiV3UserAssetDribbletLogHtmlGet | GET /wapi/v3/userAssetDribbletLog.html | DustLog (USER_DATA) |
- Account
- AccountBalances
- AggTrade
- BookTicker
- BookTickerList
- Error
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse20011
- InlineResponse20012
- InlineResponse20013
- InlineResponse20014
- InlineResponse20015
- InlineResponse20016
- InlineResponse20016Rows
- InlineResponse20017
- InlineResponse20017UserAssets
- InlineResponse20018
- InlineResponse20018NetworkList
- InlineResponse20019
- InlineResponse20019Data
- InlineResponse20019DataBalances
- InlineResponse20019SnapshotVos
- InlineResponse2001Filters
- InlineResponse2001RateLimits
- InlineResponse2001Symbols
- InlineResponse2002
- InlineResponse20020
- InlineResponse20021
- InlineResponse20022
- InlineResponse20023
- InlineResponse20024
- InlineResponse20025
- InlineResponse20025Status
- InlineResponse20025StatusIndicators
- InlineResponse20025StatusIndicatorsBTCUSDT
- InlineResponse20025StatusTriggerCondition
- InlineResponse20026
- InlineResponse20026Results
- InlineResponse20026ResultsLogs
- InlineResponse20026ResultsRows
- InlineResponse20027
- InlineResponse20027TransferResult
- InlineResponse20028
- InlineResponse20028Rows
- InlineResponse20029
- InlineResponse20029AssetDetail
- InlineResponse20029AssetDetailCTR
- InlineResponse2003
- InlineResponse20030
- InlineResponse20030TradeFee
- InlineResponse20031
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- InlineResponse2008
- InlineResponse2008OrderReports
- InlineResponse2008Orders
- InlineResponse2009
- InlineResponse2009Rows
- MarginOrder
- MarginOrderDetail
- MarginOrderResponseAck
- MarginOrderResponseFull
- MarginOrderResponseResult
- MarginTrade
- MyTrade
- OCOOrder
- OCOOrderOrders
- OCOOrderReport
- OneOfinlineResponse20015
- OneOfinlineResponse2004
- OneOfinlineResponse2005
- OneOfinlineResponse2006
- OneOfinlineResponse2007
- Order
- OrderDetails
- OrderResponseAck
- OrderResponseFull
- OrderResponseResult
- PriceTicker
- PriceTickerList
- Ticker
- TickerList
- Trade
- Transaction
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: X-MBX-APIKEY
- Location: HTTP header
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.