diff --git a/CHANGELOG.md b/CHANGELOG.md index b7e683c..e6cd75d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,85 @@ # Changelog +## 1.15.0 - 2024-02-05 + +### Spot +#### Added +**Margin** +- `POST /sapi/v1/margin/borrow-repay` +- `GET /sapi/v1/margin/borrow-repay` + +**Wallet** +- `GET /sapi/v1/spot/delist-schedule` + +**Convert** +- `POST /sapi/v1/convert/limit/placeOrder` +- `POST /sapi/v1/convert/limit/cancelOrder` +- `GET /sapi/v1/convert/limit/queryOpenOrders` + +#### Updated +- Add optional parameter `accountType` in the endpoints below: + - `GET /sapi/v1/asset/dribblet` + - `POST /sapi/v1/asset/dust-btc` + - `POST /sapi/v1/asset/dust` +- Add optional parameter `symbol` in the endpoints below: + - `GET /sapi/v1/margin/allPairs` + - `GET /sapi/v1/margin/isolated/allPairs` +- `GET /sapi/v1/margin/transfer` add optional parameter `isolatedSymbol` +- `GET /sapi/v1/margin/allAssets` add optional parameter `asset` + +#### Deleted +**Bswap** +- `GET /sapi/v1/bswap/pools` +- `GET /sapi/v1/bswap/liquidity` +- `POST /sapi/v1/bswap/liquidityAdd` +- `POST /sapi/v1/bswap/liquidityRemove` +- `GET /sapi/v1/bswap/liquidityOps` +- `GET /sapi/v1/bswap/quote` +- `POST /sapi/v1/bswap/swap` +- `GET /sapi/v1/bswap/swap` +- `GET /sapi/v1/bswap/poolConfigure` +- `GET /sapi/v1/bswap/addLiquidityPreview` +- `GET /sapi/v1/bswap/removeLiquidityPreview` +- `GET /sapi/v1/bswap/unclaimedRewards` +- `POST /sapi/v1/bswap/claimRewards` +- `GET /sapi/v1/bswap/claimedHistory` + +**Margin** +- `POST /sapi/v1/margin/transfer` will be removed, please replace with `POST /sapi/v1/asset/transfer` universal transfer +- `POST /sapi/v1/margin/isolated/transfer` will be removed, please replace with `POST /sapi/v1/asset/transfer` universal transfer +- `POST /sapi/v1/margin/loan` will be removed, please replace with the new `POST /sapi/v1/margin/borrow-repay` borrowing and repayment interface +- `POST /sapi/v1/margin/repay` will be removed, please replace with the new `POST /sapi/v1/margin/borrow-repay` borrowing and repayment interface +- `GET /sapi/v1/margin/isolated/transfer` will be removed, please replace it with `GET /sapi/v1/margin/transfer` to get total margin transfer history +- `GET /sapi/v1/margin/asset` will be removed, please replace with `GET /sapi/v1/margin/allAssets` +- `GET /sapi/v1/margin/pair` will be removed, please replace with `GET /sapi/v1/margin/allPairs` +- `GET /sapi/v1/margin/isolated/pair` will be removed, please replace with `GET /sapi/v1/margin/isolated/allPairs` +- `GET /sapi/v1/margin/loan` will be removed, please replace with `GET /sapi/v1/margin/borrow-repay` +- `GET /sapi/v1/margin/repay` will be removed, please replace with `GET /sapi/v1/margin/borrow-repay` +- `GET /sapi/v1/margin/dribblet` will be removed, please replace with `GET /sapi/v1/asset/dribblet` +- `GET /sapi/v1/margin/dust` will be removed, please replace with `POST /sapi/v1/asset/dust-btc` +- `POST /sapi/v1/margin/dust` will be removed, please replace with `POST /sapi/v1/asset/dust` + + +**Staking** +- `GET /sapi/v1/staking/productList` +- `POST /sapi/v1/staking/purchase` +- `POST /sapi/v1/staking/redeem` +- `GET /sapi/v1/staking/position` +- `GET /sapi/v1/staking/stakingRecord` +- `POST /sapi/v1/staking/setAutoStaking` +- `GET /sapi/v1/staking/personalLeftQuota` + + ## 1.14.0 - 2023-12-12 ### Spot -#### Add +#### Added - `GET /api/v3/account/commission` - `GET /api/v3/ticker/tradingDay` - `GET /sapi/v1/margin/leverageBracket` - `GET /sapi/v1/capital/deposit/address/list` -#### Update +#### Updated - `GET /api/v3/klines` and `GET /api/v3/uiKlines` have a new optional parameter timeZone. - `POST /api/v3/order/test` and `POST /api/v3/sor/order/test` have a new optional parameter computeCommissionRates. @@ -18,7 +88,7 @@ ## 1.13.0 -2023-11-16 -#### Update +#### Updated - `GET /dapi/v1/income` Add parameter `page` for pagination - `GET /fapi/v1/income` Add parameter page for pagination - Add optional parameter `goodTillDate` in the endpoints below to set order's goodTillDate : @@ -36,7 +106,7 @@ - Delete request field `transFrom`, `transTo` - `POST /sapi/v1/portfolio/repay` add paramater from -#### Add +#### Added - `GET /dapi/v1/income/asyn` get Download Id For Futures Transaction History - `GET /dapi/v1/income/asyn/id` to get Futures Transaction History Download Link by Id - `GET /dapi/v1/fundingInfo` query adjusted funding info @@ -75,7 +145,7 @@ - `GET /sapi/v1/margin/available-inventory` Query margin available inventory - `POST /sapi/v1/margin/manual-liquidation` Margin manual liquidation -#### Delete +#### Deleted - `GET /sapi/v1/futures/loan/borrow/history` - `GET /sapi/v1/futures/loan/repay/history` - `GET /sapi/v2/futures/loan/wallet` diff --git a/collections/Binance Spot API.postman_collection.json b/collections/Binance Spot API.postman_collection.json index e4e868f..a097341 100644 --- a/collections/Binance Spot API.postman_collection.json +++ b/collections/Binance Spot API.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "2e407d5e-b011-46cb-853a-538ffd42c797", + "_postman_id": "d7dfc8fc-e946-43aa-a889-b03c9c7e7a51", "name": "Binance Spot API", "description": "Binance official supported Postman collections.
\n- API documents: https://binance-docs.github.io/apidocs/spot/en/#change-log\n- Telegram: https://t.me/binance_api_english\n- Open Issue at: https://github.com/binance-exchange/binance-api-postman", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", @@ -389,10 +389,10 @@ "description": "Binance Leveraged Tokens Endpoints" }, { - "name": "BSwap", + "name": "C2C", "item": [ { - "name": "List All Swap Pools (MARKET_DATA)", + "name": "Get C2C Trade History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -408,23 +408,77 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/pools", + "raw": "{{url}}/sapi/v1/c2c/orderMatch/listUserOrderHistory?tradeType=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "pools" + "c2c", + "orderMatch", + "listUserOrderHistory" + ], + "query": [ + { + "key": "tradeType", + "value": "", + "description": "BUY, SELL" + }, + { + "key": "startTimestamp", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTimestamp", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Default 1", + "disabled": true + }, + { + "key": "rows", + "value": "", + "description": "default 100, max 100", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } ] }, - "description": "Get metadata about all swap pools.\n\nWeight(IP): 1" + "description": "- If startTimestamp and endTimestamp are not sent, the recent 30-day data will be returned.\n- The max interval between startTimestamp and endTimestamp is 30 days.\n\nWeight(IP): 1" }, "response": [] - }, + } + ], + "description": "Consumer-To-Consumer Endpoints" + }, + { + "name": "Convert", + "item": [ { - "name": "Get liquidity information of a pool (USER_DATA)", + "name": "List All Convert Pairs (USER_DATA)", "request": { "method": "GET", "header": [ @@ -440,21 +494,26 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/liquidity?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/convert/exchangeInfo?fromAsset=&toAsset=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "liquidity" + "convert", + "exchangeInfo" ], "query": [ { - "key": "poolId", + "key": "fromAsset", "value": "", - "disabled": true + "description": "User spends coin" + }, + { + "key": "toAsset", + "value": "", + "description": "User receives coin" }, { "key": "recvWindow", @@ -474,14 +533,14 @@ } ] }, - "description": "Get liquidity information and user share of a pool.\n\nWeight(IP):\n- `1` for one pool;\n- `10` when the poolId parameter is omitted;" + "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Add Liquidity (TRADE)", + "name": "Query order quantity precision per asset (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -495,35 +554,17 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/liquidityAdd?poolId=&asset=BTC&quantity=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/convert/assetInfo?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "liquidityAdd" + "convert", + "assetInfo" ], "query": [ - { - "key": "poolId", - "value": "" - }, - { - "key": "type", - "value": "Single", - "description": "* `Single` - to add a single token\n* `Combination` - to add dual tokens", - "disabled": true - }, - { - "key": "asset", - "value": "BTC" - }, - { - "key": "quantity", - "value": "" - }, { "key": "recvWindow", "value": "5000", @@ -542,12 +583,12 @@ } ] }, - "description": "Add liquidity to a pool.\n\nWeight(UID): 1000 (Additional: 3 times one second)" + "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Remove Liquidity (TRADE)", + "name": "Send quote request (USER_DATA)", "request": { "method": "POST", "header": [ @@ -563,35 +604,41 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/liquidityRemove?poolId=&type=SINGLE&shareAmount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/convert/getQuote?fromAsset=&toAsset=&fromAmount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "liquidityRemove" + "convert", + "getQuote" ], "query": [ { - "key": "poolId", + "key": "fromAsset", "value": "" }, { - "key": "type", - "value": "SINGLE", - "description": "* `SINGLE` - for single asset removal\n* `COMBINATION` - for combination of all coins removal" + "key": "toAsset", + "value": "" }, { - "key": "asset", - "value": "BNB", - "description": "Mandatory for single asset removal", + "key": "fromAmount", + "value": "", + "description": "When specified, it is the amount you will be debited after the conversion" + }, + { + "key": "toAmount", + "value": "", + "description": "When specified, it is the amount you will be credited after the conversion", "disabled": true }, { - "key": "shareAmount", - "value": "" + "key": "validTime", + "value": "10s", + "description": "10s, 30s, 1m, 2m, default 10s", + "disabled": true }, { "key": "recvWindow", @@ -611,14 +658,14 @@ } ] }, - "description": "Remove liquidity from a pool, `type` include `SINGLE` and `COMBINATION`, asset is mandatory for single asset removal\n\nWeight(UID): 1000 (Additional: 3 times one second)" + "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Get Liquidity Operation Record (USER_DATA)", + "name": "Accept Quote (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -632,49 +679,20 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/liquidityOps?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/convert/acceptQuote?quoteId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "liquidityOps" + "convert", + "acceptQuote" ], "query": [ { - "key": "operationId", - "value": "", - "disabled": true - }, - { - "key": "poolId", - "value": "", - "disabled": true - }, - { - "key": "operation", - "value": "", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "limit", - "value": "100", - "description": "Default 500; max 1000.", - "disabled": true + "key": "quoteId", + "value": "" }, { "key": "recvWindow", @@ -694,12 +712,12 @@ } ] }, - "description": "Get liquidity operation (add/remove) records.\n\nWeight(UID): 3000" + "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Request Quote (USER_DATA)", + "name": "Order status (USER_DATA)", "request": { "method": "GET", "header": [ @@ -715,27 +733,19 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/quote?quoteAsset=USDT&baseAsset=BUSD"eQty=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/convert/orderStatus?orderId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "quote" + "convert", + "orderStatus" ], "query": [ { - "key": "quoteAsset", - "value": "USDT" - }, - { - "key": "baseAsset", - "value": "BUSD" - }, - { - "key": "quoteQty", + "key": "orderId", "value": "" }, { @@ -756,15 +766,109 @@ } ] }, - "description": "Request a quote for swap quote asset (selling asset) for base asset (buying asset), essentially price/exchange rates.\n\nquoteQty is quantity of quote asset (to sell).\n\nPlease 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.\n\nWeight(UID): 150" + "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" }, "response": [] }, - { - "name": "Swap (TRADE)", - "request": { - "method": "POST", - "header": [ + { + "name": "Place limit order (USER_DATA)", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/convert/limit/placeOrder?baseAsset="eAsset=&limitPrice=&side=&expiredType=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "convert", + "limit", + "placeOrder" + ], + "query": [ + { + "key": "baseAsset", + "value": "", + "description": "base asset (use the response fromIsBase from GET /sapi/v1/convert/exchangeInfo api to check which one is baseAsset )" + }, + { + "key": "quoteAsset", + "value": "", + "description": "quote asset" + }, + { + "key": "limitPrice", + "value": "", + "description": "Symbol limit price (from baseAsset to quoteAsset)" + }, + { + "key": "baseAmount", + "value": "", + "description": "Base asset amount. (One of baseAmount or quoteAmount is required)", + "disabled": true + }, + { + "key": "quoteAmount", + "value": "", + "description": "Quote asset amount. (One of baseAmount or quoteAmount is required)", + "disabled": true + }, + { + "key": "side", + "value": "", + "description": "BUY or SELL" + }, + { + "key": "walletType", + "value": "", + "description": "SPOT or FUNDING or SPOT_FUNDING. It is to use which type of assets. Default is SPOT.", + "disabled": true + }, + { + "key": "expiredType", + "value": "", + "description": "1_D, 3_D, 7_D, 30_D (D means day)" + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "Enable users to place a limit order\nbaseAsset or quoteAsset can be determined via exchangeInfo endpoint.\nLimit price is defined from baseAsset to quoteAsset.\nEither baseAmount or quoteAmount is used.\n\nWeight(UID): 500" + }, + "response": [] + }, + { + "name": "Cancel limit order (USER_DATA)", + "request": { + "method": "POST", + "header": [ { "key": "Content-Type", "type": "text", @@ -775,31 +879,25 @@ "value": "{{binance-api-key}}", "type": "text" } - ], - "url": { - "raw": "{{url}}/sapi/v1/bswap/swap?quoteAsset=USDT&baseAsset=BUSD"eQty=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "bswap", - "swap" - ], - "query": [ - { - "key": "quoteAsset", - "value": "USDT" - }, - { - "key": "baseAsset", - "value": "BUSD" - }, - { - "key": "quoteQty", - "value": "" - }, + ], + "url": { + "raw": "{{url}}/sapi/v1/convert/limit/cancelOrder?orderId=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "convert", + "limit", + "cancelOrder" + ], + "query": [ + { + "key": "orderId", + "value": "", + "description": "The orderId from placeOrder api" + }, { "key": "recvWindow", "value": "5000", @@ -816,14 +914,65 @@ "value": "{{signature}}", "description": "Signature" } - ] - }, - "description": "Swap `quoteAsset` for `baseAsset`.\n\nWeight(UID): 1000 (Additional: 3 times one second)" + ] + }, + "description": "Enable users to cancel a limit order\n\nWeight(UID): 200" }, "response": [] - }, + }, + { + "name": "Query limit open orders (USER_DATA)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/convert/limit/queryOpenOrders?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "convert", + "limit", + "queryOpenOrders" + ], + "query": [ + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "Enable users to query for all existing limit orders\n\nWeight(UID): 3000" + }, + "response": [] + }, { - "name": "Get Swap History (USER_DATA)", + "name": "Get Convert Trade History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -839,54 +988,31 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/swap?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/convert/tradeFlow?startTime=&endTime=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "swap" + "convert", + "tradeFlow" ], "query": [ - { - "key": "swapId", - "value": "", - "disabled": true - }, { "key": "startTime", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "UTC timestamp in ms" }, { "key": "endTime", "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "status", - "value": "", - "description": "* `0` - pending for swap\n* `1` - success\n* `2` - failed", - "disabled": true - }, - { - "key": "quoteAsset", - "value": "USDT", - "disabled": true - }, - { - "key": "baseAsset", - "value": "BUSD", - "disabled": true + "description": "UTC timestamp in ms" }, { "key": "limit", - "value": "", - "description": "default 3, max 100", + "value": "100", + "description": "default 100, max 1000", "disabled": true }, { @@ -907,12 +1033,18 @@ } ] }, - "description": "Get swap history.\n\nWeight(UID): 3000" + "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" }, "response": [] - }, + } + ], + "description": "Convert Endpoints" + }, + { + "name": "Crypto Loans", + "item": [ { - "name": "Get Pool Configure (USER_DATA)", + "name": "Get Crypto Loans Income History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -928,20 +1060,43 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/poolConfigure?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/income?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "poolConfigure" + "loan", + "income" ], "query": [ { - "key": "poolId", - "value": "2", + "key": "asset", + "value": "BTC" + }, + { + "key": "type", + "value": "", + "description": "All types will be returned by default.\n* `borrowIn`\n* `collateralSpent`\n* `repayAmount`\n* `collateralReturn` - Collateral return after repayment\n* `addCollateral`\n* `removeCollateral`\n* `collateralReturnAfterLiquidation`", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "20", + "description": "default 20, max 100", "disabled": true }, { @@ -962,19 +1117,19 @@ } ] }, - "description": "Weight(IP): 150" + "description": "- If startTime and endTime are not sent, the recent 7-day data will be returned.\n- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 6000" }, "response": [] }, { - "name": "Add Liquidity Preview (USER_DATA)", + "name": "Borrow - Crypto Loan Borrow (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -983,39 +1138,46 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/addLiquidityPreview?poolId=2&type=SINGLE"eAsset=USDT"eQty=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/borrow?loanCoin=&collateralCoin=&loanTerm=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "addLiquidityPreview" + "loan", + "borrow" ], "query": [ { - "key": "poolId", - "value": "2" + "key": "loanAmount", + "value": "", + "description": "Mandatory when collateralAmount is empty", + "disabled": true }, { - "key": "type", - "value": "SINGLE", - "description": "* `SINGLE` - for adding a single token\n* `COMBINATION` - for adding dual tokens" + "key": "collateralAmount", + "value": "", + "description": "Mandatory when loanAmount is empty", + "disabled": true }, { - "key": "quoteAsset", - "value": "USDT" + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true }, { - "key": "quoteQty", + "key": "loanCoin", "value": "" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true + "key": "collateralCoin", + "value": "" + }, + { + "key": "loanTerm", + "value": "" }, { "key": "timestamp", @@ -1028,20 +1190,19 @@ "description": "Signature" } ] - }, - "description": "Calculate expected share amount for adding liquidity in single or dual token.\n\nWeight(IP): 150" + } }, "response": [] }, { - "name": "Remove Liquidity Preview (USER_DATA)", + "name": "Borrow - Get Loan Borrow History (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1050,34 +1211,18 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/removeLiquidityPreview?poolId=2&type=SINGLE"eAsset=USDT&shareAmount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/borrow/history?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "removeLiquidityPreview" + "loan", + "borrow", + "history" ], "query": [ - { - "key": "poolId", - "value": "2" - }, - { - "key": "type", - "value": "SINGLE", - "description": "* `SINGLE` - remove and obtain a single token\n* `COMBINATION` - remove and obtain dual token" - }, - { - "key": "quoteAsset", - "value": "USDT" - }, - { - "key": "shareAmount", - "value": "" - }, { "key": "recvWindow", "value": "5000", @@ -1093,22 +1238,59 @@ "key": "signature", "value": "{{signature}}", "description": "Signature" + }, + { + "key": "loanCoin", + "value": "", + "disabled": true + }, + { + "key": "collateralCoin", + "value": "", + "disabled": true + }, + { + "key": "orderId", + "value": "", + "description": "orderId in POST /sapi/v1/loan/borrow", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true + }, + { + "key": "current", + "value": "", + "description": "Current querying page. Start from 1; default: 1; max: 1000", + "disabled": true + }, + { + "key": "limit", + "value": "", + "description": "Default: 10; max: 100.", + "disabled": true } ] - }, - "description": "Calculate the expected asset amount of single token redemption or dual token redemption.\n\nWeight(IP): 150" + } }, "response": [] }, { - "name": "Get Unclaimed Rewards Record (USER_DATA)", + "name": "Borrow - Get Loan Ongoing Orders (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1117,23 +1299,18 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/unclaimedRewards?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/ongoing/orders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "unclaimedRewards" + "loan", + "ongoing", + "orders" ], "query": [ - { - "key": "type", - "value": "0", - "description": "0: Swap rewards, 1: Liquidity rewards, default to 0", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -1149,22 +1326,49 @@ "key": "signature", "value": "{{signature}}", "description": "Signature" + }, + { + "key": "loanCoin", + "value": "", + "disabled": true + }, + { + "key": "collateralCoin", + "value": "", + "disabled": true + }, + { + "key": "orderId", + "value": "", + "description": "orderId in POST /sapi/v1/loan/borrow", + "disabled": true + }, + { + "key": "current", + "value": "", + "description": "Current querying page. Start from 1; default: 1; max: 1000", + "disabled": true + }, + { + "key": "limit", + "value": "", + "description": "Default: 10; max: 100.", + "disabled": true } ] - }, - "description": "Get unclaimed rewards record.\n \nWeight(UID): 1000" + } }, "response": [] }, { - "name": "Claim Rewards (TRADE)", + "name": "Repay - Crypto Loan Repay (TRADE)", "request": { "method": "POST", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1173,23 +1377,17 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/claimRewards?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/repay?timestamp={{timestamp}}&signature={{signature}}&orderId=&amount=", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "claimRewards" + "loan", + "repay" ], "query": [ - { - "key": "type", - "value": "0", - "description": "0: Swap rewards, 1: Liquidity rewards, default to 0", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -1205,22 +1403,41 @@ "key": "signature", "value": "{{signature}}", "description": "Signature" + }, + { + "key": "collateralReturn", + "value": "", + "description": "Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order.", + "disabled": true + }, + { + "key": "orderId", + "value": "" + }, + { + "key": "amount", + "value": "" + }, + { + "key": "type", + "value": "", + "description": "Default: 1. 1 for \"repay with borrowed coin\"; 2 for \"repay with collateral\".", + "disabled": true } ] - }, - "description": "Claim swap rewards or liquidity rewards\n \nWeight(UID): 1000" + } }, "response": [] }, { - "name": "Get Claimed History (USER_DATA)", + "name": "Repay - Get Loan Repayment History (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1229,88 +1446,85 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/bswap/claimedHistory?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/repay/history?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "bswap", - "claimedHistory" + "loan", + "repay", + "history" ], "query": [ { - "key": "poolId", - "value": "", + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { - "key": "assetRewards", + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + }, + { + "key": "loanCoin", "value": "", "disabled": true }, { - "key": "type", - "value": "0", - "description": "0: Swap rewards, 1: Liquidity rewards, default to 0", + "key": "collateralCoin", + "value": "", "disabled": true }, { - "key": "startTime", + "key": "orderId", "value": "", - "description": "UTC timestamp in ms", "disabled": true }, { - "key": "endTime", + "key": "current", "value": "", - "description": "UTC timestamp in ms", + "description": "Current querying page. Start from 1; default: 1; max: 1000", "disabled": true }, { "key": "limit", "value": "", - "description": "Default 3, max 100", + "description": "Default: 10; max: 100.", "disabled": true }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "startTime", + "value": "", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "endTime", + "value": "", + "disabled": true } ] - }, - "description": "Get history of claimed rewards.\n \nWeight(UID): 1000" + } }, "response": [] - } - ], - "description": "Binance Swap Endpoints" - }, - { - "name": "C2C", - "item": [ + }, { - "name": "Get C2C Trade History (USER_DATA)", + "name": "Adjust LTV - Crypto Loan Adjust LTV (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1319,47 +1533,18 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/c2c/orderMatch/listUserOrderHistory?tradeType=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/adjust/ltv?timestamp={{timestamp}}&signature={{signature}}&orderId=&amount=&direction=", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "c2c", - "orderMatch", - "listUserOrderHistory" + "loan", + "adjust", + "ltv" ], "query": [ - { - "key": "tradeType", - "value": "", - "description": "BUY, SELL" - }, - { - "key": "startTimestamp", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTimestamp", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "page", - "value": "1", - "description": "Default 1", - "disabled": true - }, - { - "key": "rows", - "value": "", - "description": "default 100, max 100", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -1375,28 +1560,34 @@ "key": "signature", "value": "{{signature}}", "description": "Signature" + }, + { + "key": "orderId", + "value": "" + }, + { + "key": "amount", + "value": "" + }, + { + "key": "direction", + "value": "", + "description": "\"ADDITIONAL\", \"REDUCED\"" } ] - }, - "description": "- If startTimestamp and endTimestamp are not sent, the recent 30-day data will be returned.\n- The max interval between startTimestamp and endTimestamp is 30 days.\n\nWeight(IP): 1" + } }, "response": [] - } - ], - "description": "Consumer-To-Consumer Endpoints" - }, - { - "name": "Convert", - "item": [ + }, { - "name": "List All Convert Pairs (USER_DATA)", + "name": "Adjust LTV - Get Loan LTV Adjustment History (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1405,27 +1596,19 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/convert/exchangeInfo?fromAsset=&toAsset=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/ltv/adjustment/history?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "convert", - "exchangeInfo" + "loan", + "ltv", + "adjustment", + "history" ], "query": [ - { - "key": "fromAsset", - "value": "", - "description": "User spends coin" - }, - { - "key": "toAsset", - "value": "", - "description": "User receives coin" - }, { "key": "recvWindow", "value": "5000", @@ -1441,22 +1624,58 @@ "key": "signature", "value": "{{signature}}", "description": "Signature" + }, + { + "key": "loanCoin", + "value": "", + "disabled": true + }, + { + "key": "collateralCoin", + "value": "", + "disabled": true + }, + { + "key": "orderId", + "value": "", + "disabled": true + }, + { + "key": "current", + "value": "", + "description": "Current querying page. Start from 1; default: 1; max: 1000", + "disabled": true + }, + { + "key": "limit", + "value": "", + "description": "Default: 10; max: 100.", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true } ] - }, - "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" + } }, "response": [] }, { - "name": "Query order quantity precision per asset (USER_DATA)", + "name": "Get Loanable Assets Data (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1465,17 +1684,29 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/convert/assetInfo?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/loanable/data?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "convert", - "assetInfo" + "loan", + "loanable", + "data" ], "query": [ + { + "key": "loanCoin", + "value": "", + "disabled": true + }, + { + "key": "vipLevel", + "value": "", + "description": "Default: user's vip level. Send \"-1\" to check specified configuration", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -1493,20 +1724,19 @@ "description": "Signature" } ] - }, - "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" + } }, "response": [] }, { - "name": "Send quote request (USER_DATA)", + "name": "Get Collateral Assets Data (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1515,40 +1745,27 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/convert/getQuote?fromAsset=&toAsset=&fromAmount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/collateral/data?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "convert", - "getQuote" + "loan", + "collateral", + "data" ], "query": [ { - "key": "fromAsset", - "value": "" - }, - { - "key": "toAsset", - "value": "" - }, - { - "key": "fromAmount", - "value": "", - "description": "When specified, it is the amount you will be debited after the conversion" - }, - { - "key": "toAmount", + "key": "collateralCoin", "value": "", - "description": "When specified, it is the amount you will be credited after the conversion", "disabled": true }, { - "key": "validTime", - "value": "10s", - "description": "10s, 30s, 1m, 2m, default 10s", + "key": "vipLevel", + "value": "", + "description": "Default: user's vip level. Send \"-1\" to check specified configuration", "disabled": true }, { @@ -1568,20 +1785,19 @@ "description": "Signature" } ] - }, - "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" + } }, "response": [] }, { - "name": "Accept Quote (TRADE)", + "name": "Check Collateral Repay Rate (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1590,21 +1806,32 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/convert/acceptQuote?quoteId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/repay/collateral/rate?loanCoin=&collateralCoin=&repayAmount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "convert", - "acceptQuote" + "loan", + "repay", + "collateral", + "rate" ], "query": [ { - "key": "quoteId", + "key": "loanCoin", + "value": "" + }, + { + "key": "collateralCoin", "value": "" }, + { + "key": "repayAmount", + "value": "", + "description": "repay amount of loanCoin" + }, { "key": "recvWindow", "value": "5000", @@ -1622,20 +1849,19 @@ "description": "Signature" } ] - }, - "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" + } }, "response": [] }, { - "name": "Order status (USER_DATA)", + "name": "Crypto Loan Customize Margin Call (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1644,19 +1870,32 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/convert/orderStatus?orderId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/customize/margin_call?marginCall=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "convert", - "orderStatus" + "loan", + "customize", + "margin_call" ], "query": [ { "key": "orderId", + "value": "", + "description": "Mandatory when collateralCoin is empty. Send either orderId or collateralCoin, if both parameters are sent, take orderId only", + "disabled": true + }, + { + "key": "collateralCoin", + "value": null, + "description": "Mandatory when orderID is empty. Send either orderId or collateralCoin, if both parameters are sent, take orderId only.", + "disabled": true + }, + { + "key": "marginCall", "value": "" }, { @@ -1676,20 +1915,19 @@ "description": "Signature" } ] - }, - "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" + } }, "response": [] }, { - "name": "Get Convert Trade History (USER_DATA)", + "name": "Borrow - Flexible Loan Borrow (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1698,70 +1936,64 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/convert/tradeFlow?startTime=&endTime=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/borrow?loanCoin=&loanAmount=&collateralAmount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "convert", - "tradeFlow" + "loan", + "flexible", + "borrow" ], "query": [ { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms" + "key": "loanCoin", + "value": "" }, { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms" + "key": "loanAmount", + "value": "" }, { - "key": "limit", - "value": "100", - "description": "default 100, max 1000", + "key": "collateralCoin", + "value": "", "disabled": true }, + { + "key": "collateralAmount", + "value": "" + }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", + "description": "UTC timestamp in ms", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "Signature" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] - }, - "description": "- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 100" + } }, "response": [] - } - ], - "description": "Convert Endpoints" - }, - { - "name": "Crypto Loans", - "item": [ + }, { - "name": "Get Crypto Loans Income History (USER_DATA)", + "name": "Borrow - Get Flexible Loan Ongoing Orders (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -1770,7 +2002,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/income?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/ongoing/orders?loanCoin=&collateralCoin=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -1778,63 +2010,51 @@ "sapi", "v1", "loan", - "income" + "flexible", + "ongoing", + "orders" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "type", - "value": "", - "description": "All types will be returned by default.\n* `borrowIn`\n* `collateralSpent`\n* `repayAmount`\n* `collateralReturn` - Collateral return after repayment\n* `addCollateral`\n* `removeCollateral`\n* `collateralReturnAfterLiquidation`", - "disabled": true + "key": "loanCoin", + "value": "" }, { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "key": "collateralCoin", + "value": "" }, { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "key": "current", + "value": "" }, { "key": "limit", - "value": "20", - "description": "default 20, max 100", - "disabled": true + "value": "" }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", + "description": "UTC timestamp in ms", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "Signature" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] - }, - "description": "- If startTime and endTime are not sent, the recent 7-day data will be returned.\n- The max interval between startTime and endTime is 30 days.\n\nWeight(UID): 6000" + } }, "response": [] }, { - "name": "Borrow - Crypto Loan Borrow (TRADE)", + "name": "Borrow - Get Flexible Loan Borrow History (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -1848,7 +2068,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/borrow?loanCoin=&collateralCoin=&loanTerm=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/borrow/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -1856,48 +2076,47 @@ "sapi", "v1", "loan", - "borrow" + "flexible", + "borrow", + "history" ], "query": [ { - "key": "loanAmount", - "value": "", - "description": "Mandatory when collateralAmount is empty", - "disabled": true + "key": "loanCoin", + "value": "" }, { - "key": "collateralAmount", - "value": "", - "description": "Mandatory when loanAmount is empty", - "disabled": true + "key": "collateralCoin", + "value": "" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true + "key": "startTime", + "value": "" }, { - "key": "loanCoin", + "key": "endTime", "value": "" }, { - "key": "collateralCoin", + "key": "current", "value": "" }, { - "key": "loanTerm", + "key": "limit", "value": "" }, + { + "key": "recvWindow", + "value": "5000", + "disabled": true + }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] } @@ -1905,9 +2124,9 @@ "response": [] }, { - "name": "Borrow - Get Loan Borrow History (USER_DATA)", + "name": "Repay - Flexible Loan Repay (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -1921,7 +2140,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/borrow/history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/repay?loanCoin=&collateralCoin=&repayAmount=&collateralReturn=&fullRepayment=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -1929,63 +2148,42 @@ "sapi", "v1", "loan", - "borrow", - "history" + "flexible", + "repay" ], "query": [ - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - }, { "key": "loanCoin", - "value": "", - "disabled": true + "value": "" }, { "key": "collateralCoin", - "value": "", - "disabled": true + "value": "" }, { - "key": "orderId", - "value": "", - "description": "orderId in POST /sapi/v1/loan/borrow", - "disabled": true + "key": "repayAmount", + "value": "" }, { - "key": "startTime", - "value": "", - "disabled": true + "key": "collateralReturn", + "value": "" }, { - "key": "endTime", - "value": "", - "disabled": true + "key": "fullRepayment", + "value": "" }, { - "key": "current", - "value": "", - "description": "Current querying page. Start from 1; default: 1; max: 1000", + "key": "recvWindow", + "value": "5000", "disabled": true }, { - "key": "limit", - "value": "", - "description": "Default: 10; max: 100.", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" } ] } @@ -1993,7 +2191,7 @@ "response": [] }, { - "name": "Borrow - Get Loan Ongoing Orders (USER_DATA)", + "name": "Repay - Get Flexible Loan Repayment History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -2009,7 +2207,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/ongoing/orders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/repay/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -2017,53 +2215,47 @@ "sapi", "v1", "loan", - "ongoing", - "orders" + "flexible", + "repay", + "history" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true + "key": "loanCoin", + "value": "" }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "collateralCoin", + "value": "" }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "startTime", + "value": "" }, { - "key": "loanCoin", - "value": "", - "disabled": true + "key": "endTime", + "value": "" }, { - "key": "collateralCoin", - "value": "", - "disabled": true + "key": "current", + "value": "" }, { - "key": "orderId", - "value": "", - "description": "orderId in POST /sapi/v1/loan/borrow", - "disabled": true + "key": "limit", + "value": "" }, { - "key": "current", - "value": "", - "description": "Current querying page. Start from 1; default: 1; max: 1000", + "key": "recvWindow", + "value": "5000", "disabled": true }, { - "key": "limit", - "value": "", - "description": "Default: 10; max: 100.", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" } ] } @@ -2071,7 +2263,7 @@ "response": [] }, { - "name": "Repay - Crypto Loan Repay (TRADE)", + "name": "Adjust LTV - Flexible Loan Adjust LTV (TRADE)", "request": { "method": "POST", "header": [ @@ -2087,7 +2279,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/repay?timestamp={{timestamp}}&signature={{signature}}&orderId=&amount=", + "raw": "{{url}}/sapi/v1/loan/flexible/adjust/ltv?loanCoin=&collateralCoin=&adjustmentAmount=&direction=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -2095,44 +2287,39 @@ "sapi", "v1", "loan", - "repay" + "flexible", + "adjust", + "ltv" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true + "key": "loanCoin", + "value": "" }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "collateralCoin", + "value": "" }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "adjustmentAmount", + "value": "" }, { - "key": "collateralReturn", - "value": "", - "description": "Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order.", - "disabled": true + "key": "direction", + "value": "" }, { - "key": "orderId", - "value": "" + "key": "recvWindow", + "value": "5000", + "disabled": true }, { - "key": "amount", - "value": "" + "key": "timestamp", + "value": "{{timestamp}}" }, { - "key": "type", - "value": "", - "description": "Default: 1. 1 for \"repay with borrowed coin\"; 2 for \"repay with collateral\".", - "disabled": true + "key": "signature", + "value": "{{signature}}" } ] } @@ -2140,7 +2327,7 @@ "response": [] }, { - "name": "Repay - Get Loan Repayment History (USER_DATA)", + "name": "Adjust LTV - Get Flexible Loan LTV Adjustment History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -2156,7 +2343,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/repay/history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -2164,62 +2351,48 @@ "sapi", "v1", "loan", - "repay", + "flexible", + "ltv", + "adjustment", "history" ], "query": [ - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - }, { "key": "loanCoin", - "value": "", - "disabled": true + "value": "" }, { "key": "collateralCoin", - "value": "", - "disabled": true + "value": "" }, { - "key": "orderId", - "value": "", - "disabled": true + "key": "startTime", + "value": "" + }, + { + "key": "endTime", + "value": "" }, { "key": "current", - "value": "", - "description": "Current querying page. Start from 1; default: 1; max: 1000", - "disabled": true + "value": "" }, { "key": "limit", - "value": "", - "description": "Default: 10; max: 100.", - "disabled": true + "value": "" }, { - "key": "startTime", - "value": "", + "key": "recvWindow", + "value": "5000", "disabled": true }, { - "key": "endTime", - "value": "", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" } ] } @@ -2227,9 +2400,9 @@ "response": [] }, { - "name": "Adjust LTV - Crypto Loan Adjust LTV (TRADE)", + "name": "Get Flexible Loan Assets Data (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -2243,7 +2416,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/adjust/ltv?timestamp={{timestamp}}&signature={{signature}}&orderId=&amount=&direction=", + "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?loanCoin=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -2251,38 +2424,28 @@ "sapi", "v1", "loan", - "adjust", - "ltv" + "flexible", + "ltv", + "adjustment", + "history" ], "query": [ + { + "key": "loanCoin", + "value": "" + }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" - }, - { - "key": "orderId", - "value": "" - }, - { - "key": "amount", - "value": "" - }, - { - "key": "direction", - "value": "", - "description": "\"ADDITIONAL\", \"REDUCED\"" + "value": "{{signature}}" } ] } @@ -2290,7 +2453,7 @@ "response": [] }, { - "name": "Adjust LTV - Get Loan LTV Adjustment History (USER_DATA)", + "name": "Get Flexible Loan Collateral Assets Data (USER_DATA)", "request": { "method": "GET", "header": [ @@ -2306,7 +2469,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/ltv/adjustment/history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?collateralCoin=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -2314,78 +2477,49 @@ "sapi", "v1", "loan", + "flexible", "ltv", "adjustment", "history" ], "query": [ + { + "key": "collateralCoin", + "value": "" + }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" - }, - { - "key": "loanCoin", - "value": "", - "disabled": true - }, - { - "key": "collateralCoin", - "value": "", - "disabled": true - }, - { - "key": "orderId", - "value": "", - "disabled": true - }, - { - "key": "current", - "value": "", - "description": "Current querying page. Start from 1; default: 1; max: 1000", - "disabled": true - }, - { - "key": "limit", - "value": "", - "description": "Default: 10; max: 100.", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "disabled": true + "value": "{{signature}}" } ] } }, "response": [] - }, + } + ], + "description": "Crypto Loans Endpoints" + }, + { + "name": "Fiat", + "item": [ { - "name": "Get Loanable Assets Data (USER_DATA)", + "name": "Get Fiat Deposit/Withdraw History (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2394,27 +2528,43 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/loanable/data?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/fiat/orders?transactionType=0×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "loanable", - "data" + "fiat", + "orders" ], "query": [ { - "key": "loanCoin", - "value": "", - "disabled": true + "key": "transactionType", + "value": "0", + "description": "* `0` - deposit\n* `1` - withdraw" }, { - "key": "vipLevel", - "value": "", - "description": "Default: user's vip level. Send \"-1\" to check specified configuration", + "key": "beginTime", + "value": "1626144956000", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Default 1", + "disabled": true + }, + { + "key": "rows", + "value": "300", + "description": "Default 100, max 500", "disabled": true }, { @@ -2434,19 +2584,20 @@ "description": "Signature" } ] - } + }, + "description": "- If beginTime and endTime are not sent, the recent 30-day data will be returned.\n\nWeight(UID): 90000" }, "response": [] }, { - "name": "Get Collateral Assets Data (USER_DATA)", + "name": "Get Fiat Payments History (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2455,27 +2606,43 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/collateral/data?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/fiat/payments?transactionType=0×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "collateral", - "data" + "fiat", + "payments" ], "query": [ { - "key": "collateralCoin", - "value": "", + "key": "transactionType", + "value": "0", + "description": "* `0` - deposit\n* `1` - withdraw" + }, + { + "key": "beginTime", + "value": "1626144956000", "disabled": true }, { - "key": "vipLevel", + "key": "endTime", "value": "", - "description": "Default: user's vip level. Send \"-1\" to check specified configuration", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Default 1", + "disabled": true + }, + { + "key": "rows", + "value": "300", + "description": "Default 100, max 500", "disabled": true }, { @@ -2495,19 +2662,26 @@ "description": "Signature" } ] - } + }, + "description": "- If beginTime and endTime are not sent, the recent 30-day data will be returned.\n\nWeight(IP): 1" }, "response": [] - }, + } + ], + "description": "Fiat Endpoints" + }, + { + "name": "Futures", + "item": [ { - "name": "Check Collateral Repay Rate (USER_DATA)", + "name": "New Future Account Transfer (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2516,31 +2690,31 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/repay/collateral/rate?loanCoin=&collateralCoin=&repayAmount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/futures/transfer?asset=&amount=&type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "repay", - "collateral", - "rate" + "futures", + "transfer" ], "query": [ { - "key": "loanCoin", - "value": "" + "key": "asset", + "value": "", + "description": "The asset being transferred, e.g., USDT" }, { - "key": "collateralCoin", - "value": "" + "key": "amount", + "value": "", + "description": "The amount to be transferred" }, { - "key": "repayAmount", + "key": "type", "value": "", - "description": "repay amount of loanCoin" + "description": "1: transfer from spot account to USDT-Ⓜ futures account. 2: transfer from USDT-Ⓜ futures account to spot account. 3: transfer from spot account to COIN-Ⓜ futures account. 4: transfer from COIN-Ⓜ futures account to spot account." }, { "key": "recvWindow", @@ -2559,19 +2733,20 @@ "description": "Signature" } ] - } + }, + "description": "Execute transfer between spot account and futures account.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Crypto Loan Customize Margin Call (TRADE)", + "name": "Get Future Account Transaction History List (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2580,33 +2755,41 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/customize/margin_call?marginCall=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/futures/transfer?asset=&startTime=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "customize", - "margin_call" + "futures", + "transfer" ], "query": [ { - "key": "orderId", + "key": "asset", + "value": "" + }, + { + "key": "startTime", + "value": "" + }, + { + "key": "endTime", "value": "", - "description": "Mandatory when collateralCoin is empty. Send either orderId or collateralCoin, if both parameters are sent, take orderId only", "disabled": true }, { - "key": "collateralCoin", - "value": null, - "description": "Mandatory when orderID is empty. Send either orderId or collateralCoin, if both parameters are sent, take orderId only.", + "key": "current", + "value": "", + "description": "Currently querying page. Start from 1. Default:1", "disabled": true }, { - "key": "marginCall", - "value": "" + "key": "size", + "value": "", + "description": "Default:10 Max:100", + "disabled": true }, { "key": "recvWindow", @@ -2625,19 +2808,20 @@ "description": "Signature" } ] - } + }, + "description": "Weight(IP): 10" }, "response": [] }, { - "name": "Borrow - Flexible Loan Borrow (TRADE)", + "name": "Get Future TickLevel Orderbook Historical Data Download Link (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2646,64 +2830,69 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/borrow?loanCoin=&loanAmount=&collateralAmount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/futures/histDataLink?symbol=&dataType=&startTime=&endTime=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "borrow" + "futures", + "histDataLink" ], "query": [ { - "key": "loanCoin", + "key": "symbol", "value": "" }, { - "key": "loanAmount", + "key": "dataType", "value": "" }, { - "key": "collateralCoin", - "value": "", - "disabled": true + "key": "startTime", + "value": "" }, { - "key": "collateralAmount", - "value": "" + "key": "endTime", + "value": "", + "description": "Currently querying page. Start from 1. Default:1" }, { "key": "recvWindow", "value": "5000", - "description": "UTC timestamp in ms", + "description": "Default:500 Max:1000", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "Signature" + "description": "The value cannot be greater than 60000" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "UTC timestamp in ms" } ] } }, "response": [] - }, + } + ] + }, + { + "name": "Futures Algo", + "item": [ { - "name": "Borrow - Get Flexible Loan Ongoing Orders (USER_DATA)", + "name": "Volume Participation New Order (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2712,64 +2901,93 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/ongoing/orders?loanCoin=&collateralCoin=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/newOrderVp?symbol=&side=SELL&quantity=&urgency=LOW×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "ongoing", - "orders" + "algo", + "futures", + "newOrderVp" ], "query": [ { - "key": "loanCoin", - "value": "" + "key": "symbol", + "value": "", + "description": "Trading symbol eg. BTCUSDT" }, { - "key": "collateralCoin", - "value": "" + "key": "side", + "value": "SELL", + "description": "Trading side ( BUY or SELL )" }, { - "key": "current", - "value": "" + "key": "positionSide", + "value": "", + "description": "Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.", + "disabled": true }, { - "key": "limit", - "value": "" + "key": "quantity", + "value": "", + "description": "Quantity of base asset; The notional (quantity * mark price(base asset)) must be more than the equivalent of 10,000 USDT and less than the equivalent of 1,000,000 USDT." + }, + { + "key": "urgency", + "value": "LOW", + "description": "Represent the relative speed of the current execution; ENUM: LOW, MEDIUM, HIGH." + }, + { + "key": "clientAlgoId", + "value": "", + "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value.", + "disabled": true + }, + { + "key": "reduceOnly", + "value": "", + "description": "\"true\" or \"false\". Default \"false\"; Cannot be sent in Hedge Mode; Cannot be sent when you open a position.", + "disabled": true + }, + { + "key": "limitPrice", + "value": "", + "description": "Limit price of the order; If it is not sent, will place order by market price by default.", + "disabled": true }, { "key": "recvWindow", "value": "5000", - "description": "UTC timestamp in ms", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "Signature" + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Send in a VP new order. Only support on USDⓈ-M Contracts.\n\nWeight(IP): 3000\n\n- Max open orders allowed: 10 orders.\n- Leverage of symbols and position mode will be the same as your futures account settings. You can set up through the trading page or fapi.\n- Receiving \"success\": true does not mean that your order will be executed. Please use the query order endpoints(GET sapi/v1/algo/futures/openOrders or GET sapi/v1/algo/futures/historicalOrders) to check the order status. For example: Your futures balance is insufficient, or open position with reduce only or position side is inconsistent with your own setting. In these cases you will receive \"success\": true, but the order status will be expired after we check it." }, "response": [] }, { - "name": "Borrow - Get Flexible Loan Borrow History (USER_DATA)", + "name": "Time-Weighted Average Price New Order (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2778,70 +2996,93 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/borrow/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "borrow", - "history" + "algo", + "futures", + "newOrderTwap" ], "query": [ { - "key": "loanCoin", - "value": "" + "key": "symbol", + "value": "", + "description": "Trading symbol eg. BTCUSDT" }, { - "key": "collateralCoin", - "value": "" + "key": "side", + "value": "", + "description": "Trading side ( BUY or SELL )" }, { - "key": "startTime", - "value": "" + "key": "positionSide", + "value": "", + "description": "Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.", + "disabled": true }, { - "key": "endTime", - "value": "" + "key": "quantity", + "value": "", + "description": "Quantity of base asset; The notional (quantity * mark price(base asset)) must be more than the equivalent of 10,000 USDT and less than the equivalent of 1,000,000 USDT" }, { - "key": "current", - "value": "" + "key": "duration", + "value": "", + "description": "Duration for TWAP orders in seconds. [300, 86400];Less than 5min => defaults to 5 min; Greater than 24h => defaults to 24h" }, { - "key": "limit", - "value": "" + "key": "clientAlgoId", + "value": "", + "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value", + "disabled": true + }, + { + "key": "reduceOnly", + "value": "", + "description": "`true` or `false`. Default `false`; Cannot be sent in Hedge Mode; Cannot be sent when you open a position", + "disabled": true + }, + { + "key": "limitPrice", + "value": "", + "description": "Limit price of the order; If it is not sent, will place order by market price by default", + "disabled": true }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Send in a Twap new order. Only support on USDⓈ-M Contracts.\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Repay - Flexible Loan Repay (TRADE)", + "name": "Cancel Algo Order (TRADE)", "request": { - "method": "POST", + "method": "DELETE", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2850,65 +3091,53 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/repay?loanCoin=&collateralCoin=&repayAmount=&collateralReturn=&fullRepayment=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/order?algoId=14511×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "repay" + "algo", + "futures", + "order" ], "query": [ { - "key": "loanCoin", - "value": "" - }, - { - "key": "collateralCoin", - "value": "" - }, - { - "key": "repayAmount", - "value": "" - }, - { - "key": "collateralReturn", - "value": "" - }, - { - "key": "fullRepayment", - "value": "" + "key": "algoId", + "value": "14511" }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Cancel an active order.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Repay - Get Flexible Loan Repayment History (USER_DATA)", + "name": "Query Current Algo Open Orders (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2917,70 +3146,49 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/repay/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/openOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "repay", - "history" + "algo", + "futures", + "openOrders" ], "query": [ - { - "key": "loanCoin", - "value": "" - }, - { - "key": "collateralCoin", - "value": "" - }, - { - "key": "startTime", - "value": "" - }, - { - "key": "endTime", - "value": "" - }, - { - "key": "current", - "value": "" - }, - { - "key": "limit", - "value": "" - }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Adjust LTV - Flexible Loan Adjust LTV (TRADE)", + "name": "Query Historical Algo Orders (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -2989,62 +3197,85 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/adjust/ltv?loanCoin=&collateralCoin=&adjustmentAmount=&direction=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "adjust", - "ltv" + "algo", + "futures", + "historicalOrders" ], "query": [ { - "key": "loanCoin", - "value": "" + "key": "symbol", + "value": "", + "description": "Trading symbol eg. BTCUSDT", + "disabled": true }, { - "key": "collateralCoin", - "value": "" + "key": "side", + "value": "", + "description": "BUY or SELL", + "disabled": true }, { - "key": "adjustmentAmount", - "value": "" + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true }, { - "key": "direction", - "value": "" + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "page", + "value": "", + "description": "Default is 1", + "disabled": true + }, + { + "key": "pageSize", + "value": "", + "description": "MIN 1, MAX 100; Default 100", + "disabled": true }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Adjust LTV - Get Flexible Loan LTV Adjustment History (USER_DATA)", + "name": "Query Sub Orders (USER_DATA)", "request": { "method": "GET", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -3053,71 +3284,71 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/subOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "ltv", - "adjustment", - "history" + "algo", + "futures", + "subOrders" ], "query": [ { - "key": "loanCoin", - "value": "" - }, - { - "key": "collateralCoin", - "value": "" + "key": "algoId", + "value": "13723", + "disabled": true }, { - "key": "startTime", - "value": "" - }, - { - "key": "endTime", - "value": "" - }, - { - "key": "current", - "value": "" + "key": "page", + "value": "", + "description": "Default is 1", + "disabled": true }, { - "key": "limit", - "value": "" + "key": "pageSize", + "value": "", + "description": "MIN 1, MAX 100; Default 100", + "disabled": true }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Get respective sub orders for a specified algoId\n\nWeight(IP): 1" }, "response": [] - }, + } + ] + }, + { + "name": "Spot Algo", + "item": [ { - "name": "Get Flexible Loan Assets Data (USER_DATA)", + "name": "Time-Weighted Average Price New Order (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -3126,51 +3357,81 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?loanCoin=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "ltv", - "adjustment", - "history" + "algo", + "spot", + "newOrderTwap" ], "query": [ { - "key": "loanCoin", - "value": "" + "key": "symbol", + "value": "", + "description": "Trading symbol eg. BTCUSDT" + }, + { + "key": "side", + "value": "", + "description": "Trading side ( BUY or SELL )" + }, + { + "key": "quantity", + "value": "", + "description": "Quantity of base asset; The notional (quantity * last price(base asset)) must be more than the equivalent of 1,000 USDT and less than the equivalent of 100,000 USDT" + }, + { + "key": "duration", + "value": "", + "description": "Duration for TWAP orders in seconds. [300, 86400]" + }, + { + "key": "clientAlgoId", + "value": "", + "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value", + "disabled": true + }, + { + "key": "limitPrice", + "value": "", + "description": "Limit price of the order; If it is not sent, will place order by market price by default", + "disabled": true }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Place a new spot TWAP order with Algo service.\n\nTotal Algo open orders max allowed: 10 orders.\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Get Flexible Loan Collateral Assets Data (USER_DATA)", + "name": "Cancel Algo Order (TRADE)", "request": { - "method": "GET", + "method": "DELETE", "header": [ { "key": "Content-Type", - "value": "application/json", - "type": "text" + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -3179,50 +3440,47 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?collateralCoin=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/order?algoId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "loan", - "flexible", - "ltv", - "adjustment", - "history" + "algo", + "spot", + "order" ], "query": [ { - "key": "collateralCoin", - "value": "" + "key": "algoId", + "value": "", + "description": "eg. 14511" }, { "key": "recvWindow", "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}" + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] - } + }, + "description": "Cancel an open TWAP order\n\nWeight(IP): 1" }, "response": [] - } - ], - "description": "Crypto Loans Endpoints" - }, - { - "name": "Fiat", - "item": [ + }, { - "name": "Get Fiat Deposit/Withdraw History (USER_DATA)", + "name": "Query Current Algo Open Orders (USER_DATA)", "request": { "method": "GET", "header": [ @@ -3238,45 +3496,18 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/fiat/orders?transactionType=0×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/openOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "fiat", - "orders" + "algo", + "spot", + "openOrders" ], "query": [ - { - "key": "transactionType", - "value": "0", - "description": "* `0` - deposit\n* `1` - withdraw" - }, - { - "key": "beginTime", - "value": "1626144956000", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "page", - "value": "1", - "description": "Default 1", - "disabled": true - }, - { - "key": "rows", - "value": "300", - "description": "Default 100, max 500", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -3295,12 +3526,12 @@ } ] }, - "description": "- If beginTime and endTime are not sent, the recent 30-day data will be returned.\n\nWeight(UID): 90000" + "description": "Get all open SPOT TWAP orders\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Fiat Payments History (USER_DATA)", + "name": "Query Historical Algo Orders (USER_DATA)", "request": { "method": "GET", "header": [ @@ -3316,43 +3547,52 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/fiat/payments?transactionType=0×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "fiat", - "payments" + "algo", + "spot", + "historicalOrders" ], "query": [ { - "key": "transactionType", - "value": "0", - "description": "* `0` - deposit\n* `1` - withdraw" + "key": "symbol", + "value": "", + "description": "Trading symbol eg. BTCUSDT", + "disabled": true }, { - "key": "beginTime", - "value": "1626144956000", + "key": "side", + "value": "", + "description": "BUY or SELL", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "description": "in milliseconds eg.1641522717552", "disabled": true }, { "key": "endTime", "value": "", - "description": "UTC timestamp in ms", + "description": "in milliseconds eg.1641522526562", "disabled": true }, { "key": "page", - "value": "1", - "description": "Default 1", + "value": "", + "description": "Default is 1", "disabled": true }, { - "key": "rows", - "value": "300", - "description": "Default 100, max 500", + "key": "pageSize", + "value": "", + "description": "MIN 1, MAX 100; Default 100", "disabled": true }, { @@ -3373,20 +3613,14 @@ } ] }, - "description": "- If beginTime and endTime are not sent, the recent 30-day data will be returned.\n\nWeight(IP): 1" + "description": "Get all historical SPOT TWAP orders\n\nWeight(IP): 1" }, "response": [] - } - ], - "description": "Fiat Endpoints" - }, - { - "name": "Futures", - "item": [ + }, { - "name": "New Future Account Transfer (USER_DATA)", + "name": "Query Sub Orders (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3400,31 +3634,33 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/transfer?asset=&amount=&type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/subOrders?algoId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", - "transfer" + "algo", + "spot", + "subOrders" ], "query": [ { - "key": "asset", - "value": "", - "description": "The asset being transferred, e.g., USDT" + "key": "algoId", + "value": "" }, { - "key": "amount", + "key": "page", "value": "", - "description": "The amount to be transferred" + "description": "Default is 1", + "disabled": true }, { - "key": "type", + "key": "pageSize", "value": "", - "description": "1: transfer from spot account to USDT-Ⓜ futures account. 2: transfer from USDT-Ⓜ futures account to spot account. 3: transfer from spot account to COIN-Ⓜ futures account. 4: transfer from COIN-Ⓜ futures account to spot account." + "description": "MIN 1, MAX 100; Default 100", + "disabled": true }, { "key": "recvWindow", @@ -3444,14 +3680,20 @@ } ] }, - "description": "Execute transfer between spot account and futures account.\n\nWeight(IP): 1" + "description": "Get respective sub orders for a specified algoId\n\nWeight(IP): 1" }, "response": [] - }, - { - "name": "Get Future Account Transaction History List (USER_DATA)", + } + ], + "description": "Binance Spot Execution Algorithm API solution aims to provide users ability to programmatically leverage Binance in-house algorithmic trading\ncapability to automate order execution strategy, improve execution transparency and give users smart access to the available market liquidity.\nDuring the introductory period, there will be no additional fees for TWAP orders. Standard trading fees apply. Order size exceeds to maximum API supported size (100,000 USDT).\nPlease contact liquidity@binance.com for larger sizes." + }, + { + "name": "Gift Card", + "item": [ + { + "name": "Create a Binance Code (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -3465,41 +3707,26 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/transfer?asset=&startTime=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/createCode?token=&amount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", - "transfer" + "giftcard", + "createCode" ], "query": [ { - "key": "asset", - "value": "" - }, - { - "key": "startTime", - "value": "" - }, - { - "key": "endTime", - "value": "", - "disabled": true - }, - { - "key": "current", + "key": "token", "value": "", - "description": "Currently querying page. Start from 1. Default:1", - "disabled": true + "description": "The coin type contained in the Binance Code" }, { - "key": "size", + "key": "amount", "value": "", - "description": "Default:10 Max:100", - "disabled": true + "description": "The amount of the coin" }, { "key": "recvWindow", @@ -3519,14 +3746,14 @@ } ] }, - "description": "Weight(IP): 10" + "description": "This API is for creating a Binance Code. To get started with, please make sure:\n\n- You have a Binance account\n- You have passed kyc\n- You have a sufficient balance in your Binance funding wallet\n- You need Enable Withdrawals for the API Key which requests this endpoint.\n\nDaily creation volume: 2 BTC / 24H Daily creation times: 200 Codes / 24H\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Future TickLevel Orderbook Historical Data Download Link (USER_DATA)", + "name": "Redeem a Binance Code (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -3540,62 +3767,52 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/histDataLink?symbol=&dataType=&startTime=&endTime=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/redeemCode?code=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", - "histDataLink" + "giftcard", + "redeemCode" ], "query": [ { - "key": "symbol", - "value": "" - }, - { - "key": "dataType", - "value": "" - }, - { - "key": "startTime", - "value": "" + "key": "code", + "value": "", + "description": "Binance Code" }, { - "key": "endTime", + "key": "externalUid", "value": "", - "description": "Currently querying page. Start from 1. Default:1" + "description": "Each external unique ID represents a unique user on the partner platform. The function helps you to identify the redemption behavior of different users, such as redemption frequency and amount. It also helps risk and limit control of a single account, such as daily limit on redemption volume, frequency, and incorrect number of entries. This will also prevent a single user account reach the partner's daily redemption limits. We strongly recommend you to use this feature and transfer us the User ID of your users if you have different users redeeming Binance codes on your platform. To protect user data privacy, you may choose to transfer the user id in any desired format (max. 400 characters).", + "disabled": true }, { "key": "recvWindow", "value": "5000", - "description": "Default:500 Max:1000", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "The value cannot be greater than 60000" + "description": "UTC timestamp in ms" }, { "key": "signature", "value": "{{signature}}", - "description": "UTC timestamp in ms" + "description": "Signature" } ] - } + }, + "description": "This API is for redeeming the Binance Code. Once redeemed, the coins will be deposited in your funding wallet.\n\nPlease note that if you enter the wrong code 5 times within 24 hours, you will no longer be able to redeem any Binance Code that day.\n\nWeight(IP): 1" }, "response": [] - } - ] - }, - { - "name": "Futures Algo", - "item": [ + }, { - "name": "Volume Participation New Order (TRADE)", + "name": "Buy a Binance Code (TRADE)", "request": { "method": "POST", "header": [ @@ -3611,61 +3828,31 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/newOrderVp?symbol=&side=SELL&quantity=&urgency=LOW×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/buyCode?baseToken=&faceToken=&baseTokenAmount×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "newOrderVp" + "giftcard", + "buyCode" ], "query": [ { - "key": "symbol", - "value": "", - "description": "Trading symbol eg. BTCUSDT" - }, - { - "key": "side", - "value": "SELL", - "description": "Trading side ( BUY or SELL )" - }, - { - "key": "positionSide", - "value": "", - "description": "Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.", - "disabled": true - }, - { - "key": "quantity", - "value": "", - "description": "Quantity of base asset; The notional (quantity * mark price(base asset)) must be more than the equivalent of 10,000 USDT and less than the equivalent of 1,000,000 USDT." - }, - { - "key": "urgency", - "value": "LOW", - "description": "Represent the relative speed of the current execution; ENUM: LOW, MEDIUM, HIGH." - }, - { - "key": "clientAlgoId", + "key": "baseToken", "value": "", - "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value.", - "disabled": true + "description": "The token you want to pay, example: BUSD" }, { - "key": "reduceOnly", + "key": "faceToken", "value": "", - "description": "\"true\" or \"false\". Default \"false\"; Cannot be sent in Hedge Mode; Cannot be sent when you open a position.", - "disabled": true + "description": "The token you want to buy, example: BNB. If faceToken = baseToken, it's the same as createCode endpoint." }, { - "key": "limitPrice", - "value": "", - "description": "Limit price of the order; If it is not sent, will place order by market price by default.", - "disabled": true + "key": "baseTokenAmount", + "value": null, + "description": "The base token asset quantity, example : 1.002" }, { "key": "recvWindow", @@ -3685,14 +3872,14 @@ } ] }, - "description": "Send in a VP new order. Only support on USDⓈ-M Contracts.\n\nWeight(IP): 3000\n\n- Max open orders allowed: 10 orders.\n- Leverage of symbols and position mode will be the same as your futures account settings. You can set up through the trading page or fapi.\n- Receiving \"success\": true does not mean that your order will be executed. Please use the query order endpoints(GET sapi/v1/algo/futures/openOrders or GET sapi/v1/algo/futures/historicalOrders) to check the order status. For example: Your futures balance is insufficient, or open position with reduce only or position side is inconsistent with your own setting. In these cases you will receive \"success\": true, but the order status will be expired after we check it." + "description": "This API is for redeeming the Binance Code. Once redeemed, the coins will be deposited in your funding wallet.\n\nPlease note that if you enter the wrong code 5 times within 24 hours, you will no longer be able to redeem any Binance Code that day.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Time-Weighted Average Price New Order (TRADE)", + "name": "Verify a Binance Code (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3706,61 +3893,21 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/verify?referenceNo=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "newOrderTwap" + "giftcard", + "verify" ], "query": [ { - "key": "symbol", - "value": "", - "description": "Trading symbol eg. BTCUSDT" - }, - { - "key": "side", - "value": "", - "description": "Trading side ( BUY or SELL )" - }, - { - "key": "positionSide", - "value": "", - "description": "Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.", - "disabled": true - }, - { - "key": "quantity", - "value": "", - "description": "Quantity of base asset; The notional (quantity * mark price(base asset)) must be more than the equivalent of 10,000 USDT and less than the equivalent of 1,000,000 USDT" - }, - { - "key": "duration", - "value": "", - "description": "Duration for TWAP orders in seconds. [300, 86400];Less than 5min => defaults to 5 min; Greater than 24h => defaults to 24h" - }, - { - "key": "clientAlgoId", - "value": "", - "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value", - "disabled": true - }, - { - "key": "reduceOnly", - "value": "", - "description": "`true` or `false`. Default `false`; Cannot be sent in Hedge Mode; Cannot be sent when you open a position", - "disabled": true - }, - { - "key": "limitPrice", + "key": "referenceNo", "value": "", - "description": "Limit price of the order; If it is not sent, will place order by market price by default", - "disabled": true + "description": "reference number" }, { "key": "recvWindow", @@ -3780,14 +3927,14 @@ } ] }, - "description": "Send in a Twap new order. Only support on USDⓈ-M Contracts.\n\nWeight(UID): 3000" + "description": "This API is for verifying whether the Binance Code is valid or not by entering Binance Code or reference number.\n\nPlease note that if you enter the wrong binance code 5 times within an hour, you will no longer be able to verify any binance code for that hour.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Cancel Algo Order (TRADE)", + "name": "Fetch Token Limit (USER_DATA)", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3801,21 +3948,22 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/order?algoId=14511×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/buyCode/token-limit?baseToken=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "order" + "giftcard", + "buyCode", + "token-limit" ], "query": [ { - "key": "algoId", - "value": "14511" + "key": "baseToken", + "value": "", + "description": "The token you want to pay, example: BUSD" }, { "key": "recvWindow", @@ -3835,12 +3983,12 @@ } ] }, - "description": "Cancel an active order.\n\nWeight(IP): 1" + "description": "This API is for verifying whether the Binance Code is valid or not by entering Binance Code or reference number.\n\nPlease note that if you enter the wrong binance code 5 times within an hour, you will no longer be able to verify any binance code for that hour.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query Current Algo Open Orders (USER_DATA)", + "name": "Fetch RSA Public Key (USER_DATA)", "request": { "method": "GET", "header": [ @@ -3856,16 +4004,16 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/openOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/cryptography/rsa-public-key?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "openOrders" + "giftcard", + "cryptography", + "rsa-public-key" ], "query": [ { @@ -3886,14 +4034,20 @@ } ] }, - "description": "Weight(IP): 1" + "description": "This API is for fetching the RSA Public Key.\nThis RSA Public key will be used to encrypt the card code.\nPlease note that the RSA Public key fetched is valid only for the current day.\n\nWeight(IP): 1" }, "response": [] - }, + } + ], + "description": "Gift Card Endpoints" + }, + { + "name": "Margin", + "item": [ { - "name": "Query Historical Algo Orders (USER_DATA)", + "name": "Adjust cross margin max leverage (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -3907,64 +4061,21 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/max-leverage?maxLeverage=&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "historicalOrders" + "margin", + "max-leverage" ], "query": [ { - "key": "symbol", + "key": "maxLeverage", "value": "", - "description": "Trading symbol eg. BTCUSDT", - "disabled": true - }, - { - "key": "side", - "value": "", - "description": "BUY or SELL", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "page", - "value": "", - "description": "Default is 1", - "disabled": true - }, - { - "key": "pageSize", - "value": "", - "description": "MIN 1, MAX 100; Default 100", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "UTC timestamp in ms" }, { "key": "signature", @@ -3973,12 +4084,12 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Adjust cross margin max leverage\nThe margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 and the initial risk ratio of 5x is 1.25\n\nWeight(IP): 3000" }, "response": [] }, { - "name": "Query Sub Orders (USER_DATA)", + "name": "Get Cross Margin Transfer History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -3994,33 +4105,62 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/subOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/transfer?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "subOrders" + "margin", + "transfer" ], "query": [ { - "key": "algoId", - "value": "13723", + "key": "asset", + "value": "BNB", "disabled": true }, { - "key": "page", + "key": "type", "value": "", - "description": "Default is 1", + "description": "Transfer Type", "disabled": true }, { - "key": "pageSize", + "key": "startTime", "value": "", - "description": "MIN 1, MAX 100; Default 100", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "current", + "value": "1", + "description": "Current querying page. Start from 1. Default:1", + "disabled": true + }, + { + "key": "size", + "value": "100", + "description": "Default:10 Max:100", + "disabled": true + }, + { + "key": "isolatedSymbol", + "value": "", + "description": "Symbol in Isolated Margin", + "disabled": true + }, + { + "key": "archived", + "value": "", + "description": "Default: false. Set to true for archived data from 6 months ago", "disabled": true }, { @@ -4041,19 +4181,14 @@ } ] }, - "description": "Get respective sub orders for a specified algoId\n\nWeight(IP): 1" + "description": "- Response in descending order\n- Returns data for last 7 days by default\n- Set `archived` to `true` to query data from 6 months ago\n\nWeight(IP): 1" }, "response": [] - } - ] - }, - { - "name": "Spot Algo", - "item": [ + }, { - "name": "Time-Weighted Average Price New Order (TRADE)", + "name": "Get All Margin Assets (MARKET_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4067,76 +4202,32 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/allAssets", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "spot", - "newOrderTwap" + "margin", + "allAssets" ], - "query": [ - { - "key": "symbol", - "value": "", - "description": "Trading symbol eg. BTCUSDT" - }, - { - "key": "side", - "value": "", - "description": "Trading side ( BUY or SELL )" - }, - { - "key": "quantity", - "value": "", - "description": "Quantity of base asset; The notional (quantity * last price(base asset)) must be more than the equivalent of 1,000 USDT and less than the equivalent of 100,000 USDT" - }, - { - "key": "duration", - "value": "", - "description": "Duration for TWAP orders in seconds. [300, 86400]" - }, - { - "key": "clientAlgoId", - "value": "", - "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value", - "disabled": true - }, - { - "key": "limitPrice", + "query": [ + { + "key": "asset", "value": "", - "description": "Limit price of the order; If it is not sent, will place order by market price by default", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] + } + ] }, - "description": "Place a new spot TWAP order with Algo service.\n\nTotal Algo open orders max allowed: 10 orders.\n\nWeight(UID): 3000" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Cancel Algo Order (TRADE)", + "name": "Get All Cross Margin Pairs (MARKET_DATA)", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4150,47 +4241,30 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/order?algoId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/allPairs", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "spot", - "order" + "margin", + "allPairs" ], - "query": [ - { - "key": "algoId", + "query": [ + { + "key": "symbol", "value": "", - "description": "eg. 14511" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] + } + ] }, - "description": "Cancel an open TWAP order\n\nWeight(IP): 1" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Query Current Algo Open Orders (USER_DATA)", + "name": "Query Margin PriceIndex (MARKET_DATA)", "request": { "method": "GET", "header": [ @@ -4206,42 +4280,30 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/openOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/priceIndex?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "spot", - "openOrders" + "margin", + "priceIndex" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" } ] }, - "description": "Get all open SPOT TWAP orders\n\nWeight(IP): 1" + "description": "Weight(IP): 10" }, "response": [] }, { - "name": "Query Historical Algo Orders (USER_DATA)", + "name": "Query Margin Account's Order (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4257,58 +4319,44 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/order?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "spot", - "historicalOrders" + "margin", + "order" ], "query": [ { "key": "symbol", - "value": "", - "description": "Trading symbol eg. BTCUSDT", - "disabled": true + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "side", + "key": "isIsolated", "value": "", - "description": "BUY or SELL", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", "disabled": true }, { - "key": "startTime", + "key": "orderId", "value": "", - "description": "in milliseconds eg.1641522717552", + "description": "Order id", "disabled": true }, { - "key": "endTime", + "key": "origClientOrderId", "value": "", - "description": "in milliseconds eg.1641522526562", + "description": "Order id from client", "disabled": true }, { - "key": "page", - "value": "", - "description": "Default is 1", - "disabled": true - }, - { - "key": "pageSize", - "value": "", - "description": "MIN 1, MAX 100; Default 100", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { @@ -4323,14 +4371,14 @@ } ] }, - "description": "Get all historical SPOT TWAP orders\n\nWeight(IP): 1" + "description": "- Either `orderId` or `origClientOrderId` must be sent.\n- For some historical orders `cummulativeQuoteQty` will be < 0, meaning the data is not available at this time.\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Query Sub Orders (USER_DATA)", + "name": "Margin Account New Order (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -4344,32 +4392,100 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/subOrders?algoId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/order?symbol=BNBUSDT&side=SELL&type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "spot", - "subOrders" + "margin", + "order" ], "query": [ { - "key": "algoId", - "value": "" + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "page", + "key": "isIsolated", "value": "", - "description": "Default is 1", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", "disabled": true }, { - "key": "pageSize", + "key": "side", + "value": "SELL" + }, + { + "key": "type", "value": "", - "description": "MIN 1, MAX 100; Default 100", + "description": "Order type" + }, + { + "key": "quantity", + "value": "", + "disabled": true + }, + { + "key": "quoteOrderQty", + "value": "", + "description": "Quote quantity", + "disabled": true + }, + { + "key": "price", + "value": "", + "description": "Order price", + "disabled": true + }, + { + "key": "stopPrice", + "value": "20.01", + "description": "Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.", + "disabled": true + }, + { + "key": "newClientOrderId", + "value": "", + "description": "Used to uniquely identify this cancel. Automatically generated by default", + "disabled": true + }, + { + "key": "icebergQty", + "value": "", + "description": "Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.", + "disabled": true + }, + { + "key": "newOrderRespType", + "value": "", + "description": "Set the response JSON.", + "disabled": true + }, + { + "key": "sideEffectType", + "value": "", + "description": "Default `NO_SIDE_EFFECT`", + "disabled": true + }, + { + "key": "timeInForce", + "value": "", + "description": "Order time in force", + "disabled": true + }, + { + "key": "selfTradePreventionMode", + "value": "", + "description": "The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE", + "disabled": true + }, + { + "key": "autoRepayAtCancel", + "value": "", + "description": "Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true", "disabled": true }, { @@ -4390,20 +4506,14 @@ } ] }, - "description": "Get respective sub orders for a specified algoId\n\nWeight(IP): 1" + "description": "Post a new order for margin account.\n\nWeight(UID): 6" }, "response": [] - } - ], - "description": "Binance Spot Execution Algorithm API solution aims to provide users ability to programmatically leverage Binance in-house algorithmic trading\ncapability to automate order execution strategy, improve execution transparency and give users smart access to the available market liquidity.\nDuring the introductory period, there will be no additional fees for TWAP orders. Standard trading fees apply. Order size exceeds to maximum API supported size (100,000 USDT).\nPlease contact liquidity@binance.com for larger sizes." - }, - { - "name": "Gift Card", - "item": [ + }, { - "name": "Create a Binance Code (USER_DATA)", + "name": "Margin Account Cancel Order (TRADE)", "request": { - "method": "POST", + "method": "DELETE", "header": [ { "key": "Content-Type", @@ -4417,26 +4527,45 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/createCode?token=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/order?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "createCode" + "margin", + "order" ], "query": [ { - "key": "token", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "isIsolated", "value": "", - "description": "The coin type contained in the Binance Code" + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true }, { - "key": "amount", + "key": "orderId", "value": "", - "description": "The amount of the coin" + "description": "Order id", + "disabled": true + }, + { + "key": "origClientOrderId", + "value": "", + "description": "Order id from client", + "disabled": true + }, + { + "key": "newClientOrderId", + "value": "", + "description": "Used to uniquely identify this cancel. Automatically generated by default", + "disabled": true }, { "key": "recvWindow", @@ -4456,14 +4585,14 @@ } ] }, - "description": "This API is for creating a Binance Code. To get started with, please make sure:\n\n- You have a Binance account\n- You have passed kyc\n- You have a sufficient balance in your Binance funding wallet\n- You need Enable Withdrawals for the API Key which requests this endpoint.\n\nDaily creation volume: 2 BTC / 24H Daily creation times: 200 Codes / 24H\n\nWeight(IP): 1" + "description": "Cancel an active order for margin account.\n\nEither `orderId` or `origClientOrderId` must be sent.\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Redeem a Binance Code (USER_DATA)", + "name": "Get Interest History (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4477,26 +4606,56 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/redeemCode?code=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/interestHistory?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "redeemCode" + "margin", + "interestHistory" ], "query": [ { - "key": "code", + "key": "asset", + "value": "BNB", + "disabled": true + }, + { + "key": "isolatedSymbol", "value": "", - "description": "Binance Code" + "description": "Isolated symbol", + "disabled": true }, { - "key": "externalUid", + "key": "startTime", "value": "", - "description": "Each external unique ID represents a unique user on the partner platform. The function helps you to identify the redemption behavior of different users, such as redemption frequency and amount. It also helps risk and limit control of a single account, such as daily limit on redemption volume, frequency, and incorrect number of entries. This will also prevent a single user account reach the partner's daily redemption limits. We strongly recommend you to use this feature and transfer us the User ID of your users if you have different users redeeming Binance codes on your platform. To protect user data privacy, you may choose to transfer the user id in any desired format (max. 400 characters).", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "current", + "value": "1", + "description": "Current querying page. Start from 1. Default:1", + "disabled": true + }, + { + "key": "size", + "value": "100", + "description": "Default:10 Max:100", + "disabled": true + }, + { + "key": "archived", + "value": "", + "description": "Default: false. Set to true for archived data from 6 months ago", "disabled": true }, { @@ -4517,14 +4676,14 @@ } ] }, - "description": "This API is for redeeming the Binance Code. Once redeemed, the coins will be deposited in your funding wallet.\n\nPlease note that if you enter the wrong code 5 times within 24 hours, you will no longer be able to redeem any Binance Code that day.\n\nWeight(IP): 1" + "description": "- Response in descending order\n- If `isolatedSymbol` is not sent, crossed margin data will be returned\n- Set `archived` to `true` to query data from 6 months ago\n- `type` in response has 4 enums:\n - `PERIODIC` interest charged per hour\n - `ON_BORROW` first interest charged on borrow\n - `PERIODIC_CONVERTED` interest charged per hour converted into BNB\n - `ON_BORROW_CONVERTED` first interest charged on borrow converted into BNB\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Buy a Binance Code (TRADE)", + "name": "Get Force Liquidation Record (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4538,31 +4697,46 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/buyCode?baseToken=&faceToken=&baseTokenAmount×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/forceLiquidationRec?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "buyCode" + "margin", + "forceLiquidationRec" ], "query": [ { - "key": "baseToken", + "key": "startTime", "value": "", - "description": "The token you want to pay, example: BUSD" + "description": "UTC timestamp in ms", + "disabled": true }, { - "key": "faceToken", + "key": "endTime", "value": "", - "description": "The token you want to buy, example: BNB. If faceToken = baseToken, it's the same as createCode endpoint." + "description": "UTC timestamp in ms", + "disabled": true }, { - "key": "baseTokenAmount", - "value": null, - "description": "The base token asset quantity, example : 1.002" + "key": "isolatedSymbol", + "value": "", + "description": "Isolated symbol", + "disabled": true + }, + { + "key": "current", + "value": "1", + "description": "Current querying page. Start from 1. Default:1", + "disabled": true + }, + { + "key": "size", + "value": "100", + "description": "Default:10 Max:100", + "disabled": true }, { "key": "recvWindow", @@ -4582,12 +4756,12 @@ } ] }, - "description": "This API is for redeeming the Binance Code. Once redeemed, the coins will be deposited in your funding wallet.\n\nPlease note that if you enter the wrong code 5 times within 24 hours, you will no longer be able to redeem any Binance Code that day.\n\nWeight(IP): 1" + "description": "- Response in descending order\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Verify a Binance Code (USER_DATA)", + "name": "Query Cross Margin Account Details (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4603,22 +4777,17 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/verify?referenceNo=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/account?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "verify" + "margin", + "account" ], "query": [ - { - "key": "referenceNo", - "value": "", - "description": "reference number" - }, { "key": "recvWindow", "value": "5000", @@ -4637,12 +4806,12 @@ } ] }, - "description": "This API is for verifying whether the Binance Code is valid or not by entering Binance Code or reference number.\n\nPlease note that if you enter the wrong binance code 5 times within an hour, you will no longer be able to verify any binance code for that hour.\n\nWeight(IP): 1" + "description": "Weight(IP): 10" }, "response": [] }, { - "name": "Fetch Token Limit (USER_DATA)", + "name": "Query Margin Account's Open Orders (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4658,22 +4827,28 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/buyCode/token-limit?baseToken=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/openOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "buyCode", - "token-limit" + "margin", + "openOrders" ], "query": [ { - "key": "baseToken", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", + "disabled": true + }, + { + "key": "isIsolated", "value": "", - "description": "The token you want to pay, example: BUSD" + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true }, { "key": "recvWindow", @@ -4693,14 +4868,14 @@ } ] }, - "description": "This API is for verifying whether the Binance Code is valid or not by entering Binance Code or reference number.\n\nPlease note that if you enter the wrong binance code 5 times within an hour, you will no longer be able to verify any binance code for that hour.\n\nWeight(IP): 1" + "description": "- If the `symbol` is not sent, orders for all symbols will be returned in an array.\n- When all symbols are returned, the number of requests counted against the rate limiter is equal to the number of symbols currently trading on the exchange\n- If isIsolated =\"TRUE\", symbol must be sent.\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Fetch RSA Public Key (USER_DATA)", + "name": "Margin Account Cancel all Open Orders on a Symbol (TRADE)", "request": { - "method": "GET", + "method": "DELETE", "header": [ { "key": "Content-Type", @@ -4714,18 +4889,28 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/cryptography/rsa-public-key?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/openOrders?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "cryptography", - "rsa-public-key" + "margin", + "openOrders" ], "query": [ + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "isIsolated", + "value": "", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -4744,20 +4929,14 @@ } ] }, - "description": "This API is for fetching the RSA Public Key.\nThis RSA Public key will be used to encrypt the card code.\nPlease note that the RSA Public key fetched is valid only for the current day.\n\nWeight(IP): 1" + "description": "- Cancels all active orders on a symbol for margin account.\n- This includes OCO orders.\n\nWeight(IP): 1\n" }, "response": [] - } - ], - "description": "Gift Card Endpoints" - }, - { - "name": "Margin", - "item": [ + }, { - "name": "Cross Margin Account Transfer (MARGIN)", + "name": "Query Margin Account's All Orders (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4771,7 +4950,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/transfer?asset=BTC&amount=1.01&type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/allOrders?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4779,21 +4958,43 @@ "sapi", "v1", "margin", - "transfer" + "allOrders" ], "query": [ { - "key": "asset", - "value": "BTC" + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "amount", - "value": "1.01" + "key": "isIsolated", + "value": "", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true }, { - "key": "type", + "key": "orderId", + "value": "", + "description": "Order id", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", "value": "", - "description": "* `1` - transfer from main account to margin account\n* `2` - transfer from margin account to main account" + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", + "disabled": true }, { "key": "recvWindow", @@ -4813,12 +5014,12 @@ } ] }, - "description": "Execute transfer between spot account and cross margin account.\n\nWeight(IP): 600" + "description": "- If `orderId` is set, it will get orders >= that orderId. Otherwise most recent orders are returned.\n- For some historical orders `cummulativeQuoteQty` will be < 0, meaning the data is not available at this time.\n\nWeight(IP): 200\n\nRequest Limit: 60 times/min per IP" }, "response": [] }, { - "name": "Adjust cross margin max leverage (USER_DATA)", + "name": "Margin Account New OCO (TRADE)", "request": { "method": "POST", "header": [ @@ -4834,7 +5035,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/max-leverage?maxLeverage=&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/order/oco?symbol=BNBUSDT&side=SELL&quantity=&price=&stopPrice=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4842,92 +5043,99 @@ "sapi", "v1", "margin", - "max-leverage" + "order", + "oco" ], "query": [ { - "key": "maxLeverage", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "isIsolated", "value": "", - "description": "UTC timestamp in ms" + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Adjust cross margin max leverage\nThe margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 and the initial risk ratio of 5x is 1.25\n\nWeight(IP): 3000" - }, - "response": [] - }, - { - "name": "Get Cross Margin Transfer History (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/transfer?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "transfer" - ], - "query": [ + "key": "listClientOrderId", + "value": "", + "description": "A unique Id for the entire orderList", + "disabled": true + }, { - "key": "asset", - "value": "BNB", + "key": "side", + "value": "SELL" + }, + { + "key": "quantity", + "value": "" + }, + { + "key": "limitClientOrderId", + "value": "", + "description": "A unique Id for the limit order", "disabled": true }, { - "key": "type", + "key": "price", + "value": "", + "description": "Order price" + }, + { + "key": "limitIcebergQty", "value": "", - "description": "Transfer Type", "disabled": true }, { - "key": "startTime", + "key": "stopClientOrderId", "value": "", - "description": "UTC timestamp in ms", + "description": "A unique Id for the stop loss/stop loss limit leg", "disabled": true }, { - "key": "endTime", + "key": "stopPrice", + "value": "" + }, + { + "key": "stopLimitPrice", "value": "", - "description": "UTC timestamp in ms", + "description": "If provided, stopLimitTimeInForce is required.", "disabled": true }, { - "key": "current", - "value": "1", - "description": "Current querying page. Start from 1. Default:1", + "key": "stopIcebergQty", + "value": "", "disabled": true }, { - "key": "size", - "value": "100", - "description": "Default:10 Max:100", + "key": "stopLimitTimeInForce", + "value": "", "disabled": true }, { - "key": "archived", + "key": "newOrderRespType", "value": "", - "description": "Default: false. Set to true for archived data from 6 months ago", + "description": "Set the response JSON.", + "disabled": true + }, + { + "key": "sideEffectType", + "value": "", + "description": "Default `NO_SIDE_EFFECT`", + "disabled": true + }, + { + "key": "selfTradePreventionMode", + "value": "", + "description": "The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE", + "disabled": true + }, + { + "key": "autoRepayAtCancel", + "value": "", + "description": "Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true", "disabled": true }, { @@ -4948,14 +5156,14 @@ } ] }, - "description": "- Response in descending order\n- Returns data for last 7 days by default\n- Set `archived` to `true` to query data from 6 months ago\n\nWeight(IP): 1" + "description": "Send in a new OCO for a margin account\n\n- Price Restrictions:\n - SELL: Limit Price > Last Price > Stop Price\n - BUY: Limit Price < Last Price < Stop Price\n- Quantity Restrictions:\n - Both legs must have the same quantity\n - ICEBERG quantities however do not have to be the same.\n- Order Rate Limit\n - OCO counts as 2 orders against the order rate limit.\n\nWeight(UID): 6" }, "response": [] }, { - "name": "Margin Account Borrow (MARGIN)", + "name": "Query Margin Account's OCO (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4969,7 +5177,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/loan?asset=BTC&amount=1.01×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/orderList?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4977,13 +5185,9 @@ "sapi", "v1", "margin", - "loan" + "orderList" ], "query": [ - { - "key": "asset", - "value": "BTC" - }, { "key": "isIsolated", "value": "", @@ -4992,13 +5196,21 @@ }, { "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", + "value": "", + "description": "Mandatory for isolated margin, not supported for cross margin", "disabled": true }, { - "key": "amount", - "value": "1.01" + "key": "orderListId", + "value": "", + "description": "Order list id", + "disabled": true + }, + { + "key": "origClientOrderId", + "value": "", + "description": "Order id from client", + "disabled": true }, { "key": "recvWindow", @@ -5018,14 +5230,14 @@ } ] }, - "description": "Apply for a loan.\n\n- If \"isIsolated\" = \"TRUE\", \"symbol\" must be sent\n- \"isIsolated\" = \"FALSE\" for crossed margin loan\n\nWeight(UID): 3000" + "description": "Retrieves a specific OCO based on provided optional parameters\n\n- Either `orderListId` or `origClientOrderId` must be provided\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Query Loan Record (USER_DATA)", + "name": "Margin Account Cancel OCO (TRADE)", "request": { - "method": "GET", + "method": "DELETE", "header": [ { "key": "Content-Type", @@ -5039,7 +5251,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/loan?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/orderList?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5047,53 +5259,122 @@ "sapi", "v1", "margin", - "loan" + "orderList" ], "query": [ { - "key": "asset", - "value": "BTC" + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "isolatedSymbol", + "key": "isIsolated", "value": "", - "description": "Isolated symbol", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", "disabled": true }, { - "key": "txId", - "value": "123456789", - "description": "the tranId in `POST /sapi/v1/margin/loan`", + "key": "orderListId", + "value": "", + "description": "Order list id", "disabled": true }, { - "key": "startTime", + "key": "listClientOrderId", "value": "", - "description": "UTC timestamp in ms", + "description": "A unique Id for the entire orderList", "disabled": true }, { - "key": "endTime", + "key": "newClientOrderId", "value": "", - "description": "UTC timestamp in ms", + "description": "Used to uniquely identify this cancel. Automatically generated by default", "disabled": true }, { - "key": "current", - "value": "1", - "description": "Current querying page. Start from 1. Default:1", + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { - "key": "size", - "value": "100", - "description": "Default:10 Max:100", + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "Cancel an entire Order List for a margin account\n\n- Canceling an individual leg will cancel the entire OCO\n- Either `orderListId` or `listClientOrderId` must be provided\n\nWeight(UID): 1" + }, + "response": [] + }, + { + "name": "Query Margin Account's all OCO (USER_DATA)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/margin/allOrderList?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "allOrderList" + ], + "query": [ + { + "key": "isIsolated", + "value": "", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", "disabled": true }, { - "key": "archived", + "key": "symbol", "value": "", - "description": "Default: false. Set to true for archived data from 6 months ago", + "description": "Mandatory for isolated margin, not supported for cross margin", + "disabled": true + }, + { + "key": "fromId", + "value": "", + "description": "If supplied, neither `startTime` or `endTime` can be provided", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "", + "description": "Default Value: 500; Max Value: 1000", "disabled": true }, { @@ -5114,14 +5395,14 @@ } ] }, - "description": "- `txId` or `startTime` must be sent. `txId` takes precedence.\n- Response in descending order\n- If `isolatedSymbol` is not sent, crossed margin data will be returned\n- Set `archived` to `true` to query data from 6 months ago\n\nWeight(IP): 10" + "description": "Retrieves all OCO for a specific margin account based on provided optional parameters\n\nWeight(IP): 200" }, "response": [] }, { - "name": "Margin Account Repay (MARGIN)", + "name": "Query Margin Account's Open OCO (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -5135,7 +5416,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/repay?asset=BTC&amount=1.01×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/openOrderList?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5143,13 +5424,9 @@ "sapi", "v1", "margin", - "repay" + "openOrderList" ], "query": [ - { - "key": "asset", - "value": "BTC" - }, { "key": "isIsolated", "value": "", @@ -5158,14 +5435,10 @@ }, { "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", + "value": "", + "description": "Mandatory for isolated margin, not supported for cross margin", "disabled": true }, - { - "key": "amount", - "value": "1.01" - }, { "key": "recvWindow", "value": "5000", @@ -5184,12 +5457,12 @@ } ] }, - "description": "Repay loan for margin account.\n\n- If \"isIsolated\" = \"TRUE\", \"symbol\" must be sent\n- \"isIsolated\" = \"FALSE\" for crossed margin repay\n\nWeight(IP): 3000" + "description": "Weight(IP): 10" }, "response": [] }, { - "name": "Query Repay Record (USER_DATA)", + "name": "Query Margin Account's Trade List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5205,7 +5478,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/repay?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/myTrades?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5213,23 +5486,18 @@ "sapi", "v1", "margin", - "repay" + "myTrades" ], "query": [ { - "key": "asset", - "value": "BTC" + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "isolatedSymbol", + "key": "isIsolated", "value": "", - "description": "Isolated symbol", - "disabled": true - }, - { - "key": "txId", - "value": "2970933056", - "description": "the tranId in `POST /sapi/v1/margin/repay`", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", "disabled": true }, { @@ -5245,21 +5513,15 @@ "disabled": true }, { - "key": "current", - "value": "1", - "description": "Current querying page. Start from 1. Default:1", - "disabled": true - }, - { - "key": "size", - "value": "100", - "description": "Default:10 Max:100", + "key": "fromId", + "value": "", + "description": "Trade id to fetch from. Default gets most recent trades.", "disabled": true }, { - "key": "archived", - "value": "", - "description": "Default: false. Set to true for archived data from 6 months ago", + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", "disabled": true }, { @@ -5280,12 +5542,12 @@ } ] }, - "description": "- `txId` or `startTime` must be sent. `txId` takes precedence.\n- Response in descending order\n- If `isolatedSymbol` is not sent, crossed margin data will be returned\n- Set `archived` to `true` to query data from 6 months ago\n\nWeight(IP): 10" + "description": "- If `fromId` is set, it will get orders >= that `fromId`. Otherwise most recent trades are returned.\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Query Margin Asset (MARKET_DATA)", + "name": "Query Max Borrow (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5301,7 +5563,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/asset?asset=BTC", + "raw": "{{url}}/sapi/v1/margin/maxBorrowable?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5309,21 +5571,43 @@ "sapi", "v1", "margin", - "asset" + "maxBorrowable" ], "query": [ { "key": "asset", "value": "BTC" + }, + { + "key": "isolatedSymbol", + "value": "", + "description": "Isolated symbol", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" } ] }, - "description": "Weight(IP): 10" + "description": "- If `isolatedSymbol` is not sent, crossed margin data will be sent.\n- `borrowLimit` is also available from https://www.binance.com/en/margin-fee\n\nWeight(IP): 50" }, "response": [] }, { - "name": "Query Cross Margin Pair (MARKET_DATA)", + "name": "Query Max Transfer-Out Amount (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5339,7 +5623,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/pair?symbol=BNBUSDT", + "raw": "{{url}}/sapi/v1/margin/maxTransferable?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5347,22 +5631,43 @@ "sapi", "v1", "margin", - "pair" + "maxTransferable" ], "query": [ { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" + "key": "asset", + "value": "BTC" + }, + { + "key": "isolatedSymbol", + "value": "", + "description": "Isolated symbol", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" } ] }, - "description": "Weight(IP): 10" + "description": "- If `isolatedSymbol` is not sent, crossed margin data will be sent.\n\nWeight(IP): 50" }, "response": [] }, { - "name": "Get All Margin Assets (MARKET_DATA)", + "name": "Get Summary of Margin account (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5378,7 +5683,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/allAssets", + "raw": "{{url}}/sapi/v1/margin/tradeCoeff?email=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5386,15 +5691,37 @@ "sapi", "v1", "margin", - "allAssets" + "tradeCoeff" + ], + "query": [ + { + "key": "email", + "value": "" + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } ] }, - "description": "Weight(IP): 1" + "description": "- If `isolatedSymbol` is not sent, crossed margin data will be sent.\n\nWeight(IP): 50" }, "response": [] }, { - "name": "Get All Cross Margin Pairs (MARKET_DATA)", + "name": "Query Isolated Margin Account Info (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5410,7 +5737,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/allPairs", + "raw": "{{url}}/sapi/v1/margin/isolated/account?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5418,17 +5745,42 @@ "sapi", "v1", "margin", - "allPairs" - ] - }, - "description": "Weight(IP): 1" + "isolated", + "account" + ], + "query": [ + { + "key": "symbols", + "value": "BTCUSDT,BNBUSDT,ADAUSDT", + "description": "Max 5 symbols can be sent; separated by ','", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "- If \"symbols\" is not sent, all isolated assets will be returned.\n- If \"symbols\" is sent, only the isolated assets of the sent symbols will be returned.\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Query Margin PriceIndex (MARKET_DATA)", + "name": "Disable Isolated Margin Account (TRADE)", "request": { - "method": "GET", + "method": "DELETE", "header": [ { "key": "Content-Type", @@ -5442,7 +5794,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/priceIndex?symbol=BNBUSDT", + "raw": "{{url}}/sapi/v1/margin/isolated/account?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5450,24 +5802,41 @@ "sapi", "v1", "margin", - "priceIndex" + "isolated", + "account" ], "query": [ { "key": "symbol", "value": "BNBUSDT", "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" } ] }, - "description": "Weight(IP): 10" + "description": "Disable isolated margin account for a specific symbol. Each trading pair can only be deactivated once every 24 hours .\n\nWeight(UID): 300" }, "response": [] }, { - "name": "Query Margin Account's Order (USER_DATA)", + "name": "Enable Isolated Margin Account (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -5481,7 +5850,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/order?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/isolated/account?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5489,7 +5858,8 @@ "sapi", "v1", "margin", - "order" + "isolated", + "account" ], "query": [ { @@ -5497,24 +5867,6 @@ "value": "BNBUSDT", "description": "Trading symbol, e.g. BNBUSDT" }, - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "orderId", - "value": "", - "description": "Order id", - "disabled": true - }, - { - "key": "origClientOrderId", - "value": "", - "description": "Order id from client", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -5533,14 +5885,14 @@ } ] }, - "description": "- Either `orderId` or `origClientOrderId` must be sent.\n- For some historical orders `cummulativeQuoteQty` will be < 0, meaning the data is not available at this time.\n\nWeight(IP): 10" + "description": "Enable isolated margin account for a specific symbol.\n\nWeight(UID): 300" }, "response": [] }, { - "name": "Margin Account New Order (TRADE)", + "name": "Query Enabled Isolated Margin Account Limit (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -5554,7 +5906,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/order?symbol=BNBUSDT&side=SELL&type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/isolated/accountLimit?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5562,94 +5914,10 @@ "sapi", "v1", "margin", - "order" + "isolated", + "accountLimit" ], "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "side", - "value": "SELL" - }, - { - "key": "type", - "value": "", - "description": "Order type" - }, - { - "key": "quantity", - "value": "", - "disabled": true - }, - { - "key": "quoteOrderQty", - "value": "", - "description": "Quote quantity", - "disabled": true - }, - { - "key": "price", - "value": "", - "description": "Order price", - "disabled": true - }, - { - "key": "stopPrice", - "value": "20.01", - "description": "Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.", - "disabled": true - }, - { - "key": "newClientOrderId", - "value": "", - "description": "Used to uniquely identify this cancel. Automatically generated by default", - "disabled": true - }, - { - "key": "icebergQty", - "value": "", - "description": "Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.", - "disabled": true - }, - { - "key": "newOrderRespType", - "value": "", - "description": "Set the response JSON.", - "disabled": true - }, - { - "key": "sideEffectType", - "value": "", - "description": "Default `NO_SIDE_EFFECT`", - "disabled": true - }, - { - "key": "timeInForce", - "value": "", - "description": "Order time in force", - "disabled": true - }, - { - "key": "selfTradePreventionMode", - "value": "", - "description": "The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE", - "disabled": true - }, - { - "key": "autoRepayAtCancel", - "value": "", - "description": "Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -5668,14 +5936,14 @@ } ] }, - "description": "Post a new order for margin account.\n\nWeight(UID): 6" + "description": "Query enabled isolated margin account limit.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Margin Account Cancel Order (TRADE)", + "name": "Get All Isolated Margin Symbol (USER_DATA)", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", @@ -5689,7 +5957,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/order?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/isolated/allPairs?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5697,38 +5965,15 @@ "sapi", "v1", "margin", - "order" + "isolated", + "allPairs" ], "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "orderId", - "value": "", - "description": "Order id", - "disabled": true - }, - { - "key": "origClientOrderId", - "value": "", - "description": "Order id from client", - "disabled": true - }, - { - "key": "newClientOrderId", - "value": "", - "description": "Used to uniquely identify this cancel. Automatically generated by default", - "disabled": true - }, + { + "key": "symbol", + "value": "", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -5747,14 +5992,14 @@ } ] }, - "description": "Cancel an active order for margin account.\n\nEither `orderId` or `origClientOrderId` must be sent.\n\nWeight(IP): 10" + "description": "Weight(IP): 10" }, "response": [] }, { - "name": "Get Interest History (USER_DATA)", + "name": "Toggle BNB Burn On Spot Trade And Margin Interest (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -5768,58 +6013,77 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/interestHistory?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/bnbBurn?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "margin", - "interestHistory" + "bnbBurn" ], "query": [ { - "key": "asset", - "value": "BNB", + "key": "spotBNBBurn", + "value": "true", + "description": "Determines whether to use BNB to pay for trading fees on SPOT", "disabled": true }, { - "key": "isolatedSymbol", - "value": "", - "description": "Isolated symbol", + "key": "interestBNBBurn", + "value": "false", + "description": "Determines whether to use BNB to pay for margin loan's interest", "disabled": true }, { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { - "key": "current", - "value": "1", - "description": "Current querying page. Start from 1. Default:1", - "disabled": true - }, - { - "key": "size", - "value": "100", - "description": "Default:10 Max:100", - "disabled": true - }, - { - "key": "archived", - "value": "", - "description": "Default: false. Set to true for archived data from 6 months ago", - "disabled": true - }, + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "- \"spotBNBBurn\" and \"interestBNBBurn\" should be sent at least one.\n\nWeight(IP): 1" + }, + "response": [] + }, + { + "name": "Get BNB Burn Status (USER_DATA)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/bnbBurn?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "bnbBurn" + ], + "query": [ { "key": "recvWindow", "value": "5000", @@ -5838,12 +6102,12 @@ } ] }, - "description": "- Response in descending order\n- If `isolatedSymbol` is not sent, crossed margin data will be returned\n- Set `archived` to `true` to query data from 6 months ago\n- `type` in response has 4 enums:\n - `PERIODIC` interest charged per hour\n - `ON_BORROW` first interest charged on borrow\n - `PERIODIC_CONVERTED` interest charged per hour converted into BNB\n - `ON_BORROW_CONVERTED` first interest charged on borrow converted into BNB\n\nWeight(IP): 1" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Get Force Liquidation Record (USER_DATA)", + "name": "Query Margin Interest Rate History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5859,7 +6123,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/forceLiquidationRec?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/interestRateHistory?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5867,37 +6131,29 @@ "sapi", "v1", "margin", - "forceLiquidationRec" + "interestRateHistory" ], "query": [ { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "key": "asset", + "value": "BTC" }, { - "key": "endTime", + "key": "vipLevel", "value": "", - "description": "UTC timestamp in ms", + "description": "Defaults to user's vip level", "disabled": true }, { - "key": "isolatedSymbol", + "key": "startTime", "value": "", - "description": "Isolated symbol", - "disabled": true - }, - { - "key": "current", - "value": "1", - "description": "Current querying page. Start from 1. Default:1", + "description": "UTC timestamp in ms", "disabled": true }, { - "key": "size", - "value": "100", - "description": "Default:10 Max:100", + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", "disabled": true }, { @@ -5918,12 +6174,12 @@ } ] }, - "description": "- Response in descending order\n\nWeight(IP): 1" + "description": "The max interval between startTime and endTime is 30 days.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query Cross Margin Account Details (USER_DATA)", + "name": "Query Cross Margin Fee Data (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5939,7 +6195,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/account?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/crossMarginData?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5947,9 +6203,21 @@ "sapi", "v1", "margin", - "account" + "crossMarginData" ], "query": [ + { + "key": "vipLevel", + "value": "", + "description": "Defaults to user's vip level", + "disabled": true + }, + { + "key": "coin", + "value": "BNB", + "description": "Coin name", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -5968,12 +6236,12 @@ } ] }, - "description": "Weight(IP): 10" + "description": "Get cross margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee\n\nWeight(IP): 1 when coin is specified; 5 when the coin parameter is omitted" }, "response": [] }, { - "name": "Query Margin Account's Open Orders (USER_DATA)", + "name": "Query Isolated Margin Fee Data (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5989,7 +6257,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/openOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/isolatedMarginData?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5997,19 +6265,19 @@ "sapi", "v1", "margin", - "openOrders" + "isolatedMarginData" ], "query": [ { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", + "key": "vipLevel", + "value": "", + "description": "Defaults to user's vip level", "disabled": true }, { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", "disabled": true }, { @@ -6030,14 +6298,14 @@ } ] }, - "description": "- If the `symbol` is not sent, orders for all symbols will be returned in an array.\n- When all symbols are returned, the number of requests counted against the rate limiter is equal to the number of symbols currently trading on the exchange\n- If isIsolated =\"TRUE\", symbol must be sent.\n\nWeight(IP): 10" + "description": "Get isolated margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee\n\nWeight(IP): 1 when a single is specified; 10 when the symbol parameter is omitted" }, "response": [] }, { - "name": "Margin Account Cancel all Open Orders on a Symbol (TRADE)", + "name": "Query Isolated Margin Tier Data (USER_DATA)", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", @@ -6051,7 +6319,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/openOrders?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/isolatedMarginTier?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6059,7 +6327,7 @@ "sapi", "v1", "margin", - "openOrders" + "isolatedMarginTier" ], "query": [ { @@ -6068,9 +6336,9 @@ "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "key": "tier", + "value": "1", + "description": "All margin tier data will be returned if tier is omitted", "disabled": true }, { @@ -6091,12 +6359,12 @@ } ] }, - "description": "- Cancels all active orders on a symbol for margin account.\n- This includes OCO orders.\n\nWeight(IP): 1\n" + "description": "Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query Margin Account's All Orders (USER_DATA)", + "name": "Query Current Margin Order Count Usage (TRADE)", "request": { "method": "GET", "header": [ @@ -6112,7 +6380,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/allOrders?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/rateLimit/order?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6120,14 +6388,10 @@ "sapi", "v1", "margin", - "allOrders" + "rateLimit", + "order" ], "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, { "key": "isIsolated", "value": "", @@ -6135,27 +6399,9 @@ "disabled": true }, { - "key": "orderId", - "value": "", - "description": "Order id", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", + "key": "symbol", "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", + "description": "isolated symbol, mandatory for isolated margin", "disabled": true }, { @@ -6176,14 +6422,14 @@ } ] }, - "description": "- If `orderId` is set, it will get orders >= that orderId. Otherwise most recent orders are returned.\n- For some historical orders `cummulativeQuoteQty` will be < 0, meaning the data is not available at this time.\n\nWeight(IP): 200\n\nRequest Limit: 60 times/min per IP" + "description": "Displays the user's current margin order count usage for all intervals.\n\nWeight(IP): 20" }, "response": [] }, { - "name": "Margin Account New OCO (TRADE)", + "name": "Cross margin collateral ratio (MARKET_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -6197,7 +6443,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/order/oco?symbol=BNBUSDT&side=SELL&quantity=&price=&stopPrice=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/crossMarginCollateralRatio?signature={{signature}}", "host": [ "{{url}}" ], @@ -6205,111 +6451,58 @@ "sapi", "v1", "margin", - "order", - "oco" + "crossMarginCollateralRatio" ], "query": [ { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "Weight(IP): 100" + }, + "response": [] + }, + { + "name": "Get Small Liability Exchange Coin List (USER_DATA)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/margin/exchange-small-liability?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "exchange-small-liability" + ], + "query": [ { - "key": "listClientOrderId", - "value": "", - "description": "A unique Id for the entire orderList", + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, { - "key": "side", - "value": "SELL" - }, - { - "key": "quantity", - "value": "" - }, - { - "key": "limitClientOrderId", - "value": "", - "description": "A unique Id for the limit order", - "disabled": true - }, - { - "key": "price", - "value": "", - "description": "Order price" - }, - { - "key": "limitIcebergQty", - "value": "", - "disabled": true - }, - { - "key": "stopClientOrderId", - "value": "", - "description": "A unique Id for the stop loss/stop loss limit leg", - "disabled": true - }, - { - "key": "stopPrice", - "value": "" - }, - { - "key": "stopLimitPrice", - "value": "", - "description": "If provided, stopLimitTimeInForce is required.", - "disabled": true - }, - { - "key": "stopIcebergQty", - "value": "", - "disabled": true - }, - { - "key": "stopLimitTimeInForce", - "value": "", - "disabled": true - }, - { - "key": "newOrderRespType", - "value": "", - "description": "Set the response JSON.", - "disabled": true - }, - { - "key": "sideEffectType", - "value": "", - "description": "Default `NO_SIDE_EFFECT`", - "disabled": true - }, - { - "key": "selfTradePreventionMode", - "value": "", - "description": "The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE", - "disabled": true - }, - { - "key": "autoRepayAtCancel", - "value": "", - "description": "Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", @@ -6318,14 +6511,14 @@ } ] }, - "description": "Send in a new OCO for a margin account\n\n- Price Restrictions:\n - SELL: Limit Price > Last Price > Stop Price\n - BUY: Limit Price < Last Price < Stop Price\n- Quantity Restrictions:\n - Both legs must have the same quantity\n - ICEBERG quantities however do not have to be the same.\n- Order Rate Limit\n - OCO counts as 2 orders against the order rate limit.\n\nWeight(UID): 6" + "description": "Query the coins which can be small liability exchange\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Query Margin Account's OCO (USER_DATA)", + "name": "Small Liability Exchange (MARGIN)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -6339,7 +6532,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/orderList?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/exchange-small-liability?assetNames=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6347,32 +6540,13 @@ "sapi", "v1", "margin", - "orderList" + "exchange-small-liability" ], "query": [ { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "symbol", - "value": "", - "description": "Mandatory for isolated margin, not supported for cross margin", - "disabled": true - }, - { - "key": "orderListId", - "value": "", - "description": "Order list id", - "disabled": true - }, - { - "key": "origClientOrderId", + "key": "assetNames", "value": "", - "description": "Order id from client", - "disabled": true + "description": "The assets list of small liability exchange, Example: assetNames = BTC,ETH" }, { "key": "recvWindow", @@ -6392,14 +6566,14 @@ } ] }, - "description": "Retrieves a specific OCO based on provided optional parameters\n\n- Either `orderListId` or `origClientOrderId` must be provided\n\nWeight(IP): 10" + "description": "Cross Margin Small Liability Exchange\nOnly convert once within 6 hours\nOnly liability valuation less than 10 USDT are supported\nThe maximum number of coin is 10\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Margin Account Cancel OCO (TRADE)", + "name": "Get Small Liability Exchange History (USER_DATA)", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", @@ -6413,7 +6587,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/orderList?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/exchange-small-liability-history?current=&size=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6421,36 +6595,29 @@ "sapi", "v1", "margin", - "orderList" + "exchange-small-liability-history" ], "query": [ { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "isIsolated", + "key": "current", "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true + "description": "Currently querying page. Start from 1. Default:1" }, { - "key": "orderListId", + "key": "size", "value": "", - "description": "Order list id", - "disabled": true + "description": "Default:10, Max:100" }, { - "key": "listClientOrderId", + "key": "startTime", "value": "", - "description": "A unique Id for the entire orderList", + "description": "Default: 30 days from current timestamp", "disabled": true }, { - "key": "newClientOrderId", + "key": "endTime", "value": "", - "description": "Used to uniquely identify this cancel. Automatically generated by default", + "description": "Default: present timestamp", "disabled": true }, { @@ -6471,12 +6638,12 @@ } ] }, - "description": "Cancel an entire Order List for a margin account\n\n- Canceling an individual leg will cancel the entire OCO\n- Either `orderListId` or `listClientOrderId` must be provided\n\nWeight(UID): 1" + "description": "Get Small liability Exchange History\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Query Margin Account's all OCO (USER_DATA)", + "name": "Get a future hourly interest rate (USER_DATA)", "request": { "method": "GET", "header": [ @@ -6492,7 +6659,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/allOrderList?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/next-hourly-interest-rate?assets=&isIsolated=&signature={{signature}}", "host": [ "{{url}}" ], @@ -6500,55 +6667,18 @@ "sapi", "v1", "margin", - "allOrderList" + "next-hourly-interest-rate" ], "query": [ { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "symbol", - "value": "", - "description": "Mandatory for isolated margin, not supported for cross margin", - "disabled": true - }, - { - "key": "fromId", - "value": "", - "description": "If supplied, neither `startTime` or `endTime` can be provided", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", + "key": "assets", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "List of assets, separated by commas, up to 20" }, { - "key": "limit", + "key": "isIsolated", "value": "", - "description": "Default Value: 500; Max Value: 1000", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "for isolated margin or not, TRUE, FALSE" }, { "key": "signature", @@ -6557,12 +6687,12 @@ } ] }, - "description": "Retrieves all OCO for a specific margin account based on provided optional parameters\n\nWeight(IP): 200" + "description": "Get user the next hourly estimate interest\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Query Margin Account's Open OCO (USER_DATA)", + "name": "Get tokens or symbols delist schedule for cross margin and isolated margin (MARKET_DATA)", "request": { "method": "GET", "header": [ @@ -6578,7 +6708,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/openOrderList?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/delist-schedule?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6586,21 +6716,9 @@ "sapi", "v1", "margin", - "openOrderList" + "delist-schedule" ], "query": [ - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "symbol", - "value": "", - "description": "Mandatory for isolated margin, not supported for cross margin", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -6619,12 +6737,12 @@ } ] }, - "description": "Weight(IP): 10" + "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Query Margin Account's Trade List (USER_DATA)", + "name": "Get cross or isolated margin capital flow(USER_DATA)", "request": { "method": "GET", "header": [ @@ -6640,7 +6758,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/myTrades?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/capital-flow?asset=&symbol=&type=&startTime=&endTime=&fromId=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6648,68 +6766,58 @@ "sapi", "v1", "margin", - "myTrades" + "capital-flow" ], "query": [ + { + "key": "asset", + "value": "" + }, { "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" + "value": "" }, { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true + "key": "type", + "value": "" }, { "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "value": "" }, { "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "value": "" }, { "key": "fromId", - "value": "", - "description": "Trade id to fetch from. Default gets most recent trades.", - "disabled": true + "value": "" }, { "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", - "disabled": true + "value": "" }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "- If `fromId` is set, it will get orders >= that `fromId`. Otherwise most recent trades are returned.\n\nWeight(IP): 10" + "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Query Max Borrow (USER_DATA)", + "name": "Query Margin Available Inventory (USER_DATA)", "request": { "method": "GET", "header": [ @@ -6725,7 +6833,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/maxBorrowable?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/available-inventory?type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6733,43 +6841,34 @@ "sapi", "v1", "margin", - "maxBorrowable" + "available-inventory" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "isolatedSymbol", - "value": "", - "description": "Isolated symbol", - "disabled": true + "key": "type", + "value": "" }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "- If `isolatedSymbol` is not sent, crossed margin data will be sent.\n- `borrowLimit` is also available from https://www.binance.com/en/margin-fee\n\nWeight(IP): 50" + "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Query Max Transfer-Out Amount (USER_DATA)", + "name": "Margin manual liquidation(MARGIN)", "request": { "method": "GET", "header": [ @@ -6785,7 +6884,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/maxTransferable?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/manual-liquidation?type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6793,43 +6892,34 @@ "sapi", "v1", "margin", - "maxTransferable" + "manual-liquidation" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "isolatedSymbol", - "value": "", - "description": "Isolated symbol", - "disabled": true + "key": "type", + "value": "" }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "- If `isolatedSymbol` is not sent, crossed margin data will be sent.\n\nWeight(IP): 50" + "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Get Isolated Margin Transfer History (USER_DATA)", + "name": "Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA)", "request": { "method": "GET", "header": [ @@ -6845,7 +6935,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/transfer?symbol=BNBUSDT&type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/leverageBracket", "host": [ "{{url}}" ], @@ -6853,77 +6943,207 @@ "sapi", "v1", "margin", - "isolated", - "transfer" - ], - "query": [ - { - "key": "asset", - "value": "BNB", - "disabled": true - }, - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "type", - "value": "" - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, + "leverageBracket" + ] + }, + "description": "" + }, + "response": [] + }, + { + "name": "Margin account borrow/repay(MARGIN)", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}//sapi/v1/margin/borrow-repay?asset=&isIsolated=&symbol=&amount=&type=BORROW×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "borrow-repay" + ], + "query": [ + { + "key": "asset", + "value": "" + }, + { + "key": "isIsolated", + "value": "", + "description": "TRUE for Isolated Margin, FALSE for Cross Margin, Default FALSE" + }, + { + "key": "symbol", + "value": "", + "description": "Only for Isolated margin" + }, + { + "key": "amount", + "value": "" + }, + { + "key": "type", + "value": "BORROW", + "description": "BORROW or REPAY" + }, { - "key": "current", - "value": "1", - "description": "UTC timestamp in ms", + "key": "recvWindow", + "value": "5000", "disabled": true }, { - "key": "size", - "value": "100", - "description": "Current querying page. Start from 1. Default:1", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}" }, { - "key": "archived", - "value": "", - "description": "Default:10 Max:100", - "disabled": true - }, + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Weight(UID): 3000" + }, + "response": [] + }, + { + "name": "Query borrow/repay records in Margin account(USER_DATA)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/margin/borrow-repay?type=BORROW×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "borrow-repay" + ], + "query": [ + { + "key": "asset", + "value": "", + "disabled": true + }, + { + "key": "isIsolated", + "value": "", + "disabled": true, + "description": "Symbol in Isolated Margin" + }, + { + "key": "txId", + "value": "", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true + }, + { + "key": "current", + "value": "", + "disabled": true, + "description": "Current querying page. Start from 1. Default:1" + }, + { + "key": "size", + "value": "", + "disabled": true, + "description": "Default:10 Max:100" + }, + { + "key": "type", + "value": "BORROW", + "description": "BORROW or REPAY" + }, { "key": "recvWindow", "value": "5000", - "description": "Default: false. Set to true for archived data from 6 months ago", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "The value cannot be greater than 60000" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "UTC timestamp in ms" + "value": "{{signature}}" } + ] + }, + "description": "Query borrow/repay records in Margin account. Weight(IP): 10" + }, + "response": [] + } + ], + "description": "Margin Account/Trade" + }, + { + "name": "Market", + "item": [ + { + "name": "Test Connectivity", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/api/v3/ping", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "ping" ] }, - "description": "Weight(IP): 1" + "description": "Test connectivity to the Rest API.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Summary of Margin account (USER_DATA)", + "name": "Check Server Time", "request": { "method": "GET", "header": [ @@ -6931,125 +7151,70 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/tradeCoeff?email=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/time", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "tradeCoeff" - ], - "query": [ - { - "key": "email", - "value": "" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } + "api", + "v3", + "time" ] }, - "description": "- If `isolatedSymbol` is not sent, crossed margin data will be sent.\n\nWeight(IP): 50" + "description": "Test connectivity to the Rest API and get the current server time.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Isolated Margin Account Transfer (MARGIN)", + "name": "Exchange Information", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/transfer?asset=BTC&symbol=BNBUSDT&transFrom=SPOT&transTo=ISOLATED_MARGIN&amount=1.01×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/exchangeInfo", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "transfer" + "api", + "v3", + "exchangeInfo" ], "query": [ - { - "key": "asset", - "value": "BTC" - }, { "key": "symbol", "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "transFrom", - "value": "SPOT" - }, - { - "key": "transTo", - "value": "ISOLATED_MARGIN" - }, - { - "key": "amount", - "value": "1.01" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "description": "Trading symbol, e.g. BNBUSDT", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "symbols", + "value": "[\"BTCUSDT\",\"BNBBTC\"]", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "permissions", + "value": "", + "description": "Display symbols with the permissions matching provided parameter. (eg.SPOT, MARGIN, LEVERAGED)", + "disabled": true } ] }, - "description": "Weight(UID): 600" + "description": "Current exchange trading rules and symbol information\n\n- If any symbol provided in either symbol or symbols do not exist, the endpoint will throw an error.\n\nWeight(IP): 10" }, "response": [] }, { - "name": "Query Isolated Margin Account Info (USER_DATA)", + "name": "Order Book", "request": { "method": "GET", "header": [ @@ -7057,81 +7222,56 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/account?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/depth?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "account" + "api", + "v3", + "depth" ], "query": [ { - "key": "symbols", - "value": "BTCUSDT,BNBUSDT,ADAUSDT", - "description": "Max 5 symbols can be sent; separated by ','", - "disabled": true + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "limit", + "value": "100", + "description": "If limit > 5000, then the response will truncate to 5000", "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" } ] }, - "description": "- If \"symbols\" is not sent, all isolated assets will be returned.\n- If \"symbols\" is sent, only the isolated assets of the sent symbols will be returned.\n\nWeight(IP): 10" + "description": "| Limit | Weight(IP) |\n|---------------------|-------------|\n| 1-100 | 1 |\n| 101-500 | 5 |\n| 501-1000 | 10 |\n| 1001-5000 | 50 |" }, "response": [] }, { - "name": "Disable Isolated Margin Account (TRADE)", + "name": "Recent Trades List", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/account?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/trades?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "account" + "api", + "v3", + "trades" ], "query": [ { @@ -7140,31 +7280,21 @@ "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" } ] }, - "description": "Disable isolated margin account for a specific symbol. Each trading pair can only be deactivated once every 24 hours .\n\nWeight(UID): 300" + "description": "Get recent trades.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Enable Isolated Margin Account (TRADE)", + "name": "Old Trade Lookup (MARKET_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -7178,16 +7308,14 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/account?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/historicalTrades?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "account" + "api", + "v3", + "historicalTrades" ], "query": [ { @@ -7196,29 +7324,25 @@ "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "fromId", + "value": "", + "description": "Trade id to fetch from. Default gets most recent trades.", + "disabled": true } ] }, - "description": "Enable isolated margin account for a specific symbol.\n\nWeight(UID): 300" + "description": "Get older market trades.\n\nWeight(IP): 5" }, "response": [] }, { - "name": "Query Enabled Isolated Margin Account Limit (USER_DATA)", + "name": "Compressed/Aggregate Trades List", "request": { "method": "GET", "header": [ @@ -7226,50 +7350,56 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/accountLimit?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/aggTrades?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "accountLimit" + "api", + "v3", + "aggTrades" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "fromId", + "value": "", + "description": "Trade id to fetch from. Default gets most recent trades.", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", + "disabled": true } ] }, - "description": "Query enabled isolated margin account limit.\n\nWeight(IP): 1" + "description": "Get compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.\n- If `startTime` and `endTime` are sent, time between startTime and endTime must be less than 1 hour.\n- If `fromId`, `startTime`, and `endTime` are not sent, the most recent aggregate trades will be returned.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query Isolated Margin Symbol (USER_DATA)", + "name": "Kline/Candlestick Data", "request": { "method": "GET", "header": [ @@ -7277,24 +7407,17 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/pair?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/klines?symbol=BNBUSDT&interval=", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "pair" + "api", + "v3", + "klines" ], "query": [ { @@ -7303,29 +7426,41 @@ "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "interval", + "value": "", + "description": "kline intervals" + }, + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "timeZone", + "value": "", + "disabled": true + }, + { + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", + "disabled": true } ] }, - "description": "Weight(IP): 10" + "description": "Kline/candlestick bars for a symbol.\nKlines are uniquely identified by their open time.\n\n- If `startTime` and `endTime` are not sent, the most recent klines are returned.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get All Isolated Margin Symbol (USER_DATA)", + "name": "UIKlines", "request": { "method": "GET", "header": [ @@ -7333,111 +7468,90 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/allPairs?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/uiKlines?symbol=BNBUSDT&interval=", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolated", - "allPairs" + "api", + "v3", + "uiKlines" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "symbol", + "value": "BNBUSDT" + }, + { + "key": "interval", + "value": "", + "description": "kline intervals" + }, + { + "key": "startTime", + "value": "", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "endTime", + "value": "", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "timeZone", + "value": "", + "disabled": true + }, + { + "key": "limit", + "value": "500", + "description": "Default 500; max 1000.", + "disabled": true } ] }, - "description": "Weight(IP): 10" + "description": "The request is similar to klines having the same parameters and response.\n\nuiKlines return modified kline data, optimized for presentation of candlestick charts." }, "response": [] }, { - "name": "Toggle BNB Burn On Spot Trade And Margin Interest (USER_DATA)", + "name": "Current Average Price", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/bnbBurn?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/avgPrice?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "bnbBurn" + "api", + "v3", + "avgPrice" ], "query": [ { - "key": "spotBNBBurn", - "value": "true", - "description": "Determines whether to use BNB to pay for trading fees on SPOT", - "disabled": true - }, - { - "key": "interestBNBBurn", - "value": "false", - "description": "Determines whether to use BNB to pay for margin loan's interest", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" } ] }, - "description": "- \"spotBNBBurn\" and \"interestBNBBurn\" should be sent at least one.\n\nWeight(IP): 1" + "description": "Current average price for a symbol.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get BNB Burn Status (USER_DATA)", + "name": "24hr Ticker Price Change Statistics", "request": { "method": "GET", "header": [ @@ -7445,48 +7559,45 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/bnbBurn?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/ticker/24hr", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "bnbBurn" + "api", + "v3", + "ticker", + "24hr" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "symbols", + "value": "", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "type", + "value": "BNBUSDT", + "description": "Supported values: FULL or MINI.\nIf none provided, the default is FULL", + "disabled": true } ] }, - "description": "Weight(IP): 1" + "description": "24 hour rolling window price change statistics. Careful when accessing this with no symbol.\n\n- If the symbol is not sent, tickers for all symbols will be returned in an array.\n\nWeight(IP):\n- `1` for a single symbol;\n- `40` when the symbol parameter is omitted;" }, "response": [] }, { - "name": "Query Margin Interest Rate History (USER_DATA)", + "name": "Symbol Price Ticker", "request": { "method": "GET", "header": [ @@ -7494,71 +7605,39 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/interestRateHistory?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/ticker/price", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "interestRateHistory" + "api", + "v3", + "ticker", + "price" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "vipLevel", - "value": "", - "description": "Defaults to user's vip level", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", "disabled": true }, { - "key": "endTime", + "key": "symbols", "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" } ] }, - "description": "The max interval between startTime and endTime is 30 days.\n\nWeight(IP): 1" + "description": "Latest price for a symbol or symbols.\n\n- If the symbol is not sent, prices for all symbols will be returned in an array.\n\nWeight(IP):\n- `1` for a single symbol;\n- `2` when the symbol parameter is omitted;" }, "response": [] }, { - "name": "Query Cross Margin Fee Data (USER_DATA)", + "name": "Symbol Order Book Ticker", "request": { "method": "GET", "header": [ @@ -7566,61 +7645,39 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/crossMarginData?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/ticker/bookTicker", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "crossMarginData" + "api", + "v3", + "ticker", + "bookTicker" ], "query": [ { - "key": "vipLevel", - "value": "", - "description": "Defaults to user's vip level", - "disabled": true - }, - { - "key": "coin", - "value": "BNB", - "description": "Coin name", + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", "disabled": true }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "symbols", + "value": "", "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" } ] }, - "description": "Get cross margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee\n\nWeight(IP): 1 when coin is specified; 5 when the coin parameter is omitted" + "description": "Best price/qty on the order book for a symbol or symbols.\n\n- If the symbol is not sent, bookTickers for all symbols will be returned in an array.\n\nWeight(IP):\n- `1` for a single symbol;\n- `2` when the symbol parameter is omitted;" }, "response": [] }, { - "name": "Query Isolated Margin Fee Data (USER_DATA)", + "name": "Rolling window price change statistics", "request": { "method": "GET", "header": [ @@ -7628,31 +7685,19 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolatedMarginData?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/ticker", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolatedMarginData" + "api", + "v3", + "ticker" ], "query": [ - { - "key": "vipLevel", - "value": "", - "description": "Defaults to user's vip level", - "disabled": true - }, { "key": "symbol", "value": "BNBUSDT", @@ -7660,29 +7705,31 @@ "disabled": true }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "symbols", + "value": "", + "description": "Either symbol or symbols must be provided\nExamples of accepted format for the symbols parameter: [\"BTCUSDT\",\"BNBUSDT\"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D.\n\nThe maximum number of symbols allowed in a request is 100.", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "windowSize", + "value": "", + "description": "Defaults to 1d if no parameter provided.\nSupported windowSize values:\n1m,2m....59m for minutes\n1h, 2h....23h - for hours\n1d...7d - for days.\n\nUnits cannot be combined (e.g. 1d2h is not allowed)", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "type", + "value": "", + "description": "Supported values: FULL or MINI.\nIf none provided, the default is FULL", + "disabled": true } ] }, - "description": "Get isolated margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee\n\nWeight(IP): 1 when a single is specified; 10 when the symbol parameter is omitted" + "description": "The window used to compute statistics is typically slightly wider than requested windowSize.\n\nopenTime for /api/v3/ticker always starts on a minute, while the closeTime is the current time of the request. As such, the effective window might be up to 1 minute wider than requested.\n\nE.g. If the closeTime is 1641287867099 (January 04, 2022 09:17:47:099 UTC) , and the windowSize is 1d. the openTime will be: 1641201420000 (January 3, 2022, 09:17:00 UTC)\n\nWeight(IP): 2 for each requested symbol regardless of windowSize.\n\nThe weight for this request will cap at 100 once the number of symbols in the request is more than 50." }, "response": [] }, { - "name": "Query Isolated Margin Tier Data (USER_DATA)", + "name": "Trading Day Ticker", "request": { "method": "GET", "header": [ @@ -7690,23 +7737,18 @@ "key": "Content-Type", "type": "text", "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolatedMarginTier?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/api/v3/ticker/tradingDay?symbol=BNBUSDT", "host": [ "{{url}}" ], "path": [ - "sapi", - "v1", - "margin", - "isolatedMarginTier" + "api", + "v3", + "ticker", + "tradingDay" ], "query": [ { @@ -7715,1929 +7757,37 @@ "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "tier", - "value": "1", - "description": "All margin tier data will be returned if tier is omitted", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "symbols", + "value": "", + "description": "Either symbol or symbols must be provided\nExamples of accepted format for the symbols parameter: [\"BTCUSDT\",\"BNBUSDT\"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D.\n\nThe maximum number of symbols allowed in a request is 100.", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Query Current Margin Order Count Usage (TRADE)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/rateLimit/order?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "rateLimit", - "order" - ], - "query": [ - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "symbol", - "value": "", - "description": "isolated symbol, mandatory for isolated margin", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Displays the user's current margin order count usage for all intervals.\n\nWeight(IP): 20" - }, - "response": [] - }, - { - "name": "Margin Dustlog (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/dribblet?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "dribblet" - ], - "query": [ - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Query the historical information of user's margin account small-value asset conversion BNB.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Get Assets That Can Be Converted Into BNB (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/dust?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "dust" - ], - "query": [ - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Get assets that can be converted into BNB.\n\nWeight(IP): 100" - }, - "response": [] - }, - { - "name": "Dust Transfer (TRADE)", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/dust?asset=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "dust" - ], - "query": [ - { - "key": "asset", - "value": "", - "description": "The asset being converted. For example: asset=BTC,USDT" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Convert dust assets to BNB.\n\nYou need to openEnable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(UID): 3000" - }, - "response": [] - }, - { - "name": "Cross margin collateral ratio (MARKET_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/crossMarginCollateralRatio?signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "crossMarginCollateralRatio" - ], - "query": [ - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Weight(IP): 100" - }, - "response": [] - }, - { - "name": "Get Small Liability Exchange Coin List (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/exchange-small-liability?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "exchange-small-liability" - ], - "query": [ - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Query the coins which can be small liability exchange\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Small Liability Exchange (MARGIN)", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/exchange-small-liability?assetNames=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "exchange-small-liability" - ], - "query": [ - { - "key": "assetNames", - "value": "", - "description": "The assets list of small liability exchange, Example: assetNames = BTC,ETH" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Cross Margin Small Liability Exchange\nOnly convert once within 6 hours\nOnly liability valuation less than 10 USDT are supported\nThe maximum number of coin is 10\n\nWeight(UID): 3000" - }, - "response": [] - }, - { - "name": "Get Small Liability Exchange History (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/exchange-small-liability-history?current=&size=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "exchange-small-liability-history" - ], - "query": [ - { - "key": "current", - "value": "", - "description": "Currently querying page. Start from 1. Default:1" - }, - { - "key": "size", - "value": "", - "description": "Default:10, Max:100" - }, - { - "key": "startTime", - "value": "", - "description": "Default: 30 days from current timestamp", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "Default: present timestamp", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Get Small liability Exchange History\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Get a future hourly interest rate (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/next-hourly-interest-rate?assets=&isIsolated=&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "next-hourly-interest-rate" - ], - "query": [ - { - "key": "assets", - "value": "", - "description": "List of assets, separated by commas, up to 20" - }, - { - "key": "isIsolated", - "value": "", - "description": "for isolated margin or not, TRUE, FALSE" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Get user the next hourly estimate interest\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Get tokens or symbols delist schedule for cross margin and isolated margin (MARKET_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/delist-schedule?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "delist-schedule" - ], - "query": [ - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Get cross or isolated margin capital flow(USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/capital-flow?asset=&symbol=&type=&startTime=&endTime=&fromId=&limit=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "capital-flow" - ], - "query": [ - { - "key": "asset", - "value": "" - }, - { - "key": "symbol", - "value": "" - }, - { - "key": "type", - "value": "" - }, - { - "key": "startTime", - "value": "" - }, - { - "key": "endTime", - "value": "" - }, - { - "key": "fromId", - "value": "" - }, - { - "key": "limit", - "value": "" - }, - { - "key": "recvWindow", - "value": "5000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}" - }, - { - "key": "signature", - "value": "{{signature}}" - } - ] - }, - "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Query Margin Available Inventory (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/available-inventory?type=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "available-inventory" - ], - "query": [ - { - "key": "type", - "value": "" - }, - { - "key": "recvWindow", - "value": "5000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}" - }, - { - "key": "signature", - "value": "{{signature}}" - } - ] - }, - "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Margin manual liquidation(MARGIN)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/manual-liquidation?type=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "manual-liquidation" - ], - "query": [ - { - "key": "type", - "value": "" - }, - { - "key": "recvWindow", - "value": "5000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}" - }, - { - "key": "signature", - "value": "{{signature}}" - } - ] - }, - "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" - }, - "response": [] - }, - { - "name": "Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/margin/leverageBracket", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "margin", - "leverageBracket" - ] - }, - "description": "" - }, - "response": [] - } - ], - "description": "Margin Account/Trade" - }, - { - "name": "Market", - "item": [ - { - "name": "Test Connectivity", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/ping", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "ping" - ] - }, - "description": "Test connectivity to the Rest API.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Check Server Time", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/time", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "time" - ] - }, - "description": "Test connectivity to the Rest API and get the current server time.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Exchange Information", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/exchangeInfo", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "exchangeInfo" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, - { - "key": "symbols", - "value": "[\"BTCUSDT\",\"BNBBTC\"]", - "disabled": true - }, - { - "key": "permissions", - "value": "", - "description": "Display symbols with the permissions matching provided parameter. (eg.SPOT, MARGIN, LEVERAGED)", - "disabled": true - } - ] - }, - "description": "Current exchange trading rules and symbol information\n\n- If any symbol provided in either symbol or symbols do not exist, the endpoint will throw an error.\n\nWeight(IP): 10" - }, - "response": [] - }, - { - "name": "Order Book", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/depth?symbol=BNBUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "depth" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "limit", - "value": "100", - "description": "If limit > 5000, then the response will truncate to 5000", - "disabled": true - } - ] - }, - "description": "| Limit | Weight(IP) |\n|---------------------|-------------|\n| 1-100 | 1 |\n| 101-500 | 5 |\n| 501-1000 | 10 |\n| 1001-5000 | 50 |" - }, - "response": [] - }, - { - "name": "Recent Trades List", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/trades?symbol=BNBUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "trades" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", - "disabled": true - } - ] - }, - "description": "Get recent trades.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Old Trade Lookup (MARKET_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/api/v3/historicalTrades?symbol=BNBUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "historicalTrades" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", - "disabled": true - }, - { - "key": "fromId", - "value": "", - "description": "Trade id to fetch from. Default gets most recent trades.", - "disabled": true - } - ] - }, - "description": "Get older market trades.\n\nWeight(IP): 5" - }, - "response": [] - }, - { - "name": "Compressed/Aggregate Trades List", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/aggTrades?symbol=BNBUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "aggTrades" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "fromId", - "value": "", - "description": "Trade id to fetch from. Default gets most recent trades.", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", - "disabled": true - } - ] - }, - "description": "Get compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.\n- If `startTime` and `endTime` are sent, time between startTime and endTime must be less than 1 hour.\n- If `fromId`, `startTime`, and `endTime` are not sent, the most recent aggregate trades will be returned.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Kline/Candlestick Data", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/klines?symbol=BNBUSDT&interval=", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "klines" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "interval", - "value": "", - "description": "kline intervals" - }, - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "timeZone", - "value": "", - "disabled": true - }, - { - "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", - "disabled": true - } - ] - }, - "description": "Kline/candlestick bars for a symbol.\nKlines are uniquely identified by their open time.\n\n- If `startTime` and `endTime` are not sent, the most recent klines are returned.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "UIKlines", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/uiKlines?symbol=BNBUSDT&interval=", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "uiKlines" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT" - }, - { - "key": "interval", - "value": "", - "description": "kline intervals" - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "disabled": true - }, - { - "key": "timeZone", - "value": "", - "disabled": true - }, - { - "key": "limit", - "value": "500", - "description": "Default 500; max 1000.", - "disabled": true - } - ] - }, - "description": "The request is similar to klines having the same parameters and response.\n\nuiKlines return modified kline data, optimized for presentation of candlestick charts." - }, - "response": [] - }, - { - "name": "Current Average Price", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/avgPrice?symbol=BNBUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "avgPrice" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - } - ] - }, - "description": "Current average price for a symbol.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "24hr Ticker Price Change Statistics", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/ticker/24hr", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "ticker", - "24hr" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, - { - "key": "symbols", - "value": "", - "disabled": true - }, - { - "key": "type", - "value": "BNBUSDT", - "description": "Supported values: FULL or MINI.\nIf none provided, the default is FULL", - "disabled": true - } - ] - }, - "description": "24 hour rolling window price change statistics. Careful when accessing this with no symbol.\n\n- If the symbol is not sent, tickers for all symbols will be returned in an array.\n\nWeight(IP):\n- `1` for a single symbol;\n- `40` when the symbol parameter is omitted;" - }, - "response": [] - }, - { - "name": "Symbol Price Ticker", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/ticker/price", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "ticker", - "price" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, - { - "key": "symbols", - "value": "", - "disabled": true - } - ] - }, - "description": "Latest price for a symbol or symbols.\n\n- If the symbol is not sent, prices for all symbols will be returned in an array.\n\nWeight(IP):\n- `1` for a single symbol;\n- `2` when the symbol parameter is omitted;" - }, - "response": [] - }, - { - "name": "Symbol Order Book Ticker", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/ticker/bookTicker", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "ticker", - "bookTicker" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, - { - "key": "symbols", - "value": "", - "disabled": true - } - ] - }, - "description": "Best price/qty on the order book for a symbol or symbols.\n\n- If the symbol is not sent, bookTickers for all symbols will be returned in an array.\n\nWeight(IP):\n- `1` for a single symbol;\n- `2` when the symbol parameter is omitted;" - }, - "response": [] - }, - { - "name": "Rolling window price change statistics", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/ticker", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "ticker" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, - { - "key": "symbols", - "value": "", - "description": "Either symbol or symbols must be provided\nExamples of accepted format for the symbols parameter: [\"BTCUSDT\",\"BNBUSDT\"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D.\n\nThe maximum number of symbols allowed in a request is 100.", - "disabled": true - }, - { - "key": "windowSize", - "value": "", - "description": "Defaults to 1d if no parameter provided.\nSupported windowSize values:\n1m,2m....59m for minutes\n1h, 2h....23h - for hours\n1d...7d - for days.\n\nUnits cannot be combined (e.g. 1d2h is not allowed)", - "disabled": true - }, - { - "key": "type", - "value": "", - "description": "Supported values: FULL or MINI.\nIf none provided, the default is FULL", - "disabled": true - } - ] - }, - "description": "The window used to compute statistics is typically slightly wider than requested windowSize.\n\nopenTime for /api/v3/ticker always starts on a minute, while the closeTime is the current time of the request. As such, the effective window might be up to 1 minute wider than requested.\n\nE.g. If the closeTime is 1641287867099 (January 04, 2022 09:17:47:099 UTC) , and the windowSize is 1d. the openTime will be: 1641201420000 (January 3, 2022, 09:17:00 UTC)\n\nWeight(IP): 2 for each requested symbol regardless of windowSize.\n\nThe weight for this request will cap at 100 once the number of symbols in the request is more than 50." - }, - "response": [] - }, - { - "name": "Trading Day Ticker", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{url}}/api/v3/ticker/tradingDay?symbol=BNBUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "ticker", - "tradingDay" - ], - "query": [ - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" - }, - { - "key": "symbols", - "value": "", - "description": "Either symbol or symbols must be provided\nExamples of accepted format for the symbols parameter: [\"BTCUSDT\",\"BNBUSDT\"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D.\n\nThe maximum number of symbols allowed in a request is 100.", - "disabled": true - }, - { - "key": "timeZone", - "value": "", - "description": "0 (UTC)", - "disabled": true - }, - { - "key": "type", - "value": "", - "description": "Supported values: FULL or MINI.\nIf none provided, the default is FULL", - "disabled": true - } - ] - }, - "description": "" - }, - "response": [] - } - ], - "description": "Market Data" - }, - { - "name": "Mining", - "item": [ - { - "name": "Acquiring Algorithm (MARKET_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/pub/algoList", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "pub", - "algoList" - ] - }, - "description": "Weight(IP): 1" - }, - "response": [] - }, - { - "name": "Acquiring CoinName (MARKET_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/pub/coinList", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "pub", - "coinList" - ] - }, - "description": "Weight(IP): 1" - }, - "response": [] - }, - { - "name": "Request for Detail Miner List (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/worker/detail?algo=&userName=&workerName=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "worker", - "detail" - ], - "query": [ - { - "key": "algo", - "value": "", - "description": "Algorithm(sha256)" - }, - { - "key": "userName", - "value": "", - "description": "Mining Account" - }, - { - "key": "workerName", - "value": "", - "description": "Miner’s name" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Weight(IP): 5" - }, - "response": [] - }, - { - "name": "Request for Miner List (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/worker/list?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "worker", - "list" - ], - "query": [ - { - "key": "algo", - "value": "", - "description": "Algorithm(sha256)" - }, - { - "key": "userName", - "value": "", - "description": "Mining Account" - }, - { - "key": "pageIndex", - "value": "", - "description": "Page number, default is first page, start form 1", - "disabled": true - }, - { - "key": "sort", - "value": "", - "description": "sort sequence(default=0)0 positive sequence, 1 negative sequence", - "disabled": true - }, - { - "key": "sortColumn", - "value": "", - "description": "Sort by( default 1): 1: miner name, 2: real-time computing power, 3: daily average computing power, 4: real-time rejection rate, 5: last submission time", - "disabled": true - }, - { - "key": "workerStatus", - "value": "", - "description": "miners status(default=0)0 all, 1 valid, 2 invalid, 3 failure", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Weight(IP): 5" - }, - "response": [] - }, - { - "name": "Earnings List (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/payment/list?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "payment", - "list" - ], - "query": [ - { - "key": "algo", - "value": "", - "description": "Algorithm(sha256)" - }, - { - "key": "userName", - "value": "", - "description": "Mining Account" - }, - { - "key": "coin", - "value": "BNB", - "description": "Coin name", - "disabled": true - }, - { - "key": "startDate", - "value": "", - "description": "Search date, millisecond timestamp, while empty query all", - "disabled": true - }, - { - "key": "endDate", - "value": "", - "description": "Search date, millisecond timestamp, while empty query all", - "disabled": true - }, - { - "key": "pageIndex", - "value": "", - "description": "Page number, default is first page, start form 1", - "disabled": true - }, - { - "key": "pageSize", - "value": "", - "description": "Number of pages, minimum 10, maximum 200", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Weight(IP): 5" - }, - "response": [] - }, - { - "name": "Extra Bonus List (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/payment/other?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "payment", - "other" - ], - "query": [ - { - "key": "algo", - "value": "", - "description": "Algorithm(sha256)" - }, - { - "key": "userName", - "value": "", - "description": "Mining Account" - }, - { - "key": "coin", - "value": "BNB", - "description": "Coin name", - "disabled": true - }, - { - "key": "startDate", - "value": "", - "description": "Search date, millisecond timestamp, while empty query all", - "disabled": true - }, - { - "key": "endDate", - "value": "", - "description": "Search date, millisecond timestamp, while empty query all", - "disabled": true - }, - { - "key": "pageIndex", - "value": "", - "description": "Page number, default is first page, start form 1", - "disabled": true - }, - { - "key": "pageSize", - "value": "", - "description": "Number of pages, minimum 10, maximum 200", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Weight(IP): 5" - }, - "response": [] - }, - { - "name": "Hashrate Resale List (USER_DATA)", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/mining/hash-transfer/config/details/list?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "mining", - "hash-transfer", - "config", - "details", - "list" - ], - "query": [ - { - "key": "pageIndex", - "value": "", - "description": "Page number, default is first page, start form 1", - "disabled": true - }, - { - "key": "pageSize", + "key": "timeZone", "value": "", - "description": "Number of pages, minimum 10, maximum 200", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "0 (UTC)", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "key": "type", + "value": "", + "description": "Supported values: FULL or MINI.\nIf none provided, the default is FULL", + "disabled": true } ] }, - "description": "Weight(IP): 5" + "description": "" }, "response": [] - }, + } + ], + "description": "Market Data" + }, + { + "name": "Mining", + "item": [ { - "name": "Hashrate Resale Detail (USER_DATA)", + "name": "Acquiring Algorithm (MARKET_DATA)", "request": { "method": "GET", "header": [ @@ -9653,7 +7803,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/mining/hash-transfer/profit/details?configId=&userName=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/pub/algoList", "host": [ "{{url}}" ], @@ -9661,59 +7811,18 @@ "sapi", "v1", "mining", - "hash-transfer", - "profit", - "details" - ], - "query": [ - { - "key": "configId", - "value": "", - "description": "Mining ID" - }, - { - "key": "userName", - "value": "", - "description": "Mining Account" - }, - { - "key": "pageIndex", - "value": "", - "description": "Page number, default is first page, start form 1", - "disabled": true - }, - { - "key": "pageSize", - "value": "", - "description": "Number of pages, minimum 10, maximum 200", - "disabled": true - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } + "pub", + "algoList" ] }, - "description": "Weight(IP): 5" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Hashrate Resale Request (USER_DATA)", + "name": "Acquiring CoinName (MARKET_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -9727,7 +7836,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/mining/hash-transfer/config?userName=&algo=&toPoolUser=&hashRate=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/pub/coinList", "host": [ "{{url}}" ], @@ -9735,68 +7844,18 @@ "sapi", "v1", "mining", - "hash-transfer", - "config" - ], - "query": [ - { - "key": "userName", - "value": "", - "description": "Mining Account" - }, - { - "key": "algo", - "value": "", - "description": "Algorithm(sha256)" - }, - { - "key": "startDate", - "value": "", - "description": "Search date, millisecond timestamp, while empty query all", - "disabled": true - }, - { - "key": "endDate", - "value": "", - "description": "Search date, millisecond timestamp, while empty query all", - "disabled": true - }, - { - "key": "toPoolUser", - "value": "", - "description": "Mining Account" - }, - { - "key": "hashRate", - "value": "", - "description": "Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000)" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } + "pub", + "coinList" ] }, - "description": "Weight(IP): 5" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Cancel hashrate resale configuration (USER_DATA)", + "name": "Request for Detail Miner List (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -9810,7 +7869,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/mining/hash-transfer/config/cancel?configId=&userName=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/worker/detail?algo=&userName=&workerName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -9818,21 +7877,25 @@ "sapi", "v1", "mining", - "hash-transfer", - "config", - "cancel" + "worker", + "detail" ], "query": [ { - "key": "configId", + "key": "algo", "value": "", - "description": "Mining ID" + "description": "Algorithm(sha256)" }, { "key": "userName", "value": "", "description": "Mining Account" }, + { + "key": "workerName", + "value": "", + "description": "Miner’s name" + }, { "key": "recvWindow", "value": "5000", @@ -9856,7 +7919,7 @@ "response": [] }, { - "name": "Statistic List (USER_DATA)", + "name": "Request for Miner List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -9872,7 +7935,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/mining/statistics/user/status?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/worker/list?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -9880,9 +7943,8 @@ "sapi", "v1", "mining", - "statistics", - "user", - "status" + "worker", + "list" ], "query": [ { @@ -9895,6 +7957,30 @@ "value": "", "description": "Mining Account" }, + { + "key": "pageIndex", + "value": "", + "description": "Page number, default is first page, start form 1", + "disabled": true + }, + { + "key": "sort", + "value": "", + "description": "sort sequence(default=0)0 positive sequence, 1 negative sequence", + "disabled": true + }, + { + "key": "sortColumn", + "value": "", + "description": "Sort by( default 1): 1: miner name, 2: real-time computing power, 3: daily average computing power, 4: real-time rejection rate, 5: last submission time", + "disabled": true + }, + { + "key": "workerStatus", + "value": "", + "description": "miners status(default=0)0 all, 1 valid, 2 invalid, 3 failure", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -9918,7 +8004,7 @@ "response": [] }, { - "name": "Account List (USER_DATA)", + "name": "Earnings List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -9934,7 +8020,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/mining/statistics/user/list?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/payment/list?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -9942,8 +8028,7 @@ "sapi", "v1", "mining", - "statistics", - "user", + "payment", "list" ], "query": [ @@ -9957,6 +8042,36 @@ "value": "", "description": "Mining Account" }, + { + "key": "coin", + "value": "BNB", + "description": "Coin name", + "disabled": true + }, + { + "key": "startDate", + "value": "", + "description": "Search date, millisecond timestamp, while empty query all", + "disabled": true + }, + { + "key": "endDate", + "value": "", + "description": "Search date, millisecond timestamp, while empty query all", + "disabled": true + }, + { + "key": "pageIndex", + "value": "", + "description": "Page number, default is first page, start form 1", + "disabled": true + }, + { + "key": "pageSize", + "value": "", + "description": "Number of pages, minimum 10, maximum 200", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -9980,7 +8095,7 @@ "response": [] }, { - "name": "Mining Account Earning (USER_DATA)", + "name": "Extra Bonus List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -9996,7 +8111,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/mining/payment/uid?algo=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/payment/other?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -10005,7 +8120,7 @@ "v1", "mining", "payment", - "uid" + "other" ], "query": [ { @@ -10013,6 +8128,17 @@ "value": "", "description": "Algorithm(sha256)" }, + { + "key": "userName", + "value": "", + "description": "Mining Account" + }, + { + "key": "coin", + "value": "BNB", + "description": "Coin name", + "disabled": true + }, { "key": "startDate", "value": "", @@ -10058,15 +8184,9 @@ "description": "Weight(IP): 5" }, "response": [] - } - ], - "description": "Mining Endpoints" - }, - { - "name": "NFT", - "item": [ + }, { - "name": "Get NFT Transaction History (USER_DATA)", + "name": "Hashrate Resale List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10082,45 +8202,30 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/nft/history/transactions?orderType=1×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/hash-transfer/config/details/list?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "nft", - "history", - "transactions" + "mining", + "hash-transfer", + "config", + "details", + "list" ], "query": [ { - "key": "orderType", - "value": "1", - "description": "0: purchase order, 1: sell order, 2: royalty income, 3: primary market order, 4: mint fee" - }, - { - "key": "startTime", + "key": "pageIndex", "value": "", - "description": "UTC timestamp in ms", + "description": "Page number, default is first page, start form 1", "disabled": true }, { - "key": "endTime", + "key": "pageSize", "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "limit", - "value": "50", - "description": "Default 50, Max 50", - "disabled": true - }, - { - "key": "page", - "value": "1", - "description": "Default 1", + "description": "Number of pages, minimum 10, maximum 200", "disabled": true }, { @@ -10141,12 +8246,12 @@ } ] }, - "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n\nWeight(UID): 3000" + "description": "Weight(IP): 5" }, "response": [] }, { - "name": "Get NFT Deposit History (USER_DATA)", + "name": "Hashrate Resale Detail (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10162,40 +8267,39 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/nft/history/deposit?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/hash-transfer/profit/details?configId=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "nft", - "history", - "deposit" + "mining", + "hash-transfer", + "profit", + "details" ], "query": [ { - "key": "startTime", + "key": "configId", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "Mining ID" }, { - "key": "endTime", + "key": "userName", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "Mining Account" }, { - "key": "limit", - "value": "50", - "description": "Default 50, Max 50", + "key": "pageIndex", + "value": "", + "description": "Page number, default is first page, start form 1", "disabled": true }, { - "key": "page", - "value": "1", - "description": "Default 1", + "key": "pageSize", + "value": "", + "description": "Number of pages, minimum 10, maximum 200", "disabled": true }, { @@ -10216,14 +8320,14 @@ } ] }, - "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n\nWeight(UID): 3000" + "description": "Weight(IP): 5" }, "response": [] }, { - "name": "Get NFT Withdraw History (USER_DATA)", + "name": "Hashrate Resale Request (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -10237,42 +8341,50 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/nft/history/withdraw?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/hash-transfer/config?userName=&algo=&toPoolUser=&hashRate=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "nft", - "history", - "withdraw" + "mining", + "hash-transfer", + "config" ], "query": [ { - "key": "startTime", + "key": "userName", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "Mining Account" }, { - "key": "endTime", + "key": "algo", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "Algorithm(sha256)" }, { - "key": "limit", - "value": "50", - "description": "Default 50, Max 50", + "key": "startDate", + "value": "", + "description": "Search date, millisecond timestamp, while empty query all", "disabled": true }, { - "key": "page", - "value": "1", - "description": "Default 1", + "key": "endDate", + "value": "", + "description": "Search date, millisecond timestamp, while empty query all", "disabled": true }, + { + "key": "toPoolUser", + "value": "", + "description": "Mining Account" + }, + { + "key": "hashRate", + "value": "", + "description": "Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000)" + }, { "key": "recvWindow", "value": "5000", @@ -10291,14 +8403,14 @@ } ] }, - "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n\nWeight(UID): 3000" + "description": "Weight(IP): 5" }, "response": [] }, { - "name": "Get NFT Asset (USER_DATA)", + "name": "Cancel hashrate resale configuration (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -10312,29 +8424,28 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/nft/user/getAsset?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/hash-transfer/config/cancel?configId=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "nft", - "user", - "getAsset" + "mining", + "hash-transfer", + "config", + "cancel" ], "query": [ { - "key": "limit", - "value": "50", - "description": "Default 50, Max 50", - "disabled": true + "key": "configId", + "value": "", + "description": "Mining ID" }, { - "key": "page", - "value": "1", - "description": "Default 1", - "disabled": true + "key": "userName", + "value": "", + "description": "Mining Account" }, { "key": "recvWindow", @@ -10354,18 +8465,12 @@ } ] }, - "description": "Weight(UID): 3000" + "description": "Weight(IP): 5" }, "response": [] - } - ], - "description": "NFT Endpoints" - }, - { - "name": "Pay", - "item": [ + }, { - "name": "Get Pay Trade History (USER_DATA)", + "name": "Statistic List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10381,34 +8486,28 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/pay/transactions?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/statistics/user/status?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "pay", - "transactions" + "mining", + "statistics", + "user", + "status" ], "query": [ { - "key": "startTime", + "key": "algo", "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "description": "Algorithm(sha256)" }, { - "key": "endTime", + "key": "userName", "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "limit", - "value": "100", - "description": "default 100, max 100", - "disabled": true + "description": "Mining Account" }, { "key": "recvWindow", @@ -10428,18 +8527,12 @@ } ] }, - "description": "- If startTimestamp and endTimestamp are not sent, the recent 90 days' data will be returned.\n- The max interval between startTimestamp and endTimestamp is 90 days.\n- Support for querying orders within the last 18 months.\n\nWeight(UID): 3000" + "description": "Weight(IP): 5" }, "response": [] - } - ], - "description": "Pay Endpoints" - }, - { - "name": "Portfolio Margin", - "item": [ + }, { - "name": "Get Classic Portfolio Margin Account Info (USER_DATA)", + "name": "Account List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10455,17 +8548,29 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/account?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/mining/statistics/user/list?algo=&userName=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "account" + "mining", + "statistics", + "user", + "list" ], "query": [ + { + "key": "algo", + "value": "", + "description": "Algorithm(sha256)" + }, + { + "key": "userName", + "value": "", + "description": "Mining Account" + }, { "key": "recvWindow", "value": "5000", @@ -10484,12 +8589,12 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Weight(IP): 5" }, "response": [] }, { - "name": "Classic Portfolio Margin Collateral Rate (MARKET_DATA)", + "name": "Mining Account Earning (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10505,23 +8610,77 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/collateralRate", + "raw": "{{url}}/sapi/v1/mining/payment/uid?algo=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "collateralRate" + "mining", + "payment", + "uid" + ], + "query": [ + { + "key": "algo", + "value": "", + "description": "Algorithm(sha256)" + }, + { + "key": "startDate", + "value": "", + "description": "Search date, millisecond timestamp, while empty query all", + "disabled": true + }, + { + "key": "endDate", + "value": "", + "description": "Search date, millisecond timestamp, while empty query all", + "disabled": true + }, + { + "key": "pageIndex", + "value": "", + "description": "Page number, default is first page, start form 1", + "disabled": true + }, + { + "key": "pageSize", + "value": "", + "description": "Number of pages, minimum 10, maximum 200", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } ] }, - "description": "Portfolio Margin Collateral Rate.\n\nWeight(IP): 50" + "description": "Weight(IP): 5" }, "response": [] - }, + } + ], + "description": "Mining Endpoints" + }, + { + "name": "NFT", + "item": [ { - "name": "Query Classic Portfolio Margin Bankruptcy Loan Amount (USER_DATA)", + "name": "Get NFT Transaction History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10537,17 +8696,47 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/pmLoan?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/nft/history/transactions?orderType=1×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "pmLoan" + "nft", + "history", + "transactions" ], "query": [ + { + "key": "orderType", + "value": "1", + "description": "0: purchase order, 1: sell order, 2: royalty income, 3: primary market order, 4: mint fee" + }, + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "50", + "description": "Default 50, Max 50", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Default 1", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -10566,14 +8755,14 @@ } ] }, - "description": "Query Portfolio Margin Bankruptcy Loan Amount.\n\nWeight(UID): 500" + "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Classic Portfolio Margin Bankruptcy Loan Repay", + "name": "Get NFT Deposit History (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -10587,45 +8776,66 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/repay?from=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/nft/history/deposit?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "repay" + "nft", + "history", + "deposit" ], "query": [ { - "key": "from", + "key": "startTime", "value": "", - "description": "The value cannot be greater than 60000" + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "50", + "description": "Default 50, Max 50", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Default 1", + "disabled": true }, { "key": "recvWindow", "value": "5000", - "description": "UTC timestamp in ms", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "Signature" + "description": "UTC timestamp in ms" }, { "key": "signature", - "value": "{{signature}}" + "value": "{{signature}}", + "description": "Signature" } ] }, - "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" + "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Query Classic Portfolio Margin Negative Balance Interest History(USER_DATA)", + "name": "Get NFT Withdraw History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10641,36 +8851,40 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/interest-history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/nft/history/withdraw?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "interest-history" + "nft", + "history", + "withdraw" ], "query": [ { - "key": "asset", + "key": "startTime", "value": "", + "description": "UTC timestamp in ms", "disabled": true }, { - "key": "startTime", + "key": "endTime", "value": "", + "description": "UTC timestamp in ms", "disabled": true }, { - "key": "endTime", - "value": "", + "key": "limit", + "value": "50", + "description": "Default 50, Max 50", "disabled": true }, { - "key": "size", - "value": "", - "description": "Default:10 Max:100", + "key": "page", + "value": "1", + "description": "Default 1", "disabled": true }, { @@ -10691,12 +8905,12 @@ } ] }, - "description": "Query interest history of negative balance for portfolio margin.\n\nWeight(IP): 50" + "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Query Portfolio Margin Asset Index Price (MARKET_DATA)", + "name": "Get NFT Asset (USER_DATA)", "request": { "method": "GET", "header": [ @@ -10712,22 +8926,41 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/asset-index-price?signature={{signature}}", + "raw": "{{url}}/sapi/v1/nft/user/getAsset?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "asset-index-price" + "nft", + "user", + "getAsset" ], "query": [ { - "key": "asset", - "value": "", + "key": "limit", + "value": "50", + "description": "Default 50, Max 50", + "disabled": true + }, + { + "key": "page", + "value": "1", + "description": "Default 1", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", "disabled": true }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, { "key": "signature", "value": "{{signature}}", @@ -10735,14 +8968,20 @@ } ] }, - "description": "Query Portfolio Margin Asset Index Price\n\nWeight(IP): 1 if send asset or 50 if not send asset" + "description": "Weight(UID): 3000" }, "response": [] - }, + } + ], + "description": "NFT Endpoints" + }, + { + "name": "Pay", + "item": [ { - "name": "Fund Auto-collection (TRADE)", + "name": "Get Pay Trade History (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -10756,17 +8995,35 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/auto-collection?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/pay/transactions?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "portfolio", - "auto-collection" + "pay", + "transactions" ], "query": [ + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "limit", + "value": "100", + "description": "default 100, max 100", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -10785,14 +9042,20 @@ } ] }, - "description": "Transfers all assets from Futures Account to Margin account\n\nThe BNB would not be collected from UM-PM account to the Portfolio Margin account.\n\nYou can only use this function 500 times per hour in a rolling manner.\n\nWeight(IP): 1500" + "description": "- If startTimestamp and endTimestamp are not sent, the recent 90 days' data will be returned.\n- The max interval between startTimestamp and endTimestamp is 90 days.\n- Support for querying orders within the last 18 months.\n\nWeight(UID): 3000" }, "response": [] - }, + } + ], + "description": "Pay Endpoints" + }, + { + "name": "Portfolio Margin", + "item": [ { - "name": "Fund Collection by Asset (TRADE)", + "name": "Get Classic Portfolio Margin Account Info (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -10806,7 +9069,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/asset-collection?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/account?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -10814,14 +9077,9 @@ "sapi", "v1", "portfolio", - "asset-collection" + "account" ], "query": [ - { - "key": "asset", - "value": "", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -10840,14 +9098,14 @@ } ] }, - "description": "Transfers specific asset from Futures Account to Margin account\n\nThe BNB transfer is not be supported\n\nWeight(IP): 60" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "BNB transfer (TRADE)", + "name": "Classic Portfolio Margin Collateral Rate (MARKET_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -10861,7 +9119,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/bnb-transfer?amount=&transferSide=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/collateralRate", "host": [ "{{url}}" ], @@ -10869,44 +9127,17 @@ "sapi", "v1", "portfolio", - "bnb-transfer" - ], - "query": [ - { - "key": "amount", - "value": "" - }, - { - "key": "transferSide", - "value": "", - "description": "TO_UM,FROM_UM" - }, - { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", - "disabled": true - }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, - { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } + "collateralRate" ] }, - "description": "BNB transfer can be between Margin Account and USDM Account\n\nYou can only use this function 2 times per 10 minutes in a rolling manner\n\nWeight(IP): 1500" + "description": "Portfolio Margin Collateral Rate.\n\nWeight(IP): 50" }, "response": [] }, { - "name": "Change Auto-repay-futures Status (TRADE)", + "name": "Query Classic Portfolio Margin Bankruptcy Loan Amount (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -10920,7 +9151,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/repay-futures-switch?autoRepay=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/pmLoan?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -10928,14 +9159,9 @@ "sapi", "v1", "portfolio", - "repay-futures-switch" + "pmLoan" ], "query": [ - { - "key": "autoRepay", - "value": "", - "description": "Default: true; false for turn off the auto-repay futures negative balance function" - }, { "key": "recvWindow", "value": "5000", @@ -10954,14 +9180,14 @@ } ] }, - "description": "Change Auto-repay-futures Status\n\nWeight(IP): 1500" + "description": "Query Portfolio Margin Bankruptcy Loan Amount.\n\nWeight(UID): 500" }, "response": [] }, { - "name": "Get Auto-repay-futures Status (USER_DATA)", + "name": "Classic Portfolio Margin Bankruptcy Loan Repay", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -10975,7 +9201,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/repay-futures-switch?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/repay?from=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -10983,35 +9209,39 @@ "sapi", "v1", "portfolio", - "repay-futures-switch" + "repay" ], "query": [ + { + "key": "from", + "value": "", + "description": "The value cannot be greater than 60000" + }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", + "description": "UTC timestamp in ms", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "Signature" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "Query Auto-repay-futures Status\n\nWeight(IP): 30" + "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" }, "response": [] }, { - "name": "Repay futures Negative Balance (USER_DATA)", + "name": "Query Classic Portfolio Margin Negative Balance Interest History(USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -11025,7 +9255,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/repay-futures-negative-balance?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/interest-history?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -11033,9 +9263,30 @@ "sapi", "v1", "portfolio", - "repay-futures-negative-balance" + "interest-history" ], "query": [ + { + "key": "asset", + "value": "", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true + }, + { + "key": "size", + "value": "", + "description": "Default:10 Max:100", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -11054,12 +9305,12 @@ } ] }, - "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" + "description": "Query interest history of negative balance for portfolio margin.\n\nWeight(IP): 50" }, "response": [] }, { - "name": "Get Portfolio Margin Asset Leverage (USER_DATA)", + "name": "Query Portfolio Margin Asset Index Price (MARKET_DATA)", "request": { "method": "GET", "header": [ @@ -11075,7 +9326,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/margin-asset-leverage?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/asset-index-price?signature={{signature}}", "host": [ "{{url}}" ], @@ -11083,20 +9334,14 @@ "sapi", "v1", "portfolio", - "margin-asset-leverage" + "asset-index-price" ], "query": [ { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "asset", + "value": "", "disabled": true }, - { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" - }, { "key": "signature", "value": "{{signature}}", @@ -11104,20 +9349,14 @@ } ] }, - "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" + "description": "Query Portfolio Margin Asset Index Price\n\nWeight(IP): 1 if send asset or 50 if not send asset" }, "response": [] - } - ], - "description": "The Binance Portfolio Margin Program is a cross-asset margin program supporting consolidated margin balance across trading products with over 200+ effective crypto collaterals. It is designed for professional traders, market makers, and institutional users looking to actively trade & hedge cross-asset and optimize risk-management in a consolidated setup." - }, - { - "name": "Rebate", - "item": [ + }, { - "name": "Get Spot Rebate History Records (USER_DATA)", + "name": "Fund Auto-collection (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -11131,35 +9370,17 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/rebate/taxQuery?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/auto-collection?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "rebate", - "taxQuery" + "portfolio", + "auto-collection" ], "query": [ - { - "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true - }, - { - "key": "page", - "value": "1", - "description": "default 1", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -11178,20 +9399,14 @@ } ] }, - "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n- The earliest startTime is supported on June 10, 2020\n\nWeight(UID): 3000" + "description": "Transfers all assets from Futures Account to Margin account\n\nThe BNB would not be collected from UM-PM account to the Portfolio Margin account.\n\nYou can only use this function 500 times per hour in a rolling manner.\n\nWeight(IP): 1500" }, "response": [] - } - ], - "description": "Rebate Endpoints" - }, - { - "name": "Savings", - "item": [ + }, { - "name": "Get Fixed and Activity Project List (USER_DATA)", + "name": "Fund Collection by Asset (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -11205,56 +9420,20 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/project/list?type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/asset-collection?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "lending", - "project", - "list" + "portfolio", + "asset-collection" ], "query": [ { "key": "asset", - "value": "BNB", - "disabled": true - }, - { - "key": "type", - "value": "", - "description": "\"ACTIVITY\", \"CUSTOMIZED_FIXED\"" - }, - { - "key": "status", - "value": "", - "description": "Default `ALL`", - "disabled": true - }, - { - "key": "isSortAsc", "value": "", - "description": "default \"true\"", - "disabled": true - }, - { - "key": "sortBy", - "value": "", - "description": "Default `START_TIME`", - "disabled": true - }, - { - "key": "current", - "value": "1", - "description": "Current querying page. Start from 1. Default:1", - "disabled": true - }, - { - "key": "size", - "value": "100", - "description": "Default:10 Max:100", "disabled": true }, { @@ -11275,12 +9454,12 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Transfers specific asset from Futures Account to Margin account\n\nThe BNB transfer is not be supported\n\nWeight(IP): 60" }, "response": [] }, { - "name": "Purchase Fixed/Activity Project (USER_DATA)", + "name": "BNB transfer (TRADE)", "request": { "method": "POST", "header": [ @@ -11296,25 +9475,25 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/customizedFixed/purchase?projectId=&lot=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/bnb-transfer?amount=&transferSide=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "lending", - "customizedFixed", - "purchase" + "portfolio", + "bnb-transfer" ], "query": [ { - "key": "projectId", + "key": "amount", "value": "" }, { - "key": "lot", - "value": "" + "key": "transferSide", + "value": "", + "description": "TO_UM,FROM_UM" }, { "key": "recvWindow", @@ -11334,14 +9513,14 @@ } ] }, - "description": "Weight(IP): 1" + "description": "BNB transfer can be between Margin Account and USDM Account\n\nYou can only use this function 2 times per 10 minutes in a rolling manner\n\nWeight(IP): 1500" }, "response": [] }, { - "name": "Get Fixed/Activity Project Position (USER_DATA)", + "name": "Change Auto-repay-futures Status (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -11355,33 +9534,21 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/project/position/list?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/repay-futures-switch?autoRepay=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "lending", - "project", - "position", - "list" + "portfolio", + "repay-futures-switch" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "projectId", - "value": "", - "disabled": true - }, - { - "key": "status", + "key": "autoRepay", "value": "", - "description": "Default `ALL`", - "disabled": true + "description": "Default: true; false for turn off the auto-repay futures negative balance function" }, { "key": "recvWindow", @@ -11401,14 +9568,14 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Change Auto-repay-futures Status\n\nWeight(IP): 1500" }, "response": [] }, { - "name": "Change Fixed/Activity Position to Daily Position (USER_DATA)", + "name": "Get Auto-repay-futures Status (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -11421,31 +9588,18 @@ "type": "text" } ], - "url": { - "raw": "{{url}}/sapi/v1/lending/positionChanged?projectId=&lot=×tamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "lending", - "positionChanged" - ], - "query": [ - { - "key": "projectId", - "value": "" - }, - { - "key": "lot", - "value": "" - }, - { - "key": "positionId", - "value": "", - "disabled": true - }, + "url": { + "raw": "{{url}}/sapi/v1/portfolio/repay-futures-switch?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "portfolio", + "repay-futures-switch" + ], + "query": [ { "key": "recvWindow", "value": "5000", @@ -11464,20 +9618,14 @@ } ] }, - "description": "- PositionId is mandatory parameter for fixed position.\n\nWeight(IP): 1" + "description": "Query Auto-repay-futures Status\n\nWeight(IP): 30" }, "response": [] - } - ], - "description": "Savings Endpoints" - }, - { - "name": "Staking", - "item": [ + }, { - "name": "Get Staking Product List (USER_DATA)", + "name": "Repay futures Negative Balance (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -11491,39 +9639,17 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/productList?product=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/repay-futures-negative-balance?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "productList" + "portfolio", + "repay-futures-negative-balance" ], "query": [ - { - "key": "product", - "value": "", - "description": "* `STAKING` - for Locked Staking\n* `F_DEFI` - for flexible DeFi Staking\n* `L_DEFI` - for locked DeFi Staking" - }, - { - "key": "asset", - "value": "", - "disabled": true - }, - { - "key": "current", - "value": "", - "description": "Currently querying page. Start from 1. Default:1", - "disabled": true - }, - { - "key": "size", - "value": "", - "description": "Default:10, Max:100", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -11542,14 +9668,14 @@ } ] }, - "description": "Get available Staking product list.\n\nWeight(IP): 1" + "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" }, "response": [] }, { - "name": "Purchase Staking Product (USER_DATA)", + "name": "Get Portfolio Margin Asset Leverage (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -11563,36 +9689,17 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/purchase?product=&productId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/margin-asset-leverage?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "purchase" + "portfolio", + "margin-asset-leverage" ], "query": [ - { - "key": "product", - "value": "", - "description": "* `STAKING` - for Locked Staking\n* `F_DEFI` - for flexible DeFi Staking\n* `L_DEFI` - for locked DeFi Staking" - }, - { - "key": "productId", - "value": "" - }, - { - "key": "amount", - "value": "" - }, - { - "key": "renewable", - "value": "", - "description": "true or false, default false. Active if product is `STAKING` or `L_DEFI`", - "disabled": true - }, { "key": "recvWindow", "value": "5000", @@ -11611,14 +9718,20 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" }, "response": [] - }, + } + ], + "description": "The Binance Portfolio Margin Program is a cross-asset margin program supporting consolidated margin balance across trading products with over 200+ effective crypto collaterals. It is designed for professional traders, market makers, and institutional users looking to actively trade & hedge cross-asset and optimize risk-management in a consolidated setup." + }, + { + "name": "Rebate", + "item": [ { - "name": "Redeem Staking Product (USER_DATA)", + "name": "Get Spot Rebate History Records (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -11632,36 +9745,33 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/redeem?product=&productId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/rebate/taxQuery?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "redeem" + "rebate", + "taxQuery" ], "query": [ { - "key": "product", + "key": "startTime", "value": "", - "description": "* `STAKING` - for Locked Staking\n* `F_DEFI` - for flexible DeFi Staking\n* `L_DEFI` - for locked DeFi Staking" + "description": "UTC timestamp in ms", + "disabled": true }, { - "key": "positionId", + "key": "endTime", "value": "", - "description": "Mandatory if product is `STAKING` or `L_DEFI`", + "description": "UTC timestamp in ms", "disabled": true }, { - "key": "productId", - "value": "" - }, - { - "key": "amount", - "value": "", - "description": "Mandatory if product is `F_DEFI`", + "key": "page", + "value": "1", + "description": "default 1", "disabled": true }, { @@ -11682,12 +9792,18 @@ } ] }, - "description": "Redeem Staking product. Locked staking and Locked DeFI staking belong to early redemption, redeeming in advance will result in loss of interest that you have earned.\n\nWeight(IP): 1" + "description": "- The max interval between startTime and endTime is 90 days.\n- If startTime and endTime are not sent, the recent 7 days' data will be returned.\n- The earliest startTime is supported on June 10, 2020\n\nWeight(UID): 3000" }, "response": [] - }, + } + ], + "description": "Rebate Endpoints" + }, + { + "name": "Savings", + "item": [ { - "name": "Get Staking Product Position (USER_DATA)", + "name": "Get Fixed and Activity Project List (USER_DATA)", "request": { "method": "GET", "header": [ @@ -11703,42 +9819,56 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/position?product=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/project/list?type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "position" + "lending", + "project", + "list" ], "query": [ { - "key": "product", + "key": "asset", + "value": "BNB", + "disabled": true + }, + { + "key": "type", "value": "", - "description": "* `STAKING` - for Locked Staking\n* `F_DEFI` - for flexible DeFi Staking\n* `L_DEFI` - for locked DeFi Staking" + "description": "\"ACTIVITY\", \"CUSTOMIZED_FIXED\"" }, { - "key": "productId", + "key": "status", "value": "", + "description": "Default `ALL`", "disabled": true }, { - "key": "asset", + "key": "isSortAsc", "value": "", + "description": "default \"true\"", "disabled": true }, { - "key": "current", + "key": "sortBy", "value": "", - "description": "Currently querying the page. Start from 1. Default:1", + "description": "Default `START_TIME`", + "disabled": true + }, + { + "key": "current", + "value": "1", + "description": "Current querying page. Start from 1. Default:1", "disabled": true }, { "key": "size", - "value": "", - "description": "Default:10, Max:100", + "value": "100", + "description": "Default:10 Max:100", "disabled": true }, { @@ -11764,9 +9894,9 @@ "response": [] }, { - "name": "Get Staking History (USER_DATA)", + "name": "Purchase Fixed/Activity Project (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -11780,53 +9910,25 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/stakingRecord?product=&txnType=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/customizedFixed/purchase?projectId=&lot=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "stakingRecord" + "lending", + "customizedFixed", + "purchase" ], "query": [ { - "key": "product", - "value": "", - "description": "* `STAKING` - for Locked Staking\n* `F_DEFI` - for flexible DeFi Staking\n* `L_DEFI` - for locked DeFi Staking" - }, - { - "key": "txnType", - "value": "", - "description": "`SUBSCRIPTION`, `REDEMPTION`, `INTEREST`" - }, - { - "key": "asset", - "value": "", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "disabled": true - }, - { - "key": "current", - "value": "", - "description": "Currently querying the page. Start from 1. Default:1", - "disabled": true + "key": "projectId", + "value": "" }, { - "key": "size", - "value": "", - "description": "Default:10, Max:100", - "disabled": true + "key": "lot", + "value": "" }, { "key": "recvWindow", @@ -11851,9 +9953,9 @@ "response": [] }, { - "name": "Set Auto Staking (USER_DATA)", + "name": "Get Fixed/Activity Project Position (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -11867,30 +9969,33 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/setAutoStaking?product=&positionId=&renewable=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/project/position/list?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "setAutoStaking" + "lending", + "project", + "position", + "list" ], "query": [ { - "key": "product", - "value": "", - "description": "* `STAKING` - for Locked Staking\n* `L_DEFI` - for locked DeFi Staking" + "key": "asset", + "value": "BTC" }, { - "key": "positionId", - "value": "" + "key": "projectId", + "value": "", + "disabled": true }, { - "key": "renewable", + "key": "status", "value": "", - "description": "true or false" + "description": "Default `ALL`", + "disabled": true }, { "key": "recvWindow", @@ -11910,14 +10015,14 @@ } ] }, - "description": "Set auto staking on Locked Staking or Locked DeFi Staking\n\nWeight(IP): 1" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Get Personal Left Quota of Staking Product (USER_DATA)", + "name": "Change Fixed/Activity Position to Daily Position (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -11931,29 +10036,33 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/staking/personalLeftQuota?product=&productId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/positionChanged?projectId=&lot=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "staking", - "personalLeftQuota" + "lending", + "positionChanged" ], "query": [ { - "key": "product", - "value": "", - "description": "* `STAKING` - for Locked Staking\n* `F_DEFI` - for flexible DeFi Staking\n* `L_DEFI` - for locked DeFi Staking" + "key": "projectId", + "value": "" }, { - "key": "productId", + "key": "lot", "value": "" }, { - "key": "recvWindow", + "key": "positionId", "value": "", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", "description": "The value cannot be greater than 60000", "disabled": true }, @@ -11969,11 +10078,12 @@ } ] }, - "description": "Weight(IP): 1" + "description": "- PositionId is mandatory parameter for fixed position.\n\nWeight(IP): 1" }, "response": [] } - ] + ], + "description": "Savings Endpoints" }, { "name": "Sub-Account", @@ -20586,6 +18696,12 @@ "dribblet" ], "query": [ + { + "key": "accountType", + "value": "", + "description": "SPOT or MARGIN, default SPOT", + "disabled": true + }, { "key": "startTime", "value": "", @@ -20648,6 +18764,12 @@ "dust-btc" ], "query": [ + { + "key": "accountType", + "value": "", + "description": "SPOT or MARGIN, default SPOT", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -20703,6 +18825,12 @@ "value": "", "description": "The asset being converted. For example, asset=BTC&asset=USDT" }, + { + "key": "accountType", + "value": "", + "description": "SPOT or MARGIN, default SPOT", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -21784,6 +19912,54 @@ }, "response": [] }, + { + "name": "Get symbols delist schedule for spot (MARKET_DATA)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/spot/delist-schedule?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "spot", + "delist-schedule" + ], + "query": [ + { + "key": "recvWindow", + "value": "5000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Get symbols delist schedule for spot. Weight(IP): 100" + }, + "response": [] + + }, { "name": "Fetch deposit address list with network(USER_DATA)", "request": {