@binance/crypto-loan 6.0.7 → 7.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.d.mts CHANGED
@@ -1504,6 +1504,18 @@ interface FlexibleLoanBorrowRequest {
1504
1504
  * @memberof FlexibleRateApiFlexibleLoanBorrow
1505
1505
  */
1506
1506
  readonly collateralCoin: string;
1507
+ /**
1508
+ * Mandatory when collateralAmount is empty
1509
+ * @type {number}
1510
+ * @memberof FlexibleRateApiFlexibleLoanBorrow
1511
+ */
1512
+ readonly loanAmount?: number;
1513
+ /**
1514
+ * Mandatory when loanAmount is empty
1515
+ * @type {number}
1516
+ * @memberof FlexibleRateApiFlexibleLoanBorrow
1517
+ */
1518
+ readonly collateralAmount?: number;
1507
1519
  /**
1508
1520
  *
1509
1521
  * @type {number}
package/dist/index.d.ts CHANGED
@@ -1504,6 +1504,18 @@ interface FlexibleLoanBorrowRequest {
1504
1504
  * @memberof FlexibleRateApiFlexibleLoanBorrow
1505
1505
  */
1506
1506
  readonly collateralCoin: string;
1507
+ /**
1508
+ * Mandatory when collateralAmount is empty
1509
+ * @type {number}
1510
+ * @memberof FlexibleRateApiFlexibleLoanBorrow
1511
+ */
1512
+ readonly loanAmount?: number;
1513
+ /**
1514
+ * Mandatory when loanAmount is empty
1515
+ * @type {number}
1516
+ * @memberof FlexibleRateApiFlexibleLoanBorrow
1517
+ */
1518
+ readonly collateralAmount?: number;
1507
1519
  /**
1508
1520
  *
1509
1521
  * @type {number}
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var import_common4 = require("@binance/common");
41
41
 
42
42
  // package.json
43
43
  var name = "@binance/crypto-loan";
44
- var version = "6.0.7";
44
+ var version = "7.0.0";
45
45
 
46
46
  // src/rest-api/index.ts
47
47
  var rest_api_exports = {};
@@ -146,20 +146,28 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
146
146
  * @summary Flexible Loan Borrow(TRADE)
147
147
  * @param {string} loanCoin
148
148
  * @param {string} collateralCoin
149
+ * @param {number} [loanAmount] Mandatory when collateralAmount is empty
150
+ * @param {number} [collateralAmount] Mandatory when loanAmount is empty
149
151
  * @param {number} [recvWindow]
150
152
  *
151
153
  * @throws {RequiredError}
152
154
  */
153
- flexibleLoanBorrow: async (loanCoin, collateralCoin, recvWindow) => {
155
+ flexibleLoanBorrow: async (loanCoin, collateralCoin, loanAmount, collateralAmount, recvWindow) => {
154
156
  (0, import_common.assertParamExists)("flexibleLoanBorrow", "loanCoin", loanCoin);
155
157
  (0, import_common.assertParamExists)("flexibleLoanBorrow", "collateralCoin", collateralCoin);
156
158
  const localVarQueryParameter = {};
157
159
  if (loanCoin !== void 0 && loanCoin !== null) {
158
160
  localVarQueryParameter["loanCoin"] = loanCoin;
159
161
  }
162
+ if (loanAmount !== void 0 && loanAmount !== null) {
163
+ localVarQueryParameter["loanAmount"] = loanAmount;
164
+ }
160
165
  if (collateralCoin !== void 0 && collateralCoin !== null) {
161
166
  localVarQueryParameter["collateralCoin"] = collateralCoin;
162
167
  }
168
+ if (collateralAmount !== void 0 && collateralAmount !== null) {
169
+ localVarQueryParameter["collateralAmount"] = collateralAmount;
170
+ }
163
171
  if (recvWindow !== void 0 && recvWindow !== null) {
164
172
  localVarQueryParameter["recvWindow"] = recvWindow;
165
173
  }
@@ -606,6 +614,8 @@ var FlexibleRateApi = class {
606
614
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanBorrow(
607
615
  requestParameters?.loanCoin,
608
616
  requestParameters?.collateralCoin,
617
+ requestParameters?.loanAmount,
618
+ requestParameters?.collateralAmount,
609
619
  requestParameters?.recvWindow
610
620
  );
611
621
  return (0, import_common.sendRequest)(