@binance/crypto-loan 4.0.0 → 5.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 = "5.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
  *
@@ -1876,19 +1806,6 @@ var RestAPI = class {
1876
1806
  flexibleLoanBorrow(requestParameters) {
1877
1807
  return this.flexibleRateApi.flexibleLoanBorrow(requestParameters);
1878
1808
  }
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
1809
  /**
1893
1810
  * Flexible Loan Repay
1894
1811
  *