@binance/crypto-loan 5.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.js CHANGED
@@ -42,7 +42,7 @@ var import_common4 = require("@binance/common");
42
42
 
43
43
  // package.json
44
44
  var name = "@binance/crypto-loan";
45
- var version = "5.0.0";
45
+ var version = "6.0.0";
46
46
 
47
47
  // src/rest-api/index.ts
48
48
  var rest_api_exports = {};
@@ -914,187 +914,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
914
914
  timeUnit: _timeUnit
915
915
  };
916
916
  },
917
- /**
918
- * Crypto Loan Adjust LTV
919
- *
920
- * Weight: 6000
921
- *
922
- * @summary Crypto Loan Adjust LTV(TRADE)
923
- * @param {number} orderId
924
- * @param {number} amount
925
- * @param {string} direction "ADDITIONAL", "REDUCED"
926
- * @param {number} [recvWindow]
927
- *
928
- * @throws {RequiredError}
929
- */
930
- cryptoLoanAdjustLtv: async (orderId, amount, direction, recvWindow) => {
931
- (0, import_common2.assertParamExists)("cryptoLoanAdjustLtv", "orderId", orderId);
932
- (0, import_common2.assertParamExists)("cryptoLoanAdjustLtv", "amount", amount);
933
- (0, import_common2.assertParamExists)("cryptoLoanAdjustLtv", "direction", direction);
934
- const localVarQueryParameter = {};
935
- if (orderId !== void 0 && orderId !== null) {
936
- localVarQueryParameter["orderId"] = orderId;
937
- }
938
- if (amount !== void 0 && amount !== null) {
939
- localVarQueryParameter["amount"] = amount;
940
- }
941
- if (direction !== void 0 && direction !== null) {
942
- localVarQueryParameter["direction"] = direction;
943
- }
944
- if (recvWindow !== void 0 && recvWindow !== null) {
945
- localVarQueryParameter["recvWindow"] = recvWindow;
946
- }
947
- let _timeUnit;
948
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
949
- return {
950
- endpoint: "/sapi/v1/loan/adjust/ltv",
951
- method: "POST",
952
- params: localVarQueryParameter,
953
- timeUnit: _timeUnit
954
- };
955
- },
956
- /**
957
- * Crypto Loan Borrow
958
- *
959
- * Weight: 6000
960
- *
961
- * @summary Crypto Loan Borrow(TRADE)
962
- * @param {string} loanCoin
963
- * @param {string} collateralCoin
964
- * @param {number} loanTerm 7/30 days
965
- * @param {number} [recvWindow]
966
- *
967
- * @throws {RequiredError}
968
- */
969
- cryptoLoanBorrow: async (loanCoin, collateralCoin, loanTerm, recvWindow) => {
970
- (0, import_common2.assertParamExists)("cryptoLoanBorrow", "loanCoin", loanCoin);
971
- (0, import_common2.assertParamExists)("cryptoLoanBorrow", "collateralCoin", collateralCoin);
972
- (0, import_common2.assertParamExists)("cryptoLoanBorrow", "loanTerm", loanTerm);
973
- const localVarQueryParameter = {};
974
- if (loanCoin !== void 0 && loanCoin !== null) {
975
- localVarQueryParameter["loanCoin"] = loanCoin;
976
- }
977
- if (collateralCoin !== void 0 && collateralCoin !== null) {
978
- localVarQueryParameter["collateralCoin"] = collateralCoin;
979
- }
980
- if (loanTerm !== void 0 && loanTerm !== null) {
981
- localVarQueryParameter["loanTerm"] = loanTerm;
982
- }
983
- if (recvWindow !== void 0 && recvWindow !== null) {
984
- localVarQueryParameter["recvWindow"] = recvWindow;
985
- }
986
- let _timeUnit;
987
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
988
- return {
989
- endpoint: "/sapi/v1/loan/borrow",
990
- method: "POST",
991
- params: localVarQueryParameter,
992
- timeUnit: _timeUnit
993
- };
994
- },
995
- /**
996
- * Customize Margin Call
997
- *
998
- * Weight: 6000
999
- *
1000
- * @summary Crypto Loan Customize Margin Call(TRADE)
1001
- * @param {number} marginCall
1002
- * @param {number} [recvWindow]
1003
- *
1004
- * @throws {RequiredError}
1005
- */
1006
- cryptoLoanCustomizeMarginCall: async (marginCall, recvWindow) => {
1007
- (0, import_common2.assertParamExists)("cryptoLoanCustomizeMarginCall", "marginCall", marginCall);
1008
- const localVarQueryParameter = {};
1009
- if (marginCall !== void 0 && marginCall !== null) {
1010
- localVarQueryParameter["marginCall"] = marginCall;
1011
- }
1012
- if (recvWindow !== void 0 && recvWindow !== null) {
1013
- localVarQueryParameter["recvWindow"] = recvWindow;
1014
- }
1015
- let _timeUnit;
1016
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1017
- return {
1018
- endpoint: "/sapi/v1/loan/customize/margin_call",
1019
- method: "POST",
1020
- params: localVarQueryParameter,
1021
- timeUnit: _timeUnit
1022
- };
1023
- },
1024
- /**
1025
- * Crypto Loan Repay
1026
- *
1027
- * Weight: 6000
1028
- *
1029
- * @summary Crypto Loan Repay(TRADE)
1030
- * @param {number} orderId
1031
- * @param {number} amount
1032
- * @param {number} [type] Default: 1. 1 for "repay with borrowed coin"; 2 for "repay with collateral".
1033
- * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
1034
- * @param {number} [recvWindow]
1035
- *
1036
- * @throws {RequiredError}
1037
- */
1038
- cryptoLoanRepay: async (orderId, amount, type, collateralReturn, recvWindow) => {
1039
- (0, import_common2.assertParamExists)("cryptoLoanRepay", "orderId", orderId);
1040
- (0, import_common2.assertParamExists)("cryptoLoanRepay", "amount", amount);
1041
- const localVarQueryParameter = {};
1042
- if (orderId !== void 0 && orderId !== null) {
1043
- localVarQueryParameter["orderId"] = orderId;
1044
- }
1045
- if (amount !== void 0 && amount !== null) {
1046
- localVarQueryParameter["amount"] = amount;
1047
- }
1048
- if (type !== void 0 && type !== null) {
1049
- localVarQueryParameter["type"] = type;
1050
- }
1051
- if (collateralReturn !== void 0 && collateralReturn !== null) {
1052
- localVarQueryParameter["collateralReturn"] = collateralReturn;
1053
- }
1054
- if (recvWindow !== void 0 && recvWindow !== null) {
1055
- localVarQueryParameter["recvWindow"] = recvWindow;
1056
- }
1057
- let _timeUnit;
1058
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1059
- return {
1060
- endpoint: "/sapi/v1/loan/repay",
1061
- method: "POST",
1062
- params: localVarQueryParameter,
1063
- timeUnit: _timeUnit
1064
- };
1065
- },
1066
- /**
1067
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
1068
- *
1069
- * Weight: 400
1070
- *
1071
- * @summary Get Collateral Assets Data(USER_DATA)
1072
- * @param {string} [collateralCoin]
1073
- * @param {number} [vipLevel] Default: user's vip level. Send "-1" to check specified configuration
1074
- * @param {number} [recvWindow]
1075
- *
1076
- * @throws {RequiredError}
1077
- */
1078
- getCollateralAssetsData: async (collateralCoin, vipLevel, recvWindow) => {
1079
- const localVarQueryParameter = {};
1080
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1081
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1082
- }
1083
- if (vipLevel !== void 0 && vipLevel !== null) {
1084
- localVarQueryParameter["vipLevel"] = vipLevel;
1085
- }
1086
- if (recvWindow !== void 0 && recvWindow !== null) {
1087
- localVarQueryParameter["recvWindow"] = recvWindow;
1088
- }
1089
- let _timeUnit;
1090
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1091
- return {
1092
- endpoint: "/sapi/v1/loan/collateral/data",
1093
- method: "GET",
1094
- params: localVarQueryParameter,
1095
- timeUnit: _timeUnit
1096
- };
1097
- },
1098
917
  /**
1099
918
  * Get Crypto Loans Income History
1100
919
  *
@@ -1151,7 +970,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1151
970
  * Weight: 400
1152
971
  *
1153
972
  * @summary Get Loan Borrow History(USER_DATA)
1154
- * @param {number} [orderId]
973
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1155
974
  * @param {string} [loanCoin]
1156
975
  * @param {string} [collateralCoin]
1157
976
  * @param {number} [startTime]
@@ -1206,7 +1025,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1206
1025
  * Weight: 400
1207
1026
  *
1208
1027
  * @summary Get Loan LTV Adjustment History(USER_DATA)
1209
- * @param {number} [orderId]
1028
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1210
1029
  * @param {string} [loanCoin]
1211
1030
  * @param {string} [collateralCoin]
1212
1031
  * @param {number} [startTime]
@@ -1252,50 +1071,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1252
1071
  timeUnit: _timeUnit
1253
1072
  };
1254
1073
  },
1255
- /**
1256
- * Get Loan Ongoing Orders
1257
- *
1258
- * Weight: 300
1259
- *
1260
- * @summary Get Loan Ongoing Orders(USER_DATA)
1261
- * @param {number} [orderId]
1262
- * @param {string} [loanCoin]
1263
- * @param {string} [collateralCoin]
1264
- * @param {number} [current] Current querying page. Start from 1; default: 1; max: 1000
1265
- * @param {number} [limit] Default: 10; max: 100
1266
- * @param {number} [recvWindow]
1267
- *
1268
- * @throws {RequiredError}
1269
- */
1270
- getLoanOngoingOrders: async (orderId, loanCoin, collateralCoin, current, limit, recvWindow) => {
1271
- const localVarQueryParameter = {};
1272
- if (orderId !== void 0 && orderId !== null) {
1273
- localVarQueryParameter["orderId"] = orderId;
1274
- }
1275
- if (loanCoin !== void 0 && loanCoin !== null) {
1276
- localVarQueryParameter["loanCoin"] = loanCoin;
1277
- }
1278
- if (collateralCoin !== void 0 && collateralCoin !== null) {
1279
- localVarQueryParameter["collateralCoin"] = collateralCoin;
1280
- }
1281
- if (current !== void 0 && current !== null) {
1282
- localVarQueryParameter["current"] = current;
1283
- }
1284
- if (limit !== void 0 && limit !== null) {
1285
- localVarQueryParameter["limit"] = limit;
1286
- }
1287
- if (recvWindow !== void 0 && recvWindow !== null) {
1288
- localVarQueryParameter["recvWindow"] = recvWindow;
1289
- }
1290
- let _timeUnit;
1291
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1292
- return {
1293
- endpoint: "/sapi/v1/loan/ongoing/orders",
1294
- method: "GET",
1295
- params: localVarQueryParameter,
1296
- timeUnit: _timeUnit
1297
- };
1298
- },
1299
1074
  /**
1300
1075
  * Get Loan Repayment History
1301
1076
  *
@@ -1305,7 +1080,7 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1305
1080
  * Weight: 400
1306
1081
  *
1307
1082
  * @summary Get Loan Repayment History(USER_DATA)
1308
- * @param {number} [orderId]
1083
+ * @param {number} [orderId] orderId in `POST /sapi/v1/loan/borrow`
1309
1084
  * @param {string} [loanCoin]
1310
1085
  * @param {string} [collateralCoin]
1311
1086
  * @param {number} [startTime]
@@ -1350,38 +1125,6 @@ var StableRateApiAxiosParamCreator = function(configuration) {
1350
1125
  params: localVarQueryParameter,
1351
1126
  timeUnit: _timeUnit
1352
1127
  };
1353
- },
1354
- /**
1355
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
1356
- *
1357
- * Weight: 400
1358
- *
1359
- * @summary Get Loanable Assets Data(USER_DATA)
1360
- * @param {string} [loanCoin]
1361
- * @param {number} [vipLevel] Default: user's vip level. Send "-1" to check specified configuration
1362
- * @param {number} [recvWindow]
1363
- *
1364
- * @throws {RequiredError}
1365
- */
1366
- getLoanableAssetsData: async (loanCoin, vipLevel, recvWindow) => {
1367
- const localVarQueryParameter = {};
1368
- if (loanCoin !== void 0 && loanCoin !== null) {
1369
- localVarQueryParameter["loanCoin"] = loanCoin;
1370
- }
1371
- if (vipLevel !== void 0 && vipLevel !== null) {
1372
- localVarQueryParameter["vipLevel"] = vipLevel;
1373
- }
1374
- if (recvWindow !== void 0 && recvWindow !== null) {
1375
- localVarQueryParameter["recvWindow"] = recvWindow;
1376
- }
1377
- let _timeUnit;
1378
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1379
- return {
1380
- endpoint: "/sapi/v1/loan/loanable/data",
1381
- method: "GET",
1382
- params: localVarQueryParameter,
1383
- timeUnit: _timeUnit
1384
- };
1385
1128
  }
