@binance/wallet 6.0.3 → 8.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
@@ -41,7 +41,7 @@ var import_common7 = require("@binance/common");
41
41
 
42
42
  // package.json
43
43
  var name = "@binance/wallet";
44
- var version = "6.0.3";
44
+ var version = "8.0.0";
45
45
 
46
46
  // src/rest-api/index.ts
47
47
  var rest_api_exports = {};
@@ -2385,6 +2385,36 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2385
2385
  timeUnit: _timeUnit
2386
2386
  };
2387
2387
  },
2388
+ /**
2389
+ * This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
2390
+ *
2391
+ * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2392
+ *
2393
+ * Weight: 18000
2394
+ * Request limit: 10 requests per second
2395
+ * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2396
+ * limit is 180000/second. Response from the endpoint contains header
2397
+ * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
2398
+ *
2399
+ * @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
2400
+ * @param {number} [recvWindow]
2401
+ *
2402
+ * @throws {RequiredError}
2403
+ */
2404
+ checkQuestionnaireRequirements: async (recvWindow) => {
2405
+ const localVarQueryParameter = {};
2406
+ if (recvWindow !== void 0 && recvWindow !== null) {
2407
+ localVarQueryParameter["recvWindow"] = recvWindow;
2408
+ }
2409
+ let _timeUnit;
2410
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2411
+ return {
2412
+ endpoint: "/sapi/v1/localentity/questionnaire-requirements",
2413
+ method: "GET",
2414
+ params: localVarQueryParameter,
2415
+ timeUnit: _timeUnit
2416
+ };
2417
+ },
2388
2418
  /**
2389
2419
  * Fetch deposit history for local entities that required travel rule.
2390
2420
  *
@@ -2458,11 +2488,15 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2458
2488
  * Weight: 10
2459
2489
  *
2460
2490
  * @summary Fetch address verification list (USER_DATA)
2491
+ * @param {number} [recvWindow]
2461
2492
  *
2462
2493
  * @throws {RequiredError}
2463
2494
  */
