@binance/crypto-loan 5.0.0 → 6.0.1

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 = "5.0.0";
13
+ var version = "6.0.1";
14
14
 
15
15
  // src/rest-api/index.ts
16
16
  var rest_api_exports = {};
@@ -888,187 +888,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
888
888
  timeUnit: _timeUnit
889
889
  };
890
890
  },
891
- /**
892
- * Crypto Loan Adjust LTV
893
- *
894
- * Weight: 6000
895
- *
896
- * @summary Crypto Loan Adjust LTV(TRADE)
897
- * @param {number} orderId
898
- * @param {number} amount
899
- * @param {string} direction "ADDITIONAL", "REDUCED"
900
- * @param {number} [recvWindow]
901
- *
902
- * @throws {RequiredError}
903
- */
904
- cryptoLoanAdjustLtv: async (orderId, amount, direction, recvWindow) => {
905
- assertParamExists2("cryptoLoanAdjustLtv", "orderId", orderId);
906
- assertParamExists2("cryptoLoanAdjustLtv", "amount", amount);
907
- assertParamExists2("cryptoLoanAdjustLtv", "direction", direction);
908
- const localVarQueryParameter = {};
909
- if (orderId !== void 0 && orderId !== null) {
910
- localVarQueryParameter["orderId"] = orderId;
911
- }
912
- if (amount !== void 0 && amount !== null) {
913
- localVarQueryParameter["amount"] = amount;
914
- }
915
- if (direction !== void 0 && direction !== null) {
916
- localVarQueryParameter["direction"] = direction;
917
- }
918
- if (recvWindow !== void 0 && recvWindow !== null) {
919
- localVarQueryParameter["recvWindow"] = recvWindow;
920
- }
921
- let _timeUnit;
922
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
923
- return {
924
- endpoint: "/sapi/v1/loan/adjust/ltv",
925
- method: "POST",
926
- params: localVarQueryParameter,
927
- timeUnit: _timeUnit
928
- };
929
- },
930
- /**
931
- * Crypto Loan Borrow
932
- *
933
- * Weight: 6000
934
- *
935
- * @summary Crypto Loan Borrow(TRADE)
936
- * @param {string} loanCoin
937
- * @param {string} collateralCoin
938
- * @param {number} loanTerm 7/30 days
939
- * @param {number} [recvWindow]
940
- *
941
- * @throws {RequiredError}
942
- */
943
- cryptoLoanBorrow: async (loanCoin, collateralCoin, loanTerm, recvWindow) => {
944
- assertParamExists2("cryptoLoanBorrow", "loanCoin", loanCoin);
945
- assertParamExists2("cryptoLoanBorrow", "collateralCoin", collateralCoin);
946
- assertParamExists2("cryptoLoanBorrow", "loanTerm", loanTerm);
947
- const localVarQueryParameter = {};
948
- if (loanCoin !== void 0 && loanCoin !== null) {
949
- localVarQueryParameter["loanCoin"] = loanCoin;
950
- }
951
- if (collateralCoin !== void 0 && collateralCoin !== null) {
952
- localVarQueryParameter["collateralCoin"] = collateralCoin;
953
- }
954
- if (loanTerm !== void 0 && loanTerm !== null) {
955
- localVarQueryParameter["loanTerm"] = loanTerm;
956
- }
957
- if (recvWindow !== void 0 && recvWindow !== null) {
958
- localVarQueryParameter["recvWindow"] = recvWindow;
959
- }
960
- let _timeUnit;
961
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
962
- return {
963
- endpoint: "/sapi/v1/loan/borrow",
964
- method: "POST",
965
- params: localVarQueryParameter,
966
- timeUnit: _timeUnit
967
- };
968
- },
969
- /**
970
- * Customize Margin Call
971
- *
972
- * Weight: 6000
973
- *
974
- * @summary Crypto Loan Customize Margin Call(TRADE)
975
- * @param {number} marginCall
976
- * @param {number} [recvWindow]
977
- *
978
- * @throws {RequiredError}
979
- */
980
- cryptoLoanCustomizeMarginCall: async (marginCall, recvWindow) => {
981
- assertParamExists2("cryptoLoanCustomizeMarginCall", "marginCall", marginCall);
982
- const localVarQueryParameter = {};
983
- if (marginCall !== void 0 && marginCall !== null) {
984
- localVarQueryParameter["marginCall"] = marginCall;
985
- }
986
- if (recvWindow !== void 0 && recvWindow !== null) {
987
- localVarQueryParameter["recvWindow"] = recvWindow;
988
- }
989
- let _timeUnit;
990
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
991
- return {
992
- endpoint: "/sapi/v1/loan/customize/margin_call",
993
- method: "POST",
994
- params: localVarQueryParameter,
995
- timeUnit: _timeUnit
996
- };
997
- },
998
- /**
999
- * Crypto Loan Repay
1000
- *
1001
- * Weight: 6000
1002
- *
1003
- * @summary Crypto Loan Repay(TRADE)
1004
- * @param {number} orderId
1005
- * @param {number} amount
1006
- * @param {number} [type] Default: 1. 1 for "repay with borrowed coin"; 2 for "repay with collateral".
1007
- * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
1008
- * @param {number} [recvWindow]
1009
- *
1010
- * @throws {RequiredError}
1011
- */
1012
- cryptoLoanRepay: async (orderId, amount, type, collateralReturn, recvWindow) => {
1013
- assertParamExists2("cryptoLoanRepay", "orderId", orderId);
1014
- assertParamExists2("cryptoLoanRepay", "amount", amount);
1015
- const localVarQueryParameter = {};
1016
- if (orderId !== void 0 && orderId !== null) {
1017
- localVarQueryParameter["orderId"] = orderId;
1018
- }
1019
- if (amount !== void 0 && amount !== null) {
1020
- localVarQueryParameter["amount"] = amount;
1021
- }
1022
- if (type !== void 0 && type !== null) {
1023
- localVarQueryParameter["type"] = type;
1024
- }
1025
- if (collateralReturn !== void 0 && collateralReturn !== null) {
1026
- localVarQueryParameter["collateralReturn"] = collateralReturn;
1027
- }
1028
- if (recvWindow !== void 0 && recvWindow !== null) {
1029
- localVarQueryParameter["recvWindow"] = recvWindow;
1030
- }
1031
- let _timeUnit;
1032
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1033
- return {
1034
- endpoint: "/sapi/v1/loan/repay",
1035
- method: "POST",
1036
- params: localVarQueryParameter,
1037
- timeUnit: _timeUnit
1038
- };
1039
- },
1040
- /**
1041
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
1042
- *
1043
- * Weight: 400
1044
- *
1045
- * @summary Get Collateral Assets Data(USER_DATA)
1046
- * @param {string} [collateralCoin]
1047
- * @param {number} [vipLevel] Default: user's vip level. Send "-1" to check specified configuration
1048
- * @param {number} [recvWindow]
1049
- *
1050
- * @throws {RequiredError}
1051
- */
1052
- getCollateralAssetsData: async (collateralCoin, vipLevel, recvWindow) => {
1053
- const localVarQueryParameter = {};
1054
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1055
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1056
- }
1057
- if (vipLevel !== void 0 && vipLevel !== null) {
1058
- localVarQueryParameter["vipLevel"] = vipLevel;
1059
- }
1060
- if (recvWindow !== void 0 && recvWindow !== null) {
1061
- localVarQueryParameter["recvWindow"] = recvWindow;
1062
- }
1063
- let _timeUnit;
1064
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1065
- return {
1066
- endpoint: "/sapi/v1/loan/collateral/data",
1067
- method: "GET",
1068
- params: localVarQueryParameter,
1069
- timeUnit: _timeUnit
1070
- };
1071
- },
1072
891
  /**
1073
892
  * Get Crypto Loans Income History
1074
893
  *
@@ -1125,7 +944,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1125
944
  * Weight: 400
1126
945
  *
1127
946
  * @summary Get Loan Borrow History(USER_DATA)
1128
- * @param {number} [orderId]
947
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1129
948
  * @param {string} [loanCoin]
1130
949
  * @param {string} [collateralCoin]
1131
950
  * @param {number} [startTime]
@@ -1180,7 +999,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1180
999
  * Weight: 400
1181
1000
  *
1182
1001
  * @summary Get Loan LTV Adjustment History(USER_DATA)
1183
- * @param {number} [orderId]
1002
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1184
1003
  * @param {string} [loanCoin]
1185
1004
  * @param {string} [collateralCoin]
1186
1005
  * @param {number} [startTime]
@@ -1226,50 +1045,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1226
1045
  timeUnit: _timeUnit
1227
1046
  };
1228
1047
  },
1229
- /**
1230
- * Get Loan Ongoing Orders
1231
- *
1232
- * Weight: 300
1233
- *
1234
- * @summary Get Loan Ongoing Orders(USER_DATA)
1235
- * @param {number} [orderId]
1236
- * @param {string} [loanCoin]
1237
- * @param {string} [collateralCoin]
1238
- * @param {number} [current] Current querying page. Start from 1; default: 1; max: 1000
1239
- * @param {number} [limit] Default: 10; max: 100
1240
- * @param {number} [recvWindow]
1241
- *
1242
- * @throws {RequiredError}
1243
- */
1244
- getLoanOngoingOrders: async (orderId, loanCoin, collateralCoin, current, limit, recvWindow) => {
1245
- const localVarQueryParameter = {};
1246
- if (orderId !== void 0 && orderId !== null) {
1247
- localVarQueryParameter["orderId"] = orderId;
1248
- }
1249
- if (loanCoin !== void 0 && loanCoin !== null) {
1250
- localVarQueryParameter["loanCoin"] = loanCoin;
1251
- }
1252
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1253
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1254
- }
1255
- if (current !== void 0 && current !== null) {
1256
- localVarQueryParameter["current"] = current;
1257
- }
1258
- if (limit !== void 0 && limit !== null) {
1259
- localVarQueryParameter["limit"] = limit;
1260
- }
1261
- if (recvWindow !== void 0 && recvWindow !== null) {
1262
- localVarQueryParameter["recvWindow"] = recvWindow;
1263
- }
1264
- let _timeUnit;
1265
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1266
- return {
1267
- endpoint: "/sapi/v1/loan/ongoing/orders",
1268
- method: "GET",
1269
- params: localVarQueryParameter,
1270
- timeUnit: _timeUnit
1271
- };
1272
- },
1273
1048
  /**
1274
1049
  * Get Loan Repayment History
1275
1050
  *
@@ -1279,7 +1054,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1279
1054
  * Weight: 400
1280
1055
  *
1281
1056
  * @summary Get Loan Repayment History(USER_DATA)
1282
- * @param {number} [orderId]
1057
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1283
1058
  * @param {string} [loanCoin]
1284
1059
  * @param {string} [collateralCoin]
1285
1060
  * @param {number} [startTime]
@@ -1324,38 +1099,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1324
1099
  params: localVarQueryParameter,
1325
1100
  timeUnit: _timeUnit
1326
1101
  };
1327
- },
1328
- /**
1329
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
1330
- *
1331
- * Weight: 400
1332
- *
1333
- * @summary Get Loanable Assets Data(USER_DATA)
1334
- * @param {string} [loanCoin]
1335
- * @param {number} [vipLevel] Default: user's vip level. Send "-1" to check specified configuration
1336
- * @param {number} [recvWindow]
1337
- *
1338
- * @throws {RequiredError}
1339
- */
1340
- getLoanableAssetsData: async (loanCoin, vipLevel, recvWindow) => {
1341
- const localVarQueryParameter = {};
1342
- if (loanCoin !== void 0 && loanCoin !== null) {
1343
- localVarQueryParameter["loanCoin"] = loanCoin;
1344
- }
1345
- if (vipLevel !== void 0 && vipLevel !== null) {
1346
- localVarQueryParameter["vipLevel"] = vipLevel;
1347
- }
1348
- if (recvWindow !== void 0 && recvWindow !== null) {
1349
- localVarQueryParameter["recvWindow"] = recvWindow;
1350
- }
1351
- let _timeUnit;
1352
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1353
- return {
1354
- endpoint: "/sapi/v1/loan/loanable/data",
1355
- method: "GET",
1356
- params: localVarQueryParameter,
1357
- timeUnit: _timeUnit
1358
- };
1359
1102
  }
