@binance/wallet 3.0.0 → 4.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 ConfigurationRestAPI7, WALLET_REST_API_PROD_URL
10
10
 
11
11
  // package.json
12
12
  var name = "@binance/wallet";
13
- var version = "3.0.0";
13
+ var version = "4.0.0";
14
14
 
15
15
  // src/rest-api/index.ts
16
16
  var rest_api_exports = {};
@@ -1700,6 +1700,26 @@ var CapitalApiAxiosParamCreator = function(configuration) {
1700
1700
  timeUnit: _timeUnit
1701
1701
  };
1702
1702
  },
1703
+ /**
1704
+ * Fetch withdraw quota
1705
+ *
1706
+ * Weight: 10
1707
+ *
1708
+ * @summary Fetch withdraw quota (USER_DATA)
1709
+ *
1710
+ * @throws {RequiredError}
1711
+ */
1712
+ fetchWithdrawQuota: async () => {
1713
+ const localVarQueryParameter = {};
1714
+ let _timeUnit;
1715
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1716
+ return {
1717
+ endpoint: "/sapi/v1/capital/withdraw/quota",
1718
+ method: "GET",
1719
+ params: localVarQueryParameter,
1720
+ timeUnit: _timeUnit
1721
+ };
1722
+ },
1703
1723
  /**
1704
1724
  * Apply deposit credit for expired address (One click arrival)
1705
1725
  *
@@ -2022,6 +2042,28 @@ var CapitalApi = class {
2022
2042
  { isSigned: true }
2023
2043
  );
2024
2044
  }
2045
+ /**
2046
+ * Fetch withdraw quota
2047
+ *
2048
+ * Weight: 10
2049
+ *
2050
+ * @summary Fetch withdraw quota (USER_DATA)
2051
+ * @returns {Promise<RestApiResponse<FetchWithdrawQuotaResponse>>}
2052
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2053
+ * @memberof CapitalApi
2054
+ * @see {@link https://developers.binance.com/docs/wallet/capital/Fetch-withdraw-quota Binance API Documentation}
2055
+ */
2056
+ async fetchWithdrawQuota() {
2057
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
2058
+ return sendRequest3(
2059
+ this.configuration,
2060
+ localVarAxiosArgs.endpoint,
2061
+ localVarAxiosArgs.method,
2062
+ localVarAxiosArgs.params,
2063
+ localVarAxiosArgs?.timeUnit,
2064
+ { isSigned: true }
2065
+ );
2066
+ }
2025
2067
  /**
2026
2068
  * Apply deposit credit for expired address (One click arrival)
2027
2069
  *
@@ -2257,7 +2299,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2257
2299
  * Weight: 600
2258
2300
  *
2259
2301
  * @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
2260
- * @param {string} subAccountId External user ID.
2261
2302
  * @param {string} address
2262
2303
  * @param {string} coin
2263
2304
  * @param {number} amount
@@ -2273,8 +2314,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2273
2314
  *
2274
2315
  * @throws {RequiredError}
2275
2316
  */
2276
- brokerWithdraw: async (subAccountId, address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature, addressTag, network, addressName, transactionFeeFlag, walletType) => {
2277
- assertParamExists4("brokerWithdraw", "subAccountId", subAccountId);
2317
+ brokerWithdraw: async (address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature, addressTag, network, addressName, transactionFeeFlag, walletType) => {
2278
2318
  assertParamExists4("brokerWithdraw", "address", address);
2279
2319
  assertParamExists4("brokerWithdraw", "coin", coin);
2280
2320
  assertParamExists4("brokerWithdraw", "amount", amount);
@@ -2283,9 +2323,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2283
2323
  assertParamExists4("brokerWithdraw", "originatorPii", originatorPii);
2284
2324
  assertParamExists4("brokerWithdraw", "signature", signature);
2285
2325
  const localVarQueryParameter = {};
2286
- if (subAccountId !== void 0 && subAccountId !== null) {
2287
- localVarQueryParameter["subAccountId"] = subAccountId;
2288
- }
2289
2326
  if (address !== void 0 && address !== null) {
2290
2327
  localVarQueryParameter["address"] = address;
2291
2328
  }
@@ -2784,7 +2821,6 @@ var TravelRuleApi = class {
2784
2821
  */
2785
2822
  async brokerWithdraw(requestParameters) {
2786
2823
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.brokerWithdraw(
2787
- requestParameters?.subAccountId,
2788
2824
  requestParameters?.address,
2789
2825
  requestParameters?.coin,
2790
2826
  requestParameters?.amount,
@@ -3576,6 +3612,19 @@ var RestAPI = class {
3576
3612
  fetchWithdrawAddressList() {
3577
3613
  return this.capitalApi.fetchWithdrawAddressList();
3578
3614
  }
3615
+ /**
3616
+ * Fetch withdraw quota
3617
+ *
3618
+ * Weight: 10
3619
+ *
3620
+ * @summary Fetch withdraw quota (USER_DATA)
3621
+ * @returns {Promise<RestApiResponse<FetchWithdrawQuotaResponse>>}
3622
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3623
+ * @see {@link https://developers.binance.com/docs/wallet/capital/Fetch-withdraw-quota Binance API Documentation}
3624
+ */
3625
+ fetchWithdrawQuota() {
3626
+ return this.capitalApi.fetchWithdrawQuota();
3627
+ }
3579
3628
  /**
3580
3629
  * Apply deposit credit for expired address (One click arrival)
3581
3630
  *