@binance/wallet 3.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.js CHANGED
@@ -42,7 +42,7 @@ var import_common7 = require("@binance/common");
42
42
 
43
43
  // package.json
44
44
  var name = "@binance/wallet";
45
- var version = "3.0.0";
45
+ var version = "5.0.0";
46
46
 
47
47
  // src/rest-api/index.ts
48
48
  var rest_api_exports = {};
@@ -1723,6 +1723,26 @@ var CapitalApiAxiosParamCreator = function(configuration) {
1723
1723
  timeUnit: _timeUnit
1724
1724
  };
1725
1725
  },
1726
+ /**
1727
+ * Fetch withdraw quota
1728
+ *
1729
+ * Weight: 10
1730
+ *
1731
+ * @summary Fetch withdraw quota (USER_DATA)
1732
+ *
1733
+ * @throws {RequiredError}
1734
+ */
1735
+ fetchWithdrawQuota: async () => {
1736
+ const localVarQueryParameter = {};
1737
+ let _timeUnit;
1738
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1739
+ return {
1740
+ endpoint: "/sapi/v1/capital/withdraw/quota",
1741
+ method: "GET",
1742
+ params: localVarQueryParameter,
1743
+ timeUnit: _timeUnit
1744
+ };
1745
+ },
1726
1746
  /**
1727
1747
  * Apply deposit credit for expired address (One click arrival)
1728
1748
  *
@@ -2045,6 +2065,28 @@ var CapitalApi = class {
2045
2065
  { isSigned: true }
2046
2066
  );
2047
2067
  }
2068
+ /**
2069
+ * Fetch withdraw quota
2070
+ *
2071
+ * Weight: 10
2072
+ *
2073
+ * @summary Fetch withdraw quota (USER_DATA)
2074
+ * @returns {Promise<RestApiResponse<FetchWithdrawQuotaResponse>>}
2075
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2076
+ * @memberof CapitalApi
2077
+ * @see {@link https://developers.binance.com/docs/wallet/capital/Fetch-withdraw-quota Binance API Documentation}
2078
+ */
2079
+ async fetchWithdrawQuota() {
2080
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
2081
+ return (0, import_common3.sendRequest)(
2082
+ this.configuration,
2083
+ localVarAxiosArgs.endpoint,
2084
+ localVarAxiosArgs.method,
2085
+ localVarAxiosArgs.params,
2086
+ localVarAxiosArgs?.timeUnit,
2087
+ { isSigned: true }
2088
+ );
2089
+ }
2048
2090
  /**
2049
2091
  * Apply deposit credit for expired address (One click arrival)
2050
2092
  *
@@ -2275,7 +2317,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2275
2317
  * Weight: 600
2276
2318
  *
2277
2319
  * @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
2278
- * @param {string} subAccountId External user ID.
2279
2320
  * @param {string} address
2280
2321
  * @param {string} coin
2281
2322
  * @param {number} amount
@@ -2291,8 +2332,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2291
2332
  *
2292
2333
  * @throws {RequiredError}
2293
2334
  */
2294
- brokerWithdraw: async (subAccountId, address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature, addressTag, network, addressName, transactionFeeFlag, walletType) => {
2295
- (0, import_common5.assertParamExists)("brokerWithdraw", "subAccountId", subAccountId);
2335
+ brokerWithdraw: async (address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature, addressTag, network, addressName, transactionFeeFlag, walletType) => {
2296
2336
  (0, import_common5.assertParamExists)("brokerWithdraw", "address", address);
2297
2337
  (0, import_common5.assertParamExists)("brokerWithdraw", "coin", coin);
2298
2338
  (0, import_common5.assertParamExists)("brokerWithdraw", "amount", amount);
@@ -2301,9 +2341,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2301
2341
  (0, import_common5.assertParamExists)("brokerWithdraw", "originatorPii", originatorPii);
2302
2342
  (0, import_common5.assertParamExists)("brokerWithdraw", "signature", signature);
2303
2343
  const localVarQueryParameter = {};
2304
- if (subAccountId !== void 0 && subAccountId !== null) {
2305
- localVarQueryParameter["subAccountId"] = subAccountId;
2306
- }
2307
2344
  if (address !== void 0 && address !== null) {
2308
2345
  localVarQueryParameter["address"] = address;
2309
2346
  }
@@ -2802,7 +2839,6 @@ var TravelRuleApi = class {
2802
2839
  */
2803
2840
  async brokerWithdraw(requestParameters) {
2804
2841
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.brokerWithdraw(
2805
- requestParameters?.subAccountId,
2806
2842
  requestParameters?.address,
2807
2843
  requestParameters?.coin,
2808
2844
  requestParameters?.amount,
@@ -3594,6 +3630,19 @@ var RestAPI = class {
3594
3630
  fetchWithdrawAddressList() {
3595
3631
  return this.capitalApi.fetchWithdrawAddressList();
3596
3632
  }
3633
+ /**
3634
+ * Fetch withdraw quota
3635
+ *
3636
+ * Weight: 10
3637
+ *
3638
+ * @summary Fetch withdraw quota (USER_DATA)
3639
+ * @returns {Promise<RestApiResponse<FetchWithdrawQuotaResponse>>}
3640
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3641
+ * @see {@link https://developers.binance.com/docs/wallet/capital/Fetch-withdraw-quota Binance API Documentation}
3642
+ */
3643
+ fetchWithdrawQuota() {
3644
+ return this.capitalApi.fetchWithdrawQuota();
3645
+ }
3597
3646
  /**
3598
3647
  * Apply deposit credit for expired address (One click arrival)
3599
3648
  *