@binance/crypto-loan 4.0.0 → 6.0.0

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.mjs CHANGED
@@ -10,7 +10,7 @@ import { ConfigurationRestAPI as ConfigurationRestAPI4, CRYPTO_LOAN_REST_API_PRO
10
10
 
11
11
  // package.json
12
12
  var name = "@binance/crypto-loan";
13
- var version = "4.0.0";
13
+ var version = "6.0.0";
14
14
 
15
15
  // src/rest-api/index.ts
16
16
  var rest_api_exports = {};
@@ -144,48 +144,6 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
144
144
  timeUnit: _timeUnit
145
145
  };
146
146
  },
147
- /**
148
- *
149
- * Weight: 6000
150
- *
151
- * @summary Flexible Loan Collateral Repayment (TRADE)
152
- * @param {string} loanCoin
153
- * @param {string} collateralCoin
154
- * @param {number} repayAmount repay amount of loanCoin
155
- * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
156
- * @param {number} [recvWindow]
157
- *
158
- * @throws {RequiredError}
159
- */
160
- flexibleLoanCollateralRepayment: async (loanCoin, collateralCoin, repayAmount, fullRepayment, recvWindow) => {
161
- assertParamExists("flexibleLoanCollateralRepayment", "loanCoin", loanCoin);
162
- assertParamExists("flexibleLoanCollateralRepayment", "collateralCoin", collateralCoin);
163
- assertParamExists("flexibleLoanCollateralRepayment", "repayAmount", repayAmount);
164
- const localVarQueryParameter = {};
165
- if (loanCoin !== void 0 && loanCoin !== null) {
166
- localVarQueryParameter["loanCoin"] = loanCoin;
167
- }
168
- if (collateralCoin !== void 0 && collateralCoin !== null) {
169
- localVarQueryParameter["collateralCoin"] = collateralCoin;
170
- }
171
- if (repayAmount !== void 0 && repayAmount !== null) {
172
- localVarQueryParameter["repayAmount"] = repayAmount;
173
- }
174
- if (fullRepayment !== void 0 && fullRepayment !== null) {
175
- localVarQueryParameter["fullRepayment"] = fullRepayment;
176
- }
177
- if (recvWindow !== void 0 && recvWindow !== null) {
178
- localVarQueryParameter["recvWindow"] = recvWindow;
179
- }
180
- let _timeUnit;
181
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
182
- return {
183
- endpoint: "/sapi/v2/loan/flexible/repay/collateral",
184
- method: "POST",
185
- params: localVarQueryParameter,
186
- timeUnit: _timeUnit
187
- };
188
- },
189
147
  /**
190
148
  * Flexible Loan Repay
191
149
  *
@@ -631,34 +589,6 @@ var FlexibleRateApi = class {
631
589
  { isSigned: true }
632
590
  );
633
591
  }
634
- /**
635
- *
636
- * Weight: 6000
637
- *
638
- * @summary Flexible Loan Collateral Repayment (TRADE)
639
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
640
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
641
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
642
- * @memberof FlexibleRateApi
643
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
644
- */
645
- async flexibleLoanCollateralRepayment(requestParameters) {
646
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanCollateralRepayment(
647
- requestParameters?.loanCoin,
648
- requestParameters?.collateralCoin,
649
- requestParameters?.repayAmount,
650
- requestParameters?.fullRepayment,
651
- requestParameters?.recvWindow
652
- );
653
- return sendRequest(
654
- this.configuration,
655
- localVarAxiosArgs.endpoint,
656
- localVarAxiosArgs.method,
657
- localVarAxiosArgs.params,
658
- localVarAxiosArgs?.timeUnit,
659
- { isSigned: true }
660
- );
661
- }
662
592
  /**
663
593
  * Flexible Loan Repay
664
594
  *
@@ -958,187 +888,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
958
888
  timeUnit: _timeUnit
959
889
  };
960
890
  },
961
- /**
962
- * Crypto Loan Adjust LTV
963
- *
964
- * Weight: 6000
965
- *
966
- * @summary Crypto Loan Adjust LTV(TRADE)
967
- * @param {number} orderId
968
- * @param {number} amount
969
- * @param {string} direction "ADDITIONAL", "REDUCED"
970
- * @param {number} [recvWindow]
971
- *
972
- * @throws {RequiredError}
973
- */
974
- cryptoLoanAdjustLtv: async (orderId, amount, direction, recvWindow) => {
975
- assertParamExists2("cryptoLoanAdjustLtv", "orderId", orderId);
976
- assertParamExists2("cryptoLoanAdjustLtv", "amount", amount);
977
- assertParamExists2("cryptoLoanAdjustLtv", "direction", direction);
978
- const localVarQueryParameter = {};
979
- if (orderId !== void 0 && orderId !== null) {
980
- localVarQueryParameter["orderId"] = orderId;
981
- }
982
- if (amount !== void 0 && amount !== null) {
983
- localVarQueryParameter["amount"] = amount;
984
- }
985
- if (direction !== void 0 && direction !== null) {
986
- localVarQueryParameter["direction"] = direction;
987
- }
988
- if (recvWindow !== void 0 && recvWindow !== null) {
989
- localVarQueryParameter["recvWindow"] = recvWindow;
990
- }
991
- let _timeUnit;
992
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
993
- return {
994
- endpoint: "/sapi/v1/loan/adjust/ltv",
995
- method: "POST",
996
- params: localVarQueryParameter,
997
- timeUnit: _timeUnit
998
- };
999
- },
1000
- /**
1001
- * Crypto Loan Borrow
1002
- *
1003
- * Weight: 6000
1004
- *
1005
- * @summary Crypto Loan Borrow(TRADE)
1006
- * @param {string} loanCoin
1007
- * @param {string} collateralCoin
1008
- * @param {number} loanTerm 7/30 days
1009
- * @param {number} [recvWindow]
1010
- *
1011
- * @throws {RequiredError}
1012
- */
1013
- cryptoLoanBorrow: async (loanCoin, collateralCoin, loanTerm, recvWindow) => {
1014
- assertParamExists2("cryptoLoanBorrow", "loanCoin", loanCoin);
1015
- assertParamExists2("cryptoLoanBorrow", "collateralCoin", collateralCoin);
1016
- assertParamExists2("cryptoLoanBorrow", "loanTerm", loanTerm);
1017
- const localVarQueryParameter = {};
1018
- if (loanCoin !== void 0 && loanCoin !== null) {
1019
- localVarQueryParameter["loanCoin"] = loanCoin;
1020
- }
1021
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1022
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1023
- }
1024
- if (loanTerm !== void 0 && loanTerm !== null) {
1025
- localVarQueryParameter["loanTerm"] = loanTerm;
1026
- }
1027
- if (recvWindow !== void 0 && recvWindow !== null) {
1028
- localVarQueryParameter["recvWindow"] = recvWindow;
1029
- }
1030
- let _timeUnit;
1031
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1032
- return {
1033
- endpoint: "/sapi/v1/loan/borrow",
1034
- method: "POST",
1035
- params: localVarQueryParameter,
1036
- timeUnit: _timeUnit
1037
- };
1038
- },
1039
- /**
1040
- * Customize Margin Call
1041
- *
1042
- * Weight: 6000
1043
- *
1044
- * @summary Crypto Loan Customize Margin Call(TRADE)
1045
- * @param {number} marginCall
1046
- * @param {number} [recvWindow]
1047
- *
1048
- * @throws {RequiredError}
1049
- */
1050
- cryptoLoanCustomizeMarginCall: async (marginCall, recvWindow) => {
1051
- assertParamExists2("cryptoLoanCustomizeMarginCall", "marginCall", marginCall);
1052
- const localVarQueryParameter = {};
1053
- if (marginCall !== void 0 && marginCall !== null) {
1054
- localVarQueryParameter["marginCall"] = marginCall;
1055
- }
1056
- if (recvWindow !== void 0 && recvWindow !== null) {
1057
- localVarQueryParameter["recvWindow"] = recvWindow;
1058
- }
1059
- let _timeUnit;
1060
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1061
- return {
1062
- endpoint: "/sapi/v1/loan/customize/margin_call",
1063
- method: "POST",
1064
- params: localVarQueryParameter,
1065
- timeUnit: _timeUnit
1066
- };
1067
- },
1068
- /**
1069
- * Crypto Loan Repay
1070
- *
1071
- * Weight: 6000
1072
- *
1073
- * @summary Crypto Loan Repay(TRADE)
1074
- * @param {number} orderId
1075
- * @param {number} amount
1076
- * @param {number} [type] Default: 1. 1 for "repay with borrowed coin"; 2 for "repay with collateral".
1077
- * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
1078
- * @param {number} [recvWindow]
1079
- *
1080
- * @throws {RequiredError}
1081
- */
1082
- cryptoLoanRepay: async (orderId, amount, type, collateralReturn, recvWindow) => {
1083
- assertParamExists2("cryptoLoanRepay", "orderId", orderId);
1084
- assertParamExists2("cryptoLoanRepay", "amount", amount);
1085
- const localVarQueryParameter = {};
1086
- if (orderId !== void 0 && orderId !== null) {
1087
- localVarQueryParameter["orderId"] = orderId;
1088
- }
1089
- if (amount !== void 0 && amount !== null) {
1090
- localVarQueryParameter["amount"] = amount;
1091
- }
1092
- if (type !== void 0 && type !== null) {
1093
- localVarQueryParameter["type"] = type;
1094
- }
1095
- if (collateralReturn !== void 0 && collateralReturn !== null) {
1096
- localVarQueryParameter["collateralReturn"] = collateralReturn;
1097
- }
1098
- if (recvWindow !== void 0 && recvWindow !== null) {
1099
- localVarQueryParameter["recvWindow"] = recvWindow;
1100
- }
1101
- let _timeUnit;
1102
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1103
- return {
1104
- endpoint: "/sapi/v1/loan/repay",
1105
- method: "POST",
1106
- params: localVarQueryParameter,
1107
- timeUnit: _timeUnit
1108
- };
1109
- },
1110
- /**
1111
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
1112
- *
1113
- * Weight: 400
1114
- *
1115
- * @summary Get Collateral Assets Data(USER_DATA)
1116
- * @param {string} [collateralCoin]
1117
- * @param {number} [vipLevel] Default: user's vip level. Send "-1" to check specified configuration
1118
- * @param {number} [recvWindow]
1119
- *
1120
- * @throws {RequiredError}
1121
- */
1122
- getCollateralAssetsData: async (collateralCoin, vipLevel, recvWindow) => {
1123
- const localVarQueryParameter = {};
1124
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1125
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1126
- }
1127
- if (vipLevel !== void 0 && vipLevel !== null) {
1128
- localVarQueryParameter["vipLevel"] = vipLevel;
1129
- }
1130
- if (recvWindow !== void 0 && recvWindow !== null) {
1131
- localVarQueryParameter["recvWindow"] = recvWindow;
1132
- }
1133
- let _timeUnit;
1134
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1135
- return {
1136
- endpoint: "/sapi/v1/loan/collateral/data",
1137
- method: "GET",
1138
- params: localVarQueryParameter,
1139
- timeUnit: _timeUnit
1140
- };
1141
- },
1142
891
  /**
1143
892
  * Get Crypto Loans Income History
1144
893
  *
@@ -1195,7 +944,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1195
944
  * Weight: 400
1196
945
  *
1197
946
  * @summary Get Loan Borrow History(USER_DATA)
1198
- * @param {number} [orderId]
947
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1199
948
  * @param {string} [loanCoin]
1200
949
  * @param {string} [collateralCoin]
1201
950
  * @param {number} [startTime]
@@ -1250,7 +999,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1250
999
  * Weight: 400
1251
1000
  *
1252
1001
  * @summary Get Loan LTV Adjustment History(USER_DATA)
1253
- * @param {number} [orderId]
1002
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1254
1003
  * @param {string} [loanCoin]
1255
1004
  * @param {string} [collateralCoin]
1256
1005
  * @param {number} [startTime]
@@ -1296,50 +1045,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1296
1045
  timeUnit: _timeUnit
1297
1046
  };
1298
1047
  },
1299
- /**
1300
- * Get Loan Ongoing Orders
1301
- *
1302
- * Weight: 300
1303
- *
1304
- * @summary Get Loan Ongoing Orders(USER_DATA)
1305
- * @param {number} [orderId]
1306
- * @param {string} [loanCoin]
1307
- * @param {string} [collateralCoin]
1308
- * @param {number} [current] Current querying page. Start from 1; default: 1; max: 1000
1309
- * @param {number} [limit] Default: 10; max: 100
1310
- * @param {number} [recvWindow]
1311
- *
1312
- * @throws {RequiredError}
1313
- */
1314
- getLoanOngoingOrders: async (orderId, loanCoin, collateralCoin, current, limit, recvWindow) => {
1315
- const localVarQueryParameter = {};
1316
- if (orderId !== void 0 && orderId !== null) {
1317
- localVarQueryParameter["orderId"] = orderId;
1318
- }
1319
- if (loanCoin !== void 0 && loanCoin !== null) {
1320
- localVarQueryParameter["loanCoin"] = loanCoin;
1321
- }
1322
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1323
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1324
- }
1325
- if (current !== void 0 && current !== null) {
1326
- localVarQueryParameter["current"] = current;
1327
- }
1328
- if (limit !== void 0 && limit !== null) {
1329
- localVarQueryParameter["limit"] = limit;
1330
- }
1331
- if (recvWindow !== void 0 && recvWindow !== null) {
1332
- localVarQueryParameter["recvWindow"] = recvWindow;
1333
- }
1334
- let _timeUnit;
1335
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1336
- return {
1337
- endpoint: "/sapi/v1/loan/ongoing/orders",
1338
- method: "GET",
1339
- params: localVarQueryParameter,
1340
- timeUnit: _timeUnit
1341
- };
1342
- },
1343
1048
  /**
1344
1049
  * Get Loan Repayment History
1345
1050
  *
@@ -1349,7 +1054,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1349
1054
  * Weight: 400
1350
1055
  *
1351
1056
  * @summary Get Loan Repayment History(USER_DATA)
1352
- * @param {number} [orderId]
1057
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1353
1058
  * @param {string} [loanCoin]
1354
1059
  * @param {string} [collateralCoin]
1355
1060
  * @param {number} [startTime]
@@ -1394,38 +1099,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1394
1099
  params: localVarQueryParameter,
1395
1100
  timeUnit: _timeUnit
1396
1101
  };
1397
- },
1398
- /**
1399
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
1400
- *
1401
- * Weight: 400
1402
- *
1403
- * @summary Get Loanable Assets Data(USER_DATA)
1404
- * @param {string} [loanCoin]
1405
- * @param {number} [vipLevel] Default: user's vip level. Send "-1" to check specified configuration
1406
- * @param {number} [recvWindow]
1407
- *
1408
- * @throws {RequiredError}
1409
- */
1410
- getLoanableAssetsData: async (loanCoin, vipLevel, recvWindow) => {
1411
- const localVarQueryParameter = {};
1412
- if (loanCoin !== void 0 && loanCoin !== null) {
1413
- localVarQueryParameter["loanCoin"] = loanCoin;
1414
- }
1415
- if (vipLevel !== void 0 && vipLevel !== null) {
1416
- localVarQueryParameter["vipLevel"] = vipLevel;
1417
- }
1418
- if (recvWindow !== void 0 && recvWindow !== null) {
1419
- localVarQueryParameter["recvWindow"] = recvWindow;
1420
- }
1421
- let _timeUnit;
1422
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1423
- return {
1424
- endpoint: "/sapi/v1/loan/loanable/data",
1425
- method: "GET",
1426
- params: localVarQueryParameter,
1427
- timeUnit: _timeUnit
1428
- };
1429
1102
  }