1386
1129
  };
1387
1130
  };
@@ -1418,144 +1161,6 @@ var StableRateApi = class {
1418
1161
  { isSigned: true }
1419
1162
  );
1420
1163
  }
1421
- /**
1422
- * Crypto Loan Adjust LTV
1423
- *
1424
- * Weight: 6000
1425
- *
1426
- * @summary Crypto Loan Adjust LTV(TRADE)
1427
- * @param {CryptoLoanAdjustLtvRequest} requestParameters Request parameters.
1428
- * @returns {Promise<RestApiResponse<CryptoLoanAdjustLtvResponse>>}
1429
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1430
- * @memberof StableRateApi
1431
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Adjust-LTV Binance API Documentation}
1432
- */
1433
- async cryptoLoanAdjustLtv(requestParameters) {
1434
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanAdjustLtv(
1435
- requestParameters?.orderId,
1436
- requestParameters?.amount,
1437
- requestParameters?.direction,
1438
- requestParameters?.recvWindow
1439
- );
1440
- return (0, import_common2.sendRequest)(
1441
- this.configuration,
1442
- localVarAxiosArgs.endpoint,
1443
- localVarAxiosArgs.method,
1444
- localVarAxiosArgs.params,
1445
- localVarAxiosArgs?.timeUnit,
1446
- { isSigned: true }
1447
- );
1448
- }
1449
- /**
1450
- * Crypto Loan Borrow
1451
- *
1452
- * Weight: 6000
1453
- *
1454
- * @summary Crypto Loan Borrow(TRADE)
1455
- * @param {CryptoLoanBorrowRequest} requestParameters Request parameters.
1456
- * @returns {Promise<RestApiResponse<CryptoLoanBorrowResponse>>}
1457
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1458
- * @memberof StableRateApi
1459
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Borrow Binance API Documentation}
1460
- */
1461
- async cryptoLoanBorrow(requestParameters) {
1462
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanBorrow(
1463
- requestParameters?.loanCoin,
1464
- requestParameters?.collateralCoin,
1465
- requestParameters?.loanTerm,
1466
- requestParameters?.recvWindow
1467
- );
1468
- return (0, import_common2.sendRequest)(
1469
- this.configuration,
1470
- localVarAxiosArgs.endpoint,
1471
- localVarAxiosArgs.method,
1472
- localVarAxiosArgs.params,
1473
- localVarAxiosArgs?.timeUnit,
1474
- { isSigned: true }
1475
- );
1476
- }
1477
- /**
1478
- * Customize Margin Call
1479
- *
1480
- * Weight: 6000
1481
- *
1482
- * @summary Crypto Loan Customize Margin Call(TRADE)
1483
- * @param {CryptoLoanCustomizeMarginCallRequest} requestParameters Request parameters.
1484
- * @returns {Promise<RestApiResponse<CryptoLoanCustomizeMarginCallResponse>>}
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-Customize-Margin-Call Binance API Documentation}
1488
- */
1489
- async cryptoLoanCustomizeMarginCall(requestParameters) {
1490
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanCustomizeMarginCall(
1491
- requestParameters?.marginCall,
1492
- requestParameters?.recvWindow
1493
- );
1494
- return (0, import_common2.sendRequest)(
1495
- this.configuration,
1496
- localVarAxiosArgs.endpoint,
1497
- localVarAxiosArgs.method,
1498
- localVarAxiosArgs.params,
1499
- localVarAxiosArgs?.timeUnit,
1500
- { isSigned: true }
1501
- );
1502
- }
1503
- /**
1504
- * Crypto Loan Repay
1505
- *
1506
- * Weight: 6000
1507
- *
1508
- * @summary Crypto Loan Repay(TRADE)
1509
- * @param {CryptoLoanRepayRequest} requestParameters Request parameters.
1510
- * @returns {Promise<RestApiResponse<CryptoLoanRepayResponse>>}
1511
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1512
- * @memberof StableRateApi
1513
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Repay Binance API Documentation}
1514
- */
1515
- async cryptoLoanRepay(requestParameters) {
1516
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.cryptoLoanRepay(
1517
- requestParameters?.orderId,
1518
- requestParameters?.amount,
1519
- requestParameters?.type,
1520
- requestParameters?.collateralReturn,
1521
- requestParameters?.recvWindow
1522
- );
1523
- return (0, import_common2.sendRequest)(
1524
- this.configuration,
1525
- localVarAxiosArgs.endpoint,
1526
- localVarAxiosArgs.method,
1527
- localVarAxiosArgs.params,
1528
- localVarAxiosArgs?.timeUnit,
1529
- { isSigned: true }
1530
- );
1531
- }
1532
- /**
1533
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
1534
- *
1535
- * Weight: 400
1536
- *
1537
- * @summary Get Collateral Assets Data(USER_DATA)
1538
- * @param {GetCollateralAssetsDataRequest} requestParameters Request parameters.
1539
- * @returns {Promise<RestApiResponse<GetCollateralAssetsDataResponse>>}
1540
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1541
- * @memberof StableRateApi
1542
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Collateral-Assets-Data Binance API Documentation}
1543
- */
1544
- async getCollateralAssetsData(requestParameters = {}) {
1545
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralAssetsData(
1546
- requestParameters?.collateralCoin,
1547
- requestParameters?.vipLevel,
1548
- requestParameters?.recvWindow
1549
- );
1550
- return (0, import_common2.sendRequest)(
1551
- this.configuration,
1552
- localVarAxiosArgs.endpoint,
1553
- localVarAxiosArgs.method,
1554
- localVarAxiosArgs.params,
1555
- localVarAxiosArgs?.timeUnit,
1556
- { isSigned: true }
1557
- );
1558
- }
1559
1164
  /**
1560
1165
  * Get Crypto Loans Income History
1561
1166
  *
@@ -1659,36 +1264,6 @@ var StableRateApi = class {
1659
1264
  { isSigned: true }
1660
1265
  );
1661
1266
  }
1662
- /**
1663
- * Get Loan Ongoing Orders
1664
- *
1665
- * Weight: 300
1666
- *
1667
- * @summary Get Loan Ongoing Orders(USER_DATA)
1668
- * @param {GetLoanOngoingOrdersRequest} requestParameters Request parameters.
1669
- * @returns {Promise<RestApiResponse<GetLoanOngoingOrdersResponse>>}
1670
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1671
- * @memberof StableRateApi
1672
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Ongoing-Orders Binance API Documentation}
1673
- */
1674
- async getLoanOngoingOrders(requestParameters = {}) {
1675
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanOngoingOrders(
1676
- requestParameters?.orderId,
1677
- requestParameters?.loanCoin,
1678
- requestParameters?.collateralCoin,
1679
- requestParameters?.current,
1680
- requestParameters?.limit,
1681
- requestParameters?.recvWindow
1682
- );
1683
- return (0, import_common2.sendRequest)(
1684
- this.configuration,
1685
- localVarAxiosArgs.endpoint,
1686
- localVarAxiosArgs.method,
1687
- localVarAxiosArgs.params,
1688
- localVarAxiosArgs?.timeUnit,
1689
- { isSigned: true }
1690
- );
1691
- }
1692
1267
  /**
1693
1268
  * Get Loan Repayment History
1694
1269
  *
@@ -1724,33 +1299,6 @@ var StableRateApi = class {
1724
1299
  { isSigned: true }
1725
1300
  );
1726
1301
  }
1727
- /**
1728
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
1729
- *
1730
- * Weight: 400
1731
- *
1732
- * @summary Get Loanable Assets Data(USER_DATA)
1733
- * @param {GetLoanableAssetsDataRequest} requestParameters Request parameters.
1734
- * @returns {Promise<RestApiResponse<GetLoanableAssetsDataResponse>>}
1735
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1736
- * @memberof StableRateApi
1737
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Loanable-Assets-Data Binance API Documentation}
1738
- */
1739
- async getLoanableAssetsData(requestParameters = {}) {
1740
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanableAssetsData(
1741
- requestParameters?.loanCoin,
1742
- requestParameters?.vipLevel,
1743
- requestParameters?.recvWindow
1744
- );
1745
- return (0, import_common2.sendRequest)(
1746
- this.configuration,
1747
- localVarAxiosArgs.endpoint,
1748
- localVarAxiosArgs.method,
1749
- localVarAxiosArgs.params,
1750
- localVarAxiosArgs?.timeUnit,
1751
- { isSigned: true }
1752
- );
1753
- }
1754
1302
  };
