Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* All endpoints under the
* NFT Endpoint
* section of the API documentation will be implemented in this class.
*
* Response will be returned in String format.
*/
public class NFT {
private final String baseUrl;
private final RequestHandler requestHandler;
private final boolean showLimitUsage;
public NFT(String baseUrl, String apiKey, String secretKey, boolean showLimitUsage) {
this.baseUrl = baseUrl;
this.requestHandler = new RequestHandler(apiKey, new HmacSignatureGenerator(secretKey));
this.showLimitUsage = showLimitUsage;
}
public NFT(String baseUrl, String apiKey, SignatureGenerator signatureGenerator, boolean showLimitUsage) {
this.baseUrl = baseUrl;
this.requestHandler = new RequestHandler(apiKey, signatureGenerator);
this.showLimitUsage = showLimitUsage;
}
private final String TRANSACTIONS = "/sapi/v1/nft/history/transactions";
/**
* GET /sapi/v1/pay/transactions
*
* @param
* parameters LinkedHashedMap of String,Object pair
* where String is the name of the parameter and Object is the value of the parameter
*
* orderType -- mandatory/int -- 0: purchase order, 1: sell order, 2: royalty income,
* 3: primary market order, 4: mint fee
* startTime -- optional/long
* endTime -- optional/long
* limit -- optional/int -- Default 50, Max 50
* page -- optional/int -- Default 1
* recvWindow -- optional/long
* @return String
* @see
* https://binance-docs.github.io/apidocs/spot/en/#get-nft-transaction-history-user_data
*/
public String transactionsHistory(LinkedHashMap parameters) {
ParameterChecker.checkParameter(parameters, "orderType", Integer.class);
return requestHandler.sendSignedRequest(baseUrl, TRANSACTIONS, parameters, HttpMethod.GET, showLimitUsage);
}
private final String DEPOSIT = "/sapi/v1/nft/history/deposit";
/**
* GET /sapi/v1/nft/history/deposit
*
* @param
* parameters LinkedHashedMap of String,Object pair
* where String is the name of the parameter and Object is the value of the parameter
*
* startTime -- optional/long
* endTime -- optional/long
* limit -- optional/int -- Default 50, Max 50
* page -- optional/int -- Default 1
* recvWindow -- optional/long
* @return String
* @see
* https://binance-docs.github.io/apidocs/spot/en/#get-nft-deposit-history-user_data
*/
public String depositHistory(LinkedHashMap parameters) {
return requestHandler.sendSignedRequest(baseUrl, DEPOSIT, parameters, HttpMethod.GET, showLimitUsage);
}
private final String WITHDRAW = "/sapi/v1/nft/history/withdraw";
/**
* GET /sapi/v1/nft/history/withdraw
*
* @param
* parameters LinkedHashedMap of String,Object pair
* where String is the name of the parameter and Object is the value of the parameter
*
* startTime -- optional/long
* endTime -- optional/long
* limit -- optional/int -- Default 50, Max 50
* page -- optional/int -- Default 1
* recvWindow -- optional/long
* @return String
* @see
* https://binance-docs.github.io/apidocs/spot/en/#get-nft-withdraw-history-user_data
*/
public String withdrawHistory(LinkedHashMap parameters) {
return requestHandler.sendSignedRequest(baseUrl, WITHDRAW, parameters, HttpMethod.GET, showLimitUsage);
}
private final String GET_ASSET = "/sapi/v1/nft/user/getAsset";
/**
* GET /sapi/v1/nft/user/getAsset
*
* @param
* parameters LinkedHashedMap of String,Object pair
* where String is the name of the parameter and Object is the value of the parameter
*