2464
- fetchAddressVerificationList: async () => {
2495
+ fetchAddressVerificationList: async (recvWindow) => {
2465
2496
  const localVarQueryParameter = {};
2497
+ if (recvWindow !== void 0 && recvWindow !== null) {
2498
+ localVarQueryParameter["recvWindow"] = recvWindow;
2499
+ }
2466
2500
  let _timeUnit;
2467
2501
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2468
2502
  return {
@@ -2472,32 +2506,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2472
2506
  timeUnit: _timeUnit
2473
2507
  };
2474
2508
  },
2475
- /**
2476
- * Fetch the onboarded VASP list for local entities that required travel rule.
2477
- *
2478
- * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2479
- *
2480
- * Weight: 18000
2481
- * Request limit: 10 requests per second
2482
- * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2483
- * limit is 180000/second. Response from the endpoint contains header
2484
- * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
2485
- *
2486
- * @summary Onboarded VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
2487
- *
2488
- * @throws {RequiredError}
2489
- */
2490
- onboardedVaspList: async () => {
2491
- const localVarQueryParameter = {};
2492
- let _timeUnit;
2493
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2494
- return {
2495
- endpoint: "/sapi/v1/localentity/vasp",
2496
- method: "GET",
2497
- params: localVarQueryParameter,
2498
- timeUnit: _timeUnit
2499
- };
2500
- },
2501
2509
  /**
2502
2510
  * Submit questionnaire for brokers of local entities that require travel rule.
2503
2511
  * The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
@@ -2607,6 +2615,36 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2607
2615
  timeUnit: _timeUnit
2608
2616
  };
2609
2617
  },
2618
+ /**
2619
+ * Fetch the VASP list for local entities.
2620
+ *
2621
+ * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2622
+ *
2623
+ * Weight: 18000
2624
+ * Request limit: 10 requests per second
2625
+ * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2626
+ * limit is 180000/second. Response from the endpoint contains header
2627
+ * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
2628
+ *
2629
+ * @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
2630
+ * @param {number} [recvWindow]
2631
+ *
2632
+ * @throws {RequiredError}
2633
+ */
2634
+ vaspList: async (recvWindow) => {
2635
+ const localVarQueryParameter = {};
2636
+ if (recvWindow !== void 0 && recvWindow !== null) {
2637
+ localVarQueryParameter["recvWindow"] = recvWindow;
2638
+ }
2639
+ let _timeUnit;
2640
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2641
+ return {
2642
+ endpoint: "/sapi/v1/localentity/vasp",
2643
+ method: "GET",
2644
+ params: localVarQueryParameter,
2645
+ timeUnit: _timeUnit
2646
+ };
2647
+ },
2610
2648
  /**
2611
2649
  * Fetch withdraw history for local entities that required travel rule.
2612
2650
  *
@@ -2880,6 +2918,37 @@ var TravelRuleApi = class {
2880
2918
  { isSigned: true }
2881
2919
  );
2882
2920
  }
2921
+ /**
2922
+ * This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
2923
+ *
2924
+ * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2925
+ *
2926
+ * Weight: 18000
2927
+ * Request limit: 10 requests per second
2928
+ * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2929
+ * limit is 180000/second. Response from the endpoint contains header
2930
+ * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
2931
+ *
2932
+ * @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
2933
+ * @param {CheckQuestionnaireRequirementsRequest} requestParameters Request parameters.
2934
+ * @returns {Promise<RestApiResponse<CheckQuestionnaireRequirementsResponse>>}
2935
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2936
+ * @memberof TravelRuleApi
2937
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/questionnaire-requirements Binance API Documentation}
2938
+ */
2939
+ async checkQuestionnaireRequirements(requestParameters = {}) {
2940
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(
2941
+ requestParameters?.recvWindow
2942
+ );
2943
+ return (0, import_common5.sendRequest)(
2944
+ this.configuration,
2945
+ localVarAxiosArgs.endpoint,
2946
+ localVarAxiosArgs.method,
2947
+ localVarAxiosArgs.params,
2948
+ localVarAxiosArgs?.timeUnit,
2949
+ { isSigned: true }
2950
+ );
2951
+ }
2883
2952
  /**
2884
2953
  * Fetch deposit history for local entities that required travel rule.
2885
2954
  *
@@ -2924,41 +2993,16 @@ var TravelRuleApi = class {
2924
2993
  * Weight: 10
2925
2994
  *
2926
2995
  * @summary Fetch address verification list (USER_DATA)
2996
+ * @param {FetchAddressVerificationListRequest} requestParameters Request parameters.
2927
2997
  * @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
2928
2998
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2929
2999
  * @memberof TravelRuleApi
2930
3000
  * @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
2931
3001
  */
2932
- async fetchAddressVerificationList() {
2933
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList();
2934
- return (0, import_common5.sendRequest)(
2935
- this.configuration,
2936
- localVarAxiosArgs.endpoint,
2937
- localVarAxiosArgs.method,
2938
- localVarAxiosArgs.params,
2939
- localVarAxiosArgs?.timeUnit,
2940
- { isSigned: true }
3002
+ async fetchAddressVerificationList(requestParameters = {}) {
3003
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(
3004
+ requestParameters?.recvWindow
2941
3005
  );
2942
- }
2943
- /**
2944
- * Fetch the onboarded VASP list for local entities that required travel rule.
2945
- *
2946
- * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2947
- *
2948
- * Weight: 18000
2949
- * Request limit: 10 requests per second
2950
- * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
2951
- * limit is 180000/second. Response from the endpoint contains header
2952
- * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
2953
- *
2954
- * @summary Onboarded VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
2955
- * @returns {Promise<RestApiResponse<OnboardedVaspListResponse>>}
2956
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2957
- * @memberof TravelRuleApi
2958
- * @see {@link https://developers.binance.com/docs/wallet/travel-rule/Onboarded-VASP-list Binance API Documentation}
2959
- */
2960
- async onboardedVaspList() {
2961
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.onboardedVaspList();
2962
3006
  return (0, import_common5.sendRequest)(
2963
3007
  this.configuration,
2964
3008
  localVarAxiosArgs.endpoint,
@@ -3038,6 +3082,37 @@ var TravelRuleApi = class {
3038
3082
  { isSigned: true }
3039
3083
  );
3040
3084
  }
3085
+ /**
3086
+ * Fetch the VASP list for local entities.
3087
+ *
3088
+ * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3089
+ *
3090
+ * Weight: 18000
3091
+ * Request limit: 10 requests per second
3092
+ * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3093
+ * limit is 180000/second. Response from the endpoint contains header
3094
+ * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
3095
+ *
3096
+ * @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
3097
+ * @param {VaspListRequest} requestParameters Request parameters.
3098
+ * @returns {Promise<RestApiResponse<VaspListResponse>>}
3099
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3100
+ * @memberof TravelRuleApi
3101
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/onboarded-vasp-list Binance API Documentation}
3102
+ */
3103
+ async vaspList(requestParameters = {}) {
3104
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(
3105
+ requestParameters?.recvWindow
3106
+ );
3107
+ return (0, import_common5.sendRequest)(
3108
+ this.configuration,
3109
+ localVarAxiosArgs.endpoint,
3110
+ localVarAxiosArgs.method,
3111
+ localVarAxiosArgs.params,
3112
+ localVarAxiosArgs?.timeUnit,
3113
+ { isSigned: true }
3114
+ );
3115
+ }
3041
3116
  /**
3042
3117
  * Fetch withdraw history for local entities that required travel rule.
3043
3118
  *
@@ -3786,6 +3861,26 @@ var RestAPI = class {
3786
3861
  brokerWithdraw(requestParameters) {
3787
3862
  return this.travelRuleApi.brokerWithdraw(requestParameters);
3788
3863
  }
3864
+ /**
3865
+ * This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
3866
+ *
3867
+ * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3868
+ *
3869
+ * Weight: 18000
3870
+ * Request limit: 10 requests per second
3871
+ * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3872
+ * limit is 180000/second. Response from the endpoint contains header
3873
+ * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
3874
+ *
3875
+ * @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
3876
+ * @param {CheckQuestionnaireRequirementsRequest} requestParameters Request parameters.
3877
+ * @returns {Promise<RestApiResponse<CheckQuestionnaireRequirementsResponse>>}
3878
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3879
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/questionnaire-requirements Binance API Documentation}
3880
+ */
3881
+ checkQuestionnaireRequirements(requestParameters = {}) {
3882
+ return this.travelRuleApi.checkQuestionnaireRequirements(requestParameters);
3883
+ }
3789
3884
  /**
3790
3885
  * Fetch deposit history for local entities that required travel rule.
3791
3886
  *
@@ -3809,31 +3904,13 @@ var RestAPI = class {
3809
3904
  * Weight: 10
3810
3905
  *
3811
3906
  * @summary Fetch address verification list (USER_DATA)
3907
+ * @param {FetchAddressVerificationListRequest} requestParameters Request parameters.
3812
3908
  * @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
3813
3909
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3814
3910
  * @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
3815
3911
  */
3816
- fetchAddressVerificationList() {
3817
- return this.travelRuleApi.fetchAddressVerificationList();
3818
- }
3819
- /**
3820
- * Fetch the onboarded VASP list for local entities that required travel rule.
3821
- *
3822
- * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3823
- *
3824
- * Weight: 18000
3825
- * Request limit: 10 requests per second
3826
- * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3827
- * limit is 180000/second. Response from the endpoint contains header
3828
- * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
3829
- *
3830
- * @summary Onboarded VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
3831
- * @returns {Promise<RestApiResponse<OnboardedVaspListResponse>>}
3832
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3833
- * @see {@link https://developers.binance.com/docs/wallet/travel-rule/Onboarded-VASP-list Binance API Documentation}
3834
- */
3835
- onboardedVaspList() {
3836
- return this.travelRuleApi.onboardedVaspList();
3912
+ fetchAddressVerificationList(requestParameters = {}) {
3913
+ return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
3837
3914
  }
3838
3915
  /**
3839
3916
  * Submit questionnaire for brokers of local entities that require travel rule.
@@ -3873,6 +3950,26 @@ var RestAPI = class {
3873
3950
  submitDepositQuestionnaireTravelRule(requestParameters) {
3874
3951
  return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
3875
3952
  }
3953
+ /**
3954
+ * Fetch the VASP list for local entities.
3955
+ *
3956
+ * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3957
+ *
3958
+ * Weight: 18000
3959
+ * Request limit: 10 requests per second
3960
+ * > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
3961
+ * limit is 180000/second. Response from the endpoint contains header
3962
+ * key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
3963
+ *
3964
+ * @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
3965
+ * @param {VaspListRequest} requestParameters Request parameters.
3966
+ * @returns {Promise<RestApiResponse<VaspListResponse>>}
3967
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3968
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/onboarded-vasp-list Binance API Documentation}
3969
+ */
3970
+ vaspList(requestParameters = {}) {
3971
+ return this.travelRuleApi.vaspList(requestParameters);
3972
+ }
3876
3973
  /**
3877
3974
  * Fetch withdraw history for local entities that required travel rule.
3878
3975
  *