1430
1103
  };
1431
1104
  };
@@ -1462,144 +1135,6 @@ var StableRateApi = class {
1462
1135
  { isSigned: true }
1463
1136
  );
1464
1137
  }
1465
- /**
1466
- * Crypto Loan Adjust LTV
1467
- *
1468
- * Weight: 6000
1469
- *
1470
- * @summary Crypto Loan Adjust LTV(TRADE)
1471
- * @param {CryptoLoanAdjustLtvRequest} requestParameters Request parameters.
1472
- * @returns {Promise<RestApiResponse<CryptoLoanAdjustLtvResponse>>}
1473
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1474
- * @memberof StableRateApi
1475
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Adjust-LTV Binance API Documentation}
1476
- */
1477
- async cryptoLoanAdjustLtv(requestParameters) {
1478
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanAdjustLtv(
1479
- requestParameters?.orderId,
1480
- requestParameters?.amount,
1481
- requestParameters?.direction,
1482
- requestParameters?.recvWindow
1483
- );
1484
- return sendRequest2(
1485
- this.configuration,
1486
- localVarAxiosArgs.endpoint,
1487
- localVarAxiosArgs.method,
1488
- localVarAxiosArgs.params,
1489
- localVarAxiosArgs?.timeUnit,
1490
- { isSigned: true }
1491
- );
1492
- }
1493
- /**
1494
- * Crypto Loan Borrow
1495
- *
1496
- * Weight: 6000
1497
- *
1498
- * @summary Crypto Loan Borrow(TRADE)
1499
- * @param {CryptoLoanBorrowRequest} requestParameters Request parameters.
1500
- * @returns {Promise<RestApiResponse<CryptoLoanBorrowResponse>>}
1501
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1502
- * @memberof StableRateApi
1503
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Borrow Binance API Documentation}
1504
- */
1505
- async cryptoLoanBorrow(requestParameters) {
1506
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanBorrow(
1507
- requestParameters?.loanCoin,
1508
- requestParameters?.collateralCoin,
1509
- requestParameters?.loanTerm,
1510
- requestParameters?.recvWindow
1511
- );
1512
- return sendRequest2(
1513
- this.configuration,
1514
- localVarAxiosArgs.endpoint,
1515
- localVarAxiosArgs.method,
1516
- localVarAxiosArgs.params,
1517
- localVarAxiosArgs?.timeUnit,
1518
- { isSigned: true }
1519
- );
1520
- }
1521
- /**
1522
- * Customize Margin Call
1523
- *
1524
- * Weight: 6000
1525
- *
1526
- * @summary Crypto Loan Customize Margin Call(TRADE)
1527
- * @param {CryptoLoanCustomizeMarginCallRequest} requestParameters Request parameters.
1528
- * @returns {Promise<RestApiResponse<CryptoLoanCustomizeMarginCallResponse>>}
1529
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1530
- * @memberof StableRateApi
1531
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Customize-Margin-Call Binance API Documentation}
1532
- */
1533
- async cryptoLoanCustomizeMarginCall(requestParameters) {
1534
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanCustomizeMarginCall(
1535
- requestParameters?.marginCall,
1536
- requestParameters?.recvWindow
1537
- );
1538
- return sendRequest2(
1539
- this.configuration,
1540
- localVarAxiosArgs.endpoint,
1541
- localVarAxiosArgs.method,
1542
- localVarAxiosArgs.params,
1543
- localVarAxiosArgs?.timeUnit,
1544
- { isSigned: true }
1545
- );
1546
- }
1547
- /**
1548
- * Crypto Loan Repay
1549
- *
1550
- * Weight: 6000
1551
- *
1552
- * @summary Crypto Loan Repay(TRADE)
1553
- * @param {CryptoLoanRepayRequest} requestParameters Request parameters.
1554
- * @returns {Promise<RestApiResponse<CryptoLoanRepayResponse>>}
1555
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1556
- * @memberof StableRateApi
1557
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Repay Binance API Documentation}
1558
- */
1559
- async cryptoLoanRepay(requestParameters) {
1560
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanRepay(
1561
- requestParameters?.orderId,
1562
- requestParameters?.amount,
1563
- requestParameters?.type,
1564
- requestParameters?.collateralReturn,
1565
- requestParameters?.recvWindow
1566
- );
1567
- return sendRequest2(
1568
- this.configuration,
1569
- localVarAxiosArgs.endpoint,
1570
- localVarAxiosArgs.method,
1571
- localVarAxiosArgs.params,
1572
- localVarAxiosArgs?.timeUnit,
1573
- { isSigned: true }
1574
- );
1575
- }
1576
- /**
1577
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
1578
- *
1579
- * Weight: 400
1580
- *
1581
- * @summary Get Collateral Assets Data(USER_DATA)
1582
- * @param {GetCollateralAssetsDataRequest} requestParameters Request parameters.
1583
- * @returns {Promise<RestApiResponse<GetCollateralAssetsDataResponse>>}
1584
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1585
- * @memberof StableRateApi
1586
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Collateral-Assets-Data Binance API Documentation}
1587
- */
1588
- async getCollateralAssetsData(requestParameters = {}) {
1589
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralAssetsData(
1590
- requestParameters?.collateralCoin,
1591
- requestParameters?.vipLevel,
1592
- requestParameters?.recvWindow
1593
- );
1594
- return sendRequest2(
1595
- this.configuration,
1596
- localVarAxiosArgs.endpoint,
1597
- localVarAxiosArgs.method,
1598
- localVarAxiosArgs.params,
1599
- localVarAxiosArgs?.timeUnit,
1600
- { isSigned: true }
1601
- );
1602
- }
1603
1138
  /**
1604
1139
  * Get Crypto Loans Income History
1605
1140
  *
@@ -1703,36 +1238,6 @@ var StableRateApi = class {
1703
1238
  { isSigned: true }
1704
1239
  );
1705
1240
  }
1706
- /**
1707
- * Get Loan Ongoing Orders
1708
- *
1709
- * Weight: 300
1710
- *
1711
- * @summary Get Loan Ongoing Orders(USER_DATA)
1712
- * @param {GetLoanOngoingOrdersRequest} requestParameters Request parameters.
1713
- * @returns {Promise<RestApiResponse<GetLoanOngoingOrdersResponse>>}
1714
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1715
- * @memberof StableRateApi
1716
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Ongoing-Orders Binance API Documentation}
1717
- */
1718
- async getLoanOngoingOrders(requestParameters = {}) {
1719
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanOngoingOrders(
1720
- requestParameters?.orderId,
1721
- requestParameters?.loanCoin,
1722
- requestParameters?.collateralCoin,
1723
- requestParameters?.current,
1724
- requestParameters?.limit,
1725
- requestParameters?.recvWindow
1726
- );
1727
- return sendRequest2(
1728
- this.configuration,
1729
- localVarAxiosArgs.endpoint,
1730
- localVarAxiosArgs.method,
1731
- localVarAxiosArgs.params,
1732
- localVarAxiosArgs?.timeUnit,
1733
- { isSigned: true }
1734
- );
1735
- }
1736
1241
  /**
1737
1242
  * Get Loan Repayment History
1738
1243
  *
@@ -1768,33 +1273,6 @@ var StableRateApi = class {
1768
1273
  { isSigned: true }
1769
1274
  );
1770
1275
  }
1771
- /**
1772
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
1773
- *
1774
- * Weight: 400
1775
- *
1776
- * @summary Get Loanable Assets Data(USER_DATA)
1777
- * @param {GetLoanableAssetsDataRequest} requestParameters Request parameters.
1778
- * @returns {Promise<RestApiResponse<GetLoanableAssetsDataResponse>>}
1779
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1780
- * @memberof StableRateApi
1781
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Loanable-Assets-Data Binance API Documentation}
1782
- */
1783
- async getLoanableAssetsData(requestParameters = {}) {
1784
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanableAssetsData(
1785
- requestParameters?.loanCoin,
1786
- requestParameters?.vipLevel,
1787
- requestParameters?.recvWindow
1788
- );
1789
- return sendRequest2(
1790
- this.configuration,
1791
- localVarAxiosArgs.endpoint,
1792
- localVarAxiosArgs.method,
1793
- localVarAxiosArgs.params,
1794
- localVarAxiosArgs?.timeUnit,
1795
- { isSigned: true }
1796
- );
1797
- }
1798
1276
  };
