public class BSwap extends Object
Constructor and Description |
---|
BSwap(String baseUrl,
String apiKey,
com.binance.connector.client.utils.signaturegenerator.SignatureGenerator signatureGenerator,
boolean showLimitUsage,
com.binance.connector.client.utils.ProxyAuth proxy) |
BSwap(String baseUrl,
String apiKey,
String secretKey,
boolean showLimitUsage,
com.binance.connector.client.utils.ProxyAuth proxy) |
Modifier and Type | Method and Description |
---|---|
String |
addLiquidityPreview(Map<String,Object> parameters)
Calculate expected share amount for adding liquidity in single or dual token.
|
String |
claimedHistory(Map<String,Object> parameters)
Claim swap rewards or liquidity rewards
GET /sapi/v1/bswap/claimedHistory |
String |
claimRewards(Map<String,Object> parameters)
Claim swap rewards or liquidity rewards
POST /sapi/v1/bswap/claimRewards |
String |
liquidity(Map<String,Object> parameters)
Get liquidity information and user share of a pool.
|
String |
liquidityAdd(Map<String,Object> parameters)
Add liquidity to a pool.
|
String |
liquidityOps(Map<String,Object> parameters)
Get liquidity operation (add/remove) records.
|
String |
liquidityRemove(Map<String,Object> parameters)
Remove liquidity from a pool, type include SINGLE and COMBINATION, asset is mandatory for single asset removal.
|
String |
poolConfigure(Map<String,Object> parameters)
GET /sapi/v1/bswap/poolConfigure
|
String |
quote(Map<String,Object> parameters)
Request a quote for swap quote asset (selling asset) for base asset (buying asset), essentially price/exchange rates.
quoteQty is quantity of quote asset (to sell). Please be noted the quote is for reference only, the actual price will change as the liquidity changes, it's recommended to swap immediate after request a quote for slippage prevention. |
String |
removeLiquidityPreview(Map<String,Object> parameters)
Calculate the expected asset amount of single token redemption or dual token redemption.
|
String |
swap(Map<String,Object> parameters)
Swap quoteAsset for baseAsset.
|
String |
swapHistory(Map<String,Object> parameters)
Get swap history.
|
String |
swapPools()
Get metadata about all swap pools.
|
String |
unclaimedRewards(Map<String,Object> parameters)
Get unclaimed rewards record.
|
public BSwap(String baseUrl, String apiKey, String secretKey, boolean showLimitUsage, com.binance.connector.client.utils.ProxyAuth proxy)
public String swapPools()
public String liquidity(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 liquidityAdd(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 liquidityRemove(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 liquidityOps(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 quote(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 swap(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 swapHistory(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 poolConfigure(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 addLiquidityPreview(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 removeLiquidityPreview(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 unclaimedRewards(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 claimRewards(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 claimedHistory(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.