@binance/wallet 7.0.0 → 9.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.d.mts +474 -142
- package/dist/index.d.ts +474 -142
- package/dist/index.js +239 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +239 -93
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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 = "
|
|
44
|
+
var version = "9.0.0";
|
|
45
45
|
|
|
46
46
|
// src/rest-api/index.ts
|
|
47
47
|
var rest_api_exports = {};
|
|
@@ -1786,6 +1786,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1786
1786
|
*
|
|
1787
1787
|
* If `network` not send, return with default network of the coin.
|
|
1788
1788
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
1789
|
+
* To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
|
|
1789
1790
|
*
|
|
1790
1791
|
* Weight: 900
|
|
1791
1792
|
*
|
|
@@ -2122,6 +2123,7 @@ var CapitalApi = class {
|
|
|
2122
2123
|
*
|
|
2123
2124
|
* If `network` not send, return with default network of the coin.
|
|
2124
2125
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
2126
|
+
* To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
|
|
2125
2127
|
*
|
|
2126
2128
|
* Weight: 900
|
|
2127
2129
|
*
|
|
@@ -2385,6 +2387,30 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2385
2387
|
timeUnit: _timeUnit
|
|
2386
2388
|
};
|
|
2387
2389
|
},
|
|
2390
|
+
/**
|
|
2391
|
+
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
2392
|
+
*
|
|
2393
|
+
* Weight: 1
|
|
2394
|
+
*
|
|
2395
|
+
* @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2396
|
+
* @param {number} [recvWindow]
|
|
2397
|
+
*
|
|
2398
|
+
* @throws {RequiredError}
|
|
2399
|
+
*/
|
|
2400
|
+
checkQuestionnaireRequirements: async (recvWindow) => {
|
|
2401
|
+
const localVarQueryParameter = {};
|
|
2402
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
2403
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2404
|
+
}
|
|
2405
|
+
let _timeUnit;
|
|
2406
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2407
|
+
return {
|
|
2408
|
+
endpoint: "/sapi/v1/localentity/questionnaire-requirements",
|
|
2409
|
+
method: "GET",
|
|
2410
|
+
params: localVarQueryParameter,
|
|
2411
|
+
timeUnit: _timeUnit
|
|
2412
|
+
};
|
|
2413
|
+
},
|
|
2388
2414
|
/**
|
|
2389
2415
|
* Fetch deposit history for local entities that required travel rule.
|
|
2390
2416
|
*
|
|
@@ -2453,46 +2479,83 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2453
2479
|
};
|
|
2454
2480
|
},
|
|
2455
2481
|
/**
|
|
2456
|
-
* Fetch
|
|
2482
|
+
* Fetch deposit history for local entities that with required travel rule information.
|
|
2457
2483
|
*
|
|
2458
|
-
*
|
|
2484
|
+
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
2485
|
+
* If both ``startTime`` and ``endTime`` are sent, time between ``startTime`` and ``endTime`` must
|
|
2459
2486
|
*
|
|
2460
|
-
*
|
|
2487
|
+
* Weight: 1
|
|
2488
|
+
*
|
|
2489
|
+
* @summary Deposit History V2 (for local entities that required travel rule) (supporting network) (USER_DATA)
|
|
2490
|
+
* @param {string} [depositId] Comma(,) separated list of wallet tran Ids.
|
|
2491
|
+
* @param {string} [txId]
|
|
2492
|
+
* @param {string} [network]
|
|
2493
|
+
* @param {string} [coin]
|
|
2494
|
+
* @param {boolean} [retrieveQuestionnaire] true: return `questionnaire` within response.
|
|
2495
|
+
* @param {number} [startTime]
|
|
2496
|
+
* @param {number} [endTime]
|
|
2497
|
+
* @param {number} [offset] Default: 0
|
|
2498
|
+
* @param {number} [limit] min 7, max 30, default 7
|
|
2461
2499
|
*
|
|
2462
2500
|
* @throws {RequiredError}
|
|
2463
2501
|
*/
|
|
2464
|
-
|
|
2502
|
+
depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
|
|
2465
2503
|
const localVarQueryParameter = {};
|
|
2504
|
+
if (depositId !== void 0 && depositId !== null) {
|
|
2505
|
+
localVarQueryParameter["depositId"] = depositId;
|
|
2506
|
+
}
|
|
2507
|
+
if (txId !== void 0 && txId !== null) {
|
|
2508
|
+
localVarQueryParameter["txId"] = txId;
|
|
2509
|
+
}
|
|
2510
|
+
if (network !== void 0 && network !== null) {
|
|
2511
|
+
localVarQueryParameter["network"] = network;
|
|
2512
|
+
}
|
|
2513
|
+
if (coin !== void 0 && coin !== null) {
|
|
2514
|
+
localVarQueryParameter["coin"] = coin;
|
|
2515
|
+
}
|
|
2516
|
+
if (retrieveQuestionnaire !== void 0 && retrieveQuestionnaire !== null) {
|
|
2517
|
+
localVarQueryParameter["retrieveQuestionnaire"] = retrieveQuestionnaire;
|
|
2518
|
+
}
|
|
2519
|
+
if (startTime !== void 0 && startTime !== null) {
|
|
2520
|
+
localVarQueryParameter["startTime"] = startTime;
|
|
2521
|
+
}
|
|
2522
|
+
if (endTime !== void 0 && endTime !== null) {
|
|
2523
|
+
localVarQueryParameter["endTime"] = endTime;
|
|
2524
|
+
}
|
|
2525
|
+
if (offset !== void 0 && offset !== null) {
|
|
2526
|
+
localVarQueryParameter["offset"] = offset;
|
|
2527
|
+
}
|
|
2528
|
+
if (limit !== void 0 && limit !== null) {
|
|
2529
|
+
localVarQueryParameter["limit"] = limit;
|
|
2530
|
+
}
|
|
2466
2531
|
let _timeUnit;
|
|
2467
2532
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2468
2533
|
return {
|
|
2469
|
-
endpoint: "/sapi/
|
|
2534
|
+
endpoint: "/sapi/v2/localentity/deposit/history",
|
|
2470
2535
|
method: "GET",
|
|
2471
2536
|
params: localVarQueryParameter,
|
|
2472
2537
|
timeUnit: _timeUnit
|
|
2473
2538
|
};
|
|
2474
2539
|
},
|
|
2475
2540
|
/**
|
|
2476
|
-
* Fetch
|
|
2477
|
-
*
|
|
2478
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2541
|
+
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
2479
2542
|
*
|
|
2480
|
-
* Weight:
|
|
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.
|
|
2543
|
+
* Weight: 1
|
|
2485
2544
|
*
|
|
2486
|
-
* @summary
|
|
2545
|
+
* @summary Fetch address verification list (USER_DATA)
|
|
2546
|
+
* @param {number} [recvWindow]
|
|
2487
2547
|
*
|
|
2488
2548
|
* @throws {RequiredError}
|
|
2489
2549
|
*/
|
|
2490
|
-
|
|
2550
|
+
fetchAddressVerificationList: async (recvWindow) => {
|
|
2491
2551
|
const localVarQueryParameter = {};
|
|
2552
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
2553
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2554
|
+
}
|
|
2492
2555
|
let _timeUnit;
|
|
2493
2556
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2494
2557
|
return {
|
|
2495
|
-
endpoint: "/sapi/v1/
|
|
2558
|
+
endpoint: "/sapi/v1/addressVerify/list",
|
|
2496
2559
|
method: "GET",
|
|
2497
2560
|
params: localVarQueryParameter,
|
|
2498
2561
|
timeUnit: _timeUnit
|
|
@@ -2607,19 +2670,38 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2607
2670
|
timeUnit: _timeUnit
|
|
2608
2671
|
};
|
|
2609
2672
|
},
|
|
2673
|
+
/**
|
|
2674
|
+
* Fetch the VASP list for local entities.
|
|
2675
|
+
*
|
|
2676
|
+
* Weight: 1
|
|
2677
|
+
*
|
|
2678
|
+
* @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2679
|
+
* @param {number} [recvWindow]
|
|
2680
|
+
*
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
*/
|
|
2683
|
+
vaspList: async (recvWindow) => {
|
|
2684
|
+
const localVarQueryParameter = {};
|
|
2685
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
2686
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2687
|
+
}
|
|
2688
|
+
let _timeUnit;
|
|
2689
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2690
|
+
return {
|
|
2691
|
+
endpoint: "/sapi/v1/localentity/vasp",
|
|
2692
|
+
method: "GET",
|
|
2693
|
+
params: localVarQueryParameter,
|
|
2694
|
+
timeUnit: _timeUnit
|
|
2695
|
+
};
|
|
2696
|
+
},
|
|
2610
2697
|
/**
|
|
2611
2698
|
* Fetch withdraw history for local entities that required travel rule.
|
|
2612
2699
|
*
|
|
2613
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2614
2700
|
* `network` may not be in the response for old withdraw.
|
|
2615
2701
|
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
2616
2702
|
* If both `startTime` and `endTime`are sent, time between `startTime`and `endTime`must be less
|
|
2617
2703
|
*
|
|
2618
|
-
* Weight:
|
|
2619
|
-
* Request limit: 10 requests per second
|
|
2620
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2621
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
2622
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2704
|
+
* Weight: 1
|
|
2623
2705
|
*
|
|
2624
2706
|
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2625
2707
|
* @param {string} [trId] Comma(,) separated list of travel rule record Ids.
|
|
@@ -2683,7 +2765,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2683
2765
|
/**
|
|
2684
2766
|
* Fetch withdraw history for local entities that required travel rule.
|
|
2685
2767
|
*
|
|
2686
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2687
2768
|
* `network` may not be in the response for old withdraw.
|
|
2688
2769
|
* Withdrawal made through /sapi/v1/capital/withdraw/apply may not be in the response.
|
|
2689
2770
|
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
@@ -2694,11 +2775,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2694
2775
|
* WithdrawOrderId only support 1.
|
|
2695
2776
|
* If responsible does not include withdrawalStatus, please input trId or txId retrieve the data.
|
|
2696
2777
|
*
|
|
2697
|
-
* Weight:
|
|
2698
|
-
* Request limit: 10 requests per second
|
|
2699
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2700
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
2701
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2778
|
+
* Weight: 1
|
|
2702
2779
|
*
|
|
2703
2780
|
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2704
2781
|
* @param {string} [trId] Comma(,) separated list of travel rule record Ids.
|
|
@@ -2880,6 +2957,31 @@ var TravelRuleApi = class {
|
|
|
2880
2957
|
{ isSigned: true }
|
|
2881
2958
|
);
|
|
2882
2959
|
}
|
|
2960
|
+
/**
|
|
2961
|
+
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
2962
|
+
*
|
|
2963
|
+
* Weight: 1
|
|
2964
|
+
*
|
|
2965
|
+
* @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2966
|
+
* @param {CheckQuestionnaireRequirementsRequest} requestParameters Request parameters.
|
|
2967
|
+
* @returns {Promise<RestApiResponse<CheckQuestionnaireRequirementsResponse>>}
|
|
2968
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2969
|
+
* @memberof TravelRuleApi
|
|
2970
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/questionnaire-requirements Binance API Documentation}
|
|
2971
|
+
*/
|
|
2972
|
+
async checkQuestionnaireRequirements(requestParameters = {}) {
|
|
2973
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(
|
|
2974
|
+
requestParameters?.recvWindow
|
|
2975
|
+
);
|
|
2976
|
+
return (0, import_common5.sendRequest)(
|
|
2977
|
+
this.configuration,
|
|
2978
|
+
localVarAxiosArgs.endpoint,
|
|
2979
|
+
localVarAxiosArgs.method,
|
|
2980
|
+
localVarAxiosArgs.params,
|
|
2981
|
+
localVarAxiosArgs?.timeUnit,
|
|
2982
|
+
{ isSigned: true }
|
|
2983
|
+
);
|
|
2984
|
+
}
|
|
2883
2985
|
/**
|
|
2884
2986
|
* Fetch deposit history for local entities that required travel rule.
|
|
2885
2987
|
*
|
|
@@ -2919,18 +3021,32 @@ var TravelRuleApi = class {
|
|
|
2919
3021
|
);
|
|
2920
3022
|
}
|
|
2921
3023
|
/**
|
|
2922
|
-
* Fetch
|
|
3024
|
+
* Fetch deposit history for local entities that with required travel rule information.
|
|
2923
3025
|
*
|
|
2924
|
-
*
|
|
3026
|
+
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
3027
|
+
* If both ``startTime`` and ``endTime`` are sent, time between ``startTime`` and ``endTime`` must
|
|
2925
3028
|
*
|
|
2926
|
-
*
|
|
2927
|
-
*
|
|
3029
|
+
* Weight: 1
|
|
3030
|
+
*
|
|
3031
|
+
* @summary Deposit History V2 (for local entities that required travel rule) (supporting network) (USER_DATA)
|
|
3032
|
+
* @param {DepositHistoryV2Request} requestParameters Request parameters.
|
|
3033
|
+
* @returns {Promise<RestApiResponse<DepositHistoryV2Response>>}
|
|
2928
3034
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2929
3035
|
* @memberof TravelRuleApi
|
|
2930
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/
|
|
3036
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Deposit-History-V2 Binance API Documentation}
|
|
2931
3037
|
*/
|
|
2932
|
-
async
|
|
2933
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.
|
|
3038
|
+
async depositHistoryV2(requestParameters = {}) {
|
|
3039
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistoryV2(
|
|
3040
|
+
requestParameters?.depositId,
|
|
3041
|
+
requestParameters?.txId,
|
|
3042
|
+
requestParameters?.network,
|
|
3043
|
+
requestParameters?.coin,
|
|
3044
|
+
requestParameters?.retrieveQuestionnaire,
|
|
3045
|
+
requestParameters?.startTime,
|
|
3046
|
+
requestParameters?.endTime,
|
|
3047
|
+
requestParameters?.offset,
|
|
3048
|
+
requestParameters?.limit
|
|
3049
|
+
);
|
|
2934
3050
|
return (0, import_common5.sendRequest)(
|
|
2935
3051
|
this.configuration,
|
|
2936
3052
|
localVarAxiosArgs.endpoint,
|
|
@@ -2941,24 +3057,21 @@ var TravelRuleApi = class {
|
|
|
2941
3057
|
);
|
|
2942
3058
|
}
|
|
2943
3059
|
/**
|
|
2944
|
-
* Fetch
|
|
3060
|
+
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
2945
3061
|
*
|
|
2946
|
-
*
|
|
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.
|
|
3062
|
+
* Weight: 1
|
|
2953
3063
|
*
|
|
2954
|
-
* @summary
|
|
2955
|
-
* @
|
|
3064
|
+
* @summary Fetch address verification list (USER_DATA)
|
|
3065
|
+
* @param {FetchAddressVerificationListRequest} requestParameters Request parameters.
|
|
3066
|
+
* @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
|
|
2956
3067
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2957
3068
|
* @memberof TravelRuleApi
|
|
2958
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/
|
|
3069
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
|
|
2959
3070
|
*/
|
|
2960
|
-
async
|
|
2961
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.
|
|
3071
|
+
async fetchAddressVerificationList(requestParameters = {}) {
|
|
3072
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(
|
|
3073
|
+
requestParameters?.recvWindow
|
|
3074
|
+
);
|
|
2962
3075
|
return (0, import_common5.sendRequest)(
|
|
2963
3076
|
this.configuration,
|
|
2964
3077
|
localVarAxiosArgs.endpoint,
|
|
@@ -3038,19 +3151,39 @@ var TravelRuleApi = class {
|
|
|
3038
3151
|
{ isSigned: true }
|
|
3039
3152
|
);
|
|
3040
3153
|
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Fetch the VASP list for local entities.
|
|
3156
|
+
*
|
|
3157
|
+
* Weight: 1
|
|
3158
|
+
*
|
|
3159
|
+
* @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3160
|
+
* @param {VaspListRequest} requestParameters Request parameters.
|
|
3161
|
+
* @returns {Promise<RestApiResponse<VaspListResponse>>}
|
|
3162
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3163
|
+
* @memberof TravelRuleApi
|
|
3164
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/onboarded-vasp-list Binance API Documentation}
|
|
3165
|
+
*/
|
|
3166
|
+
async vaspList(requestParameters = {}) {
|
|
3167
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(
|
|
3168
|
+
requestParameters?.recvWindow
|
|
3169
|
+
);
|
|
3170
|
+
return (0, import_common5.sendRequest)(
|
|
3171
|
+
this.configuration,
|
|
3172
|
+
localVarAxiosArgs.endpoint,
|
|
3173
|
+
localVarAxiosArgs.method,
|
|
3174
|
+
localVarAxiosArgs.params,
|
|
3175
|
+
localVarAxiosArgs?.timeUnit,
|
|
3176
|
+
{ isSigned: true }
|
|
3177
|
+
);
|
|
3178
|
+
}
|
|
3041
3179
|
/**
|
|
3042
3180
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3043
3181
|
*
|
|
3044
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3045
3182
|
* `network` may not be in the response for old withdraw.
|
|
3046
3183
|
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
3047
3184
|
* If both `startTime` and `endTime`are sent, time between `startTime`and `endTime`must be less
|
|
3048
3185
|
*
|
|
3049
|
-
* Weight:
|
|
3050
|
-
* Request limit: 10 requests per second
|
|
3051
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3052
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
3053
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3186
|
+
* Weight: 1
|
|
3054
3187
|
*
|
|
3055
3188
|
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3056
3189
|
* @param {WithdrawHistoryV1Request} requestParameters Request parameters.
|
|
@@ -3085,7 +3218,6 @@ var TravelRuleApi = class {
|
|
|
3085
3218
|
/**
|
|
3086
3219
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3087
3220
|
*
|
|
3088
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3089
3221
|
* `network` may not be in the response for old withdraw.
|
|
3090
3222
|
* Withdrawal made through /sapi/v1/capital/withdraw/apply may not be in the response.
|
|
3091
3223
|
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
@@ -3096,11 +3228,7 @@ var TravelRuleApi = class {
|
|
|
3096
3228
|
* WithdrawOrderId only support 1.
|
|
3097
3229
|
* If responsible does not include withdrawalStatus, please input trId or txId retrieve the data.
|
|
3098
3230
|
*
|
|
3099
|
-
* Weight:
|
|
3100
|
-
* Request limit: 10 requests per second
|
|
3101
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3102
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
3103
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3231
|
+
* Weight: 1
|
|
3104
3232
|
*
|
|
3105
3233
|
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3106
3234
|
* @param {WithdrawHistoryV2Request} requestParameters Request parameters.
|
|
@@ -3706,6 +3834,7 @@ var RestAPI = class {
|
|
|
3706
3834
|
*
|
|
3707
3835
|
* If `network` not send, return with default network of the coin.
|
|
3708
3836
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
3837
|
+
* To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
|
|
3709
3838
|
*
|
|
3710
3839
|
* Weight: 900
|
|
3711
3840
|
*
|
|
@@ -3786,6 +3915,20 @@ var RestAPI = class {
|
|
|
3786
3915
|
brokerWithdraw(requestParameters) {
|
|
3787
3916
|
return this.travelRuleApi.brokerWithdraw(requestParameters);
|
|
3788
3917
|
}
|
|
3918
|
+
/**
|
|
3919
|
+
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
3920
|
+
*
|
|
3921
|
+
* Weight: 1
|
|
3922
|
+
*
|
|
3923
|
+
* @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3924
|
+
* @param {CheckQuestionnaireRequirementsRequest} requestParameters Request parameters.
|
|
3925
|
+
* @returns {Promise<RestApiResponse<CheckQuestionnaireRequirementsResponse>>}
|
|
3926
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3927
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/questionnaire-requirements Binance API Documentation}
|
|
3928
|
+
*/
|
|
3929
|
+
checkQuestionnaireRequirements(requestParameters = {}) {
|
|
3930
|
+
return this.travelRuleApi.checkQuestionnaireRequirements(requestParameters);
|
|
3931
|
+
}
|
|
3789
3932
|
/**
|
|
3790
3933
|
* Fetch deposit history for local entities that required travel rule.
|
|
3791
3934
|
*
|
|
@@ -3804,36 +3947,35 @@ var RestAPI = class {
|
|
|
3804
3947
|
return this.travelRuleApi.depositHistoryTravelRule(requestParameters);
|
|
3805
3948
|
}
|
|
3806
3949
|
/**
|
|
3807
|
-
* Fetch
|
|
3950
|
+
* Fetch deposit history for local entities that with required travel rule information.
|
|
3808
3951
|
*
|
|
3809
|
-
*
|
|
3952
|
+
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
3953
|
+
* If both ``startTime`` and ``endTime`` are sent, time between ``startTime`` and ``endTime`` must
|
|
3810
3954
|
*
|
|
3811
|
-
*
|
|
3812
|
-
*
|
|
3955
|
+
* Weight: 1
|
|
3956
|
+
*
|
|
3957
|
+
* @summary Deposit History V2 (for local entities that required travel rule) (supporting network) (USER_DATA)
|
|
3958
|
+
* @param {DepositHistoryV2Request} requestParameters Request parameters.
|
|
3959
|
+
* @returns {Promise<RestApiResponse<DepositHistoryV2Response>>}
|
|
3813
3960
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3814
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/
|
|
3961
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Deposit-History-V2 Binance API Documentation}
|
|
3815
3962
|
*/
|
|
3816
|
-
|
|
3817
|
-
return this.travelRuleApi.
|
|
3963
|
+
depositHistoryV2(requestParameters = {}) {
|
|
3964
|
+
return this.travelRuleApi.depositHistoryV2(requestParameters);
|
|
3818
3965
|
}
|
|
3819
3966
|
/**
|
|
3820
|
-
* Fetch
|
|
3821
|
-
*
|
|
3822
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3967
|
+
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
3823
3968
|
*
|
|
3824
|
-
* Weight:
|
|
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.
|
|
3969
|
+
* Weight: 1
|
|
3829
3970
|
*
|
|
3830
|
-
* @summary
|
|
3831
|
-
* @
|
|
3971
|
+
* @summary Fetch address verification list (USER_DATA)
|
|
3972
|
+
* @param {FetchAddressVerificationListRequest} requestParameters Request parameters.
|
|
3973
|
+
* @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
|
|
3832
3974
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3833
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/
|
|
3975
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
|
|
3834
3976
|
*/
|
|
3835
|
-
|
|
3836
|
-
return this.travelRuleApi.
|
|
3977
|
+
fetchAddressVerificationList(requestParameters = {}) {
|
|
3978
|
+
return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
|
|
3837
3979
|
}
|
|
3838
3980
|
/**
|
|
3839
3981
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
@@ -3873,19 +4015,28 @@ var RestAPI = class {
|
|
|
3873
4015
|
submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
3874
4016
|
return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
|
|
3875
4017
|
}
|
|
4018
|
+
/**
|
|
4019
|
+
* Fetch the VASP list for local entities.
|
|
4020
|
+
*
|
|
4021
|
+
* Weight: 1
|
|
4022
|
+
*
|
|
4023
|
+
* @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
4024
|
+
* @param {VaspListRequest} requestParameters Request parameters.
|
|
4025
|
+
* @returns {Promise<RestApiResponse<VaspListResponse>>}
|
|
4026
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4027
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/onboarded-vasp-list Binance API Documentation}
|
|
4028
|
+
*/
|
|
4029
|
+
vaspList(requestParameters = {}) {
|
|
4030
|
+
return this.travelRuleApi.vaspList(requestParameters);
|
|
4031
|
+
}
|
|
3876
4032
|
/**
|
|
3877
4033
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3878
4034
|
*
|
|
3879
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3880
4035
|
* `network` may not be in the response for old withdraw.
|
|
3881
4036
|
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
3882
4037
|
* If both `startTime` and `endTime`are sent, time between `startTime`and `endTime`must be less
|
|
3883
4038
|
*
|
|
3884
|
-
* Weight:
|
|
3885
|
-
* Request limit: 10 requests per second
|
|
3886
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3887
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
3888
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
4039
|
+
* Weight: 1
|
|
3889
4040
|
*
|
|
3890
4041
|
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3891
4042
|
* @param {WithdrawHistoryV1Request} requestParameters Request parameters.
|
|
@@ -3899,7 +4050,6 @@ var RestAPI = class {
|
|
|
3899
4050
|
/**
|
|
3900
4051
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3901
4052
|
*
|
|
3902
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3903
4053
|
* `network` may not be in the response for old withdraw.
|
|
3904
4054
|
* Withdrawal made through /sapi/v1/capital/withdraw/apply may not be in the response.
|
|
3905
4055
|
* Please notice the default `startTime` and `endTime` to make sure that time interval is within
|
|
@@ -3910,11 +4060,7 @@ var RestAPI = class {
|
|
|
3910
4060
|
* WithdrawOrderId only support 1.
|
|
3911
4061
|
* If responsible does not include withdrawalStatus, please input trId or txId retrieve the data.
|
|
3912
4062
|
*
|
|
3913
|
-
* Weight:
|
|
3914
|
-
* Request limit: 10 requests per second
|
|
3915
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3916
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
3917
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
4063
|
+
* Weight: 1
|
|
3918
4064
|
*
|
|
3919
4065
|
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3920
4066
|
* @param {WithdrawHistoryV2Request} requestParameters Request parameters.
|