1755
1303
 
1756
1304
  // src/rest-api/rest-api.ts
@@ -1969,76 +1517,6 @@ var RestAPI = class {
1969
1517
  checkCollateralRepayRateStableRate(requestParameters) {
1970
1518
  return this.stableRateApi.checkCollateralRepayRateStableRate(requestParameters);
1971
1519
  }
1972
- /**
1973
- * Crypto Loan Adjust LTV
1974
- *
1975
- * Weight: 6000
1976
- *
1977
- * @summary Crypto Loan Adjust LTV(TRADE)
1978
- * @param {CryptoLoanAdjustLtvRequest} requestParameters Request parameters.
1979
- * @returns {Promise<RestApiResponse<CryptoLoanAdjustLtvResponse>>}
1980
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1981
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Adjust-LTV Binance API Documentation}
1982
- */
1983
- cryptoLoanAdjustLtv(requestParameters) {
1984
- return this.stableRateApi.cryptoLoanAdjustLtv(requestParameters);
1985
- }
1986
- /**
1987
- * Crypto Loan Borrow
1988
- *
1989
- * Weight: 6000
1990
- *
1991
- * @summary Crypto Loan Borrow(TRADE)
1992
- * @param {CryptoLoanBorrowRequest} requestParameters Request parameters.
1993
- * @returns {Promise<RestApiResponse<CryptoLoanBorrowResponse>>}
1994
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1995
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Borrow Binance API Documentation}
1996
- */
1997
- cryptoLoanBorrow(requestParameters) {
1998
- return this.stableRateApi.cryptoLoanBorrow(requestParameters);
1999
- }
2000
- /**
2001
- * Customize Margin Call
2002
- *
2003
- * Weight: 6000
2004
- *
2005
- * @summary Crypto Loan Customize Margin Call(TRADE)
2006
- * @param {CryptoLoanCustomizeMarginCallRequest} requestParameters Request parameters.
2007
- * @returns {Promise<RestApiResponse<CryptoLoanCustomizeMarginCallResponse>>}
2008
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2009
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Customize-Margin-Call Binance API Documentation}
2010
- */
2011
- cryptoLoanCustomizeMarginCall(requestParameters) {
2012
- return this.stableRateApi.cryptoLoanCustomizeMarginCall(requestParameters);
2013
- }
2014
- /**
2015
- * Crypto Loan Repay
2016
- *
2017
- * Weight: 6000
2018
- *
2019
- * @summary Crypto Loan Repay(TRADE)
2020
- * @param {CryptoLoanRepayRequest} requestParameters Request parameters.
2021
- * @returns {Promise<RestApiResponse<CryptoLoanRepayResponse>>}
2022
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2023
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/trade/Crypto-Loan-Repay Binance API Documentation}
2024
- */
2025
- cryptoLoanRepay(requestParameters) {
2026
- return this.stableRateApi.cryptoLoanRepay(requestParameters);
2027
- }
2028
- /**
2029
- * Get LTV information and collateral limit of collateral assets. The collateral limit is shown in USD value.
2030
- *
2031
- * Weight: 400
2032
- *
2033
- * @summary Get Collateral Assets Data(USER_DATA)
2034
- * @param {GetCollateralAssetsDataRequest} requestParameters Request parameters.
2035
- * @returns {Promise<RestApiResponse<GetCollateralAssetsDataResponse>>}
2036
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2037
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Collateral-Assets-Data Binance API Documentation}
2038
- */
2039
- getCollateralAssetsData(requestParameters = {}) {
2040
- return this.stableRateApi.getCollateralAssetsData(requestParameters);
2041
- }
2042
1520
  /**
2043
1521
  * Get Crypto Loans Income History
2044
1522
  *
@@ -2090,20 +1568,6 @@ var RestAPI = class {
2090
1568
  getLoanLtvAdjustmentHistory(requestParameters = {}) {
2091
1569
  return this.stableRateApi.getLoanLtvAdjustmentHistory(requestParameters);
2092
1570
  }
2093
- /**
2094
- * Get Loan Ongoing Orders
2095
- *
2096
- * Weight: 300
2097
- *
2098
- * @summary Get Loan Ongoing Orders(USER_DATA)
2099
- * @param {GetLoanOngoingOrdersRequest} requestParameters Request parameters.
2100
- * @returns {Promise<RestApiResponse<GetLoanOngoingOrdersResponse>>}
2101
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2102
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Ongoing-Orders Binance API Documentation}
2103
- */
2104
- getLoanOngoingOrders(requestParameters = {}) {
2105
- return this.stableRateApi.getLoanOngoingOrders(requestParameters);
2106
- }
2107
1571
  /**
2108
1572
  * Get Loan Repayment History
2109
1573
  *
@@ -2121,20 +1585,6 @@ var RestAPI = class {
2121
1585
  getLoanRepaymentHistory(requestParameters = {}) {
2122
1586
  return this.stableRateApi.getLoanRepaymentHistory(requestParameters);
2123
1587
  }
2124
- /**
2125
- * Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.
2126
- *
2127
- * Weight: 400
2128
- *
2129
- * @summary Get Loanable Assets Data(USER_DATA)
2130
- * @param {GetLoanableAssetsDataRequest} requestParameters Request parameters.
2131
- * @returns {Promise<RestApiResponse<GetLoanableAssetsDataResponse>>}
2132
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2133
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Loanable-Assets-Data Binance API Documentation}
2134
- */
2135
- getLoanableAssetsData(requestParameters = {}) {
2136
- return this.stableRateApi.getLoanableAssetsData(requestParameters);
2137
- }
2138
1588
  };
2139
1589
 
2140
1590
  // src/crypto-loan.ts