@binance/margin-trading 13.0.3 → 13.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +21 -6
- package/dist/index.d.ts +21 -6
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3015,12 +3015,6 @@ interface QueryCrossMarginAccountDetailsResponse {
|
|
|
3015
3015
|
* @memberof QueryCrossMarginAccountDetailsResponse
|
|
3016
3016
|
*/
|
|
3017
3017
|
TotalCollateralValueInUSDT?: string;
|
|
3018
|
-
/**
|
|
3019
|
-
* total Open Order Loss In USDT.
|
|
3020
|
-
* @type {string}
|
|
3021
|
-
* @memberof QueryCrossMarginAccountDetailsResponse
|
|
3022
|
-
*/
|
|
3023
|
-
totalOpenOrderLossInUSDT?: string;
|
|
3024
3018
|
/**
|
|
3025
3019
|
* trade Enabled.
|
|
3026
3020
|
* @type {boolean}
|
|
@@ -5771,6 +5765,13 @@ interface BorrowRepayApiInterface {
|
|
|
5771
5765
|
*
|
|
5772
5766
|
* Security Type: USER_DATA
|
|
5773
5767
|
*
|
|
5768
|
+
* Notes:
|
|
5769
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
5770
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
5771
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
5772
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
5773
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
5774
|
+
*
|
|
5774
5775
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
5775
5776
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
5776
5777
|
*
|
|
@@ -6140,6 +6141,13 @@ declare class BorrowRepayApi implements BorrowRepayApiInterface {
|
|
|
6140
6141
|
*
|
|
6141
6142
|
* Security Type: USER_DATA
|
|
6142
6143
|
*
|
|
6144
|
+
* Notes:
|
|
6145
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
6146
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
6147
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
6148
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
6149
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
6150
|
+
*
|
|
6143
6151
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
6144
6152
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
6145
6153
|
* @returns {Promise<RestApiResponse<MarginAccountBorrowRepayResponse>>}
|
|
@@ -10208,6 +10216,13 @@ declare class RestAPI {
|
|
|
10208
10216
|
*
|
|
10209
10217
|
* Security Type: USER_DATA
|
|
10210
10218
|
*
|
|
10219
|
+
* Notes:
|
|
10220
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
10221
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
10222
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
10223
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
10224
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
10225
|
+
*
|
|
10211
10226
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
10212
10227
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
10213
10228
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3017,12 +3017,6 @@ interface QueryCrossMarginAccountDetailsResponse {
|
|
|
3017
3017
|
* @memberof QueryCrossMarginAccountDetailsResponse
|
|
3018
3018
|
*/
|
|
3019
3019
|
TotalCollateralValueInUSDT?: string;
|
|
3020
|
-
/**
|
|
3021
|
-
* total Open Order Loss In USDT.
|
|
3022
|
-
* @type {string}
|
|
3023
|
-
* @memberof QueryCrossMarginAccountDetailsResponse
|
|
3024
|
-
*/
|
|
3025
|
-
totalOpenOrderLossInUSDT?: string;
|
|
3026
3020
|
/**
|
|
3027
3021
|
* trade Enabled.
|
|
3028
3022
|
* @type {boolean}
|
|
@@ -5773,6 +5767,13 @@ interface BorrowRepayApiInterface {
|
|
|
5773
5767
|
*
|
|
5774
5768
|
* Security Type: USER_DATA
|
|
5775
5769
|
*
|
|
5770
|
+
* Notes:
|
|
5771
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
5772
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
5773
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
5774
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
5775
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
5776
|
+
*
|
|
5776
5777
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
5777
5778
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
5778
5779
|
*
|
|
@@ -6142,6 +6143,13 @@ declare class BorrowRepayApi implements BorrowRepayApiInterface {
|
|
|
6142
6143
|
*
|
|
6143
6144
|
* Security Type: USER_DATA
|
|
6144
6145
|
*
|
|
6146
|
+
* Notes:
|
|
6147
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
6148
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
6149
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
6150
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
6151
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
6152
|
+
*
|
|
6145
6153
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
6146
6154
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
6147
6155
|
* @returns {Promise<RestApiResponse<MarginAccountBorrowRepayResponse>>}
|
|
@@ -10210,6 +10218,13 @@ declare class RestAPI {
|
|
|
10210
10218
|
*
|
|
10211
10219
|
* Security Type: USER_DATA
|
|
10212
10220
|
*
|
|
10221
|
+
* Notes:
|
|
10222
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
10223
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
10224
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
10225
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
10226
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
10227
|
+
*
|
|
10213
10228
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
10214
10229
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
10215
10230
|
*
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/margin-trading";
|
|
17
|
-
var version = "13.0.
|
|
17
|
+
var version = "13.0.5";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -712,6 +712,13 @@ var BorrowRepayApi = class {
|
|
|
712
712
|
*
|
|
713
713
|
* Security Type: USER_DATA
|
|
714
714
|
*
|
|
715
|
+
* Notes:
|
|
716
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
717
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
718
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
719
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
720
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
721
|
+
*
|
|
715
722
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
716
723
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
717
724
|
* @returns {Promise<RestApiResponse<MarginAccountBorrowRepayResponse>>}
|
|
@@ -3632,6 +3639,13 @@ var RestAPI = class {
|
|
|
3632
3639
|
*
|
|
3633
3640
|
* Security Type: USER_DATA
|
|
3634
3641
|
*
|
|
3642
|
+
* Notes:
|
|
3643
|
+
* - `-3045 INSUFFICIENT_INVENTORY`: returned when system borrowable inventory is below the requested amount, or when inventory is severely insufficient (all borrow requests rejected regardless of size). Monitor system asset availability and adjust borrow strategy accordingly.
|
|
3644
|
+
* - `-3006 EXCEED_MAX_BORROWABLE`: borrow amount exceeds your current max borrowable limit. Query `GET /sapi/v1/margin/maxBorrowable` and adjust the request.
|
|
3645
|
+
* - `-3012 ASSET_ADMIN_BAN_BORROW`: this asset does not currently support borrowing. Query `GET /sapi/v1/margin/allAssets` for asset borrow availability.
|
|
3646
|
+
* - `-3015 REPAY_EXCEED_LIABILITY`: returned in two scenarios — (1) repay amount exceeds your outstanding liability, or (2) the remaining unpaid debt after this repayment would fall below Binance's minimum threshold. Adjust the repay amount accordingly.
|
|
3647
|
+
* - `-3007 HAS_PENDING_TRANSACTION`: a borrow/repay transaction is already in progress on this account. Requests are processed in submission order across all assets, and an in-flight request briefly blocks subsequent ones. Typical processing time is ~100ms; space consecutive requests by at least 100ms. Auto-repay orders can also fail silently for this reason — verify outstanding liability after an auto-repay executes.
|
|
3648
|
+
*
|
|
3635
3649
|
* @summary Margin account borrow/repay (USER_DATA)
|
|
3636
3650
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
3637
3651
|
*
|