1799
1277
 
1800
1278
  // src/rest-api/rest-api.ts
@@ -1876,19 +1354,6 @@ var RestAPI = class {
1876
1354
  flexibleLoanBorrow(requestParameters) {
1877
1355
  return this.flexibleRateApi.flexibleLoanBorrow(requestParameters);
1878
1356
  }
1879
- /**
1880
- *
1881
- * Weight: 6000
1882
- *
1883
- * @summary Flexible Loan Collateral Repayment (TRADE)
1884
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
1885
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
1886
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1887
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
1888
- */
1889
- flexibleLoanCollateralRepayment(requestParameters) {
1890
- return this.flexibleRateApi.flexibleLoanCollateralRepayment(requestParameters);
1891
- }
1892
1357
  /**
1893
1358
  * Flexible Loan Repay
1894
1359
  *
@@ -2026,76 +1491,6 @@ var RestAPI = class {
2026
1491
  checkCollateralRepayRateStableRate(requestParameters) {
2027
1492
  return this.stableRateApi.checkCollateralRepayRateStableRate(requestParameters);
2028
1493
  }
2029
- /**
2030
- * Crypto Loan Adjust LTV
2031
- *
2032
- * Weight: 6000
2033
- *
2034
- * @summary Crypto Loan Adjust LTV(TRADE)
2035
- * @param {CryptoLoanAdjustLtvRequest} requestParameters Request parameters.
2036
- * @returns {Promise<RestApiResponse<CryptoLoanAdjustLtvResponse>>}
2037
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2038
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Adjust-LTV Binance API Documentation}
2039
- */
2040
- cryptoLoanAdjustLtv(requestParameters) {
2041
- return this.stableRateApi.cryptoLoanAdjustLtv(requestParameters);
2042
- }
2043
- /**
2044
- * Crypto Loan Borrow
2045
- *
2046
- * Weight: 6000
2047
- *
2048
- * @summary Crypto Loan Borrow(TRADE)
2049
- * @param {CryptoLoanBorrowRequest} requestParameters Request parameters.
2050
- * @returns {Promise<RestApiResponse<CryptoLoanBorrowResponse>>}
2051
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2052
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Borrow Binance API Documentation}
2053
- */
2054
- cryptoLoanBorrow(requestParameters) {
2055
- return this.stableRateApi.cryptoLoanBorrow(requestParameters);
2056
- }
2057
- /**
2058
- * Customize Margin Call
2059
- *
2060
- * Weight: 6000
2061
- *
2062
- * @summary Crypto Loan Customize Margin Call(TRADE)
2063
- * @param {CryptoLoanCustomizeMarginCallRequest} requestParameters Request parameters.
2064
- * @returns {Promise<RestApiResponse<CryptoLoanCustomizeMarginCallResponse>>}
2065
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2066
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Customize-Margin-Call Binance API Documentation}
2067
- */
2068
- cryptoLoanCustomizeMarginCall(requestParameters) {
2069
- return this.stableRateApi.cryptoLoanCustomizeMarginCall(requestParameters);
2070
- }
2071
- /**
2072
- * Crypto Loan Repay
2073
- *
2074
- * Weight: 6000
2075
- *
2076
- * @summary Crypto Loan Repay(TRADE)
2077
- * @param {CryptoLoanRepayRequest} requestParameters Request parameters.
2078
- * @returns {Promise<RestApiResponse<CryptoLoanRepayResponse>>}
2079
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2080
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Repay Binance API Documentation}
2081
- */
2082
- cryptoLoanRepay(requestParameters) {
2083
- return this.stableRateApi.cryptoLoanRepay(requestParameters);
2084
- }
2085
- /**
2086
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
2087
- *
2088
- * Weight: 400
2089
- *
2090
- * @summary Get Collateral Assets Data(USER_DATA)
2091
- * @param {GetCollateralAssetsDataRequest} requestParameters Request parameters.
2092
- * @returns {Promise<RestApiResponse<GetCollateralAssetsDataResponse>>}
2093
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2094
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Collateral-Assets-Data Binance API Documentation}
2095
- */
2096
- getCollateralAssetsData(requestParameters = {}) {
2097
- return this.stableRateApi.getCollateralAssetsData(requestParameters);
2098
- }
2099
1494
  /**
2100
1495
  * Get Crypto Loans Income History
2101
1496
  *
@@ -2147,20 +1542,6 @@ var RestAPI = class {
2147
1542
  getLoanLtvAdjustmentHistory(requestParameters = {}) {
2148
1543
  return this.stableRateApi.getLoanLtvAdjustmentHistory(requestParameters);
2149
1544
  }
2150
- /**
2151
- * Get Loan Ongoing Orders
2152
- *
2153
- * Weight: 300
2154
- *
2155
- * @summary Get Loan Ongoing Orders(USER_DATA)
2156
- * @param {GetLoanOngoingOrdersRequest} requestParameters Request parameters.
2157
- * @returns {Promise<RestApiResponse<GetLoanOngoingOrdersResponse>>}
2158
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2159
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Ongoing-Orders Binance API Documentation}
2160
- */
2161
- getLoanOngoingOrders(requestParameters = {}) {
2162
- return this.stableRateApi.getLoanOngoingOrders(requestParameters);
2163
- }
2164
1545
  /**
2165
1546
  * Get Loan Repayment History
2166
1547
  *
@@ -2178,20 +1559,6 @@ var RestAPI = class {
2178
1559
  getLoanRepaymentHistory(requestParameters = {}) {
2179
1560
  return this.stableRateApi.getLoanRepaymentHistory(requestParameters);
2180
1561
  }
2181
- /**
2182
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
2183
- *
2184
- * Weight: 400
2185
- *
2186
- * @summary Get Loanable Assets Data(USER_DATA)
2187
- * @param {GetLoanableAssetsDataRequest} requestParameters Request parameters.
2188
- * @returns {Promise<RestApiResponse<GetLoanableAssetsDataResponse>>}
2189
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2190
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Loanable-Assets-Data Binance API Documentation}
2191
- */
2192
- getLoanableAssetsData(requestParameters = {}) {
2193
- return this.stableRateApi.getLoanableAssetsData(requestParameters);
2194
- }
2195
1562
  };
2196
1563
 
2197
1564
  // src/crypto-loan.ts