diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f65671..8949d6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,75 @@ # Changelog -## 1.12.0 - 2023-08-08 + +## 1.13.0 -2023-11-16 + +#### Update +- `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 : + - `POST /fapi/v1/order` +- Add optional parameter `priceMatc`h in the endpoints below to set order's priceMatch mode: + - `POST /fapi/v1/order` +- Add optional parameter `selfTradePreventionMode` in the endpoints below to set order's STP mode: + - `POST /fapi/v1/order` +- `POST /sapi/v1/loan/vip/borrow` add field isFlexibleRate to borrow using flexible rate loan +- `POST /sapi/v1/simple-earn/flexible/subscribe` new parameter sourceAccount +- `POST /sapi/v1/simple-earn/locked/subscribe` new parameter sourceAccount +- `POST /sapi/v1/simple-earn/flexible/redeem` new parameter destAccount +- Changes to Margin Endpoint `GET /sapi/v1/margin/isolated/transfer`: + - Add request field `type` + - Delete request field `transFrom`, `transTo` +- `POST /sapi/v1/portfolio/repay` add paramater from + +#### Add +- `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 +- `GET /dapi/v1/constituents` query index constituents +- `GET /futures/data/delivery-price` query quarterly contract settlement price +- `GET /fapi/v1/fundingInfo` query adjusted funding info +- `GET /fapi/v1/constituents` query index constituents +- `GET /futures/data/delivery-price` query quarterly contract settlement price +- `GET /futures/data/basis` query basis data +- New endpoints for order placement using SOR: + - `POST /api/v3/sor/order` + - `POST /api/v3/sor/order/test` +- `GET /api/v3/myAllocations` +- `POST /sapi/v1/loan/flexible/borrow` flexible Loan borrow +- `GET /sapi/v1/loan/flexible/ongoing/orders` get flexible loan ongoing orders +- `GET /sapi/v1/loan/flexible/borrow/history` Get flexible loan borrow history +- `POST /sapi/v1/loan/flexible/repay` flexible loan repay +- `POST /sapi/v1/loan/flexible/repay/history` Get flexible loan repayment history +- `POST /sapi/v1/loan/flexible/adjust/ltv` adjust flexible Loan adjust LTV +- `GET /sapi/v1/loan/flexible/ltv/adjustment/history` Get Flexible loan LTV adjustment history +- `GET /sapi/v1/loan/flexible/loanable/data` Get flexible loan assets data +- `GET /sapi/v1/loan/flexible/collateral/data` Get flexible loan collateral assets data +- `GET /sapi/v1/margin/capital-flow` Get cross or isolated margin capital flow +- `GET /sapi/v1/portfolio/margin-asset-leverage` Get Portfolio Margin Asset Leverage +- `GET /sapi/v1/lending/auto-invest/index/info` query index details +- `GET /sapi/v1/lending/auto-invest/index/user-summary` query index linked plan position details +- `POST /sapi/v1/lending/auto-invest/one-off` One Time transaction +- `GET /sapi/v1/lending/auto-invest/one-off/status` query one-time transaction status +- `POST /sapi/v1/lending/auto-invest/redeem` index linked plan redemption +- `GET /sapi/v1/lending/auto-invest/redeem/history` query index Linked plan Redemption history +- `GET /sapi/v1/lending/auto-invest/rebalance/history` query index linked plan rebalance details +- `GET /sapi/v1/asset/wallet/balance` query user wallet balance +- `GET /sapi/v1/asset/custody/transfer-history` query user delegation history(For Master Account) +- `GET /sapi/v1/futures/histDataLink` query futures ticklevel orderbook historicak data download link +- `GET /sapi/v1/loan/vip/request/interestRate` Get Borrow Interest Rate +- `GET /sapi/v1/margin/available-inventory` Query margin available inventory +- `POST /sapi/v1/margin/manual-liquidation` Margin manual liquidation + +#### Delete +- `GET /sapi/v1/futures/loan/borrow/history` +- `GET /sapi/v1/futures/loan/repay/history` +- `GET /sapi/v2/futures/loan/wallet` +- `GET /sapi/v1/futures/loan/adjustCollateral/history` +- `GET /sapi/v1/futures/loan/liquidationHistory` +- `GET /sapi/v1/futures/loan/interestHistory` + + +## 1.12.0 - 2023-08-07 ### Spot API Collection #### Added diff --git a/collections/Binance Coin-M Futures API.postman_collection.json b/collections/Binance Coin-M Futures API.postman_collection.json index 71d223c..82617c8 100644 --- a/collections/Binance Coin-M Futures API.postman_collection.json +++ b/collections/Binance Coin-M Futures API.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "561533bd-a7c9-414a-8101-29cb7024d182", + "_postman_id": "1185515b-5855-4c79-aec9-00b7003984c8", "name": "Binance Coin-M Futures API", "description": "Binance official supported Postman collections.
\n- API documents: https://binance-docs.github.io/apidocs/futures/en/\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", @@ -1031,6 +1031,96 @@ "description": "Get present open interest of a specific symbol." }, "response": [] + }, + { + "name": "Get Funding Rate Info", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/dapi/v1/fundingInfo", + "host": [ + "{{url}}" + ], + "path": [ + "dapi", + "v1", + "fundingInfo" + ] + }, + "description": "Get present open interest of a specific symbol." + }, + "response": [] + }, + { + "name": "Query Index Price Constituents", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/dapi/v1/fundingInfo?symbol=", + "host": [ + "{{url}}" + ], + "path": [ + "dapi", + "v1", + "fundingInfo" + ], + "query": [ + { + "key": "symbol", + "value": "" + } + ] + }, + "description": "Get present open interest of a specific symbol." + }, + "response": [] + }, + { + "name": "Quarterly Contract Settlement Price", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/dapi/v1/fundingInfo?pair=", + "host": [ + "{{url}}" + ], + "path": [ + "dapi", + "v1", + "fundingInfo" + ], + "query": [ + { + "key": "pair", + "value": "" + } + ] + }, + "description": "Get present open interest of a specific symbol." + }, + "response": [] } ] }, @@ -2730,23 +2820,28 @@ }, { "key": "startTime", - "value": null, + "value": "", "disabled": true }, { "key": "endTime", - "value": null, + "value": "", + "disabled": true + }, + { + "key": "page", + "value": "", "disabled": true }, { "key": "limit", "value": "100", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { @@ -2972,6 +3067,135 @@ } }, "response": [] + }, + { + "name": "Get Download Id For Futures Transaction History (USER_DATA)", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "type": "text", + "value": "{{binance-api-key}}" + } + ], + "url": { + "raw": "{{url}}/dapi/v1/income/asyn?startTime=&endTime=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "dapi", + "v1", + "income", + "asyn" + ], + "query": [ + { + "key": "startTime", + "value": "" + }, + { + "key": "endTime", + "value": "", + "description": "The value cannot be greater than 60000" + }, + { + "key": "recvWindow", + "value": "5000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Get Futures Transaction History Download Link by Id (USER_DATA)", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "type": "text", + "value": "{{binance-api-key}}" + } + ], + "url": { + "raw": "{{url}}/dapi/v1/income/asyn?downloadId=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "dapi", + "v1", + "income", + "asyn" + ], + "query": [ + { + "key": "downloadId", + "value": "" + }, + { + "key": "recvWindow", + "value": "5000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + } + }, + "response": [] } ] }, diff --git a/collections/Binance Spot API.postman_collection.json b/collections/Binance Spot API.postman_collection.json index ac0b068..8dbdd09 100644 --- a/collections/Binance Spot API.postman_collection.json +++ b/collections/Binance Spot API.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "41cefd3a-b3d7-4fb4-b1e3-3b010bdbf070", + "_postman_id": "385fa3e1-9187-4ecd-8b67-5605b162dc79", "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", @@ -2628,22 +2628,16 @@ } }, "response": [] - } - ], - "description": "Crypto Loans Endpoints" - }, - { - "name": "Fiat", - "item": [ + }, { - "name": "Get Fiat Deposit/Withdraw 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", @@ -2652,76 +2646,64 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/fiat/orders?transactionType=0×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/borrow?loanCoin=&loanAmount=&collateralAmount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "fiat", - "orders" + "loan", + "flexible", + "borrow" ], "query": [ { - "key": "transactionType", - "value": "0", - "description": "* `0` - deposit\n* `1` - withdraw" + "key": "loanCoin", + "value": "" }, { - "key": "beginTime", - "value": "1626144956000", - "disabled": true + "key": "loanAmount", + "value": "" }, { - "key": "endTime", + "key": "collateralCoin", "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": "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": "- If beginTime and endTime are not sent, the recent 30-day data will be returned.\n\nWeight(UID): 90000" + } }, "response": [] }, { - "name": "Get Fiat Payments 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", @@ -2730,82 +2712,64 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/fiat/payments?transactionType=0×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/ongoing/orders?loanCoin=&collateralCoin=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "fiat", - "payments" + "loan", + "flexible", + "ongoing", + "orders" ], "query": [ { - "key": "transactionType", - "value": "0", - "description": "* `0` - deposit\n* `1` - withdraw" - }, - { - "key": "beginTime", - "value": "1626144956000", - "disabled": true + "key": "loanCoin", + "value": "" }, { - "key": "endTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "key": "collateralCoin", + "value": "" }, { - "key": "page", - "value": "1", - "description": "Default 1", - "disabled": true + "key": "current", + "value": "" }, { - "key": "rows", - "value": "300", - "description": "Default 100, max 500", - "disabled": true + "key": "limit", + "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 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": "New Future Account Transfer (USER_DATA)", + "name": "Borrow - Get Flexible Loan Borrow History (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", @@ -2814,63 +2778,70 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/transfer?asset=&amount=&type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/borrow/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", - "transfer" + "loan", + "flexible", + "borrow", + "history" ], "query": [ { - "key": "asset", - "value": "", - "description": "The asset being transferred, e.g., USDT" + "key": "loanCoin", + "value": "" }, { - "key": "amount", - "value": "", - "description": "The amount to be transferred" + "key": "collateralCoin", + "value": "" }, { - "key": "type", - "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." + "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}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] - }, - "description": "Execute transfer between spot account and futures account.\n\nWeight(IP): 1" + } }, "response": [] }, { - "name": "Get Future Account Transaction History List (USER_DATA)", + "name": "Repay - Flexible Loan Repay (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", - "type": "text", - "value": "application/json" + "value": "application/json", + "type": "text" }, { "key": "X-MBX-APIKEY", @@ -2879,73 +2850,65 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/transfer?asset=&startTime=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/repay?loanCoin=&collateralCoin=&repayAmount=&collateralReturn=&fullRepayment=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", - "transfer" + "loan", + "flexible", + "repay" ], "query": [ { - "key": "asset", + "key": "loanCoin", "value": "" }, { - "key": "startTime", + "key": "collateralCoin", "value": "" }, { - "key": "endTime", - "value": "", - "disabled": true + "key": "repayAmount", + "value": "" }, { - "key": "current", - "value": "", - "description": "Currently querying page. Start from 1. Default:1", - "disabled": true + "key": "collateralReturn", + "value": "" }, { - "key": "size", - "value": "", - "description": "Default:10 Max:100", - "disabled": true + "key": "fullRepayment", + "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": "Weight(IP): 10" + } }, "response": [] }, { - "name": "Cross-Collateral Borrow History (USER_DATA)", + "name": "Repay - Get Flexible 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", @@ -2954,71 +2917,70 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/loan/borrow/history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/repay/history?loanCoin=&collateralCoin=&startTime=&endTime=¤t=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", "loan", - "borrow", + "flexible", + "repay", "history" ], "query": [ { - "key": "coin", - "value": null, - "disabled": true + "key": "loanCoin", + "value": "" + }, + { + "key": "collateralCoin", + "value": "" }, { "key": "startTime", - "value": "", - "disabled": true + "value": "" }, { "key": "endTime", - "value": "", - "disabled": true + "value": "" + }, + { + "key": "current", + "value": "" }, { "key": "limit", - "value": "", - "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": "Weight(IP): 10" + } }, "response": [] }, { - "name": "Cross-Collateral Repayment History (USER_DATA)", + "name": "Adjust LTV - Flexible 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", @@ -3027,71 +2989,62 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/loan/repay/history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/adjust/ltv?loanCoin=&collateralCoin=&adjustmentAmount=&direction=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", "loan", - "repay", - "history" + "flexible", + "adjust", + "ltv" ], "query": [ { - "key": "coin", - "value": "", - "disabled": true - }, + "key": "loanCoin", + "value": "" + }, { - "key": "startTime", - "value": "", - "disabled": true + "key": "collateralCoin", + "value": "" }, { - "key": "endTime", - "value": "", - "disabled": true + "key": "adjustmentAmount", + "value": "" }, { - "key": "limit", - "value": "", - "description": "default 500, max 1000", - "disabled": true + "key": "direction", + "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": "Get Cross-Collateral Repayment History." + } }, "response": [] }, { - "name": "Cross-Collateral Wallet V2 (USER_DATA)", + "name": "Adjust LTV - Get Flexible 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", @@ -3100,49 +3053,71 @@ } ], "url": { - "raw": "{{url}}/sapi/v2/futures/loan/wallet?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}}" ], "path": [ "sapi", - "v2", - "futures", + "v1", "loan", - "wallet" + "flexible", + "ltv", + "adjustment", + "history" ], "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}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] - }, - "description": "Get Cross-Collateral Wallet V2." + } }, "response": [] }, { - "name": "Adjust Cross-Collateral LTV History (USER_DATA)", + "name": "Get Flexible Loan 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", @@ -3151,76 +3126,51 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/loan/adjustCollateral/history?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?loanCoin=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", "loan", - "adjustCollateral", + "flexible", + "ltv", + "adjustment", "history" ], "query": [ { "key": "loanCoin", - "value": "", - "disabled": true - }, - { - "key": "collateralCoin", - "value": "", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "disabled": true - }, - { - "key": "limit", - "value": "", - "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": "Get Adjust Cross-Collateral LTV History." + } }, "response": [] }, { - "name": "Cross-Collateral Liquidation History (USER_DATA)", + "name": "Get Flexible Loan Collateral 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", @@ -3229,68 +3179,50 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/loan/liquidationHistory?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/flexible/ltv/adjustment/history?collateralCoin=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", "loan", - "liquidationHistory" + "flexible", + "ltv", + "adjustment", + "history" ], "query": [ - { - "key": "loanCoin", - "value": "", - "disabled": true - }, { "key": "collateralCoin", - "value": "", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "disabled": true - }, - { - "key": "limit", - "value": "", - "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": "Get Cross-Collateral Liquidation History." + } }, "response": [] - }, + } + ], + "description": "Crypto Loans Endpoints" + }, + { + "name": "Fiat", + "item": [ { - "name": "Cross-Collateral Interest History (USER_DATA)", + "name": "Get Fiat Deposit/Withdraw History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -3306,43 +3238,43 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/futures/loan/interestHistory?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/fiat/orders?transactionType=0×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "futures", - "loan", - "interestHistory" + "fiat", + "orders" ], "query": [ { - "key": "collateralCoin", - "value": "", - "disabled": true + "key": "transactionType", + "value": "0", + "description": "* `0` - deposit\n* `1` - withdraw" }, { - "key": "startTime", - "value": "", + "key": "beginTime", + "value": "1626144956000", "disabled": true }, { "key": "endTime", "value": "", + "description": "UTC timestamp in ms", "disabled": true }, { - "key": "current", - "value": "", - "description": "Currently querying page. Start from 1. Default:1", + "key": "page", + "value": "1", + "description": "Default 1", "disabled": true }, { - "key": "limit", - "value": "", - "description": "Default:500 Max:1000", + "key": "rows", + "value": "300", + "description": "Default 100, max 500", "disabled": true }, { @@ -3362,19 +3294,15 @@ "description": "Signature" } ] - } + }, + "description": "- If beginTime and endTime are not sent, the recent 30-day data will be returned.\n\nWeight(UID): 90000" }, "response": [] - } - ] - }, - { - "name": "Futures Algo", - "item": [ + }, { - "name": "Volume Participation New Order (TRADE)", + "name": "Get Fiat Payments History (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3388,60 +3316,43 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/newOrderVp?symbol=&side=SELL&quantity=&urgency=LOW×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/fiat/payments?transactionType=0×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", - "futures", - "newOrderVp" + "fiat", + "payments" ], "query": [ { - "key": "symbol", - "value": "", - "description": "Trading symbol eg. BTCUSDT" - }, - { - "key": "side", - "value": "SELL", - "description": "Trading side ( BUY or SELL )" + "key": "transactionType", + "value": "0", + "description": "* `0` - deposit\n* `1` - withdraw" }, { - "key": "positionSide", - "value": "", - "description": "Default BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.", + "key": "beginTime", + "value": "1626144956000", "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": "endTime", "value": "", - "description": "A unique id among Algo orders (length should be 32 characters), If it is not sent, we will give default value.", + "description": "UTC timestamp in ms", "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.", + "key": "page", + "value": "1", + "description": "Default 1", "disabled": true }, { - "key": "limitPrice", - "value": "", - "description": "Limit price of the order; If it is not sent, will place order by market price by default.", + "key": "rows", + "value": "300", + "description": "Default 100, max 500", "disabled": true }, { @@ -3462,12 +3373,18 @@ } ] }, - "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": "- 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": "Time-Weighted Average Price New Order (TRADE)", + "name": "New Future Account Transfer (USER_DATA)", "request": { "method": "POST", "header": [ @@ -3483,61 +3400,31 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/futures/transfer?asset=&amount=&type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", "futures", - "newOrderTwap" + "transfer" ], "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", + "key": "asset", "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 asset being transferred, e.g., USDT" }, { - "key": "reduceOnly", + "key": "amount", "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 amount to be transferred" }, { - "key": "limitPrice", + "key": "type", "value": "", - "description": "Limit price of the order; If it is not sent, will place order by market price by default", - "disabled": true + "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", @@ -3557,14 +3444,14 @@ } ] }, - "description": "Send in a Twap new order. Only support on USDⓈ-M Contracts.\n\nWeight(UID): 3000" + "description": "Execute transfer between spot account and futures account.\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Cancel Algo Order (TRADE)", + "name": "Get Future Account Transaction History List (USER_DATA)", "request": { - "method": "DELETE", + "method": "GET", "header": [ { "key": "Content-Type", @@ -3578,73 +3465,42 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/order?algoId=14511×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/futures/transfer?asset=&startTime=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", "futures", - "order" + "transfer" ], "query": [ { - "key": "algoId", - "value": "14511" + "key": "asset", + "value": "" }, { - "key": "recvWindow", - "value": "5000", - "description": "The value cannot be greater than 60000", + "key": "startTime", + "value": "" + }, + { + "key": "endTime", + "value": "", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "current", + "value": "", + "description": "Currently querying page. Start from 1. Default:1", + "disabled": true }, { - "key": "signature", - "value": "{{signature}}", - "description": "Signature" - } - ] - }, - "description": "Cancel an active order.\n\nWeight(IP): 1" - }, - "response": [] - }, - { - "name": "Query Current Algo 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/algo/futures/openOrders?timestamp={{timestamp}}&signature={{signature}}", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "algo", - "futures", - "openOrders" - ], - "query": [ + "key": "size", + "value": "", + "description": "Default:10 Max:100", + "disabled": true + }, { "key": "recvWindow", "value": "5000", @@ -3663,12 +3519,12 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Weight(IP): 10" }, "response": [] }, { - "name": "Query Historical Algo Orders (USER_DATA)", + "name": "Get Future TickLevel Orderbook Historical Data Download Link (USER_DATA)", "request": { "method": "GET", "header": [ @@ -3684,80 +3540,64 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/futures/histDataLink?symbol=&dataType=&startTime=&endTime=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "algo", "futures", - "historicalOrders" + "histDataLink" ], "query": [ { "key": "symbol", - "value": "", - "description": "Trading symbol eg. BTCUSDT", - "disabled": true + "value": "" }, { - "key": "side", - "value": "", - "description": "BUY or SELL", - "disabled": true + "key": "dataType", + "value": "" }, { "key": "startTime", - "value": "", - "description": "UTC timestamp in ms", - "disabled": true + "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 + "description": "Currently querying page. Start from 1. Default:1" }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", + "description": "Default:500 Max:1000", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "The value cannot be greater than 60000" }, { "key": "signature", "value": "{{signature}}", - "description": "Signature" + "description": "UTC timestamp in ms" } ] - }, - "description": "Weight(IP): 1" + } }, "response": [] - }, + } + ] + }, + { + "name": "Futures Algo", + "item": [ { - "name": "Query Sub Orders (USER_DATA)", + "name": "Volume Participation New Order (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -3771,7 +3611,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/futures/subOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/newOrderVp?symbol=&side=SELL&quantity=&urgency=LOW×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -3780,24 +3620,51 @@ "v1", "algo", "futures", - "subOrders" + "newOrderVp" ], "query": [ { - "key": "algoId", - "value": "13723", + "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": "page", + "key": "quantity", "value": "", - "description": "Default is 1", + "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": "pageSize", + "key": "reduceOnly", "value": "", - "description": "MIN 1, MAX 100; Default 100", + "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 }, { @@ -3818,15 +3685,10 @@ } ] }, - "description": "Get respective sub orders for a specified algoId\n\nWeight(IP): 1" + "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": "Spot Algo", - "item": [ + }, { "name": "Time-Weighted Average Price New Order (TRADE)", "request": { @@ -3844,7 +3706,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -3852,7 +3714,7 @@ "sapi", "v1", "algo", - "spot", + "futures", "newOrderTwap" ], "query": [ @@ -3866,15 +3728,21 @@ "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 * last price(base asset)) must be more than the equivalent of 1,000 USDT and less than the equivalent of 100,000 USDT" + "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]" + "description": "Duration for TWAP orders in seconds. [300, 86400];Less than 5min => defaults to 5 min; Greater than 24h => defaults to 24h" }, { "key": "clientAlgoId", @@ -3882,6 +3750,12 @@ "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": "", @@ -3906,7 +3780,7 @@ } ] }, - "description": "Place a new spot TWAP order with Algo service.\n\nTotal Algo open orders max allowed: 10 orders.\n\nWeight(UID): 3000" + "description": "Send in a Twap new order. Only support on USDⓈ-M Contracts.\n\nWeight(UID): 3000" }, "response": [] }, @@ -3927,7 +3801,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/order?algoId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/order?algoId=14511×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -3935,14 +3809,13 @@ "sapi", "v1", "algo", - "spot", + "futures", "order" ], "query": [ { "key": "algoId", - "value": "", - "description": "eg. 14511" + "value": "14511" }, { "key": "recvWindow", @@ -3962,7 +3835,7 @@ } ] }, - "description": "Cancel an open TWAP order\n\nWeight(IP): 1" + "description": "Cancel an active order.\n\nWeight(IP): 1" }, "response": [] }, @@ -3983,7 +3856,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/openOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/openOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -3991,7 +3864,7 @@ "sapi", "v1", "algo", - "spot", + "futures", "openOrders" ], "query": [ @@ -4013,7 +3886,7 @@ } ] }, - "description": "Get all open SPOT TWAP orders\n\nWeight(IP): 1" + "description": "Weight(IP): 1" }, "response": [] }, @@ -4034,7 +3907,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4042,7 +3915,7 @@ "sapi", "v1", "algo", - "spot", + "futures", "historicalOrders" ], "query": [ @@ -4061,13 +3934,13 @@ { "key": "startTime", "value": "", - "description": "in milliseconds eg.1641522717552", + "description": "UTC timestamp in ms", "disabled": true }, { "key": "endTime", "value": "", - "description": "in milliseconds eg.1641522526562", + "description": "UTC timestamp in ms", "disabled": true }, { @@ -4100,7 +3973,7 @@ } ] }, - "description": "Get all historical SPOT TWAP orders\n\nWeight(IP): 1" + "description": "Weight(IP): 1" }, "response": [] }, @@ -4121,7 +3994,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/algo/spot/subOrders?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/futures/subOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4129,13 +4002,14 @@ "sapi", "v1", "algo", - "spot", + "futures", "subOrders" ], "query": [ { "key": "algoId", - "value": "" + "value": "13723", + "disabled": true }, { "key": "page", @@ -4171,14 +4045,13 @@ }, "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", + "name": "Spot Algo", "item": [ { - "name": "Create a Binance Code (USER_DATA)", + "name": "Time-Weighted Average Price New Order (TRADE)", "request": { "method": "POST", "header": [ @@ -4194,26 +4067,49 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/createCode?token=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/newOrderTwap?symbol=&side=&quantity=&duration=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "createCode" + "algo", + "spot", + "newOrderTwap" ], "query": [ { - "key": "token", + "key": "symbol", "value": "", - "description": "The coin type contained in the Binance Code" + "description": "Trading symbol eg. BTCUSDT" }, { - "key": "amount", + "key": "side", "value": "", - "description": "The amount of the coin" + "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", @@ -4233,14 +4129,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": "Place a new spot TWAP order with Algo service.\n\nTotal Algo open orders max allowed: 10 orders.\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Redeem a Binance Code (USER_DATA)", + "name": "Cancel Algo Order (TRADE)", "request": { - "method": "POST", + "method": "DELETE", "header": [ { "key": "Content-Type", @@ -4254,27 +4150,22 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/redeemCode?code=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/order?algoId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "redeemCode" + "algo", + "spot", + "order" ], "query": [ { - "key": "code", - "value": "", - "description": "Binance Code" - }, - { - "key": "externalUid", + "key": "algoId", "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).", - "disabled": true + "description": "eg. 14511" }, { "key": "recvWindow", @@ -4294,14 +4185,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": "Cancel an open TWAP order\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Buy a Binance Code (TRADE)", + "name": "Query Current Algo Open Orders (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4315,32 +4206,18 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/buyCode?baseToken=&faceToken=&baseTokenAmount×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/openOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "buyCode" + "algo", + "spot", + "openOrders" ], "query": [ - { - "key": "baseToken", - "value": "", - "description": "The token you want to pay, example: BUSD" - }, - { - "key": "faceToken", - "value": "", - "description": "The token you want to buy, example: BNB. If faceToken = baseToken, it's the same as createCode endpoint." - }, - { - "key": "baseTokenAmount", - "value": null, - "description": "The base token asset quantity, example : 1.002" - }, { "key": "recvWindow", "value": "5000", @@ -4359,12 +4236,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": "Get all open SPOT TWAP orders\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Verify a Binance Code (USER_DATA)", + "name": "Query Historical Algo Orders (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4380,21 +4257,53 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/verify?referenceNo=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/historicalOrders?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "verify" + "algo", + "spot", + "historicalOrders" ], "query": [ { - "key": "referenceNo", + "key": "symbol", "value": "", - "description": "reference number" + "description": "Trading symbol eg. BTCUSDT", + "disabled": true + }, + { + "key": "side", + "value": "", + "description": "BUY or SELL", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "description": "in milliseconds eg.1641522717552", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "description": "in milliseconds eg.1641522526562", + "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", @@ -4414,12 +4323,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": "Get all historical SPOT TWAP orders\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Fetch Token Limit (USER_DATA)", + "name": "Query Sub Orders (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4435,22 +4344,33 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/buyCode/token-limit?baseToken=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/algo/spot/subOrders?algoId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "giftcard", - "buyCode", - "token-limit" + "algo", + "spot", + "subOrders" ], "query": [ { - "key": "baseToken", + "key": "algoId", + "value": "" + }, + { + "key": "page", "value": "", - "description": "The token you want to pay, example: BUSD" + "description": "Default is 1", + "disabled": true + }, + { + "key": "pageSize", + "value": "", + "description": "MIN 1, MAX 100; Default 100", + "disabled": true }, { "key": "recvWindow", @@ -4470,14 +4390,20 @@ } ] }, - "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": "Get respective sub orders for a specified algoId\n\nWeight(IP): 1" }, "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": "Fetch RSA Public Key (USER_DATA)", + "name": "Create a Binance Code (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -4491,7 +4417,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/giftcard/cryptography/rsa-public-key?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/createCode?token=&amount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4499,10 +4425,19 @@ "sapi", "v1", "giftcard", - "cryptography", - "rsa-public-key" + "createCode" ], "query": [ + { + "key": "token", + "value": "", + "description": "The coin type contained in the Binance Code" + }, + { + "key": "amount", + "value": "", + "description": "The amount of the coin" + }, { "key": "recvWindow", "value": "5000", @@ -4521,18 +4456,12 @@ } ] }, - "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": "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": [] - } - ], - "description": "Gift Card Endpoints" - }, - { - "name": "Margin", - "item": [ + }, { - "name": "Cross Margin Account Transfer (MARGIN)", + "name": "Redeem a Binance Code (USER_DATA)", "request": { "method": "POST", "header": [ @@ -4548,29 +4477,27 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/transfer?asset=BTC&amount=1.01&type=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/redeemCode?code=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "margin", - "transfer" + "giftcard", + "redeemCode" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "amount", - "value": "1.01" + "key": "code", + "value": "", + "description": "Binance Code" }, { - "key": "type", + "key": "externalUid", "value": "", - "description": "* `1` - transfer from main account to margin account\n* `2` - transfer from margin account to main account" + "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", @@ -4590,12 +4517,12 @@ } ] }, - "description": "Execute transfer between spot account and cross margin account.\n\nWeight(IP): 600" + "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": "Adjust cross margin max leverage (USER_DATA)", + "name": "Buy a Binance Code (TRADE)", "request": { "method": "POST", "header": [ @@ -4611,20 +4538,41 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/max-leverage?maxLeverage=&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/buyCode?baseToken=&faceToken=&baseTokenAmount×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "margin", - "max-leverage" + "giftcard", + "buyCode" ], "query": [ { - "key": "maxLeverage", + "key": "baseToken", "value": "", + "description": "The token you want to pay, example: BUSD" + }, + { + "key": "faceToken", + "value": "", + "description": "The token you want to buy, example: BNB. If faceToken = baseToken, it's the same as createCode endpoint." + }, + { + "key": "baseTokenAmount", + "value": null, + "description": "The base token asset quantity, example : 1.002" + }, + { + "key": "recvWindow", + "value": "5000", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", "description": "UTC timestamp in ms" }, { @@ -4634,12 +4582,12 @@ } ] }, - "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" + "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": "Get Cross Margin Transfer History (USER_DATA)", + "name": "Verify a Binance Code (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4655,57 +4603,21 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/transfer?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/verify?referenceNo=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "margin", - "transfer" + "giftcard", + "verify" ], "query": [ { - "key": "asset", - "value": "BNB", - "disabled": true - }, - { - "key": "type", - "value": "", - "description": "Transfer Type", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "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", + "key": "referenceNo", "value": "", - "description": "Default: false. Set to true for archived data from 6 months ago", - "disabled": true + "description": "reference number" }, { "key": "recvWindow", @@ -4725,14 +4637,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": "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": "Margin Account Borrow (MARGIN)", + "name": "Fetch Token Limit (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -4746,36 +4658,22 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/loan?asset=BTC&amount=1.01×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/buyCode/token-limit?baseToken=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "margin", - "loan" + "giftcard", + "buyCode", + "token-limit" ], "query": [ { - "key": "asset", - "value": "BTC" - }, - { - "key": "isIsolated", + "key": "baseToken", "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, - { - "key": "amount", - "value": "1.01" + "description": "The token you want to pay, example: BUSD" }, { "key": "recvWindow", @@ -4795,12 +4693,12 @@ } ] }, - "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": "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 Loan Record (USER_DATA)", + "name": "Fetch RSA Public Key (USER_DATA)", "request": { "method": "GET", "header": [ @@ -4816,63 +4714,18 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/loan?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/giftcard/cryptography/rsa-public-key?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "margin", - "loan" + "giftcard", + "cryptography", + "rsa-public-key" ], "query": [ - { - "key": "asset", - "value": "BTC" - }, - { - "key": "isolatedSymbol", - "value": "", - "description": "Isolated symbol", - "disabled": true - }, - { - "key": "txId", - "value": "123456789", - "description": "the tranId in `POST /sapi/v1/margin/loan`", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "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 - }, { "key": "recvWindow", "value": "5000", @@ -4891,12 +4744,18 @@ } ] }, - "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": "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": "Margin Account Repay (MARGIN)", + "name": "Cross Margin Account Transfer (MARGIN)", "request": { "method": "POST", "header": [ @@ -4912,7 +4771,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/repay?asset=BTC&amount=1.01×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/transfer?asset=BTC&amount=1.01&type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4920,29 +4779,22 @@ "sapi", "v1", "margin", - "repay" + "transfer" ], "query": [ { "key": "asset", "value": "BTC" }, - { - "key": "isIsolated", - "value": "", - "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", - "disabled": true - }, - { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT", - "disabled": true - }, { "key": "amount", "value": "1.01" }, + { + "key": "type", + "value": "", + "description": "* `1` - transfer from main account to margin account\n* `2` - transfer from margin account to main account" + }, { "key": "recvWindow", "value": "5000", @@ -4961,12 +4813,56 @@ } ] }, - "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": "Execute transfer between spot account and cross margin account.\n\nWeight(IP): 600" }, "response": [] }, { - "name": "Query Repay Record (USER_DATA)", + "name": "Adjust cross margin max leverage (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/margin/max-leverage?maxLeverage=&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "max-leverage" + ], + "query": [ + { + "key": "maxLeverage", + "value": "", + "description": "UTC timestamp in ms" + }, + { + "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": [ @@ -4982,7 +4878,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/repay?asset=BTC×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/transfer?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -4990,23 +4886,18 @@ "sapi", "v1", "margin", - "repay" + "transfer" ], "query": [ { "key": "asset", - "value": "BTC" + "value": "BNB", + "disabled": true }, { - "key": "isolatedSymbol", + "key": "type", "value": "", - "description": "Isolated symbol", - "disabled": true - }, - { - "key": "txId", - "value": "2970933056", - "description": "the tranId in `POST /sapi/v1/margin/repay`", + "description": "Transfer Type", "disabled": true }, { @@ -5057,14 +4948,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": "- 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": "Query Margin Asset (MARKET_DATA)", + "name": "Margin Account Borrow (MARGIN)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -5078,7 +4969,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/asset?asset=BTC", + "raw": "{{url}}/sapi/v1/margin/loan?asset=BTC&amount=1.01×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5086,21 +4977,53 @@ "sapi", "v1", "margin", - "asset" + "loan" ], "query": [ { "key": "asset", "value": "BTC" + }, + { + "key": "isIsolated", + "value": "", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true + }, + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", + "disabled": true + }, + { + "key": "amount", + "value": "1.01" + }, + { + "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": "Apply for a loan.\n\n- If \"isIsolated\" = \"TRUE\", \"symbol\" must be sent\n- \"isIsolated\" = \"FALSE\" for crossed margin loan\n\nWeight(UID): 3000" }, "response": [] }, { - "name": "Query Cross Margin Pair (MARKET_DATA)", + "name": "Query Loan Record (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5116,7 +5039,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/pair?symbol=BNBUSDT", + "raw": "{{url}}/sapi/v1/margin/loan?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5124,24 +5047,81 @@ "sapi", "v1", "margin", - "pair" + "loan" ], "query": [ { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" + "key": "asset", + "value": "BTC" + }, + { + "key": "isolatedSymbol", + "value": "", + "description": "Isolated symbol", + "disabled": true + }, + { + "key": "txId", + "value": "123456789", + "description": "the tranId in `POST /sapi/v1/margin/loan`", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "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 + }, + { + "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": "- `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" }, "response": [] }, { - "name": "Get All Margin Assets (MARKET_DATA)", + "name": "Margin Account Repay (MARGIN)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -5155,7 +5135,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/allAssets", + "raw": "{{url}}/sapi/v1/margin/repay?asset=BTC&amount=1.01×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5163,15 +5143,53 @@ "sapi", "v1", "margin", - "allAssets" + "repay" + ], + "query": [ + { + "key": "asset", + "value": "BTC" + }, + { + "key": "isIsolated", + "value": "", + "description": "* `TRUE` - For isolated margin\n* `FALSE` - Default, not for isolated margin", + "disabled": true + }, + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT", + "disabled": true + }, + { + "key": "amount", + "value": "1.01" + }, + { + "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": "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" }, "response": [] }, { - "name": "Get All Cross Margin Pairs (MARKET_DATA)", + "name": "Query Repay Record (USER_DATA)", "request": { "method": "GET", "header": [ @@ -5187,7 +5205,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/allPairs", + "raw": "{{url}}/sapi/v1/margin/repay?asset=BTC×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -5195,15 +5213,79 @@ "sapi", "v1", "margin", - "allPairs" + "repay" + ], + "query": [ + { + "key": "asset", + "value": "BTC" + }, + { + "key": "isolatedSymbol", + "value": "", + "description": "Isolated symbol", + "disabled": true + }, + { + "key": "txId", + "value": "2970933056", + "description": "the tranId in `POST /sapi/v1/margin/repay`", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "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 + }, + { + "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": "- `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" }, "response": [] }, { - "name": "Query Margin PriceIndex (MARKET_DATA)", + "name": "Query Margin Asset (MARKET_DATA)", "request": { "method": "GET", "header": [ @@ -5219,7 +5301,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/priceIndex?symbol=BNBUSDT", + "raw": "{{url}}/sapi/v1/margin/asset?asset=BTC", "host": [ "{{url}}" ], @@ -5227,13 +5309,154 @@ "sapi", "v1", "margin", - "priceIndex" + "asset" ], "query": [ { - "key": "symbol", - "value": "BNBUSDT", - "description": "Trading symbol, e.g. BNBUSDT" + "key": "asset", + "value": "BTC" + } + ] + }, + "description": "Weight(IP): 10" + }, + "response": [] + }, + { + "name": "Query Cross Margin Pair (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/pair?symbol=BNBUSDT", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "pair" + ], + "query": [ + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + } + ] + }, + "description": "Weight(IP): 10" + }, + "response": [] + }, + { + "name": "Get All Margin Assets (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/allAssets", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "allAssets" + ] + }, + "description": "Weight(IP): 1" + }, + "response": [] + }, + { + "name": "Get All Cross Margin Pairs (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/allPairs", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "allPairs" + ] + }, + "description": "Weight(IP): 1" + }, + "response": [] + }, + { + "name": "Query Margin PriceIndex (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/priceIndex?symbol=BNBUSDT", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "margin", + "priceIndex" + ], + "query": [ + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" } ] }, @@ -6622,7 +6845,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/margin/isolated/transfer?symbol=BNBUSDT×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/margin/isolated/transfer?symbol=BNBUSDT&type=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -6645,19 +6868,12 @@ "description": "Trading symbol, e.g. BNBUSDT" }, { - "key": "transFrom", - "value": "SPOT", - "disabled": true - }, - { - "key": "transTo", - "value": "ISOLATED_MARGIN", - "disabled": true + "key": "type", + "value": "" }, { "key": "startTime", "value": "", - "description": "UTC timestamp in ms", "disabled": true }, { @@ -6669,36 +6885,36 @@ { "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", + "description": "Current querying page. Start from 1. Default:1", "disabled": true }, { "key": "archived", "value": "", - "description": "Default: false. Set to true for archived data from 6 months ago", + "description": "Default:10 Max:100", "disabled": true }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", + "description": "Default: false. Set to true for archived data from 6 months ago", "disabled": true }, { "key": "timestamp", "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "description": "The value cannot be greater than 60000" }, { "key": "signature", "value": "{{signature}}", - "description": "Signature" + "description": "UTC timestamp in ms" } ] }, @@ -8070,15 +8286,9 @@ "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" }, "response": [] - } - ], - "description": "Margin Account/Trade" - }, - { - "name": "Market", - "item": [ + }, { - "name": "Test Connectivity", + "name": "Get cross or isolated margin capital flow(USER_DATA)", "request": { "method": "GET", "header": [ @@ -8086,25 +8296,74 @@ "key": "Content-Type", "type": "text", "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" } ], "url": { - "raw": "{{url}}/api/v3/ping", + "raw": "{{url}}/sapi/v1/margin/capital-flow?asset=&symbol=&type=&startTime=&endTime=&fromId=&limit=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ - "api", - "v3", - "ping" + "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": "Test connectivity to the Rest API.\n\nWeight(IP): 1" + "description": "Get tokens or symbols delist schedule for cross margin and isolated margin\n\nWeight(UID): 100" }, "response": [] }, { - "name": "Check Server Time", + "name": "Query Margin Available Inventory (USER_DATA)", "request": { "method": "GET", "header": [ @@ -8112,35 +8371,169 @@ "key": "Content-Type", "type": "text", "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" } ], "url": { - "raw": "{{url}}/api/v3/time", + "raw": "{{url}}/sapi/v1/margin/available-inventory?type=×tamp={{timestamp}}&signature={{signature}}", "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": { + "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": [] + } + ], + "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}}" @@ -10100,7 +10493,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/portfolio/repay?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/portfolio/repay?from=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -10111,25 +10504,29 @@ "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": "Repay Portfolio Margin Bankruptcy Loan.\n\nWeight(UID): 3000" + "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" }, "response": [] }, @@ -10566,6 +10963,56 @@ "description": "Repay futures Negative Balance\n\nWeight(IP): 1500" }, "response": [] + }, + { + "name": "Get Portfolio Margin Asset Leverage (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/portfolio/margin-asset-leverage?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "portfolio", + "margin-asset-leverage" + ], + "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": "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." @@ -15791,56 +16238,596 @@ "description": "Displays the user's current order count usage for all intervals.\n\nWeight(IP): 20" }, "response": [] - } - ], - "description": "Account/Trade" - }, - { - "name": "User Data Stream", - "item": [ + }, { - "name": "Spot", - "item": [ - { - "name": "Create a ListenKey (USER_STREAM)", - "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}}/api/v3/userDataStream", - "host": [ - "{{url}}" - ], - "path": [ - "api", - "v3", - "userDataStream" - ] - }, - "description": "Start a new user data stream.\nThe stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.\n\nWeight: 1" + "name": "New order using SOR (TRADE)", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" }, - "response": [] - }, - { - "name": "Ping/Keep-alive a ListenKey (USER_STREAM)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/api/v3/sor/order?symbol=BNBUSDT&side=SELL&type=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "sor", + "order" + ], + "query": [ + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "side", + "value": "SELL" + }, + { + "key": "type", + "value": "", + "description": "Order type" + }, + { + "key": "timeInForce", + "value": "", + "description": "Order time in force", + "disabled": true + }, + { + "key": "quantity", + "value": "", + "description": "Order quantity", + "disabled": true + }, + { + "key": "price", + "value": "", + "description": "Quote quantity", + "disabled": true + }, + { + "key": "newClientOrderId", + "value": "", + "description": "Order price", + "disabled": true + }, + { + "key": "strategyId", + "value": "", + "description": "A unique id among open orders. Automatically generated if not sent.", + "disabled": true + }, + { + "key": "strategyType", + "value": "", + "disabled": true + }, + { + "key": "icebergQty", + "value": "", + "description": "The value cannot be less than 1000000", + "disabled": true + }, + { + "key": "newOrderRespType", + "value": "", + "description": "Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.", + "disabled": true + }, + { + "key": "selfTradePreventionMode", + "value": "", + "description": "Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "Set the response JSON. MARKET and LIMIT order types default to FULL, all other orders default to ACK." + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "The value cannot be greater than 60000" + } + ] + }, + "description": "Test new order creation and signature/recvWindow long.\nCreates and validates a new order but does not send it into the matching engine.\n\nWeight(IP): 1" + }, + "response": [] + }, + { + "name": "Test New order using SOR (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}}/api/v3/sor/order/test?symbol=BNBUSDT&side=SELL&type=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "sor", + "order", + "test" + ], + "query": [ + { + "key": "symbol", + "value": "BNBUSDT", + "description": "Trading symbol, e.g. BNBUSDT" + }, + { + "key": "side", + "value": "SELL" + }, + { + "key": "type", + "value": "", + "description": "Order type" + }, + { + "key": "timeInForce", + "value": "", + "description": "Order time in force", + "disabled": true + }, + { + "key": "quantity", + "value": "", + "description": "Order quantity", + "disabled": true + }, + { + "key": "price", + "value": "", + "description": "Quote quantity", + "disabled": true + }, + { + "key": "newClientOrderId", + "value": "", + "description": "Order price", + "disabled": true + }, + { + "key": "strategyId", + "value": "", + "description": "A unique id among open orders. Automatically generated if not sent.", + "disabled": true + }, + { + "key": "strategyType", + "value": "", + "disabled": true + }, + { + "key": "icebergQty", + "value": "", + "description": "The value cannot be less than 1000000", + "disabled": true + }, + { + "key": "newOrderRespType", + "value": "", + "description": "Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.", + "disabled": true + }, + { + "key": "selfTradePreventionMode", + "value": "", + "description": "Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.", + "disabled": true + }, + { + "key": "recvWindow", + "value": "5000", + "description": "Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "Set the response JSON. MARKET and LIMIT order types default to FULL, all other orders default to ACK." + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "The value cannot be greater than 60000" + } + ] + }, + "description": "Test new order creation and signature/recvWindow long.\nCreates and validates a new order but does not send it into the matching engine.\n\nWeight(IP): 1" + }, + "response": [] + }, + { + "name": "Query Allocations (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}}/api/v3/myAllocations?symbol=&startTime=&endTime=&fromAllocationId=&limit=&orderId=&recvWindow=5000×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "myAllocations" + ], + "query": [ + { + "key": "symbol", + "value": "", + "description": "The value cannot be greater than 60000" + }, + { + "key": "startTime", + "value": "", + "description": "UTC timestamp in ms" + }, + { + "key": "endTime", + "value": "", + "description": "Signature" + }, + { + "key": "fromAllocationId", + "value": "" + }, + { + "key": "limit", + "value": "" + }, + { + "key": "orderId", + "value": "" + }, + { + "key": "recvWindow", + "value": "5000" + }, + { + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Get current account information.\n\nWeight(IP): 10" + }, + "response": [] + } + ], + "description": "Account/Trade" + }, + { + "name": "User Data Stream", + "item": [ + { + "name": "Spot", + "item": [ + { + "name": "Create a ListenKey (USER_STREAM)", + "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}}/api/v3/userDataStream", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "userDataStream" + ] + }, + "description": "Start a new user data stream.\nThe stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.\n\nWeight: 1" + }, + "response": [] + }, + { + "name": "Ping/Keep-alive a ListenKey (USER_STREAM)", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/api/v3/userDataStream?listenKey=listen-key", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "userDataStream" + ], + "query": [ + { + "key": "listenKey", + "value": "listen-key", + "description": "User websocket listen key" + } + ] + }, + "description": "Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 30 minutes.\n\nWeight: 1" + }, + "response": [] + }, + { + "name": "Close a ListenKey (USER_STREAM)", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/api/v3/userDataStream?listenKey=listen-key", + "host": [ + "{{url}}" + ], + "path": [ + "api", + "v3", + "userDataStream" + ], + "query": [ + { + "key": "listenKey", + "value": "listen-key", + "description": "User websocket listen key" + } + ] + }, + "description": "Close out a user data stream.\n\nWeight: 1" + }, + "response": [] + } + ], + "description": "User Data Stream" + }, + { + "name": "Cross Margin", + "item": [ + { + "name": "Create a ListenKey (USER_STREAM)", + "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/userDataStream", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "userDataStream" + ] + }, + "description": "Start a new user data stream.\nThe stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.\n\nWeight: 1" + }, + "response": [] + }, + { + "name": "Ping/Keep-alive a ListenKey (USER_STREAM)", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/userDataStream?listenKey=listen-key", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "userDataStream" + ], + "query": [ + { + "key": "listenKey", + "value": "listen-key", + "description": "User websocket listen key" + } + ] + }, + "description": "Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 30 minutes.\n\nWeight: 1" + }, + "response": [] + }, + { + "name": "Close a ListenKey (USER_STREAM)", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + }, + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/userDataStream?listenKey=listen-key", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "userDataStream" + ], + "query": [ + { + "key": "listenKey", + "value": "listen-key", + "description": "User websocket listen key" + } + ] + }, + "description": "Close out a user data stream.\n\nWeight: 1" + }, + "response": [] + } + ], + "description": "Margin User Data Stream" + }, + { + "name": "Isolated Margin", + "item": [ + { + "name": "Generate a Listen Key (USER_STREAM)", + "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/userDataStream/isolated?symbol=BTCUSDT", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "userDataStream", + "isolated" + ], + "query": [ + { + "key": "symbol", + "value": "BTCUSDT" + } + ] + }, + "description": "Start a new user data stream.\nThe stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.\n\nWeight: 1" + }, + "response": [] + }, + { + "name": "Ping/Keep-alive a Listen Key (USER_STREAM)", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" }, { "key": "X-MBX-APIKEY", @@ -15849,16 +16836,21 @@ } ], "url": { - "raw": "{{url}}/api/v3/userDataStream?listenKey=listen-key", + "raw": "{{url}}/sapi/v1/userDataStream/isolated?symbol=BTCUSDT&listenKey=listen-key", "host": [ "{{url}}" ], "path": [ - "api", - "v3", - "userDataStream" + "sapi", + "v1", + "userDataStream", + "isolated" ], "query": [ + { + "key": "symbol", + "value": "BTCUSDT" + }, { "key": "listenKey", "value": "listen-key", @@ -15887,16 +16879,21 @@ } ], "url": { - "raw": "{{url}}/api/v3/userDataStream?listenKey=listen-key", + "raw": "{{url}}/sapi/v1/userDataStream/isolated?symbol=BTCUSDT&listenKey=listen-key", "host": [ "{{url}}" ], "path": [ - "api", - "v3", - "userDataStream" + "sapi", + "v1", + "userDataStream", + "isolated" ], "query": [ + { + "key": "symbol", + "value": "BTCUSDT" + }, { "key": "listenKey", "value": "listen-key", @@ -15904,265 +16901,298 @@ } ] }, - "description": "Close out a user data stream.\n\nWeight: 1" - }, - "response": [] - } - ], - "description": "User Data Stream" + "description": "Close out a user data stream.\n\nWeight: 1" + }, + "response": [] + } + ], + "description": "Isolated User Data Stream" + } + ] + }, + { + "name": "Simple Earn", + "item": [ + { + "name": "Get Simple Earn Flexible Product 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/simple-earn/flexible/list?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "simple-earn", + "flexible", + "list" + ], + "query": [ + { + "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": "", + "description": "no more than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "Get available Simple Earn flexible product list\n\nWeight(IP): 150" + }, + "response": [] + }, + { + "name": "Get Simple Earn Locked Product 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/simple-earn/locked/list?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "simple-earn", + "locked", + "list" + ], + "query": [ + { + "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": "", + "description": "no more than 60000", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" + }, + { + "key": "signature", + "value": "{{signature}}", + "description": "Signature" + } + ] + }, + "description": "Get available Simple Earn locked product list\n\nWeight(IP): 150" + }, + "response": [] + }, + { + "name": "Subscribe Flexible Product (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/simple-earn/flexible/subscribe?productId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "simple-earn", + "flexible", + "subscribe" + ], + "query": [ + { + "key": "productId", + "value": "" + }, + { + "key": "amount", + "value": "" + }, + { + "key": "autoSubscribe", + "value": "", + "description": "true or false, default true", + "disabled": true + }, + { + "key": "sourceAccount", + "value": "", + "description": "no more than 60000", + "disabled": true + }, + { + "key": "recvWindow", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true + }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "Signature" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(IP): 1" + }, + "response": [] }, { - "name": "Cross Margin", - "item": [ - { - "name": "Create a ListenKey (USER_STREAM)", - "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/userDataStream", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "userDataStream" - ] - }, - "description": "Start a new user data stream.\nThe stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.\n\nWeight: 1" + "name": "Subscribe Locked Product (TRADE)", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" }, - "response": [] - }, - { - "name": "Ping/Keep-alive a ListenKey (USER_STREAM)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/userDataStream?listenKey=listen-key", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "userDataStream" - ], - "query": [ - { - "key": "listenKey", - "value": "listen-key", - "description": "User websocket listen key" - } - ] + { + "key": "X-MBX-APIKEY", + "value": "{{binance-api-key}}", + "type": "text" + } + ], + "url": { + "raw": "{{url}}/sapi/v1/simple-earn/locked/subscribe?projectId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "simple-earn", + "locked", + "subscribe" + ], + "query": [ + { + "key": "projectId", + "value": "" }, - "description": "Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 30 minutes.\n\nWeight: 1" - }, - "response": [] - }, - { - "name": "Close a ListenKey (USER_STREAM)", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/userDataStream?listenKey=listen-key", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "userDataStream" - ], - "query": [ - { - "key": "listenKey", - "value": "listen-key", - "description": "User websocket listen key" - } - ] + { + "key": "amount", + "value": "" }, - "description": "Close out a user data stream.\n\nWeight: 1" - }, - "response": [] - } - ], - "description": "Margin User Data Stream" - }, - { - "name": "Isolated Margin", - "item": [ - { - "name": "Generate a Listen Key (USER_STREAM)", - "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/userDataStream/isolated?symbol=BTCUSDT", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "userDataStream", - "isolated" - ], - "query": [ - { - "key": "symbol", - "value": "BTCUSDT" - } - ] + { + "key": "autoSubscribe", + "value": "", + "description": "true or false, default true", + "disabled": true }, - "description": "Start a new user data stream.\nThe stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.\n\nWeight: 1" - }, - "response": [] - }, - { - "name": "Ping/Keep-alive a Listen Key (USER_STREAM)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/userDataStream/isolated?symbol=BTCUSDT&listenKey=listen-key", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "userDataStream", - "isolated" - ], - "query": [ - { - "key": "symbol", - "value": "BTCUSDT" - }, - { - "key": "listenKey", - "value": "listen-key", - "description": "User websocket listen key" - } - ] + { + "key": "sourceAccount", + "value": "", + "description": "no more than 60000", + "disabled": true + }, + { + "key": "recvWindow", + "value": "", + "description": "UTC timestamp in ms", + "disabled": true }, - "description": "Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 30 minutes.\n\nWeight: 1" - }, - "response": [] - }, - { - "name": "Close a ListenKey (USER_STREAM)", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "X-MBX-APIKEY", - "value": "{{binance-api-key}}", - "type": "text" - } - ], - "url": { - "raw": "{{url}}/sapi/v1/userDataStream/isolated?symbol=BTCUSDT&listenKey=listen-key", - "host": [ - "{{url}}" - ], - "path": [ - "sapi", - "v1", - "userDataStream", - "isolated" - ], - "query": [ - { - "key": "symbol", - "value": "BTCUSDT" - }, - { - "key": "listenKey", - "value": "listen-key", - "description": "User websocket listen key" - } - ] + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "Signature" }, - "description": "Close out a user data stream.\n\nWeight: 1" - }, - "response": [] - } - ], - "description": "Isolated User Data Stream" - } - ] - }, - { - "name": "Simple Earn", - "item": [ + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(IP): 1" + }, + "response": [] + }, { - "name": "Get Simple Earn Flexible Product List (USER_DATA)", + "name": "Redeem Flexible Product (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -16176,7 +17206,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/list?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/redeem?productId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16185,26 +17215,86 @@ "v1", "simple-earn", "flexible", - "list" + "redeem" ], "query": [ { - "key": "asset", + "key": "productId", + "value": "" + }, + { + "key": "redeemAll", "value": "", + "description": "true or false, default to false", "disabled": true }, { - "key": "current", + "key": "amount", "value": "", - "description": "Currently querying page. Start from 1. Default:1", + "description": "if redeemAll is false, amount is mandatory", "disabled": true }, { - "key": "size", + "key": "destAccount", "value": "", - "description": "Default:10, Max:100", + "description": "no more than 60000", + "disabled": true + }, + { + "key": "recvWindow", + "value": "", + "description": "UTC timestamp in ms", "disabled": true }, + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "Signature" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(IP): 1" + }, + "response": [] + }, + { + "name": "Redeem Locked Product (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/simple-earn/locked/redeem?positionId=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "simple-earn", + "locked", + "redeem" + ], + "query": [ + { + "key": "positionId", + "value": "", + "description": "eg. 1234" + }, { "key": "recvWindow", "value": "", @@ -16223,12 +17313,12 @@ } ] }, - "description": "Get available Simple Earn flexible product list\n\nWeight(IP): 150" + "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Simple Earn Locked Product List (USER_DATA)", + "name": "Get Flexible Product Position (USER_DATA)", "request": { "method": "GET", "header": [ @@ -16244,7 +17334,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/list?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/position?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16252,8 +17342,8 @@ "sapi", "v1", "simple-earn", - "locked", - "list" + "flexible", + "position" ], "query": [ { @@ -16261,10 +17351,15 @@ "value": "", "disabled": true }, + { + "key": "productId", + "value": "", + "disabled": true + }, { "key": "current", "value": "", - "description": "Currently querying page. Start from 1. Default:1", + "description": "Currently querying the page. Start from 1. Default:1", "disabled": true }, { @@ -16291,14 +17386,14 @@ } ] }, - "description": "Get available Simple Earn locked product list\n\nWeight(IP): 150" + "description": "Weight(IP): 150" }, "response": [] }, { - "name": "Subscribe Flexible Product (TRADE)", + "name": "Get Locked Product Position (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -16312,7 +17407,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/subscribe?productId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/position?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16320,22 +17415,35 @@ "sapi", "v1", "simple-earn", - "flexible", - "subscribe" + "locked", + "position" ], "query": [ { - "key": "productId", - "value": "" + "key": "asset", + "value": "", + "disabled": true }, { - "key": "amount", - "value": "" + "key": "positionId", + "value": "", + "disabled": true }, { - "key": "autoSubscribe", + "key": "projectId", "value": "", - "description": "true or false, default true", + "disabled": true + }, + { + "key": "current", + "value": "", + "description": "Currently querying the page. Start from 1. Default:1", + "disabled": true + }, + { + "key": "size", + "value": "", + "description": "Default:10, Max:100", "disabled": true }, { @@ -16356,14 +17464,14 @@ } ] }, - "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(IP): 1" + "description": "Weight(IP): 150" }, "response": [] }, { - "name": "Subscribe Locked Product (TRADE)", + "name": "Simple Account (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -16377,7 +17485,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/subscribe?projectId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/account?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16385,24 +17493,9 @@ "sapi", "v1", "simple-earn", - "locked", - "subscribe" + "account" ], "query": [ - { - "key": "projectId", - "value": "" - }, - { - "key": "amount", - "value": "" - }, - { - "key": "autoSubscribe", - "value": "", - "description": "true or false, default true", - "disabled": true - }, { "key": "recvWindow", "value": "", @@ -16421,14 +17514,14 @@ } ] }, - "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(IP): 1" + "description": "Weight(IP): 150" }, "response": [] }, { - "name": "Redeem Flexible Product (TRADE)", + "name": "Get Flexible Subscription Record (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -16442,7 +17535,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/redeem?productId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/subscriptionRecord?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16451,23 +17544,45 @@ "v1", "simple-earn", "flexible", - "redeem" + "history", + "subscriptionRecord" ], "query": [ { "key": "productId", - "value": "" + "value": "", + "disabled": true + }, + { + "key": "purchaseId", + "value": "", + "disabled": true + }, + { + "key": "asset", + "value": "", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true }, { - "key": "redeemAll", + "key": "current", "value": "", - "description": "true or false, default to false", + "description": "Currently querying the page. Start from 1. Default:1", "disabled": true }, { - "key": "amount", + "key": "size", "value": "", - "description": "if redeemAll is false, amount is mandatory", + "description": "Default:10, Max:100", "disabled": true }, { @@ -16488,14 +17603,14 @@ } ] }, - "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.\n\nWeight(IP): 1" + "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" }, "response": [] }, { - "name": "Redeem Locked Product (TRADE)", + "name": "Get Locked Subscription Record (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -16509,7 +17624,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/redeem?positionId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/history/subscriptionRecord?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16518,13 +17633,41 @@ "v1", "simple-earn", "locked", - "redeem" + "history", + "subscriptionRecord" ], "query": [ { - "key": "positionId", + "key": "purchaseId", "value": "", - "description": "eg. 1234" + "disabled": true + }, + { + "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": "size", + "value": "", + "description": "Default:10, Max:100", + "disabled": true }, { "key": "recvWindow", @@ -16544,12 +17687,12 @@ } ] }, - "description": "Rate Limit: 1/3s per account\n\nYou need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint\n\nWeight(IP): 1" + "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" }, "response": [] }, { - "name": "Get Flexible Product Position (USER_DATA)", + "name": "Get Flexible Redemption Record (USER_DATA)", "request": { "method": "GET", "header": [ @@ -16565,7 +17708,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/position?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/redemptionRecord?signature={{signature}}", "host": [ "{{url}}" ], @@ -16574,41 +17717,46 @@ "v1", "simple-earn", "flexible", - "position" + "history", + "redemptionRecord" ], "query": [ { - "key": "asset", + "key": "productId", "value": "", "disabled": true }, { - "key": "productId", + "key": "redeemId", "value": "", "disabled": true }, { - "key": "current", + "key": "asset", "value": "", - "description": "Currently querying the page. Start from 1. Default:1", "disabled": true }, { - "key": "size", + "key": "startTime", "value": "", - "description": "Default:10, Max:100", "disabled": true }, { - "key": "recvWindow", + "key": "endTime", "value": "", - "description": "no more than 60000", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "current", + "value": "", + "description": "Currently querying the page. Start from 1. Default:1", + "disabled": true + }, + { + "key": "size", + "value": "", + "description": "Default:10, Max:100", + "disabled": true }, { "key": "signature", @@ -16622,7 +17770,7 @@ "response": [] }, { - "name": "Get Locked Product Position (USER_DATA)", + "name": "Get Locked Redemption Record (USER_DATA)", "request": { "method": "GET", "header": [ @@ -16638,7 +17786,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/position?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/history/redemptionRecord?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16647,21 +17795,32 @@ "v1", "simple-earn", "locked", - "position" + "history", + "redemptionRecord" ], "query": [ + { + "key": "positionId", + "value": "", + "disabled": true + }, + { + "key": "redeemId", + "value": "", + "disabled": true + }, { "key": "asset", "value": "", "disabled": true }, { - "key": "positionId", + "key": "startTime", "value": "", "disabled": true }, { - "key": "projectId", + "key": "endTime", "value": "", "disabled": true }, @@ -16695,12 +17854,12 @@ } ] }, - "description": "Weight(IP): 150" + "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" }, "response": [] }, { - "name": "Simple Account (USER_DATA)", + "name": "Get Flexible Rewards History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -16716,7 +17875,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/account?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/rewardsRecord?signature={{signature}}", "host": [ "{{url}}" ], @@ -16724,19 +17883,36 @@ "sapi", "v1", "simple-earn", - "account" + "flexible", + "history", + "rewardsRecord" ], "query": [ { - "key": "recvWindow", + "key": "productId", "value": "", - "description": "no more than 60000", "disabled": true }, { - "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "key": "asset", + "value": "", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true + }, + { + "key": "type", + "value": "", + "description": "BONUS, REALTIME, REWARDS", + "disabled": true }, { "key": "signature", @@ -16750,7 +17926,7 @@ "response": [] }, { - "name": "Get Flexible Subscription Record (USER_DATA)", + "name": "Get Locked Rewards History (USER_DATA)", "request": { "method": "GET", "header": [ @@ -16766,7 +17942,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/subscriptionRecord?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/history/redemptionRecord?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16774,18 +17950,13 @@ "sapi", "v1", "simple-earn", - "flexible", + "locked", "history", - "subscriptionRecord" + "redemptionRecord" ], "query": [ { - "key": "productId", - "value": "", - "disabled": true - }, - { - "key": "purchaseId", + "key": "positionId", "value": "", "disabled": true }, @@ -16839,9 +18010,9 @@ "response": [] }, { - "name": "Get Locked Subscription Record (USER_DATA)", + "name": "Set Flexible Auto Subscribe (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -16855,7 +18026,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/history/subscriptionRecord?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/setAutoSubscribe?productId=&autoSubscribe=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16863,42 +18034,18 @@ "sapi", "v1", "simple-earn", - "locked", - "history", - "subscriptionRecord" + "flexible", + "setAutoSubscribe" ], "query": [ { - "key": "purchaseId", - "value": "", - "disabled": true - }, - { - "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": "productId", + "value": "" }, { - "key": "size", + "key": "autoSubscribe", "value": "", - "description": "Default:10, Max:100", - "disabled": true + "description": "true or false" }, { "key": "recvWindow", @@ -16918,14 +18065,14 @@ } ] }, - "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" + "description": "Weight(IP): 150" }, "response": [] }, { - "name": "Get Flexible Redemption Record (USER_DATA)", + "name": "Set Locked Auto Subscribe (USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -16939,7 +18086,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/redemptionRecord?signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/setAutoSubscribe?positionId=&autoSubscribe=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -16947,47 +18094,84 @@ "sapi", "v1", "simple-earn", - "flexible", - "history", - "redemptionRecord" + "locked", + "setAutoSubscribe" ], "query": [ { - "key": "productId", - "value": "", - "disabled": true + "key": "positionId", + "value": "" }, { - "key": "redeemId", + "key": "autoSubscribe", "value": "", - "disabled": true + "description": "true or false" }, { - "key": "asset", + "key": "recvWindow", "value": "", + "description": "no more than 60000", "disabled": true }, { - "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" + } + ] + }, + "description": "Weight(IP): 150" + }, + "response": [] + }, + { + "name": "Get Flexible Personal Left Quota (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/simple-earn/flexible/personalLeftQuota?productId=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "simple-earn", + "flexible", + "personalLeftQuota" + ], + "query": [ + { + "key": "productId", + "value": "" }, { - "key": "current", + "key": "recvWindow", "value": "", - "description": "Currently querying the page. Start from 1. Default:1", + "description": "no more than 60000", "disabled": true }, { - "key": "size", - "value": "", - "description": "Default:10, Max:100", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", @@ -17001,7 +18185,7 @@ "response": [] }, { - "name": "Get Locked Redemption Record (USER_DATA)", + "name": "Get Locked Personal Left Quota (USER_DATA)", "request": { "method": "GET", "header": [ @@ -17017,7 +18201,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/history/redemptionRecord?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/personalLeftQuota?projectId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17026,46 +18210,12 @@ "v1", "simple-earn", "locked", - "history", - "redemptionRecord" + "personalLeftQuota" ], "query": [ { - "key": "positionId", - "value": "", - "disabled": true - }, - { - "key": "redeemId", - "value": "", - "disabled": true - }, - { - "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": "size", - "value": "", - "description": "Default:10, Max:100", - "disabled": true + "key": "projectId", + "value": "" }, { "key": "recvWindow", @@ -17085,12 +18235,12 @@ } ] }, - "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" + "description": "Weight(IP): 150" }, "response": [] }, { - "name": "Get Flexible Rewards History (USER_DATA)", + "name": "Get Flexible Subscription Preview (USER_DATA)", "request": { "method": "GET", "header": [ @@ -17106,7 +18256,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/rewardsRecord?type=&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/subscriptionPreview?productId=&amount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17115,35 +18265,27 @@ "v1", "simple-earn", "flexible", - "history", - "rewardsRecord" + "subscriptionPreview" ], "query": [ { "key": "productId", - "value": "", - "disabled": true - }, - { - "key": "asset", - "value": "", - "disabled": true + "value": "" }, { - "key": "startTime", - "value": "", - "disabled": true + "key": "amount", + "value": "" }, { - "key": "endTime", + "key": "recvWindow", "value": "", + "description": "no more than 60000", "disabled": true }, { - "key": "type", - "value": "", - "description": "BONUS, REALTIME, REWARDS", - "disabled": true + "key": "timestamp", + "value": "{{timestamp}}", + "description": "UTC timestamp in ms" }, { "key": "signature", @@ -17157,7 +18299,7 @@ "response": [] }, { - "name": "Get Locked Rewards History (USER_DATA)", + "name": "Get Locked Subscription Preview (USER_DATA)", "request": { "method": "GET", "header": [ @@ -17173,7 +18315,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/history/rewardsRecord?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/locked/subscriptionPreview?projectId=&amount=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17182,40 +18324,21 @@ "v1", "simple-earn", "locked", - "history", - "redemptionRecord" + "subscriptionPreview" ], "query": [ { - "key": "positionId", - "value": "", - "disabled": true - }, - { - "key": "asset", - "value": "", - "disabled": true - }, - { - "key": "startTime", - "value": "", - "disabled": true - }, - { - "key": "endTime", - "value": "", - "disabled": true + "key": "projectId", + "value": "" }, { - "key": "current", - "value": "", - "description": "Currently querying the page. Start from 1. Default:1", - "disabled": true + "key": "amount", + "value": "" }, { - "key": "size", + "key": "autoSubscribe", "value": "", - "description": "Default:10, Max:100", + "description": "true or false, default true.", "disabled": true }, { @@ -17236,14 +18359,14 @@ } ] }, - "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" + "description": "Weight(IP): 150" }, "response": [] }, { - "name": "Set Flexible Auto Subscribe (USER_DATA)", + "name": "Get Rate History (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -17257,7 +18380,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/setAutoSubscribe?productId=&autoSubscribe=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/rateHistory?productId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17266,7 +18389,8 @@ "v1", "simple-earn", "flexible", - "setAutoSubscribe" + "history", + "rateHistory" ], "query": [ { @@ -17274,9 +18398,26 @@ "value": "" }, { - "key": "autoSubscribe", + "key": "startTime", "value": "", - "description": "true or false" + "disabled": true + }, + { + "key": "endTime", + "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", @@ -17296,14 +18437,14 @@ } ] }, - "description": "Weight(IP): 150" + "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" }, "response": [] }, { - "name": "Set Locked Auto Subscribe (USER_DATA)", + "name": "Get Collateral Record (USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -17317,7 +18458,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/setAutoSubscribe?positionId=&autoSubscribe=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/collateralRecord?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17325,18 +18466,35 @@ "sapi", "v1", "simple-earn", - "locked", - "setAutoSubscribe" + "flexible", + "history", + "collateralRecord" ], "query": [ { - "key": "positionId", - "value": "" + "key": "productId", + "value": "", + "disabled": true }, { - "key": "autoSubscribe", + "key": "startTime", "value": "", - "description": "true or false" + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true + }, + { + "key": "current", + "value": "", + "disabled": true + }, + { + "key": "size", + "value": "", + "disabled": true }, { "key": "recvWindow", @@ -17356,12 +18514,18 @@ } ] }, - "description": "Weight(IP): 150" + "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 1" }, "response": [] - }, + } + ], + "description": "The endpoints allow you to interact with Binance Simple Earn.\n\nFor more information on this, please refer to the Binance Simple Earn page" + }, + { + "name": "Auto-Invest", + "item": [ { - "name": "Get Flexible Personal Left Quota (USER_DATA)", + "name": "Get target asset list(USER_DATA)", "request": { "method": "GET", "header": [ @@ -17377,22 +18541,34 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/personalLeftQuota?productId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/target-asset/list?targetAsset=&size=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "simple-earn", - "flexible", - "personalLeftQuota" + "lending", + "auto-invest", + "target-asset", + "list" ], "query": [ { - "key": "productId", + "key": "targetAsset", "value": "" }, + { + "key": "size", + "value": "", + "description": "Default: 8, Max:100" + }, + { + "key": "current", + "value": "", + "description": "Current query page. Default: 1, start from 1", + "disabled": true + }, { "key": "recvWindow", "value": "", @@ -17411,12 +18587,12 @@ } ] }, - "description": "Weight(IP): 150" + "description": "Weight(IP): 1" }, "response": [] }, { - "name": "Get Locked Personal Left Quota (USER_DATA)", + "name": "Get target asset ROI data(USER_DATA)", "request": { "method": "GET", "header": [ @@ -17432,22 +18608,29 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/personalLeftQuota?projectId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/target-asset/roi/list?targetAsset=&hisRoiType=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "simple-earn", - "locked", - "personalLeftQuota" + "lending", + "auto-invest", + "target-asset", + "roi", + "list" ], "query": [ { - "key": "projectId", + "key": "targetAsset", "value": "" }, + { + "key": "hisRoiType", + "value": "", + "description": "FIVE_YEAR,THREE_YEAR,ONE_YEAR,SIX_MONTH,THREE_MONTH,SEVEN_DAY" + }, { "key": "recvWindow", "value": "", @@ -17466,12 +18649,12 @@ } ] }, - "description": "Weight(IP): 150" + "description": "ROI return list for target asset\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Flexible Subscription Preview (USER_DATA)", + "name": "Query all source asset and target asset(USER_DATA)", "request": { "method": "GET", "header": [ @@ -17487,26 +18670,19 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/subscriptionPreview?productId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/all/asset?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "simple-earn", - "flexible", - "subscriptionPreview" + "lending", + "auto-invest", + "all", + "asset" ], "query": [ - { - "key": "productId", - "value": "" - }, - { - "key": "amount", - "value": "" - }, { "key": "recvWindow", "value": "", @@ -17525,12 +18701,12 @@ } ] }, - "description": "Weight(IP): 150" + "description": "Query all source assets and target assets\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Locked Subscription Preview (USER_DATA)", + "name": "Query source asset list(USER_DATA)", "request": { "method": "GET", "header": [ @@ -17546,30 +18722,39 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/locked/subscriptionPreview?projectId=&amount=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/source-asset/list?usageType=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "simple-earn", - "locked", - "subscriptionPreview" + "lending", + "auto-invest", + "source-asset", + "list" ], "query": [ { - "key": "projectId", - "value": "" + "key": "targetAsset", + "value": "", + "description": "eg. BTC、ETH、BNB", + "disabled": true }, { - "key": "amount", - "value": "" + "key": "indexId", + "value": "", + "description": "identifier, value = 1", + "disabled": true }, { - "key": "autoSubscribe", + "key": "usageType", + "value": "", + "description": "eg. RECURRING, ONE_TIME" + }, + { + "key": "flexibleAllowedToUse", "value": "", - "description": "true or false, default true.", "disabled": true }, { @@ -17590,14 +18775,14 @@ } ] }, - "description": "Weight(IP): 150" + "description": "Query Source Asset to be used for investment\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Rate History (USER_DATA)", + "name": "Investment plan creation(USER_DATA)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -17611,45 +18796,87 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/rateHistory?productId=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/add?UID=&sourceType=&planType=&subscriptionAmount=&subscriptionCycle=&subscriptionStartTime=&sourceAsset=&details=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "simple-earn", - "flexible", - "history", - "rateHistory" + "lending", + "auto-invest", + "plan", + "add" ], "query": [ { - "key": "productId", + "key": "UID", "value": "" }, { - "key": "startTime", + "key": "sourceType", + "value": "", + "description": "eg. MAIN_SITE,TR" + }, + { + "key": "requestId", "value": "", + "description": "if not null, must follow businessReference + unique string, e.g: TR12354859", "disabled": true }, { - "key": "endTime", + "key": "planType", + "value": "", + "description": "eg. SINGLE, PORTFOLIO, INDEX" + }, + { + "key": "IndexId", + "value": "", + "description": "Only for planType = INDEX , value = 1", + "disabled": true + }, + { + "key": "subscriptionAmount", + "value": "", + "description": "BUSD/USDT: 2dp, Fiat:5dp, BNB/ETH/BTC: 4dp" + }, + { + "key": "subscriptionCycle", + "value": "", + "description": "eg. H1, H4, H8,H12, WEEKLY, DAILY, MONTHLY, BI_WEEKLY" + }, + { + "key": "subscriptionStartDay", "value": "", + "description": "“1”,...”31”; Mandatory if “subscriptionCycleNumberUnit” = “MONTHLY”, Must be sent in form of UTC+0", "disabled": true }, { - "key": "current", + "key": "subscriptionStartWeekday", "value": "", - "description": "Currently querying page. Start from 1. Default:1", + "description": "“MON”,”TUE”,”WED”,”THU”,”FRI”,”SAT”,”SUN”; Mandatory if “subscriptionCycleNumberUnit” = “WEEKLY” or “BI_WEEKLY”, Must be sent in form of UTC+0", "disabled": true }, { - "key": "size", + "key": "subscriptionStartTime", + "value": "", + "description": "“0,1,2,3,4,5,6,7,8,..23”;Must be sent in form of UTC+0" + }, + { + "key": "sourceAsset", + "value": "", + "description": "eg. USDT" + }, + { + "key": "flexibleAllowedToUse", "value": "", - "description": "Default:10, Max:100", "disabled": true }, + { + "key": "details", + "value": "", + "description": "sum(all node's percentage) == 100, when in request parameter, just like this details[0].targetAsset=BTC details[0].percentage=60 details[1].targetAsset=ETH" + }, { "key": "recvWindow", "value": "", @@ -17668,14 +18895,14 @@ } ] }, - "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 150" + "description": "Post an investment plan creation\n\nmax one request every 3s per account\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get Collateral Record (USER_DATA)", + "name": "Investment plan adjustment (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -17689,44 +18916,66 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/simple-earn/flexible/history/collateralRecord?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/edit?planId=&subscriptionAmount=&subscriptionCycle=&subscriptionStartTime=&sourceAsset=&details=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], "path": [ "sapi", "v1", - "simple-earn", - "flexible", - "history", - "collateralRecord" + "lending", + "auto-invest", + "plan", + "edit" ], "query": [ { - "key": "productId", + "key": "planId", "value": "", - "disabled": true + "description": "Plan identifier" }, { - "key": "startTime", + "key": "subscriptionAmount", "value": "", - "disabled": true + "description": "BUSD/USDT: 2dp, Fiat:5dp, BNB/ETH/BTC: 4dp" }, { - "key": "endTime", + "key": "subscriptionCycle", "value": "", + "description": "eg. H1, H4, H8,H12, WEEKLY, DAILY, MONTHLY, BI_WEEKLY" + }, + { + "key": "subscriptionStartDay", + "value": "", + "description": "“1”,...”31”; Mandatory if “subscriptionCycleNumberUnit” = “MONTHLY”, Must be sent in form of UTC+0", "disabled": true }, { - "key": "current", + "key": "subscriptionStartWeekday", "value": "", + "description": "“MON”,”TUE”,”WED”,”THU”,”FRI”,”SAT”,”SUN”; Mandatory if “subscriptionCycleNumberUnit” = “WEEKLY” or “BI_WEEKLY”, Must be sent in form of UTC+0", "disabled": true }, { - "key": "size", + "key": "subscriptionStartTime", + "value": "", + "description": "“0,1,2,3,4,5,6,7,8,..23”;Must be sent in form of UTC+0" + }, + { + "key": "sourceAsset", + "value": "", + "description": "eg. USDT" + }, + { + "key": "flexibleAllowedToUse", "value": "", "disabled": true }, + { + "key": "details", + "value": "", + "description": "sum(all node's percentage) == 100, when in request parameter, just like this details[0].targetAsset=BTC details[0].percentage=60 details[1].targetAsset=ETH" + }, { "key": "recvWindow", "value": "", @@ -17745,20 +18994,14 @@ } ] }, - "description": "The time between startTime and endTime cannot be longer than 3 months.\nIf startTime and endTime are both not sent, then the last 30 days' data will be returned.\nIf startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.\nIf endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.\n\nWeight(IP): 1" + "description": "Query Source Asset to be used for investment\n\nmax one request every 3s per account\n\nWeight(IP): 1" }, "response": [] - } - ], - "description": "The endpoints allow you to interact with Binance Simple Earn.\n\nFor more information on this, please refer to the Binance Simple Earn page" - }, - { - "name": "Auto-Invest", - "item": [ + }, { - "name": "Get target asset list(USER_DATA)", + "name": "Change Plan Status (TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -17772,7 +19015,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/target-asset/list?targetAsset=&size=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/edit-status?planId=&status=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17781,24 +19024,19 @@ "v1", "lending", "auto-invest", - "target-asset", - "list" + "plan", + "edit-status" ], "query": [ { - "key": "targetAsset", - "value": "" - }, - { - "key": "size", + "key": "planId", "value": "", - "description": "Default: 8, Max:100" + "description": "Plan identifier" }, { - "key": "current", + "key": "status", "value": "", - "description": "Current query page. Default: 1, start from 1", - "disabled": true + "description": "eg. ONGOING, PAUSED, REMOVED" }, { "key": "recvWindow", @@ -17818,12 +19056,12 @@ } ] }, - "description": "Weight(IP): 1" + "description": "Change Plan Status\n\nmax one request every 3s per account\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get target asset ROI data(USER_DATA)", + "name": "Get list of plans (USER_DATA)", "request": { "method": "GET", "header": [ @@ -17839,7 +19077,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/target-asset/roi/list?targetAsset=&hisRoiType=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/list?planType=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17848,19 +19086,14 @@ "v1", "lending", "auto-invest", - "target-asset", - "roi", + "plan", "list" ], "query": [ { - "key": "targetAsset", - "value": "" - }, - { - "key": "hisRoiType", + "key": "planType", "value": "", - "description": "FIVE_YEAR,THREE_YEAR,ONE_YEAR,SIX_MONTH,THREE_MONTH,SEVEN_DAY" + "description": "Plan identifier" }, { "key": "recvWindow", @@ -17880,12 +19113,12 @@ } ] }, - "description": "ROI return list for target asset\n\nWeight(IP): 1" + "description": "Query plan lists\n\nmax one request every 3s per account\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query all source asset and target asset(USER_DATA)", + "name": "Query holding details of the plan (USER_DATA)", "request": { "method": "GET", "header": [ @@ -17901,7 +19134,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/all/asset?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/id?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17910,10 +19143,22 @@ "v1", "lending", "auto-invest", - "all", - "asset" + "plan", + "id" ], "query": [ + { + "key": "planId", + "value": "", + "description": "Plan identifier", + "disabled": true + }, + { + "key": "requestId", + "value": "", + "description": "requestId when create", + "disabled": true + }, { "key": "recvWindow", "value": "", @@ -17932,12 +19177,12 @@ } ] }, - "description": "Query all source assets and target assets\n\nWeight(IP): 1" + "description": "Query holding details of the plan\n\nmax one request every 3s per account\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query source asset list(USER_DATA)", + "name": "Query subscription transaction history (USER_DATA)", "request": { "method": "GET", "header": [ @@ -17953,7 +19198,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/source-asset/list?usageType=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/history/list?timestamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -17962,10 +19207,26 @@ "v1", "lending", "auto-invest", - "source-asset", + "history", "list" ], "query": [ + { + "key": "planId", + "value": "", + "description": "Plan identifier", + "disabled": true + }, + { + "key": "startTime", + "value": "", + "disabled": true + }, + { + "key": "endTime", + "value": "", + "disabled": true + }, { "key": "targetAsset", "value": "", @@ -17973,19 +19234,21 @@ "disabled": true }, { - "key": "indexId", + "key": "planType", "value": "", - "description": "identifier, value = 1", + "description": "SINGLE, PORTFOLIO, INDEX, ALL", "disabled": true }, { - "key": "usageType", + "key": "size", "value": "", - "description": "eg. RECURRING, ONE_TIME" + "description": "Default:10, Max:100", + "disabled": true }, { - "key": "flexibleAllowedToUse", + "key": "current", "value": "", + "description": "Currently querying page. Start from 1. Default:1", "disabled": true }, { @@ -18006,14 +19269,14 @@ } ] }, - "description": "Query Source Asset to be used for investment\n\nWeight(IP): 1" + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Investment plan creation(USER_DATA)", + "name": "Query Index Details(USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -18027,7 +19290,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/add?UID=&sourceType=&planType=&subscriptionAmount=&subscriptionCycle=&subscriptionStartTime=&sourceAsset=&details=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/index/info?indexId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -18036,102 +19299,88 @@ "v1", "lending", "auto-invest", - "plan", - "add" + "index", + "info" ], "query": [ { - "key": "UID", + "key": "indexId", "value": "" }, { - "key": "sourceType", - "value": "", - "description": "eg. MAIN_SITE,TR" - }, - { - "key": "requestId", - "value": "", - "description": "if not null, must follow businessReference + unique string, e.g: TR12354859", - "disabled": true - }, - { - "key": "planType", - "value": "", - "description": "eg. SINGLE, PORTFOLIO, INDEX" - }, - { - "key": "IndexId", - "value": "", - "description": "Only for planType = INDEX , value = 1", - "disabled": true - }, - { - "key": "subscriptionAmount", - "value": "", - "description": "BUSD/USDT: 2dp, Fiat:5dp, BNB/ETH/BTC: 4dp" - }, - { - "key": "subscriptionCycle", - "value": "", - "description": "eg. H1, H4, H8,H12, WEEKLY, DAILY, MONTHLY, BI_WEEKLY" - }, - { - "key": "subscriptionStartDay", - "value": "", - "description": "“1”,...”31”; Mandatory if “subscriptionCycleNumberUnit” = “MONTHLY”, Must be sent in form of UTC+0", - "disabled": true - }, - { - "key": "subscriptionStartWeekday", + "key": "recvWindow", "value": "", - "description": "“MON”,”TUE”,”WED”,”THU”,”FRI”,”SAT”,”SUN”; Mandatory if “subscriptionCycleNumberUnit” = “WEEKLY” or “BI_WEEKLY”, Must be sent in form of UTC+0", "disabled": true }, { - "key": "subscriptionStartTime", - "value": "", - "description": "“0,1,2,3,4,5,6,7,8,..23”;Must be sent in form of UTC+0" - }, - { - "key": "sourceAsset", - "value": "", - "description": "eg. USDT" + "key": "timestamp", + "value": "{{timestamp}}" }, { - "key": "flexibleAllowedToUse", - "value": "", - "disabled": true - }, + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" + }, + "response": [] + }, + { + "name": "Query Index Linked Plan Position Details(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/lending/auto-invest/index/user-summary?indexId=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "lending", + "auto-invest", + "index", + "user-summary" + ], + "query": [ { - "key": "details", - "value": "", - "description": "sum(all node's percentage) == 100, when in request parameter, just like this details[0].targetAsset=BTC details[0].percentage=60 details[1].targetAsset=ETH" + "key": "indexId", + "value": "" }, { "key": "recvWindow", "value": "", - "description": "no more than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "Post an investment plan creation\n\nmax one request every 3s per account\n\nWeight(IP): 1" + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Investment plan adjustment (TRADE)", + "name": "One Time Transaction(TRADE)", "request": { "method": "POST", "header": [ @@ -18147,7 +19396,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/edit?planId=&subscriptionAmount=&subscriptionCycle=&subscriptionStartTime=&sourceAsset=&details=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/one-off?sourceType=&requestId=&subscriptionAmount=&sourceAsset=&flexibleAllowedToUse=&planId=&indexId=&details=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -18156,83 +19405,64 @@ "v1", "lending", "auto-invest", - "plan", - "edit" + "one-off" ], "query": [ { - "key": "planId", - "value": "", - "description": "Plan identifier" - }, - { - "key": "subscriptionAmount", - "value": "", - "description": "BUSD/USDT: 2dp, Fiat:5dp, BNB/ETH/BTC: 4dp" + "key": "sourceType", + "value": "" }, { - "key": "subscriptionCycle", - "value": "", - "description": "eg. H1, H4, H8,H12, WEEKLY, DAILY, MONTHLY, BI_WEEKLY" + "key": "requestId", + "value": "" }, { - "key": "subscriptionStartDay", - "value": "", - "description": "“1”,...”31”; Mandatory if “subscriptionCycleNumberUnit” = “MONTHLY”, Must be sent in form of UTC+0", - "disabled": true + "key": "subscriptionAmount", + "value": "" }, { - "key": "subscriptionStartWeekday", - "value": "", - "description": "“MON”,”TUE”,”WED”,”THU”,”FRI”,”SAT”,”SUN”; Mandatory if “subscriptionCycleNumberUnit” = “WEEKLY” or “BI_WEEKLY”, Must be sent in form of UTC+0", - "disabled": true + "key": "sourceAsset", + "value": "" }, { - "key": "subscriptionStartTime", - "value": "", - "description": "“0,1,2,3,4,5,6,7,8,..23”;Must be sent in form of UTC+0" + "key": "flexibleAllowedToUse", + "value": "" }, { - "key": "sourceAsset", - "value": "", - "description": "eg. USDT" + "key": "planId", + "value": "" }, { - "key": "flexibleAllowedToUse", - "value": "", - "disabled": true + "key": "indexId", + "value": "" }, { "key": "details", - "value": "", - "description": "sum(all node's percentage) == 100, when in request parameter, just like this details[0].targetAsset=BTC details[0].percentage=60 details[1].targetAsset=ETH" + "value": "" }, { "key": "recvWindow", "value": "", - "description": "no more than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "Query Source Asset to be used for investment\n\nmax one request every 3s per account\n\nWeight(IP): 1" + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Change Plan Status (TRADE)", + "name": "Query One-Time Transaction Status(USER_DATA)", "request": { - "method": "POST", + "method": "GET", "header": [ { "key": "Content-Type", @@ -18246,7 +19476,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/edit-status?planId=&status=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/one-off/status?transactionId=&requestId=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -18255,46 +19485,41 @@ "v1", "lending", "auto-invest", - "plan", - "edit-status" + "one-off", + "status" ], "query": [ { - "key": "planId", - "value": "", - "description": "Plan identifier" + "key": "transactionId", + "value": "" }, { - "key": "status", - "value": "", - "description": "eg. ONGOING, PAUSED, REMOVED" + "key": "requestId", + "value": "" }, { "key": "recvWindow", "value": "", - "description": "no more than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "Change Plan Status\n\nmax one request every 3s per account\n\nWeight(IP): 1" + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Get list of plans (USER_DATA)", + "name": "Index Linked Plan Redemption(TRADE)", "request": { - "method": "GET", + "method": "POST", "header": [ { "key": "Content-Type", @@ -18308,7 +19533,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/list?planType=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/redeem?indexId=&requestId=&redemptionPercentage=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -18317,39 +19542,42 @@ "v1", "lending", "auto-invest", - "plan", - "list" + "redeem" ], "query": [ { - "key": "planType", - "value": "", - "description": "Plan identifier" + "key": "indexId", + "value": "" + }, + { + "key": "requestId", + "value": "" + }, + { + "key": "redemptionPercentage", + "value": "" }, { "key": "recvWindow", "value": "", - "description": "no more than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "Query plan lists\n\nmax one request every 3s per account\n\nWeight(IP): 1" + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query holding details of the plan (USER_DATA)", + "name": "Index Linked Plan Redemption(USER_DATA)", "request": { "method": "GET", "header": [ @@ -18365,7 +19593,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/plan/id?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/redeem/history?requestId=&startTime=&endTime=¤t=&asset=&size=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -18374,46 +19602,55 @@ "v1", "lending", "auto-invest", - "plan", - "id" + "redeem", + "history" ], "query": [ { - "key": "planId", - "value": "", - "description": "Plan identifier", - "disabled": true + "key": "requestId", + "value": "" }, { - "key": "requestId", - "value": "", - "description": "requestId when create", - "disabled": true + "key": "startTime", + "value": "" + }, + { + "key": "endTime", + "value": "" + }, + { + "key": "current", + "value": "" + }, + { + "key": "asset", + "value": "" + }, + { + "key": "size", + "value": "" }, { "key": "recvWindow", "value": "", - "description": "no more than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, - "description": "Query holding details of the plan\n\nmax one request every 3s per account\n\nWeight(IP): 1" + "description": "Query subscription transaction history of a plan\n\nMax span between startTime and endTime is 30days\n\nIf both startTime and endTime are null, then default is 30days\n\nWeight(IP): 1" }, "response": [] }, { - "name": "Query subscription transaction history (USER_DATA)", + "name": "Index Linked Plan Rebalance Details(USER_DATA)", "request": { "method": "GET", "header": [ @@ -18429,7 +19666,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/lending/auto-invest/history/list?timestamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/lending/auto-invest/rebalance/history?startTime=&endTime=¤t=&size=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -18438,65 +19675,38 @@ "v1", "lending", "auto-invest", - "history", - "list" + "rebalance", + "history" ], "query": [ - { - "key": "planId", - "value": "", - "description": "Plan identifier", - "disabled": true - }, { "key": "startTime", - "value": "", - "disabled": true + "value": "" }, { "key": "endTime", - "value": "", - "disabled": true - }, - { - "key": "targetAsset", - "value": "", - "description": "eg. BTC、ETH、BNB", - "disabled": true + "value": "" }, { - "key": "planType", - "value": "", - "description": "SINGLE, PORTFOLIO, INDEX, ALL", - "disabled": true + "key": "current", + "value": "" }, { "key": "size", - "value": "", - "description": "Default:10, Max:100", - "disabled": true - }, - { - "key": "current", - "value": "", - "description": "Currently querying page. Start from 1. Default:1", - "disabled": true + "value": "" }, { "key": "recvWindow", "value": "", - "description": "no more than 60000", "disabled": true }, { "key": "timestamp", - "value": "{{timestamp}}", - "description": "UTC timestamp in ms" + "value": "{{timestamp}}" }, { "key": "signature", - "value": "{{signature}}", - "description": "Signature" + "value": "{{signature}}" } ] }, @@ -19833,7 +21043,6 @@ }, "response": [] }, - { "name": "BUSD Convert (TRADE)", "request": { @@ -20302,6 +21511,126 @@ "description": "Apply deposit credit for expired address (One click arrival)\n\nParams need to be in the POST body\n\nWeight(IP): 1" }, "response": [] + }, + { + "name": "Query User Wallet Balance (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/asset/wallet/balance?timestamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "asset", + "wallet", + "balance" + ], + "query": [ + { + "key": "timestamp", + "value": "{{timestamp}}", + "description": "Signature" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Apply deposit credit for expired address (One click arrival)\n\nParams need to be in the POST body\n\nWeight(IP): 1" + }, + "response": [] + }, + { + "name": "Query User Delegation History(For Master 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/asset/custody/transfer-history?email=&startTime=&endTime=&type=&asset=¤t=&size=&recvWindow=5000×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "asset", + "custody", + "transfer-history" + ], + "query": [ + { + "key": "email", + "value": "", + "description": "Signature" + }, + { + "key": "startTime", + "value": "" + }, + { + "key": "endTime", + "value": "" + }, + { + "key": "type", + "value": "" + }, + { + "key": "asset", + "value": "" + }, + { + "key": "current", + "value": "" + }, + { + "key": "size", + "value": "" + }, + { + "key": "recvWindow", + "value": "5000" + }, + { + "key": "timestamp", + "value": "{{timestamp}}" + }, + { + "key": "signature", + "value": "{{signature}}" + } + ] + }, + "description": "Apply deposit credit for expired address (One click arrival)\n\nParams need to be in the POST body\n\nWeight(IP): 1" + }, + "response": [] } ], "description": "Wallet Endpoints" @@ -20669,7 +21998,7 @@ } ], "url": { - "raw": "{{url}}/sapi/v1/loan/vip/borrow?loanAccountId=&loanCoin=&loanAmount=&collateralAccountId=&collateralCoin=&loanTerm=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/sapi/v1/loan/vip/borrow?loanAccountId=&loanCoin=&loanAmount=&collateralAccountId=&collateralCoin=&isFlexibleRate=&loanTerm=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ], @@ -20704,25 +22033,29 @@ "description": "Multiple split by ," }, { - "key": "loanTerm", + "key": "isFlexibleRate", "value": "", "description": "30/60 days" }, + { + "key": "loanTerm", + "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}}" } ] }, @@ -20913,6 +22246,63 @@ "description": "Weight(UID): 400" }, "response": [] + }, + { + "name": "Get Borrow 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/loan/vip/request/interestRate?loanCoin=×tamp={{timestamp}}&signature={{signature}}", + "host": [ + "{{url}}" + ], + "path": [ + "sapi", + "v1", + "loan", + "vip", + "request", + "interestRate" + ], + "query": [ + { + "key": "loanCoin", + "value": "", + "description": "Currently querying page. Start from 1, Default:1, Max: 1000" + }, + { + "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(UID): 400" + }, + "response": [] } ] } diff --git a/collections/Binance USDs-M Futures API.postman_collection.json b/collections/Binance USDs-M Futures API.postman_collection.json index cf60a15..bc3bc8d 100644 --- a/collections/Binance USDs-M Futures API.postman_collection.json +++ b/collections/Binance USDs-M Futures API.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "85e54a6a-77bc-4279-afa6-91e72d1f2c7a", + "_postman_id": "666c2725-1ed5-4769-908e-614d2782f4a5", "name": "Binance USDs-M Futures API", "description": "Binance official supported Postman collections.
\n- API documents: https://binance-docs.github.io/apidocs/futures/en/\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", @@ -1091,6 +1091,144 @@ } }, "response": [] + }, + { + "name": "Get Funding Rate Info", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/fapi/v1/assetIndex", + "host": [ + "{{url}}" + ], + "path": [ + "fapi", + "v1", + "assetIndex" + ] + } + }, + "response": [] + }, + { + "name": "Query Index Price Constituents", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/fapi/v1/constituents?symbol", + "host": [ + "{{url}}" + ], + "path": [ + "fapi", + "v1", + "constituents" + ], + "query": [ + { + "key": "symbol", + "value": null + } + ] + } + }, + "response": [] + }, + { + "name": "Quarterly Contract Settlement Price", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/fapi/v1/constituents?pair", + "host": [ + "{{url}}" + ], + "path": [ + "fapi", + "v1", + "constituents" + ], + "query": [ + { + "key": "pair", + "value": null + } + ] + } + }, + "response": [] + }, + { + "name": "Basis", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "url": { + "raw": "{{url}}/futures/data/basis?pair=&contractType=&period=&limit=&startTime=&endTime=", + "host": [ + "{{url}}" + ], + "path": [ + "futures", + "data", + "basis" + ], + "query": [ + { + "key": "pair", + "value": "" + }, + { + "key": "contractType", + "value": "" + }, + { + "key": "period", + "value": "" + }, + { + "key": "limit", + "value": "" + }, + { + "key": "startTime", + "value": "" + }, + { + "key": "endTime", + "value": "" + } + ] + } + }, + "response": [] } ] }, @@ -1203,23 +1341,28 @@ }, { "key": "startTime", - "value": null, + "value": "", "disabled": true }, { "key": "endTime", - "value": null, + "value": "", + "disabled": true + }, + { + "key": "page", + "value": "", "disabled": true }, { "key": "limit", "value": "100", + "description": "The value cannot be greater than 60000", "disabled": true }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { @@ -1830,15 +1973,35 @@ "disabled": true }, { - "key": "newOrderRespType", + "key": "priceProtect", "value": "", "description": "\"ACK\", \"RESULT\", default \"ACK\"", "disabled": true }, + { + "key": "newOrderRespType", + "value": "", + "description": "The value cannot be greater than 60000", + "disabled": true + }, + { + "key": "priceMatch", + "value": "", + "disabled": true + }, + { + "key": "selfTradePreventionMode", + "value": "", + "disabled": true + }, + { + "key": "goodTillDate", + "value": "", + "disabled": true + }, { "key": "recvWindow", "value": "5000", - "description": "The value cannot be greater than 60000", "disabled": true }, { @@ -1884,7 +2047,7 @@ } ], "url": { - "raw": "{{url}}/fapi/v1/order?symbol=&side=&type=&quantity=&price=×tamp={{timestamp}}&signature={{signature}}", + "raw": "{{url}}/fapi/v1/order?symbol=&side=&quantity=&price=×tamp={{timestamp}}&signature={{signature}}", "host": [ "{{url}}" ],