1360
1103
  };
1361
1104
  };
@@ -1392,144 +1135,6 @@ var StableRateApi = class {
1392
1135
  { isSigned: true }
1393
1136
  );
1394
1137
  }
1395
- /**
1396
- * Crypto Loan Adjust LTV
1397
- *
1398
- * Weight: 6000
1399
- *
1400
- * @summary Crypto Loan Adjust LTV(TRADE)
1401
- * @param {CryptoLoanAdjustLtvRequest} requestParameters Request parameters.
1402
- * @returns {Promise<RestApiResponse<CryptoLoanAdjustLtvResponse>>}
1403
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1404
- * @memberof StableRateApi
1405
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Adjust-LTV Binance API Documentation}
1406
- */
1407
- async cryptoLoanAdjustLtv(requestParameters) {
1408
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanAdjustLtv(
1409
- requestParameters?.orderId,
1410
- requestParameters?.amount,
1411
- requestParameters?.direction,
1412
- requestParameters?.recvWindow
1413
- );
1414
- return sendRequest2(
1415
- this.configuration,
1416
- localVarAxiosArgs.endpoint,
1417
- localVarAxiosArgs.method,
1418
- localVarAxiosArgs.params,
1419
- localVarAxiosArgs?.timeUnit,
1420
- { isSigned: true }
1421
- );
1422
- }
1423
- /**
1424
- * Crypto Loan Borrow
1425
- *
1426
- * Weight: 6000
1427
- *
1428
- * @summary Crypto Loan Borrow(TRADE)
1429
- * @param {CryptoLoanBorrowRequest} requestParameters Request parameters.
1430
- * @returns {Promise<RestApiResponse<CryptoLoanBorrowResponse>>}
1431
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1432
- * @memberof StableRateApi
1433
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Borrow Binance API Documentation}
1434
- */
1435
- async cryptoLoanBorrow(requestParameters) {
1436
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanBorrow(
1437
- requestParameters?.loanCoin,
1438
- requestParameters?.collateralCoin,
1439
- requestParameters?.loanTerm,
1440
- requestParameters?.recvWindow
1441
- );
1442
- return sendRequest2(
1443
- this.configuration,
1444
- localVarAxiosArgs.endpoint,
1445
- localVarAxiosArgs.method,
1446
- localVarAxiosArgs.params,
1447
- localVarAxiosArgs?.timeUnit,
1448
- { isSigned: true }
1449
- );
1450
- }
1451
- /**
1452
- * Customize Margin Call
1453
- *
1454
- * Weight: 6000
1455
- *
1456
- * @summary Crypto Loan Customize Margin Call(TRADE)
1457
- * @param {CryptoLoanCustomizeMarginCallRequest} requestParameters Request parameters.
1458
- * @returns {Promise<RestApiResponse<CryptoLoanCustomizeMarginCallResponse>>}
1459
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1460
- * @memberof StableRateApi
1461
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Customize-Margin-Call Binance API Documentation}
1462
- */
1463
- async cryptoLoanCustomizeMarginCall(requestParameters) {
1464
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanCustomizeMarginCall(
1465
- requestParameters?.marginCall,
1466
- requestParameters?.recvWindow
1467
- );
1468
- return sendRequest2(
1469
- this.configuration,
1470
- localVarAxiosArgs.endpoint,
1471
- localVarAxiosArgs.method,
1472
- localVarAxiosArgs.params,
1473
- localVarAxiosArgs?.timeUnit,
1474
- { isSigned: true }
1475
- );
1476
- }
1477
- /**
1478
- * Crypto Loan Repay
1479
- *
1480
- * Weight: 6000
1481
- *
1482
- * @summary Crypto Loan Repay(TRADE)
1483
- * @param {CryptoLoanRepayRequest} requestParameters Request parameters.
1484
- * @returns {Promise<RestApiResponse<CryptoLoanRepayResponse>>}
1485
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1486
- * @memberof StableRateApi
1487
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Repay Binance API Documentation}
1488
- */
1489
- async cryptoLoanRepay(requestParameters) {
1490
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanRepay(
1491
- requestParameters?.orderId,
1492
- requestParameters?.amount,
1493
- requestParameters?.type,
1494
- requestParameters?.collateralReturn,
1495
- requestParameters?.recvWindow
1496
- );
1497
- return sendRequest2(
1498
- this.configuration,
1499
- localVarAxiosArgs.endpoint,
1500
- localVarAxiosArgs.method,
1501
- localVarAxiosArgs.params,
1502
- localVarAxiosArgs?.timeUnit,
1503
- { isSigned: true }
1504
- );
1505
- }
1506
- /**
1507
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
1508
- *
1509
- * Weight: 400
1510
- *
1511
- * @summary Get Collateral Assets Data(USER_DATA)
1512
- * @param {GetCollateralAssetsDataRequest} requestParameters Request parameters.
1513
- * @returns {Promise<RestApiResponse<GetCollateralAssetsDataResponse>>}
1514
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1515
- * @memberof StableRateApi
1516
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Collateral-Assets-Data Binance API Documentation}
1517
- */
1518
- async getCollateralAssetsData(requestParameters = {}) {
1519
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralAssetsData(
1520
- requestParameters?.collateralCoin,
1521
- requestParameters?.vipLevel,
1522
- requestParameters?.recvWindow
1523
- );
1524
- return sendRequest2(
1525
- this.configuration,
1526
- localVarAxiosArgs.endpoint,
1527
- localVarAxiosArgs.method,
1528
- localVarAxiosArgs.params,
1529
- localVarAxiosArgs?.timeUnit,
1530
- { isSigned: true }
1531
- );
1532
- }
1533
1138
  /**
1534
1139
  * Get Crypto Loans Income History
1535
1140
  *
@@ -1633,36 +1238,6 @@ var StableRateApi = class {
1633
1238
  { isSigned: true }
1634
1239
  );
1635
1240
  }
1636
- /**
1637
- * Get Loan Ongoing Orders
1638
- *
1639
- * Weight: 300
1640
- *
1641
- * @summary Get Loan Ongoing Orders(USER_DATA)
1642
- * @param {GetLoanOngoingOrdersRequest} requestParameters Request parameters.
1643
- * @returns {Promise<RestApiResponse<GetLoanOngoingOrdersResponse>>}
1644
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1645
- * @memberof StableRateApi
1646
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Ongoing-Orders Binance API Documentation}
1647
- */
1648
- async getLoanOngoingOrders(requestParameters = {}) {
1649
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanOngoingOrders(
1650
- requestParameters?.orderId,
1651
- requestParameters?.loanCoin,
1652
- requestParameters?.collateralCoin,
1653
- requestParameters?.current,
1654
- requestParameters?.limit,
1655
- requestParameters?.recvWindow
1656
- );
1657
- return sendRequest2(
1658
- this.configuration,
1659
- localVarAxiosArgs.endpoint,
1660
- localVarAxiosArgs.method,
1661
- localVarAxiosArgs.params,
1662
- localVarAxiosArgs?.timeUnit,
1663
- { isSigned: true }
1664
- );
1665
- }
1666
1241
  /**
1667
1242
  * Get Loan Repayment History
1668
1243
  *
@@ -1698,33 +1273,6 @@ var StableRateApi = class {
1698
1273
  { isSigned: true }
1699
1274
  );
1700
1275
  }
1701
- /**
1702
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
1703
- *
1704
- * Weight: 400
1705
- *
1706
- * @summary Get Loanable Assets Data(USER_DATA)
1707
- * @param {GetLoanableAssetsDataRequest} requestParameters Request parameters.
1708
- * @returns {Promise<RestApiResponse<GetLoanableAssetsDataResponse>>}
1709
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1710
- * @memberof StableRateApi
1711
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Loanable-Assets-Data Binance API Documentation}
1712
- */
1713
- async getLoanableAssetsData(requestParameters = {}) {
1714
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanableAssetsData(
1715
- requestParameters?.loanCoin,
1716
- requestParameters?.vipLevel,
1717
- requestParameters?.recvWindow
1718
- );
1719
- return sendRequest2(
1720
- this.configuration,
1721
- localVarAxiosArgs.endpoint,
1722
- localVarAxiosArgs.method,
1723
- localVarAxiosArgs.params,
1724
- localVarAxiosArgs?.timeUnit,
1725
- { isSigned: true }
1726
- );
1727
- }
1728
1276
  };
