@binance/crypto-loan 6.0.6 → 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.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
 
14
14
  // package.json
15
15
  var name = "@binance/crypto-loan";
16
- var version = "6.0.6";
16
+ var version = "7.0.0";
17
17
 
18
18
  // src/rest-api/index.ts
19
19
  var rest_api_exports = {};
@@ -121,20 +121,28 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
121
121
  * @summary Flexible Loan Borrow(TRADE)
122
122
  * @param {string} loanCoin
123
123
  * @param {string} collateralCoin
124
+ * @param {number} [loanAmount] Mandatory when collateralAmount is empty
125
+ * @param {number} [collateralAmount] Mandatory when loanAmount is empty
124
126
  * @param {number} [recvWindow]
125
127
  *
126
128
  * @throws {RequiredError}
127
129
  */
128
- flexibleLoanBorrow: async (loanCoin, collateralCoin, recvWindow) => {
130
+ flexibleLoanBorrow: async (loanCoin, collateralCoin, loanAmount, collateralAmount, recvWindow) => {
129
131
  assertParamExists("flexibleLoanBorrow", "loanCoin", loanCoin);
130
132
  assertParamExists("flexibleLoanBorrow", "collateralCoin", collateralCoin);
131
133
  const localVarQueryParameter = {};
132
134
  if (loanCoin !== void 0 && loanCoin !== null) {
133
135
  localVarQueryParameter["loanCoin"] = loanCoin;
134
136
  }
137
+ if (loanAmount !== void 0 && loanAmount !== null) {
138
+ localVarQueryParameter["loanAmount"] = loanAmount;
139
+ }
135
140
  if (collateralCoin !== void 0 && collateralCoin !== null) {
136
141
  localVarQueryParameter["collateralCoin"] = collateralCoin;
137
142
  }
143
+ if (collateralAmount !== void 0 && collateralAmount !== null) {
144
+ localVarQueryParameter["collateralAmount"] = collateralAmount;
145
+ }
138
146
  if (recvWindow !== void 0 && recvWindow !== null) {
139
147
  localVarQueryParameter["recvWindow"] = recvWindow;
140
148
  }
@@ -581,6 +589,8 @@ var FlexibleRateApi = class {
581
589
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanBorrow(
582
590
  requestParameters?.loanCoin,
583
591
  requestParameters?.collateralCoin,
592
+ requestParameters?.loanAmount,
593
+ requestParameters?.collateralAmount,
584
594
  requestParameters?.recvWindow
585
595
  );
586
596
  return sendRequest(