API bswap endpoints
- Source
Methods
bswapAddLiquidityPreview(poolId, type, quoteAsset, quoteQty, optionsopt)
Add Liquidity Preview (USER_DATA)
GET /sapi/v1/bswap/addLiquidityPreview
https://binance-docs.github.io/apidocs/spot/en/#add-liquidity-preview-user_data
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
poolId | number | ||||||||||
type | string | "SINGLE" for adding a single token;"COMBINATION" for adding dual tokens | |||||||||
quoteAsset | string | ||||||||||
quoteQty | number | ||||||||||
options | object | <optional> | Properties
|
- Source
bswapClaimRewards(optionsopt)
Claim rewards (TRADE)
POST /sapi/v1/bswap/claimRewards
https://binance-docs.github.io/apidocs/spot/en/#claim-rewards-trade
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
bswapClaimedHistory(optionsopt)
Get Claimed History (USER_DATA)
GET /sapi/v1/bswap/claimedHistory
https://binance-docs.github.io/apidocs/spot/en/#get-claimed-history-user_data
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
bswapGetPoolConfig(optionsopt)
Get Pool Configure (USER_DATA)
GET /sapi/v1/bswap/poolConfigure
https://binance-docs.github.io/apidocs/spot/en/#get-pool-configure-user_data
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
bswapLiquidity(optionsopt)
Get liquidity information of a pool (USER_DATA)
GET /sapi/v1/bswap/liquidity
https://binance-docs.github.io/apidocs/spot/en/#get-liquidity-information-of-a-pool-user_data
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
bswapLiquidityAdd(poolId, asset, quantity, optionsopt)
Add Liquidity (TRADE)
POST /sapi/v1/bswap/liquidityAdd
https://binance-docs.github.io/apidocs/spot/en/#add-liquidity-trade
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
poolId | number | ||||||||||||||
asset | string | ||||||||||||||
quantity | number | ||||||||||||||
options | object | <optional> | Properties
|
- Source
bswapLiquidityOperationRecord(optionsopt)
Get Liquidity Operation Record (USER_DATA)
GET /sapi/v1/bswap/liquidityOps
https://binance-docs.github.io/apidocs/spot/en/#get-liquidity-operation-record-user_data
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
bswapLiquidityRemove(poolId, type, asset, shareAmount, optionsopt)
Remove Liquidity (TRADE)
POST /sapi/v1/bswap/liquidityRemove
https://binance-docs.github.io/apidocs/spot/en/#remove-liquidity-trade
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
poolId | number | ||||||||||
type | string |
| |||||||||
asset | string | ||||||||||
shareAmount | number | ||||||||||
options | object | <optional> | Properties
|
- Source
bswapPools()
List All Swap Pools (MARKET_DATA)
GET /sapi/v1/bswap/pools
Get metadata about all swap pools.
https://binance-docs.github.io/apidocs/spot/en/#list-all-swap-pools-market_data
- Source
bswapRemoveLiquidityPreview(poolId, type, quoteAsset, shareAmount, optionsopt)
Remove Liquidity Preview (USER_DATA)
GET /sapi/v1/bswap/removeLiquidityPreview
https://binance-docs.github.io/apidocs/spot/en/#remove-liquidity-preview-user_data
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
poolId | number | ||||||||||
type | string | Type is "SINGLE", remove and obtain a single token;Type is "COMBINATION", remove and obtain dual token. | |||||||||
quoteAsset | string | ||||||||||
shareAmount | number | ||||||||||
options | object | <optional> | Properties
|
- Source
bswapRequestQuote(quoteAsset, baseAsset, quoteQty, optionsopt)
Request Quote (USER_DATA)
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.
GET /sapi/v1/bswap/quote
https://binance-docs.github.io/apidocs/spot/en/#request-quote-user_data
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
quoteAsset | string | ||||||||||
baseAsset | string | ||||||||||
quoteQty | number | ||||||||||
options | object | <optional> | Properties
|
- Source
bswapSwap(quoteAsset, baseAsset, quoteQty, optionsopt)
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
quoteAsset | string | ||||||||||
baseAsset | string | ||||||||||
quoteQty | number | ||||||||||
options | object | <optional> | Properties
|
- Source
bswapSwapHistory(optionsopt)
Get Swap History (USER_DATA)
GET /sapi/v1/bswap/swap
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
bswapUnclaimedRewards(optionsopt)
Get Unclaimed Rewards Record (USER_DATA)
GET /sapi/v1/bswap/unclaimedRewards
https://binance-docs.github.io/apidocs/spot/en/#get-unclaimed-rewards-record-user_data
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source