1729
1277
 
1730
1278
  // src/rest-api/rest-api.ts
@@ -1943,76 +1491,6 @@ var RestAPI = class {
1943
1491
  checkCollateralRepayRateStableRate(requestParameters) {
1944
1492
  return this.stableRateApi.checkCollateralRepayRateStableRate(requestParameters);
1945
1493
  }
1946
- /**
1947
- * Crypto Loan Adjust LTV
1948
- *
1949
- * Weight: 6000
1950
- *
1951
- * @summary Crypto Loan Adjust LTV(TRADE)
1952
- * @param {CryptoLoanAdjustLtvRequest} requestParameters Request parameters.
1953
- * @returns {Promise<RestApiResponse<CryptoLoanAdjustLtvResponse>>}
1954
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1955
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Adjust-LTV Binance API Documentation}
1956
- */
1957
- cryptoLoanAdjustLtv(requestParameters) {
1958
- return this.stableRateApi.cryptoLoanAdjustLtv(requestParameters);
1959
- }
1960
- /**
1961
- * Crypto Loan Borrow
1962
- *
1963
- * Weight: 6000
1964
- *
1965
- * @summary Crypto Loan Borrow(TRADE)
1966
- * @param {CryptoLoanBorrowRequest} requestParameters Request parameters.
1967
- * @returns {Promise<RestApiResponse<CryptoLoanBorrowResponse>>}
1968
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1969
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Borrow Binance API Documentation}
1970
- */
1971
- cryptoLoanBorrow(requestParameters) {
1972
- return this.stableRateApi.cryptoLoanBorrow(requestParameters);
1973
- }
1974
- /**
1975
- * Customize Margin Call
1976
- *
1977
- * Weight: 6000
1978
- *
1979
- * @summary Crypto Loan Customize Margin Call(TRADE)
1980
- * @param {CryptoLoanCustomizeMarginCallRequest} requestParameters Request parameters.
1981
- * @returns {Promise<RestApiResponse<CryptoLoanCustomizeMarginCallResponse>>}
1982
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1983
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Customize-Margin-Call Binance API Documentation}
1984
- */
1985
- cryptoLoanCustomizeMarginCall(requestParameters) {
1986
- return this.stableRateApi.cryptoLoanCustomizeMarginCall(requestParameters);
1987
- }
1988
- /**
1989
- * Crypto Loan Repay
1990
- *
1991
- * Weight: 6000
1992
- *
1993
- * @summary Crypto Loan Repay(TRADE)
1994
- * @param {CryptoLoanRepayRequest} requestParameters Request parameters.
1995
- * @returns {Promise<RestApiResponse<CryptoLoanRepayResponse>>}
1996
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1997
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Repay Binance API Documentation}
1998
- */
1999
- cryptoLoanRepay(requestParameters) {
2000
- return this.stableRateApi.cryptoLoanRepay(requestParameters);
2001
- }
2002
- /**
2003
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
2004
- *
2005
- * Weight: 400
2006
- *
2007
- * @summary Get Collateral Assets Data(USER_DATA)
2008
- * @param {GetCollateralAssetsDataRequest} requestParameters Request parameters.
2009
- * @returns {Promise<RestApiResponse<GetCollateralAssetsDataResponse>>}
2010
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2011
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Collateral-Assets-Data Binance API Documentation}
2012
- */
2013
- getCollateralAssetsData(requestParameters = {}) {
2014
- return this.stableRateApi.getCollateralAssetsData(requestParameters);
2015
- }
2016
1494
  /**
2017
1495
  * Get Crypto Loans Income History
2018
1496
  *
@@ -2064,20 +1542,6 @@ var RestAPI = class {
2064
1542
  getLoanLtvAdjustmentHistory(requestParameters = {}) {
2065
1543
  return this.stableRateApi.getLoanLtvAdjustmentHistory(requestParameters);
2066
1544
  }
2067
- /**
2068
- * Get Loan Ongoing Orders
2069
- *
2070
- * Weight: 300
2071
- *
2072
- * @summary Get Loan Ongoing Orders(USER_DATA)
2073
- * @param {GetLoanOngoingOrdersRequest} requestParameters Request parameters.
2074
- * @returns {Promise<RestApiResponse<GetLoanOngoingOrdersResponse>>}
2075
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2076
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Ongoing-Orders Binance API Documentation}
2077
- */
2078
- getLoanOngoingOrders(requestParameters = {}) {
2079
- return this.stableRateApi.getLoanOngoingOrders(requestParameters);
2080
- }
2081
1545
  /**
2082
1546
  * Get Loan Repayment History
2083
1547
  *
@@ -2095,20 +1559,6 @@ var RestAPI = class {
2095
1559
  getLoanRepaymentHistory(requestParameters = {}) {
2096
1560
  return this.stableRateApi.getLoanRepaymentHistory(requestParameters);
2097
1561
  }
2098
- /**
2099
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
2100
- *
2101
- * Weight: 400
2102
- *
2103
- * @summary Get Loanable Assets Data(USER_DATA)
2104
- * @param {GetLoanableAssetsDataRequest} requestParameters Request parameters.
2105
- * @returns {Promise<RestApiResponse<GetLoanableAssetsDataResponse>>}
2106
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2107
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Loanable-Assets-Data Binance API Documentation}
2108
- */
2109
- getLoanableAssetsData(requestParameters = {}) {
2110
- return this.stableRateApi.getLoanableAssetsData(requestParameters);
2111
- }
2112
1562
  };
2113
1563
 
2114
1564
  // src/crypto-loan.ts