@binance/wallet 1.0.0 → 2.0.1
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/README.md +0 -15
- package/dist/index.d.mts +524 -316
- package/dist/index.d.ts +524 -316
- package/dist/index.js +333 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +330 -92
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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 = "
|
|
13
|
+
var version = "2.0.1";
|
|
14
14
|
|
|
15
15
|
// src/rest-api/index.ts
|
|
16
16
|
var rest_api_exports = {};
|
|
@@ -46,8 +46,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
46
46
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
47
47
|
}
|
|
48
48
|
let _timeUnit;
|
|
49
|
-
if ("timeUnit" in configuration)
|
|
50
|
-
_timeUnit = configuration.timeUnit;
|
|
49
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
51
50
|
return {
|
|
52
51
|
endpoint: "/sapi/v1/account/apiTradingStatus",
|
|
53
52
|
method: "GET",
|
|
@@ -71,8 +70,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
71
70
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
72
71
|
}
|
|
73
72
|
let _timeUnit;
|
|
74
|
-
if ("timeUnit" in configuration)
|
|
75
|
-
_timeUnit = configuration.timeUnit;
|
|
73
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
76
74
|
return {
|
|
77
75
|
endpoint: "/sapi/v1/account/info",
|
|
78
76
|
method: "GET",
|
|
@@ -96,8 +94,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
96
94
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
97
95
|
}
|
|
98
96
|
let _timeUnit;
|
|
99
|
-
if ("timeUnit" in configuration)
|
|
100
|
-
_timeUnit = configuration.timeUnit;
|
|
97
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
101
98
|
return {
|
|
102
99
|
endpoint: "/sapi/v1/account/status",
|
|
103
100
|
method: "GET",
|
|
@@ -142,8 +139,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
142
139
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
143
140
|
}
|
|
144
141
|
let _timeUnit;
|
|
145
|
-
if ("timeUnit" in configuration)
|
|
146
|
-
_timeUnit = configuration.timeUnit;
|
|
142
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
147
143
|
return {
|
|
148
144
|
endpoint: "/sapi/v1/accountSnapshot",
|
|
149
145
|
method: "GET",
|
|
@@ -166,8 +162,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
166
162
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
167
163
|
}
|
|
168
164
|
let _timeUnit;
|
|
169
|
-
if ("timeUnit" in configuration)
|
|
170
|
-
_timeUnit = configuration.timeUnit;
|
|
165
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
171
166
|
return {
|
|
172
167
|
endpoint: "/sapi/v1/account/disableFastWithdrawSwitch",
|
|
173
168
|
method: "POST",
|
|
@@ -194,8 +189,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
194
189
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
195
190
|
}
|
|
196
191
|
let _timeUnit;
|
|
197
|
-
if ("timeUnit" in configuration)
|
|
198
|
-
_timeUnit = configuration.timeUnit;
|
|
192
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
199
193
|
return {
|
|
200
194
|
endpoint: "/sapi/v1/account/enableFastWithdrawSwitch",
|
|
201
195
|
method: "POST",
|
|
@@ -219,8 +213,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
219
213
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
220
214
|
}
|
|
221
215
|
let _timeUnit;
|
|
222
|
-
if ("timeUnit" in configuration)
|
|
223
|
-
_timeUnit = configuration.timeUnit;
|
|
216
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
224
217
|
return {
|
|
225
218
|
endpoint: "/sapi/v1/account/apiRestrictions",
|
|
226
219
|
method: "GET",
|
|
@@ -448,8 +441,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
448
441
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
449
442
|
}
|
|
450
443
|
let _timeUnit;
|
|
451
|
-
if ("timeUnit" in configuration)
|
|
452
|
-
_timeUnit = configuration.timeUnit;
|
|
444
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
453
445
|
return {
|
|
454
446
|
endpoint: "/sapi/v1/asset/assetDetail",
|
|
455
447
|
method: "GET",
|
|
@@ -492,8 +484,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
492
484
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
493
485
|
}
|
|
494
486
|
let _timeUnit;
|
|
495
|
-
if ("timeUnit" in configuration)
|
|
496
|
-
_timeUnit = configuration.timeUnit;
|
|
487
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
497
488
|
return {
|
|
498
489
|
endpoint: "/sapi/v1/asset/assetDividend",
|
|
499
490
|
method: "GET",
|
|
@@ -528,8 +519,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
528
519
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
529
520
|
}
|
|
530
521
|
let _timeUnit;
|
|
531
|
-
if ("timeUnit" in configuration)
|
|
532
|
-
_timeUnit = configuration.timeUnit;
|
|
522
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
533
523
|
return {
|
|
534
524
|
endpoint: "/sapi/v1/asset/dust",
|
|
535
525
|
method: "POST",
|
|
@@ -564,8 +554,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
564
554
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
565
555
|
}
|
|
566
556
|
let _timeUnit;
|
|
567
|
-
if ("timeUnit" in configuration)
|
|
568
|
-
_timeUnit = configuration.timeUnit;
|
|
557
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
569
558
|
return {
|
|
570
559
|
endpoint: "/sapi/v1/asset/dribblet",
|
|
571
560
|
method: "GET",
|
|
@@ -600,8 +589,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
600
589
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
601
590
|
}
|
|
602
591
|
let _timeUnit;
|
|
603
|
-
if ("timeUnit" in configuration)
|
|
604
|
-
_timeUnit = configuration.timeUnit;
|
|
592
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
605
593
|
return {
|
|
606
594
|
endpoint: "/sapi/v1/asset/get-funding-asset",
|
|
607
595
|
method: "POST",
|
|
@@ -629,8 +617,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
629
617
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
630
618
|
}
|
|
631
619
|
let _timeUnit;
|
|
632
|
-
if ("timeUnit" in configuration)
|
|
633
|
-
_timeUnit = configuration.timeUnit;
|
|
620
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
634
621
|
return {
|
|
635
622
|
endpoint: "/sapi/v1/asset/dust-btc",
|
|
636
623
|
method: "POST",
|
|
@@ -683,8 +670,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
683
670
|
localVarQueryParameter["size"] = size;
|
|
684
671
|
}
|
|
685
672
|
let _timeUnit;
|
|
686
|
-
if ("timeUnit" in configuration)
|
|
687
|
-
_timeUnit = configuration.timeUnit;
|
|
673
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
688
674
|
return {
|
|
689
675
|
endpoint: "/sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage",
|
|
690
676
|
method: "GET",
|
|
@@ -704,8 +690,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
704
690
|
getOpenSymbolList: async () => {
|
|
705
691
|
const localVarQueryParameter = {};
|
|
706
692
|
let _timeUnit;
|
|
707
|
-
if ("timeUnit" in configuration)
|
|
708
|
-
_timeUnit = configuration.timeUnit;
|
|
693
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
709
694
|
return {
|
|
710
695
|
endpoint: "/sapi/v1/spot/open-symbol-list",
|
|
711
696
|
method: "GET",
|
|
@@ -762,8 +747,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
762
747
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
763
748
|
}
|
|
764
749
|
let _timeUnit;
|
|
765
|
-
if ("timeUnit" in configuration)
|
|
766
|
-
_timeUnit = configuration.timeUnit;
|
|
750
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
767
751
|
return {
|
|
768
752
|
endpoint: "/sapi/v1/asset/custody/transfer-history",
|
|
769
753
|
method: "GET",
|
|
@@ -822,8 +806,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
822
806
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
823
807
|
}
|
|
824
808
|
let _timeUnit;
|
|
825
|
-
if ("timeUnit" in configuration)
|
|
826
|
-
_timeUnit = configuration.timeUnit;
|
|
809
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
827
810
|
return {
|
|
828
811
|
endpoint: "/sapi/v1/asset/transfer",
|
|
829
812
|
method: "GET",
|
|
@@ -854,8 +837,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
854
837
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
855
838
|
}
|
|
856
839
|
let _timeUnit;
|
|
857
|
-
if ("timeUnit" in configuration)
|
|
858
|
-
_timeUnit = configuration.timeUnit;
|
|
840
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
859
841
|
return {
|
|
860
842
|
endpoint: "/sapi/v1/asset/wallet/balance",
|
|
861
843
|
method: "GET",
|
|
@@ -889,8 +871,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
889
871
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
890
872
|
}
|
|
891
873
|
let _timeUnit;
|
|
892
|
-
if ("timeUnit" in configuration)
|
|
893
|
-
_timeUnit = configuration.timeUnit;
|
|
874
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
894
875
|
return {
|
|
895
876
|
endpoint: "/sapi/v1/bnbBurn",
|
|
896
877
|
method: "POST",
|
|
@@ -918,8 +899,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
918
899
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
919
900
|
}
|
|
920
901
|
let _timeUnit;
|
|
921
|
-
if ("timeUnit" in configuration)
|
|
922
|
-
_timeUnit = configuration.timeUnit;
|
|
902
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
923
903
|
return {
|
|
924
904
|
endpoint: "/sapi/v1/asset/tradeFee",
|
|
925
905
|
method: "GET",
|
|
@@ -954,8 +934,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
954
934
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
955
935
|
}
|
|
956
936
|
let _timeUnit;
|
|
957
|
-
if ("timeUnit" in configuration)
|
|
958
|
-
_timeUnit = configuration.timeUnit;
|
|
937
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
959
938
|
return {
|
|
960
939
|
endpoint: "/sapi/v3/asset/getUserAsset",
|
|
961
940
|
method: "POST",
|
|
@@ -1037,8 +1016,7 @@ var AssetApiAxiosParamCreator = function(configuration) {
|
|
|
1037
1016
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1038
1017
|
}
|
|
1039
1018
|
let _timeUnit;
|
|
1040
|
-
if ("timeUnit" in configuration)
|
|
1041
|
-
_timeUnit = configuration.timeUnit;
|
|
1019
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1042
1020
|
return {
|
|
1043
1021
|
endpoint: "/sapi/v1/asset/transfer",
|
|
1044
1022
|
method: "POST",
|
|
@@ -1560,8 +1538,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1560
1538
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1561
1539
|
}
|
|
1562
1540
|
let _timeUnit;
|
|
1563
|
-
if ("timeUnit" in configuration)
|
|
1564
|
-
_timeUnit = configuration.timeUnit;
|
|
1541
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1565
1542
|
return {
|
|
1566
1543
|
endpoint: "/sapi/v1/capital/config/getall",
|
|
1567
1544
|
method: "GET",
|
|
@@ -1602,8 +1579,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1602
1579
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1603
1580
|
}
|
|
1604
1581
|
let _timeUnit;
|
|
1605
|
-
if ("timeUnit" in configuration)
|
|
1606
|
-
_timeUnit = configuration.timeUnit;
|
|
1582
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1607
1583
|
return {
|
|
1608
1584
|
endpoint: "/sapi/v1/capital/deposit/address",
|
|
1609
1585
|
method: "GET",
|
|
@@ -1663,8 +1639,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1663
1639
|
localVarQueryParameter["txId"] = txId;
|
|
1664
1640
|
}
|
|
1665
1641
|
let _timeUnit;
|
|
1666
|
-
if ("timeUnit" in configuration)
|
|
1667
|
-
_timeUnit = configuration.timeUnit;
|
|
1642
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1668
1643
|
return {
|
|
1669
1644
|
endpoint: "/sapi/v1/capital/deposit/hisrec",
|
|
1670
1645
|
method: "GET",
|
|
@@ -1697,8 +1672,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1697
1672
|
localVarQueryParameter["network"] = network;
|
|
1698
1673
|
}
|
|
1699
1674
|
let _timeUnit;
|
|
1700
|
-
if ("timeUnit" in configuration)
|
|
1701
|
-
_timeUnit = configuration.timeUnit;
|
|
1675
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1702
1676
|
return {
|
|
1703
1677
|
endpoint: "/sapi/v1/capital/deposit/address/list",
|
|
1704
1678
|
method: "GET",
|
|
@@ -1718,8 +1692,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1718
1692
|
fetchWithdrawAddressList: async () => {
|
|
1719
1693
|
const localVarQueryParameter = {};
|
|
1720
1694
|
let _timeUnit;
|
|
1721
|
-
if ("timeUnit" in configuration)
|
|
1722
|
-
_timeUnit = configuration.timeUnit;
|
|
1695
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1723
1696
|
return {
|
|
1724
1697
|
endpoint: "/sapi/v1/capital/withdraw/address/list",
|
|
1725
1698
|
method: "GET",
|
|
@@ -1757,8 +1730,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1757
1730
|
localVarQueryParameter["subUserId"] = subUserId;
|
|
1758
1731
|
}
|
|
1759
1732
|
let _timeUnit;
|
|
1760
|
-
if ("timeUnit" in configuration)
|
|
1761
|
-
_timeUnit = configuration.timeUnit;
|
|
1733
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1762
1734
|
return {
|
|
1763
1735
|
endpoint: "/sapi/v1/capital/deposit/credit-apply",
|
|
1764
1736
|
method: "POST",
|
|
@@ -1825,8 +1797,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1825
1797
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1826
1798
|
}
|
|
1827
1799
|
let _timeUnit;
|
|
1828
|
-
if ("timeUnit" in configuration)
|
|
1829
|
-
_timeUnit = configuration.timeUnit;
|
|
1800
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1830
1801
|
return {
|
|
1831
1802
|
endpoint: "/sapi/v1/capital/withdraw/apply",
|
|
1832
1803
|
method: "POST",
|
|
@@ -1890,8 +1861,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1890
1861
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1891
1862
|
}
|
|
1892
1863
|
let _timeUnit;
|
|
1893
|
-
if ("timeUnit" in configuration)
|
|
1894
|
-
_timeUnit = configuration.timeUnit;
|
|
1864
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1895
1865
|
return {
|
|
1896
1866
|
endpoint: "/sapi/v1/capital/withdraw/history",
|
|
1897
1867
|
method: "GET",
|
|
@@ -2185,8 +2155,7 @@ var OthersApiAxiosParamCreator = function(configuration) {
|
|
|
2185
2155
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2186
2156
|
}
|
|
2187
2157
|
let _timeUnit;
|
|
2188
|
-
if ("timeUnit" in configuration)
|
|
2189
|
-
_timeUnit = configuration.timeUnit;
|
|
2158
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2190
2159
|
return {
|
|
2191
2160
|
endpoint: "/sapi/v1/spot/delist-schedule",
|
|
2192
2161
|
method: "GET",
|
|
@@ -2206,8 +2175,7 @@ var OthersApiAxiosParamCreator = function(configuration) {
|
|
|
2206
2175
|
systemStatus: async () => {
|
|
2207
2176
|
const localVarQueryParameter = {};
|
|
2208
2177
|
let _timeUnit;
|
|
2209
|
-
if ("timeUnit" in configuration)
|
|
2210
|
-
_timeUnit = configuration.timeUnit;
|
|
2178
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2211
2179
|
return {
|
|
2212
2180
|
endpoint: "/sapi/v1/system/status",
|
|
2213
2181
|
method: "GET",
|
|
@@ -2278,6 +2246,91 @@ import {
|
|
|
2278
2246
|
} from "@binance/common";
|
|
2279
2247
|
var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
2280
2248
|
return {
|
|
2249
|
+
/**
|
|
2250
|
+
* Submit a withdrawal request for brokers of local entities that required travel rule.
|
|
2251
|
+
*
|
|
2252
|
+
* If `network` not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
|
|
2253
|
+
* You can get `network` in `networkList` of a coin in the response
|
|
2254
|
+
* Questionnaire is different for each local entity, please refer to
|
|
2255
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2256
|
+
*
|
|
2257
|
+
* Weight: 600
|
|
2258
|
+
*
|
|
2259
|
+
* @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
|
|
2260
|
+
* @param {string} subAccountId External user ID.
|
|
2261
|
+
* @param {string} address
|
|
2262
|
+
* @param {string} coin
|
|
2263
|
+
* @param {number} amount
|
|
2264
|
+
* @param {string} withdrawOrderId withdrawID defined by the client (i.e. client's internal withdrawID)
|
|
2265
|
+
* @param {string} questionnaire JSON format questionnaire answers.
|
|
2266
|
+
* @param {string} originatorPii JSON format originator Pii, see StandardPii section below
|
|
2267
|
+
* @param {string} signature Must be the last parameter.
|
|
2268
|
+
* @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
|
|
2269
|
+
* @param {string} [network]
|
|
2270
|
+
* @param {string} [addressName] Description of the address. Address book cap is 200, space in name should be encoded into `%20`
|
|
2271
|
+
* @param {boolean} [transactionFeeFlag] When making internal transfer, `true` for returning the fee to the destination account; `false` for returning the fee back to the departure account. Default `false`.
|
|
2272
|
+
* @param {number} [walletType] The wallet type for withdraw,0-spot wallet ,1-funding wallet. Default walletType is the current "selected wallet" under wallet->Fiat and Spot/Funding->Deposit
|
|
2273
|
+
*
|
|
2274
|
+
* @throws {RequiredError}
|
|
2275
|
+
*/
|
|
2276
|
+
brokerWithdraw: async (subAccountId, address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature, addressTag, network, addressName, transactionFeeFlag, walletType) => {
|
|
2277
|
+
assertParamExists4("brokerWithdraw", "subAccountId", subAccountId);
|
|
2278
|
+
assertParamExists4("brokerWithdraw", "address", address);
|
|
2279
|
+
assertParamExists4("brokerWithdraw", "coin", coin);
|
|
2280
|
+
assertParamExists4("brokerWithdraw", "amount", amount);
|
|
2281
|
+
assertParamExists4("brokerWithdraw", "withdrawOrderId", withdrawOrderId);
|
|
2282
|
+
assertParamExists4("brokerWithdraw", "questionnaire", questionnaire);
|
|
2283
|
+
assertParamExists4("brokerWithdraw", "originatorPii", originatorPii);
|
|
2284
|
+
assertParamExists4("brokerWithdraw", "signature", signature);
|
|
2285
|
+
const localVarQueryParameter = {};
|
|
2286
|
+
if (subAccountId !== void 0 && subAccountId !== null) {
|
|
2287
|
+
localVarQueryParameter["subAccountId"] = subAccountId;
|
|
2288
|
+
}
|
|
2289
|
+
if (address !== void 0 && address !== null) {
|
|
2290
|
+
localVarQueryParameter["address"] = address;
|
|
2291
|
+
}
|
|
2292
|
+
if (addressTag !== void 0 && addressTag !== null) {
|
|
2293
|
+
localVarQueryParameter["addressTag"] = addressTag;
|
|
2294
|
+
}
|
|
2295
|
+
if (network !== void 0 && network !== null) {
|
|
2296
|
+
localVarQueryParameter["network"] = network;
|
|
2297
|
+
}
|
|
2298
|
+
if (coin !== void 0 && coin !== null) {
|
|
2299
|
+
localVarQueryParameter["coin"] = coin;
|
|
2300
|
+
}
|
|
2301
|
+
if (addressName !== void 0 && addressName !== null) {
|
|
2302
|
+
localVarQueryParameter["addressName"] = addressName;
|
|
2303
|
+
}
|
|
2304
|
+
if (amount !== void 0 && amount !== null) {
|
|
2305
|
+
localVarQueryParameter["amount"] = amount;
|
|
2306
|
+
}
|
|
2307
|
+
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) {
|
|
2308
|
+
localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
2309
|
+
}
|
|
2310
|
+
if (transactionFeeFlag !== void 0 && transactionFeeFlag !== null) {
|
|
2311
|
+
localVarQueryParameter["transactionFeeFlag"] = transactionFeeFlag;
|
|
2312
|
+
}
|
|
2313
|
+
if (walletType !== void 0 && walletType !== null) {
|
|
2314
|
+
localVarQueryParameter["walletType"] = walletType;
|
|
2315
|
+
}
|
|
2316
|
+
if (questionnaire !== void 0 && questionnaire !== null) {
|
|
2317
|
+
localVarQueryParameter["questionnaire"] = questionnaire;
|
|
2318
|
+
}
|
|
2319
|
+
if (originatorPii !== void 0 && originatorPii !== null) {
|
|
2320
|
+
localVarQueryParameter["originatorPii"] = originatorPii;
|
|
2321
|
+
}
|
|
2322
|
+
if (signature !== void 0 && signature !== null) {
|
|
2323
|
+
localVarQueryParameter["signature"] = signature;
|
|
2324
|
+
}
|
|
2325
|
+
let _timeUnit;
|
|
2326
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2327
|
+
return {
|
|
2328
|
+
endpoint: "/sapi/v1/localentity/broker/withdraw/apply",
|
|
2329
|
+
method: "POST",
|
|
2330
|
+
params: localVarQueryParameter,
|
|
2331
|
+
timeUnit: _timeUnit
|
|
2332
|
+
};
|
|
2333
|
+
},
|
|
2281
2334
|
/**
|
|
2282
2335
|
* Fetch deposit history for local entities that required travel rule.
|
|
2283
2336
|
*
|
|
@@ -2337,8 +2390,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2337
2390
|
localVarQueryParameter["limit"] = limit;
|
|
2338
2391
|
}
|
|
2339
2392
|
let _timeUnit;
|
|
2340
|
-
if ("timeUnit" in configuration)
|
|
2341
|
-
_timeUnit = configuration.timeUnit;
|
|
2393
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2342
2394
|
return {
|
|
2343
2395
|
endpoint: "/sapi/v1/localentity/deposit/history",
|
|
2344
2396
|
method: "GET",
|
|
@@ -2364,8 +2416,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2364
2416
|
onboardedVaspList: async () => {
|
|
2365
2417
|
const localVarQueryParameter = {};
|
|
2366
2418
|
let _timeUnit;
|
|
2367
|
-
if ("timeUnit" in configuration)
|
|
2368
|
-
_timeUnit = configuration.timeUnit;
|
|
2419
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2369
2420
|
return {
|
|
2370
2421
|
endpoint: "/sapi/v1/localentity/vasp",
|
|
2371
2422
|
method: "GET",
|
|
@@ -2373,6 +2424,76 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2373
2424
|
timeUnit: _timeUnit
|
|
2374
2425
|
};
|
|
2375
2426
|
},
|
|
2427
|
+
/**
|
|
2428
|
+
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2429
|
+
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2430
|
+
* yet onboarded with GTR.
|
|
2431
|
+
*
|
|
2432
|
+
* Questionnaire is different for each local entity, please refer
|
|
2433
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2434
|
+
*
|
|
2435
|
+
* Weight: 600
|
|
2436
|
+
*
|
|
2437
|
+
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2438
|
+
* @param {string} subAccountId External user ID.
|
|
2439
|
+
* @param {string} depositId Wallet deposit ID.
|
|
2440
|
+
* @param {string} questionnaire JSON format questionnaire answers.
|
|
2441
|
+
* @param {string} beneficiaryPii JSON format beneficiary Pii.
|
|
2442
|
+
* @param {string} signature Must be the last parameter.
|
|
2443
|
+
* @param {string} [network]
|
|
2444
|
+
* @param {string} [coin]
|
|
2445
|
+
* @param {number} [amount]
|
|
2446
|
+
* @param {string} [address]
|
|
2447
|
+
* @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
|
|
2448
|
+
*
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
submitDepositQuestionnaire: async (subAccountId, depositId, questionnaire, beneficiaryPii, signature, network, coin, amount, address, addressTag) => {
|
|
2452
|
+
assertParamExists4("submitDepositQuestionnaire", "subAccountId", subAccountId);
|
|
2453
|
+
assertParamExists4("submitDepositQuestionnaire", "depositId", depositId);
|
|
2454
|
+
assertParamExists4("submitDepositQuestionnaire", "questionnaire", questionnaire);
|
|
2455
|
+
assertParamExists4("submitDepositQuestionnaire", "beneficiaryPii", beneficiaryPii);
|
|
2456
|
+
assertParamExists4("submitDepositQuestionnaire", "signature", signature);
|
|
2457
|
+
const localVarQueryParameter = {};
|
|
2458
|
+
if (subAccountId !== void 0 && subAccountId !== null) {
|
|
2459
|
+
localVarQueryParameter["subAccountId"] = subAccountId;
|
|
2460
|
+
}
|
|
2461
|
+
if (depositId !== void 0 && depositId !== null) {
|
|
2462
|
+
localVarQueryParameter["depositId"] = depositId;
|
|
2463
|
+
}
|
|
2464
|
+
if (questionnaire !== void 0 && questionnaire !== null) {
|
|
2465
|
+
localVarQueryParameter["questionnaire"] = questionnaire;
|
|
2466
|
+
}
|
|
2467
|
+
if (beneficiaryPii !== void 0 && beneficiaryPii !== null) {
|
|
2468
|
+
localVarQueryParameter["beneficiaryPii"] = beneficiaryPii;
|
|
2469
|
+
}
|
|
2470
|
+
if (network !== void 0 && network !== null) {
|
|
2471
|
+
localVarQueryParameter["network"] = network;
|
|
2472
|
+
}
|
|
2473
|
+
if (coin !== void 0 && coin !== null) {
|
|
2474
|
+
localVarQueryParameter["coin"] = coin;
|
|
2475
|
+
}
|
|
2476
|
+
if (amount !== void 0 && amount !== null) {
|
|
2477
|
+
localVarQueryParameter["amount"] = amount;
|
|
2478
|
+
}
|
|
2479
|
+
if (address !== void 0 && address !== null) {
|
|
2480
|
+
localVarQueryParameter["address"] = address;
|
|
2481
|
+
}
|
|
2482
|
+
if (addressTag !== void 0 && addressTag !== null) {
|
|
2483
|
+
localVarQueryParameter["addressTag"] = addressTag;
|
|
2484
|
+
}
|
|
2485
|
+
if (signature !== void 0 && signature !== null) {
|
|
2486
|
+
localVarQueryParameter["signature"] = signature;
|
|
2487
|
+
}
|
|
2488
|
+
let _timeUnit;
|
|
2489
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2490
|
+
return {
|
|
2491
|
+
endpoint: "/sapi/v1/localentity/broker/deposit/provide-info",
|
|
2492
|
+
method: "PUT",
|
|
2493
|
+
params: localVarQueryParameter,
|
|
2494
|
+
timeUnit: _timeUnit
|
|
2495
|
+
};
|
|
2496
|
+
},
|
|
2376
2497
|
/**
|
|
2377
2498
|
* Submit questionnaire for local entities that require travel rule.
|
|
2378
2499
|
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
@@ -2384,14 +2505,18 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2384
2505
|
* Weight: 600
|
|
2385
2506
|
*
|
|
2386
2507
|
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2387
|
-
* @param {number} tranId Wallet tran
|
|
2508
|
+
* @param {number} tranId Wallet tran ID
|
|
2388
2509
|
* @param {string} questionnaire JSON format questionnaire answers.
|
|
2389
2510
|
*
|
|
2390
2511
|
* @throws {RequiredError}
|
|
2391
2512
|
*/
|
|
2392
|
-
|
|
2393
|
-
assertParamExists4("
|
|
2394
|
-
assertParamExists4(
|
|
2513
|
+
submitDepositQuestionnaireTravelRule: async (tranId, questionnaire) => {
|
|
2514
|
+
assertParamExists4("submitDepositQuestionnaireTravelRule", "tranId", tranId);
|
|
2515
|
+
assertParamExists4(
|
|
2516
|
+
"submitDepositQuestionnaireTravelRule",
|
|
2517
|
+
"questionnaire",
|
|
2518
|
+
questionnaire
|
|
2519
|
+
);
|
|
2395
2520
|
const localVarQueryParameter = {};
|
|
2396
2521
|
if (tranId !== void 0 && tranId !== null) {
|
|
2397
2522
|
localVarQueryParameter["tranId"] = tranId;
|
|
@@ -2400,8 +2525,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2400
2525
|
localVarQueryParameter["questionnaire"] = questionnaire;
|
|
2401
2526
|
}
|
|
2402
2527
|
let _timeUnit;
|
|
2403
|
-
if ("timeUnit" in configuration)
|
|
2404
|
-
_timeUnit = configuration.timeUnit;
|
|
2528
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2405
2529
|
return {
|
|
2406
2530
|
endpoint: "/sapi/v1/localentity/deposit/provide-info",
|
|
2407
2531
|
method: "PUT",
|
|
@@ -2474,8 +2598,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2474
2598
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2475
2599
|
}
|
|
2476
2600
|
let _timeUnit;
|
|
2477
|
-
if ("timeUnit" in configuration)
|
|
2478
|
-
_timeUnit = configuration.timeUnit;
|
|
2601
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2479
2602
|
return {
|
|
2480
2603
|
endpoint: "/sapi/v1/localentity/withdraw/history",
|
|
2481
2604
|
method: "GET",
|
|
@@ -2503,7 +2626,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2503
2626
|
* limit is 180000/second. Response from the endpoint contains header
|
|
2504
2627
|
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2505
2628
|
*
|
|
2506
|
-
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2629
|
+
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2507
2630
|
* @param {string} [trId] Comma(,) separated list of travel rule record Ids.
|
|
2508
2631
|
* @param {string} [txId]
|
|
2509
2632
|
* @param {string} [withdrawOrderId]
|
|
@@ -2554,8 +2677,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2554
2677
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2555
2678
|
}
|
|
2556
2679
|
let _timeUnit;
|
|
2557
|
-
if ("timeUnit" in configuration)
|
|
2558
|
-
_timeUnit = configuration.timeUnit;
|
|
2680
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2559
2681
|
return {
|
|
2560
2682
|
endpoint: "/sapi/v2/localentity/withdraw/history",
|
|
2561
2683
|
method: "GET",
|
|
@@ -2628,8 +2750,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2628
2750
|
localVarQueryParameter["questionnaire"] = questionnaire;
|
|
2629
2751
|
}
|
|
2630
2752
|
let _timeUnit;
|
|
2631
|
-
if ("timeUnit" in configuration)
|
|
2632
|
-
_timeUnit = configuration.timeUnit;
|
|
2753
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2633
2754
|
return {
|
|
2634
2755
|
endpoint: "/sapi/v1/localentity/withdraw/apply",
|
|
2635
2756
|
method: "POST",
|
|
@@ -2644,6 +2765,48 @@ var TravelRuleApi = class {
|
|
|
2644
2765
|
this.configuration = configuration;
|
|
2645
2766
|
this.localVarAxiosParamCreator = TravelRuleApiAxiosParamCreator(configuration);
|
|
2646
2767
|
}
|
|
2768
|
+
/**
|
|
2769
|
+
* Submit a withdrawal request for brokers of local entities that required travel rule.
|
|
2770
|
+
*
|
|
2771
|
+
* If `network` not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
|
|
2772
|
+
* You can get `network` in `networkList` of a coin in the response
|
|
2773
|
+
* Questionnaire is different for each local entity, please refer to
|
|
2774
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2775
|
+
*
|
|
2776
|
+
* Weight: 600
|
|
2777
|
+
*
|
|
2778
|
+
* @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
|
|
2779
|
+
* @param {BrokerWithdrawRequest} requestParameters Request parameters.
|
|
2780
|
+
* @returns {Promise<RestApiResponse<BrokerWithdrawResponse>>}
|
|
2781
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2782
|
+
* @memberof TravelRuleApi
|
|
2783
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Broker-Withdraw Binance API Documentation}
|
|
2784
|
+
*/
|
|
2785
|
+
async brokerWithdraw(requestParameters) {
|
|
2786
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.brokerWithdraw(
|
|
2787
|
+
requestParameters?.subAccountId,
|
|
2788
|
+
requestParameters?.address,
|
|
2789
|
+
requestParameters?.coin,
|
|
2790
|
+
requestParameters?.amount,
|
|
2791
|
+
requestParameters?.withdrawOrderId,
|
|
2792
|
+
requestParameters?.questionnaire,
|
|
2793
|
+
requestParameters?.originatorPii,
|
|
2794
|
+
requestParameters?.signature,
|
|
2795
|
+
requestParameters?.addressTag,
|
|
2796
|
+
requestParameters?.network,
|
|
2797
|
+
requestParameters?.addressName,
|
|
2798
|
+
requestParameters?.transactionFeeFlag,
|
|
2799
|
+
requestParameters?.walletType
|
|
2800
|
+
);
|
|
2801
|
+
return sendRequest5(
|
|
2802
|
+
this.configuration,
|
|
2803
|
+
localVarAxiosArgs.endpoint,
|
|
2804
|
+
localVarAxiosArgs.method,
|
|
2805
|
+
localVarAxiosArgs.params,
|
|
2806
|
+
localVarAxiosArgs?.timeUnit,
|
|
2807
|
+
{ isSigned: true }
|
|
2808
|
+
);
|
|
2809
|
+
}
|
|
2647
2810
|
/**
|
|
2648
2811
|
* Fetch deposit history for local entities that required travel rule.
|
|
2649
2812
|
*
|
|
@@ -2711,8 +2874,8 @@ var TravelRuleApi = class {
|
|
|
2711
2874
|
);
|
|
2712
2875
|
}
|
|
2713
2876
|
/**
|
|
2714
|
-
* Submit questionnaire for local entities that require travel rule.
|
|
2715
|
-
* The questionnaire is only applies to transactions from
|
|
2877
|
+
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2878
|
+
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2716
2879
|
* yet onboarded with GTR.
|
|
2717
2880
|
*
|
|
2718
2881
|
* Questionnaire is different for each local entity, please refer
|
|
@@ -2729,6 +2892,45 @@ var TravelRuleApi = class {
|
|
|
2729
2892
|
*/
|
|
2730
2893
|
async submitDepositQuestionnaire(requestParameters) {
|
|
2731
2894
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaire(
|
|
2895
|
+
requestParameters?.subAccountId,
|
|
2896
|
+
requestParameters?.depositId,
|
|
2897
|
+
requestParameters?.questionnaire,
|
|
2898
|
+
requestParameters?.beneficiaryPii,
|
|
2899
|
+
requestParameters?.signature,
|
|
2900
|
+
requestParameters?.network,
|
|
2901
|
+
requestParameters?.coin,
|
|
2902
|
+
requestParameters?.amount,
|
|
2903
|
+
requestParameters?.address,
|
|
2904
|
+
requestParameters?.addressTag
|
|
2905
|
+
);
|
|
2906
|
+
return sendRequest5(
|
|
2907
|
+
this.configuration,
|
|
2908
|
+
localVarAxiosArgs.endpoint,
|
|
2909
|
+
localVarAxiosArgs.method,
|
|
2910
|
+
localVarAxiosArgs.params,
|
|
2911
|
+
localVarAxiosArgs?.timeUnit,
|
|
2912
|
+
{ isSigned: true }
|
|
2913
|
+
);
|
|
2914
|
+
}
|
|
2915
|
+
/**
|
|
2916
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
2917
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
2918
|
+
* yet onboarded with GTR.
|
|
2919
|
+
*
|
|
2920
|
+
* Questionnaire is different for each local entity, please refer
|
|
2921
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2922
|
+
*
|
|
2923
|
+
* Weight: 600
|
|
2924
|
+
*
|
|
2925
|
+
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2926
|
+
* @param {SubmitDepositQuestionnaireTravelRuleRequest} requestParameters Request parameters.
|
|
2927
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireTravelRuleResponse>>}
|
|
2928
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2929
|
+
* @memberof TravelRuleApi
|
|
2930
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info Binance API Documentation}
|
|
2931
|
+
*/
|
|
2932
|
+
async submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
2933
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(
|
|
2732
2934
|
requestParameters?.tranId,
|
|
2733
2935
|
requestParameters?.questionnaire
|
|
2734
2936
|
);
|
|
@@ -2805,12 +3007,12 @@ var TravelRuleApi = class {
|
|
|
2805
3007
|
* limit is 180000/second. Response from the endpoint contains header
|
|
2806
3008
|
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2807
3009
|
*
|
|
2808
|
-
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3010
|
+
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2809
3011
|
* @param {WithdrawHistoryV2Request} requestParameters Request parameters.
|
|
2810
3012
|
* @returns {Promise<RestApiResponse<WithdrawHistoryV2Response>>}
|
|
2811
3013
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2812
3014
|
* @memberof TravelRuleApi
|
|
2813
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History Binance API Documentation}
|
|
3015
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History-V2 Binance API Documentation}
|
|
2814
3016
|
*/
|
|
2815
3017
|
async withdrawHistoryV2(requestParameters = {}) {
|
|
2816
3018
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistoryV2(
|
|
@@ -3457,6 +3659,25 @@ var RestAPI = class {
|
|
|
3457
3659
|
systemStatus() {
|
|
3458
3660
|
return this.othersApi.systemStatus();
|
|
3459
3661
|
}
|
|
3662
|
+
/**
|
|
3663
|
+
* Submit a withdrawal request for brokers of local entities that required travel rule.
|
|
3664
|
+
*
|
|
3665
|
+
* If `network` not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
|
|
3666
|
+
* You can get `network` in `networkList` of a coin in the response
|
|
3667
|
+
* Questionnaire is different for each local entity, please refer to
|
|
3668
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
3669
|
+
*
|
|
3670
|
+
* Weight: 600
|
|
3671
|
+
*
|
|
3672
|
+
* @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
|
|
3673
|
+
* @param {BrokerWithdrawRequest} requestParameters Request parameters.
|
|
3674
|
+
* @returns {Promise<RestApiResponse<BrokerWithdrawResponse>>}
|
|
3675
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3676
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Broker-Withdraw Binance API Documentation}
|
|
3677
|
+
*/
|
|
3678
|
+
brokerWithdraw(requestParameters) {
|
|
3679
|
+
return this.travelRuleApi.brokerWithdraw(requestParameters);
|
|
3680
|
+
}
|
|
3460
3681
|
/**
|
|
3461
3682
|
* Fetch deposit history for local entities that required travel rule.
|
|
3462
3683
|
*
|
|
@@ -3494,8 +3715,8 @@ var RestAPI = class {
|
|
|
3494
3715
|
return this.travelRuleApi.onboardedVaspList();
|
|
3495
3716
|
}
|
|
3496
3717
|
/**
|
|
3497
|
-
* Submit questionnaire for local entities that require travel rule.
|
|
3498
|
-
* The questionnaire is only applies to transactions from
|
|
3718
|
+
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
3719
|
+
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
3499
3720
|
* yet onboarded with GTR.
|
|
3500
3721
|
*
|
|
3501
3722
|
* Questionnaire is different for each local entity, please refer
|
|
@@ -3512,6 +3733,25 @@ var RestAPI = class {
|
|
|
3512
3733
|
submitDepositQuestionnaire(requestParameters) {
|
|
3513
3734
|
return this.travelRuleApi.submitDepositQuestionnaire(requestParameters);
|
|
3514
3735
|
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
3738
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
3739
|
+
* yet onboarded with GTR.
|
|
3740
|
+
*
|
|
3741
|
+
* Questionnaire is different for each local entity, please refer
|
|
3742
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
3743
|
+
*
|
|
3744
|
+
* Weight: 600
|
|
3745
|
+
*
|
|
3746
|
+
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3747
|
+
* @param {SubmitDepositQuestionnaireTravelRuleRequest} requestParameters Request parameters.
|
|
3748
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireTravelRuleResponse>>}
|
|
3749
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3750
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info Binance API Documentation}
|
|
3751
|
+
*/
|
|
3752
|
+
submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
3753
|
+
return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
|
|
3754
|
+
}
|
|
3515
3755
|
/**
|
|
3516
3756
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3517
3757
|
*
|
|
@@ -3555,11 +3795,11 @@ var RestAPI = class {
|
|
|
3555
3795
|
* limit is 180000/second. Response from the endpoint contains header
|
|
3556
3796
|
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3557
3797
|
*
|
|
3558
|
-
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3798
|
+
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3559
3799
|
* @param {WithdrawHistoryV2Request} requestParameters Request parameters.
|
|
3560
3800
|
* @returns {Promise<RestApiResponse<WithdrawHistoryV2Response>>}
|
|
3561
3801
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3562
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History Binance API Documentation}
|
|
3802
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History-V2 Binance API Documentation}
|
|
3563
3803
|
*/
|
|
3564
3804
|
withdrawHistoryV2(requestParameters = {}) {
|
|
3565
3805
|
return this.travelRuleApi.withdrawHistoryV2(requestParameters);
|
|
@@ -3604,7 +3844,6 @@ var Wallet = class {
|
|
|
3604
3844
|
// src/index.ts
|
|
3605
3845
|
import {
|
|
3606
3846
|
WALLET_REST_API_PROD_URL as WALLET_REST_API_PROD_URL2,
|
|
3607
|
-
WALLET_REST_API_TESTNET_URL,
|
|
3608
3847
|
ConnectorClientError,
|
|
3609
3848
|
RequiredError,
|
|
3610
3849
|
UnauthorizedError,
|
|
@@ -3628,7 +3867,6 @@ export {
|
|
|
3628
3867
|
TooManyRequestsError,
|
|
3629
3868
|
UnauthorizedError,
|
|
3630
3869
|
WALLET_REST_API_PROD_URL2 as WALLET_REST_API_PROD_URL,
|
|
3631
|
-
WALLET_REST_API_TESTNET_URL,
|
|
3632
3870
|
Wallet,
|
|
3633
3871
|
rest_api_exports as WalletRestAPI
|
|
3634
3872
|
};
|