@binance/margin-trading 9.0.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ var __export = (target, all) => {
7
7
  // src/margin-trading.ts
8
8
  import {
9
9
  buildUserAgent,
10
- ConfigurationRestAPI as ConfigurationRestAPI9,
10
+ ConfigurationRestAPI as ConfigurationRestAPI8,
11
11
  ConfigurationWebsocketStreams as ConfigurationWebsocketStreams2,
12
12
  MARGIN_TRADING_REST_API_PROD_URL,
13
13
  MARGIN_TRADING_WS_STREAMS_PROD_URL
@@ -15,7 +15,7 @@ import {
15
15
 
16
16
  // package.json
17
17
  var name = "@binance/margin-trading";
18
- var version = "9.0.0";
18
+ var version = "10.0.0";
19
19
 
20
20
  // src/rest-api/index.ts
21
21
  var rest_api_exports = {};
@@ -33,7 +33,6 @@ __export(rest_api_exports, {
33
33
  RestAPI: () => RestAPI,
34
34
  RiskDataStreamApi: () => RiskDataStreamApi,
35
35
  TradeApi: () => TradeApi,
36
- TradeDataStreamApi: () => TradeDataStreamApi,
37
36
  TransferApi: () => TransferApi
38
37
  });
39
38
 
@@ -52,7 +51,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
52
51
  * Weight: 3000
53
52
  *
54
53
  * @summary Adjust cross margin max leverage (USER_DATA)
55
- * @param {number} maxLeverage Can only adjust 3 , 5 or 10,Example: maxLeverage = 5 or 3 for Cross Margin Classic; maxLeverage=10 for Cross Margin Pro 10x leverage or 20x if compliance allows.
54
+ * @param {number | bigint} maxLeverage Can only adjust 3 , 5 or 10,Example: maxLeverage = 5 or 3 for Cross Margin Classic; maxLeverage=10 for Cross Margin Pro 10x leverage or 20x if compliance allows.
56
55
  *
57
56
  * @throws {RequiredError}
58
57
  */
@@ -79,7 +78,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
79
78
  *
80
79
  * @summary Disable Isolated Margin Account (TRADE)
81
80
  * @param {string} symbol
82
- * @param {number} [recvWindow] No more than 60000
81
+ * @param {number | bigint} [recvWindow] No more than 60000
83
82
  *
84
83
  * @throws {RequiredError}
85
84
  */
@@ -108,7 +107,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
108
107
  *
109
108
  * @summary Enable Isolated Margin Account (TRADE)
110
109
  * @param {string} symbol
111
- * @param {number} [recvWindow] No more than 60000
110
+ * @param {number | bigint} [recvWindow] No more than 60000
112
111
  *
113
112
  * @throws {RequiredError}
114
113
  */
@@ -136,7 +135,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
136
135
  * Weight: 1(IP)
137
136
  *
138
137
  * @summary Get BNB Burn Status (USER_DATA)
139
- * @param {number} [recvWindow] No more than 60000
138
+ * @param {number | bigint} [recvWindow] No more than 60000
140
139
  *
141
140
  * @throws {RequiredError}
142
141
  */
@@ -160,7 +159,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
160
159
  * Weight: 10(IP)
161
160
  *
162
161
  * @summary Get Summary of Margin account (USER_DATA)
163
- * @param {number} [recvWindow] No more than 60000
162
+ * @param {number | bigint} [recvWindow] No more than 60000
164
163
  *
165
164
  * @throws {RequiredError}
166
165
  */
@@ -187,11 +186,11 @@ var AccountApiAxiosParamCreator = function(configuration) {
187
186
  * @param {string} [asset]
188
187
  * @param {string} [symbol] isolated margin pair
189
188
  * @param {string} [type] Transfer Type: ROLL_IN, ROLL_OUT
190
- * @param {number} [startTime] 只支持查询最近90天的数据
191
- * @param {number} [endTime]
192
- * @param {number} [fromId] 如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
193
- * @param {number} [limit] Default Value: 500; Max Value: 1000
194
- * @param {number} [recvWindow] No more than 60000
189
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
190
+ * @param {number | bigint} [endTime]
191
+ * @param {number | bigint} [fromId] 如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
192
+ * @param {number | bigint} [limit] Default Value: 500; Max Value: 1000
193
+ * @param {number | bigint} [recvWindow] No more than 60000
195
194
  *
196
195
  * @throws {RequiredError}
197
196
  */
@@ -236,7 +235,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
236
235
  * Weight: 10(IP)
237
236
  *
238
237
  * @summary Query Cross Margin Account Details (USER_DATA)
239
- * @param {number} [recvWindow] No more than 60000
238
+ * @param {number | bigint} [recvWindow] No more than 60000
240
239
  *
241
240
  * @throws {RequiredError}
242
241
  */
@@ -260,9 +259,9 @@ var AccountApiAxiosParamCreator = function(configuration) {
260
259
  * Weight: 1 when coin is specified;(IP)
261
260
  *
262
261
  * @summary Query Cross Margin Fee Data (USER_DATA)
263
- * @param {number} [vipLevel] User's current specific margin data will be returned if vipLevel is omitted
262
+ * @param {number | bigint} [vipLevel] User's current specific margin data will be returned if vipLevel is omitted
264
263
  * @param {string} [coin]
265
- * @param {number} [recvWindow] No more than 60000
264
+ * @param {number | bigint} [recvWindow] No more than 60000
266
265
  *
267
266
  * @throws {RequiredError}
268
267
  */
@@ -292,7 +291,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
292
291
  * Weight: 1(IP)
293
292
  *
294
293
  * @summary Query Enabled Isolated Margin Account Limit (USER_DATA)
295
- * @param {number} [recvWindow] No more than 60000
294
+ * @param {number | bigint} [recvWindow] No more than 60000
296
295
  *
297
296
  * @throws {RequiredError}
298
297
  */
@@ -320,7 +319,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
320
319
  *
321
320
  * @summary Query Isolated Margin Account Info (USER_DATA)
322
321
  * @param {string} [symbols] Max 5 symbols can be sent; separated by ",". e.g. "BTCUSDT,BNBUSDT,ADAUSDT"
323
- * @param {number} [recvWindow] No more than 60000
322
+ * @param {number | bigint} [recvWindow] No more than 60000
324
323
  *
325
324
  * @throws {RequiredError}
326
325
  */
@@ -347,9 +346,9 @@ var AccountApiAxiosParamCreator = function(configuration) {
347
346
  * Weight: 1 when a single is specified;(IP)
348
347
  *
349
348
  * @summary Query Isolated Margin Fee Data (USER_DATA)
350
- * @param {number} [vipLevel] User's current specific margin data will be returned if vipLevel is omitted
349
+ * @param {number | bigint} [vipLevel] User's current specific margin data will be returned if vipLevel is omitted
351
350
  * @param {string} [symbol] isolated margin pair
352
- * @param {number} [recvWindow] No more than 60000
351
+ * @param {number | bigint} [recvWindow] No more than 60000
353
352
  *
354
353
  * @throws {RequiredError}
355
354
  */
@@ -735,11 +734,11 @@ var BorrowRepayApiAxiosParamCreator = function(configuration) {
735
734
  * @summary Get Interest History (USER_DATA)
736
735
  * @param {string} [asset]
737
736
  * @param {string} [isolatedSymbol] isolated symbol
738
- * @param {number} [startTime] 只支持查询最近90天的数据
739
- * @param {number} [endTime]
740
- * @param {number} [current] Currently querying page. Start from 1. Default:1
741
- * @param {number} [size] Default:10 Max:100
742
- * @param {number} [recvWindow] No more than 60000
737
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
738
+ * @param {number | bigint} [endTime]
739
+ * @param {number | bigint} [current] Currently querying page. Start from 1. Default:1
740
+ * @param {number | bigint} [size] Default:10 Max:100
741
+ * @param {number | bigint} [recvWindow] No more than 60000
743
742
  *
744
743
  * @throws {RequiredError}
745
744
  */
@@ -786,7 +785,7 @@ var BorrowRepayApiAxiosParamCreator = function(configuration) {
786
785
  * @param {string} symbol
787
786
  * @param {string} amount
788
787
  * @param {string} type `MARGIN`,`ISOLATED`
789
- * @param {number} [recvWindow] No more than 60000
788
+ * @param {number | bigint} [recvWindow] No more than 60000
790
789
  *
791
790
  * @throws {RequiredError}
792
791
  */
@@ -838,12 +837,12 @@ var BorrowRepayApiAxiosParamCreator = function(configuration) {
838
837
  * @param {string} type `MARGIN`,`ISOLATED`
839
838
  * @param {string} [asset]
840
839
  * @param {string} [isolatedSymbol] isolated symbol
841
- * @param {number} [txId] `tranId` in `POST /sapi/v1/margin/loan`
842
- * @param {number} [startTime] 只支持查询最近90天的数据
843
- * @param {number} [endTime]
844
- * @param {number} [current] Currently querying page. Start from 1. Default:1
845
- * @param {number} [size] Default:10 Max:100
846
- * @param {number} [recvWindow] No more than 60000
840
+ * @param {number | bigint} [txId] `tranId` in `POST /sapi/v1/margin/loan`
841
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
842
+ * @param {number | bigint} [endTime]
843
+ * @param {number | bigint} [current] Currently querying page. Start from 1. Default:1
844
+ * @param {number | bigint} [size] Default:10 Max:100
845
+ * @param {number | bigint} [recvWindow] No more than 60000
847
846
  *
848
847
  * @throws {RequiredError}
849
848
  */
@@ -893,10 +892,10 @@ var BorrowRepayApiAxiosParamCreator = function(configuration) {
893
892
  *
894
893
  * @summary Query Margin Interest Rate History (USER_DATA)
895
894
  * @param {string} asset
896
- * @param {number} [vipLevel] User's current specific margin data will be returned if vipLevel is omitted
897
- * @param {number} [startTime] 只支持查询最近90天的数据
898
- * @param {number} [endTime]
899
- * @param {number} [recvWindow] No more than 60000
895
+ * @param {number | bigint} [vipLevel] User's current specific margin data will be returned if vipLevel is omitted
896
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
897
+ * @param {number | bigint} [endTime]
898
+ * @param {number | bigint} [recvWindow] No more than 60000
900
899
  *
901
900
  * @throws {RequiredError}
902
901
  */
@@ -938,7 +937,7 @@ var BorrowRepayApiAxiosParamCreator = function(configuration) {
938
937
  * @summary Query Max Borrow (USER_DATA)
939
938
  * @param {string} asset
940
939
  * @param {string} [isolatedSymbol] isolated symbol
941
- * @param {number} [recvWindow] No more than 60000
940
+ * @param {number | bigint} [recvWindow] No more than 60000
942
941
  *
943
942
  * @throws {RequiredError}
944
943
  */
@@ -1227,7 +1226,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
1227
1226
  *
1228
1227
  * @summary Get All Isolated Margin Symbol(MARKET_DATA)
1229
1228
  * @param {string} [symbol] isolated margin pair
1230
- * @param {number} [recvWindow] No more than 60000
1229
+ * @param {number | bigint} [recvWindow] No more than 60000
1231
1230
  *
1232
1231
  * @throws {RequiredError}
1233
1232
  */
@@ -1278,7 +1277,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
1278
1277
  * Weight: 100
1279
1278
  *
1280
1279
  * @summary Get Delist Schedule (MARKET_DATA)
1281
- * @param {number} [recvWindow] No more than 60000
1280
+ * @param {number | bigint} [recvWindow] No more than 60000
1282
1281
  *
1283
1282
  * @throws {RequiredError}
1284
1283
  */
@@ -1327,7 +1326,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
1327
1326
  * Weight: 100
1328
1327
  *
1329
1328
  * @summary Get list Schedule (MARKET_DATA)
1330
- * @param {number} [recvWindow] No more than 60000
1329
+ * @param {number | bigint} [recvWindow] No more than 60000
1331
1330
  *
1332
1331
  * @throws {RequiredError}
1333
1332
  */
@@ -1352,8 +1351,8 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
1352
1351
  *
1353
1352
  * @summary Query Isolated Margin Tier Data (USER_DATA)
1354
1353
  * @param {string} symbol
1355
- * @param {number} [tier] All margin tier data will be returned if tier is omitted
1356
- * @param {number} [recvWindow] No more than 60000
1354
+ * @param {number | bigint} [tier] All margin tier data will be returned if tier is omitted
1355
+ * @param {number | bigint} [recvWindow] No more than 60000
1357
1356
  *
1358
1357
  * @throws {RequiredError}
1359
1358
  */
@@ -1919,7 +1918,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
1919
1918
  * @param {string} [ip] Can be added in batches, separated by commas. Max 30 for an API key
1920
1919
  * @param {string} [publicKey] 1. If publicKey is inputted it will create an RSA or Ed25519 key. <br />2. Need to be encoded to URL-encoded format
1921
1920
  * @param {string} [permissionMode] This parameter is only for the Ed25519 API key, and does not effact for other encryption methods. The value can be TRADE (TRADE for all permissions) or READ (READ for USER_DATA, FIX_API_READ_ONLY). The default value is TRADE.
1922
- * @param {number} [recvWindow] No more than 60000
1921
+ * @param {number | bigint} [recvWindow] No more than 60000
1923
1922
  *
1924
1923
  * @throws {RequiredError}
1925
1924
  */
@@ -1965,7 +1964,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
1965
1964
  * @summary Delete Special Key(Low-Latency Trading)(TRADE)
1966
1965
  * @param {string} [apiName]
1967
1966
  * @param {string} [symbol] isolated margin pair
1968
- * @param {number} [recvWindow] No more than 60000
1967
+ * @param {number | bigint} [recvWindow] No more than 60000
1969
1968
  *
1970
1969
  * @throws {RequiredError}
1971
1970
  */
@@ -1999,7 +1998,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
1999
1998
  * @summary Edit ip for Special Key(Low-Latency Trading)(TRADE)
2000
1999
  * @param {string} ip Can be added in batches, separated by commas. Max 30 for an API key
2001
2000
  * @param {string} [symbol] isolated margin pair
2002
- * @param {number} [recvWindow] No more than 60000
2001
+ * @param {number | bigint} [recvWindow] No more than 60000
2003
2002
  *
2004
2003
  * @throws {RequiredError}
2005
2004
  */
@@ -2032,12 +2031,12 @@ var TradeApiAxiosParamCreator = function(configuration) {
2032
2031
  * Weight: 1(IP)
2033
2032
  *
2034
2033
  * @summary Get Force Liquidation Record (USER_DATA)
2035
- * @param {number} [startTime] 只支持查询最近90天的数据
2036
- * @param {number} [endTime]
2034
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
2035
+ * @param {number | bigint} [endTime]
2037
2036
  * @param {string} [isolatedSymbol] isolated symbol
2038
- * @param {number} [current] Currently querying page. Start from 1. Default:1
2039
- * @param {number} [size] Default:10 Max:100
2040
- * @param {number} [recvWindow] No more than 60000
2037
+ * @param {number | bigint} [current] Currently querying page. Start from 1. Default:1
2038
+ * @param {number | bigint} [size] Default:10 Max:100
2039
+ * @param {number | bigint} [recvWindow] No more than 60000
2041
2040
  *
2042
2041
  * @throws {RequiredError}
2043
2042
  */
@@ -2076,7 +2075,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2076
2075
  * Weight: 100
2077
2076
  *
2078
2077
  * @summary Get Small Liability Exchange Coin List (USER_DATA)
2079
- * @param {number} [recvWindow] No more than 60000
2078
+ * @param {number | bigint} [recvWindow] No more than 60000
2080
2079
  *
2081
2080
  * @throws {RequiredError}
2082
2081
  */
@@ -2100,11 +2099,11 @@ var TradeApiAxiosParamCreator = function(configuration) {
2100
2099
  * Weight: 100(UID)
2101
2100
  *
2102
2101
  * @summary Get Small Liability Exchange History (USER_DATA)
2103
- * @param {number} current Currently querying page. Start from 1. Default:1
2104
- * @param {number} size Default:10, Max:100
2105
- * @param {number} [startTime] 只支持查询最近90天的数据
2106
- * @param {number} [endTime]
2107
- * @param {number} [recvWindow] No more than 60000
2102
+ * @param {number | bigint} current Currently querying page. Start from 1. Default:1
2103
+ * @param {number | bigint} size Default:10, Max:100
2104
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
2105
+ * @param {number | bigint} [endTime]
2106
+ * @param {number | bigint} [recvWindow] No more than 60000
2108
2107
  *
2109
2108
  * @throws {RequiredError}
2110
2109
  */
@@ -2145,7 +2144,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2145
2144
  * @summary Margin Account Cancel all Open Orders on a Symbol (TRADE)
2146
2145
  * @param {string} symbol
2147
2146
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2148
- * @param {number} [recvWindow] No more than 60000
2147
+ * @param {number | bigint} [recvWindow] No more than 60000
2149
2148
  *
2150
2149
  * @throws {RequiredError}
2151
2150
  */
@@ -2180,10 +2179,10 @@ var TradeApiAxiosParamCreator = function(configuration) {
2180
2179
  * @summary Margin Account Cancel OCO (TRADE)
2181
2180
  * @param {string} symbol
2182
2181
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2183
- * @param {number} [orderListId] Either `orderListId` or `listClientOrderId` must be provided
2182
+ * @param {number | bigint} [orderListId] Either `orderListId` or `listClientOrderId` must be provided
2184
2183
  * @param {string} [listClientOrderId] Either `orderListId` or `listClientOrderId` must be provided
2185
2184
  * @param {string} [newClientOrderId] Used to uniquely identify this cancel. Automatically generated by default
2186
- * @param {number} [recvWindow] No more than 60000
2185
+ * @param {number | bigint} [recvWindow] No more than 60000
2187
2186
  *
2188
2187
  * @throws {RequiredError}
2189
2188
  */
@@ -2227,10 +2226,10 @@ var TradeApiAxiosParamCreator = function(configuration) {
2227
2226
  * @summary Margin Account Cancel Order (TRADE)
2228
2227
  * @param {string} symbol
2229
2228
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2230
- * @param {number} [orderId]
2229
+ * @param {number | bigint} [orderId]
2231
2230
  * @param {string} [origClientOrderId]
2232
2231
  * @param {string} [newClientOrderId] Used to uniquely identify this cancel. Automatically generated by default
2233
- * @param {number} [recvWindow] No more than 60000
2232
+ * @param {number | bigint} [recvWindow] No more than 60000
2234
2233
  *
2235
2234
  * @throws {RequiredError}
2236
2235
  */
@@ -2289,7 +2288,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2289
2288
  * @param {string} [sideEffectType] NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY,AUTO_BORROW_REPAY; default NO_SIDE_EFFECT. More info in [FAQ](https://www.binance.com/en/support/faq/how-to-use-the-sideeffecttype-parameter-with-the-margin-order-endpoints-f9fc51cda1984bf08b95e0d96c4570bc)
2290
2289
  * @param {string} [selfTradePreventionMode] The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE
2291
2290
  * @param {boolean} [autoRepayAtCancel] Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true
2292
- * @param {number} [recvWindow] No more than 60000
2291
+ * @param {number | bigint} [recvWindow] No more than 60000
2293
2292
  *
2294
2293
  * @throws {RequiredError}
2295
2294
  */
@@ -2386,7 +2385,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2386
2385
  * @param {MarginAccountNewOrderTimeInForceEnum} [timeInForce] GTC,IOC,FOK
2387
2386
  * @param {string} [selfTradePreventionMode] The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE
2388
2387
  * @param {boolean} [autoRepayAtCancel] Only when MARGIN_BUY or AUTO_BORROW_REPAY order takes effect, true means that the debt generated by the order needs to be repay after the order is cancelled. The default is true
2389
- * @param {number} [recvWindow] No more than 60000
2388
+ * @param {number | bigint} [recvWindow] No more than 60000
2390
2389
  *
2391
2390
  * @throws {RequiredError}
2392
2391
  */
@@ -2752,7 +2751,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2752
2751
  * @summary Margin Manual Liquidation(MARGIN)
2753
2752
  * @param {string} type `MARGIN`,`ISOLATED`
2754
2753
  * @param {string} [symbol] isolated margin pair
2755
- * @param {number} [recvWindow] No more than 60000
2754
+ * @param {number | bigint} [recvWindow] No more than 60000
2756
2755
  *
2757
2756
  * @throws {RequiredError}
2758
2757
  */
@@ -2785,7 +2784,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2785
2784
  * @summary Query Current Margin Order Count Usage (TRADE)
2786
2785
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2787
2786
  * @param {string} [symbol] isolated margin pair
2788
- * @param {number} [recvWindow] No more than 60000
2787
+ * @param {number | bigint} [recvWindow] No more than 60000
2789
2788
  *
2790
2789
  * @throws {RequiredError}
2791
2790
  */
@@ -2817,11 +2816,11 @@ var TradeApiAxiosParamCreator = function(configuration) {
2817
2816
  * @summary Query Margin Account\'s all OCO (USER_DATA)
2818
2817
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2819
2818
  * @param {string} [symbol] isolated margin pair
2820
- * @param {number} [fromId] 如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
2821
- * @param {number} [startTime] 只支持查询最近90天的数据
2822
- * @param {number} [endTime]
2823
- * @param {number} [limit] Default Value: 500; Max Value: 1000
2824
- * @param {number} [recvWindow] No more than 60000
2819
+ * @param {number | bigint} [fromId] 如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
2820
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
2821
+ * @param {number | bigint} [endTime]
2822
+ * @param {number | bigint} [limit] Default Value: 500; Max Value: 1000
2823
+ * @param {number | bigint} [recvWindow] No more than 60000
2825
2824
  *
2826
2825
  * @throws {RequiredError}
2827
2826
  */
@@ -2869,11 +2868,11 @@ var TradeApiAxiosParamCreator = function(configuration) {
2869
2868
  * @summary Query Margin Account\'s All Orders (USER_DATA)
2870
2869
  * @param {string} symbol
2871
2870
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2872
- * @param {number} [orderId]
2873
- * @param {number} [startTime] 只支持查询最近90天的数据
2874
- * @param {number} [endTime]
2875
- * @param {number} [limit] Default Value: 500; Max Value: 1000
2876
- * @param {number} [recvWindow] No more than 60000
2871
+ * @param {number | bigint} [orderId]
2872
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
2873
+ * @param {number | bigint} [endTime]
2874
+ * @param {number | bigint} [limit] Default Value: 500; Max Value: 1000
2875
+ * @param {number | bigint} [recvWindow] No more than 60000
2877
2876
  *
2878
2877
  * @throws {RequiredError}
2879
2878
  */
@@ -2918,9 +2917,9 @@ var TradeApiAxiosParamCreator = function(configuration) {
2918
2917
  * @summary Query Margin Account\'s OCO (USER_DATA)
2919
2918
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2920
2919
  * @param {string} [symbol] isolated margin pair
2921
- * @param {number} [orderListId] Either `orderListId` or `listClientOrderId` must be provided
2920
+ * @param {number | bigint} [orderListId] Either `orderListId` or `listClientOrderId` must be provided
2922
2921
  * @param {string} [origClientOrderId]
2923
- * @param {number} [recvWindow] No more than 60000
2922
+ * @param {number | bigint} [recvWindow] No more than 60000
2924
2923
  *
2925
2924
  * @throws {RequiredError}
2926
2925
  */
@@ -2958,7 +2957,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2958
2957
  * @summary Query Margin Account\'s Open OCO (USER_DATA)
2959
2958
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2960
2959
  * @param {string} [symbol] isolated margin pair
2961
- * @param {number} [recvWindow] No more than 60000
2960
+ * @param {number | bigint} [recvWindow] No more than 60000
2962
2961
  *
2963
2962
  * @throws {RequiredError}
2964
2963
  */
@@ -2994,7 +2993,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2994
2993
  * @summary Query Margin Account\'s Open Orders (USER_DATA)
2995
2994
  * @param {string} [symbol] isolated margin pair
2996
2995
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
2997
- * @param {number} [recvWindow] No more than 60000
2996
+ * @param {number | bigint} [recvWindow] No more than 60000
2998
2997
  *
2999
2998
  * @throws {RequiredError}
3000
2999
  */
@@ -3029,9 +3028,9 @@ var TradeApiAxiosParamCreator = function(configuration) {
3029
3028
  * @summary Query Margin Account\'s Order (USER_DATA)
3030
3029
  * @param {string} symbol
3031
3030
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
3032
- * @param {number} [orderId]
3031
+ * @param {number | bigint} [orderId]
3033
3032
  * @param {string} [origClientOrderId]
3034
- * @param {number} [recvWindow] No more than 60000
3033
+ * @param {number | bigint} [recvWindow] No more than 60000
3035
3034
  *
3036
3035
  * @throws {RequiredError}
3037
3036
  */
@@ -3073,12 +3072,12 @@ var TradeApiAxiosParamCreator = function(configuration) {
3073
3072
  * @summary Query Margin Account\'s Trade List (USER_DATA)
3074
3073
  * @param {string} symbol
3075
3074
  * @param {string} [isIsolated] for isolated margin or not, "TRUE", "FALSE",default "FALSE"
3076
- * @param {number} [orderId]
3077
- * @param {number} [startTime] 只支持查询最近90天的数据
3078
- * @param {number} [endTime]
3079
- * @param {number} [fromId] 如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
3080
- * @param {number} [limit] Default Value: 500; Max Value: 1000
3081
- * @param {number} [recvWindow] No more than 60000
3075
+ * @param {number | bigint} [orderId]
3076
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
3077
+ * @param {number | bigint} [endTime]
3078
+ * @param {number | bigint} [fromId] 如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
3079
+ * @param {number | bigint} [limit] Default Value: 500; Max Value: 1000
3080
+ * @param {number | bigint} [recvWindow] No more than 60000
3082
3081
  *
3083
3082
  * @throws {RequiredError}
3084
3083
  */
@@ -3127,7 +3126,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
3127
3126
  *
3128
3127
  * @summary Query Special key(Low Latency Trading)(TRADE)
3129
3128
  * @param {string} [symbol] isolated margin pair
3130
- * @param {number} [recvWindow] No more than 60000
3129
+ * @param {number | bigint} [recvWindow] No more than 60000
3131
3130
  *
3132
3131
  * @throws {RequiredError}
3133
3132
  */
@@ -3155,7 +3154,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
3155
3154
  *
3156
3155
  * @summary Query Special key List(Low Latency Trading)(TRADE)
3157
3156
  * @param {string} [symbol] isolated margin pair
3158
- * @param {number} [recvWindow] No more than 60000
3157
+ * @param {number | bigint} [recvWindow] No more than 60000
3159
3158
  *
3160
3159
  * @throws {RequiredError}
3161
3160
  */
@@ -3187,7 +3186,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
3187
3186
  *
3188
3187
  * @summary Small Liability Exchange (MARGIN)
3189
3188
  * @param {Array<string>} assetNames The assets list of small liability exchange, Example: assetNames = BTC,ETH
3190
- * @param {number} [recvWindow] No more than 60000
3189
+ * @param {number | bigint} [recvWindow] No more than 60000
3191
3190
  *
3192
3191
  * @throws {RequiredError}
3193
3192
  */
@@ -4114,337 +4113,11 @@ var MarginAccountNewOtocoNewOrderRespTypeEnum = /* @__PURE__ */ ((MarginAccountN
4114
4113
  return MarginAccountNewOtocoNewOrderRespTypeEnum2;
4115
4114
  })(MarginAccountNewOtocoNewOrderRespTypeEnum || {});
4116
4115
 
4117
- // src/rest-api/modules/trade-data-stream-api.ts
4116
+ // src/rest-api/modules/transfer-api.ts
4118
4117
  import {
4119
4118
  assertParamExists as assertParamExists6,
4120
4119
  sendRequest as sendRequest6
4121
4120
  } from "@binance/common";
4122
- var TradeDataStreamApiAxiosParamCreator = function(configuration) {
4123
- return {
4124
- /**
4125
- * Close out a isolated margin user data stream.
4126
- *
4127
- * Weight: 3000
4128
- *
4129
- * @summary Close Isolated Margin User Data Stream (USER_STREAM)
4130
- * @param {string} symbol
4131
- * @param {string} listenkey
4132
- *
4133
- * @deprecated
4134
- * @throws {RequiredError}
4135
- */
4136
- closeIsolatedMarginUserDataStream: async (symbol, listenkey) => {
4137
- assertParamExists6("closeIsolatedMarginUserDataStream", "symbol", symbol);
4138
- assertParamExists6("closeIsolatedMarginUserDataStream", "listenkey", listenkey);
4139
- const localVarQueryParameter = {};
4140
- if (symbol !== void 0 && symbol !== null) {
4141
- localVarQueryParameter["symbol"] = symbol;
4142
- }
4143
- if (listenkey !== void 0 && listenkey !== null) {
4144
- localVarQueryParameter["listenkey"] = listenkey;
4145
- }
4146
- let _timeUnit;
4147
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
4148
- return {
4149
- endpoint: "/sapi/v1/userDataStream/isolated",
4150
- method: "DELETE",
4151
- params: localVarQueryParameter,
4152
- timeUnit: _timeUnit
4153
- };
4154
- },
4155
- /**
4156
- * Close out a Margin user data stream.
4157
- *
4158
- * Weight: 3000
4159
- *
4160
- * @summary Close Margin User Data Stream (USER_STREAM)
4161
- * @param {string} listenkey
4162
- *
4163
- * @deprecated
4164
- * @throws {RequiredError}
4165
- */
4166
- closeMarginUserDataStream: async (listenkey) => {
4167
- assertParamExists6("closeMarginUserDataStream", "listenkey", listenkey);
4168
- const localVarQueryParameter = {};
4169
- if (listenkey !== void 0 && listenkey !== null) {
4170
- localVarQueryParameter["listenkey"] = listenkey;
4171
- }
4172
- let _timeUnit;
4173
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
4174
- return {
4175
- endpoint: "/sapi/v1/userDataStream",
4176
- method: "DELETE",
4177
- params: localVarQueryParameter,
4178
- timeUnit: _timeUnit
4179
- };
4180
- },
4181
- /**
4182
- * Keepalive an isolated margin user data stream to prevent a time out.
4183
- *
4184
- * Weight: 1
4185
- *
4186
- * @summary Keepalive Isolated Margin User Data Stream (USER_STREAM)
4187
- * @param {string} symbol
4188
- * @param {string} listenKey
4189
- *
4190
- * @deprecated
4191
- * @throws {RequiredError}
4192
- */
4193
- keepaliveIsolatedMarginUserDataStream: async (symbol, listenKey) => {
4194
- assertParamExists6("keepaliveIsolatedMarginUserDataStream", "symbol", symbol);
4195
- assertParamExists6("keepaliveIsolatedMarginUserDataStream", "listenKey", listenKey);
4196
- const localVarQueryParameter = {};
4197
- if (symbol !== void 0 && symbol !== null) {
4198
- localVarQueryParameter["symbol"] = symbol;
4199
- }
4200
- if (listenKey !== void 0 && listenKey !== null) {
4201
- localVarQueryParameter["listenKey"] = listenKey;
4202
- }
4203
- let _timeUnit;
4204
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
4205
- return {
4206
- endpoint: "/sapi/v1/userDataStream/isolated",
4207
- method: "PUT",
4208
- params: localVarQueryParameter,
4209
- timeUnit: _timeUnit
4210
- };
4211
- },
4212
- /**
4213
- * Keepalive a margin user data stream to prevent a time out.
4214
- *
4215
- * Weight: 1
4216
- *
4217
- * @summary Keepalive Margin User Data Stream (USER_STREAM)
4218
- * @param {string} listenKey
4219
- *
4220
- * @deprecated
4221
- * @throws {RequiredError}
4222
- */
4223
- keepaliveMarginUserDataStream: async (listenKey) => {
4224
- assertParamExists6("keepaliveMarginUserDataStream", "listenKey", listenKey);
4225
- const localVarQueryParameter = {};
4226
- if (listenKey !== void 0 && listenKey !== null) {
4227
- localVarQueryParameter["listenKey"] = listenKey;
4228
- }
4229
- let _timeUnit;
4230
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
4231
- return {
4232
- endpoint: "/sapi/v1/userDataStream",
4233
- method: "PUT",
4234
- params: localVarQueryParameter,
4235
- timeUnit: _timeUnit
4236
- };
4237
- },
4238
- /**
4239
- * Start a new isolated margin user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
4240
- *
4241
- * Weight: 1
4242
- *
4243
- * @summary Start Isolated Margin User Data Stream (USER_STREAM)
4244
- * @param {string} symbol
4245
- *
4246
- * @deprecated
4247
- * @throws {RequiredError}
4248
- */
4249
- startIsolatedMarginUserDataStream: async (symbol) => {
4250
- assertParamExists6("startIsolatedMarginUserDataStream", "symbol", symbol);
4251
- const localVarQueryParameter = {};
4252
- if (symbol !== void 0 && symbol !== null) {
4253
- localVarQueryParameter["symbol"] = symbol;
4254
- }
4255
- let _timeUnit;
4256
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
4257
- return {
4258
- endpoint: "/sapi/v1/userDataStream/isolated",
4259
- method: "POST",
4260
- params: localVarQueryParameter,
4261
- timeUnit: _timeUnit
4262
- };
4263
- },
4264
- /**
4265
- * Start a new margin user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
4266
- *
4267
- * Weight: 1
4268
- *
4269
- * @summary Start Margin User Data Stream (USER_STREAM)
4270
- *
4271
- * @deprecated
4272
- * @throws {RequiredError}
4273
- */
4274
- startMarginUserDataStream: async () => {
4275
- const localVarQueryParameter = {};
4276
- let _timeUnit;
4277
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
4278
- return {
4279
- endpoint: "/sapi/v1/userDataStream",
4280
- method: "POST",
4281
- params: localVarQueryParameter,
4282
- timeUnit: _timeUnit
4283
- };
4284
- }
4285
- };
4286
- };
4287
- var TradeDataStreamApi = class {
4288
- constructor(configuration) {
4289
- this.configuration = configuration;
4290
- this.localVarAxiosParamCreator = TradeDataStreamApiAxiosParamCreator(configuration);
4291
- }
4292
- /**
4293
- * Close out a isolated margin user data stream.
4294
- *
4295
- * Weight: 3000
4296
- *
4297
- * @summary Close Isolated Margin User Data Stream (USER_STREAM)
4298
- * @param {CloseIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
4299
- * @returns {Promise<RestApiResponse<void>>}
4300
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4301
- * @memberof TradeDataStreamApi
4302
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Isolated-Margin-User-Data-Stream Binance API Documentation}
4303
- */
4304
- async closeIsolatedMarginUserDataStream(requestParameters) {
4305
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeIsolatedMarginUserDataStream(
4306
- requestParameters?.symbol,
4307
- requestParameters?.listenkey
4308
- );
4309
- return sendRequest6(
4310
- this.configuration,
4311
- localVarAxiosArgs.endpoint,
4312
- localVarAxiosArgs.method,
4313
- localVarAxiosArgs.params,
4314
- localVarAxiosArgs?.timeUnit,
4315
- { isSigned: false }
4316
- );
4317
- }
4318
- /**
4319
- * Close out a Margin user data stream.
4320
- *
4321
- * Weight: 3000
4322
- *
4323
- * @summary Close Margin User Data Stream (USER_STREAM)
4324
- * @param {CloseMarginUserDataStreamRequest} requestParameters Request parameters.
4325
- * @returns {Promise<RestApiResponse<void>>}
4326
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4327
- * @memberof TradeDataStreamApi
4328
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Margin-User-Data-Stream Binance API Documentation}
4329
- */
4330
- async closeMarginUserDataStream(requestParameters) {
4331
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeMarginUserDataStream(
4332
- requestParameters?.listenkey
4333
- );
4334
- return sendRequest6(
4335
- this.configuration,
4336
- localVarAxiosArgs.endpoint,
4337
- localVarAxiosArgs.method,
4338
- localVarAxiosArgs.params,
4339
- localVarAxiosArgs?.timeUnit,
4340
- { isSigned: false }
4341
- );
4342
- }
4343
- /**
4344
- * Keepalive an isolated margin user data stream to prevent a time out.
4345
- *
4346
- * Weight: 1
4347
- *
4348
- * @summary Keepalive Isolated Margin User Data Stream (USER_STREAM)
4349
- * @param {KeepaliveIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
4350
- * @returns {Promise<RestApiResponse<void>>}
4351
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4352
- * @memberof TradeDataStreamApi
4353
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Isolated-Margin-User-Data-Stream Binance API Documentation}
4354
- */
4355
- async keepaliveIsolatedMarginUserDataStream(requestParameters) {
4356
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveIsolatedMarginUserDataStream(
4357
- requestParameters?.symbol,
4358
- requestParameters?.listenKey
4359
- );
4360
- return sendRequest6(
4361
- this.configuration,
4362
- localVarAxiosArgs.endpoint,
4363
- localVarAxiosArgs.method,
4364
- localVarAxiosArgs.params,
4365
- localVarAxiosArgs?.timeUnit,
4366
- { isSigned: false }
4367
- );
4368
- }
4369
- /**
4370
- * Keepalive a margin user data stream to prevent a time out.
4371
- *
4372
- * Weight: 1
4373
- *
4374
- * @summary Keepalive Margin User Data Stream (USER_STREAM)
4375
- * @param {KeepaliveMarginUserDataStreamRequest} requestParameters Request parameters.
4376
- * @returns {Promise<RestApiResponse<void>>}
4377
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4378
- * @memberof TradeDataStreamApi
4379
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Margin-User-Data-Stream Binance API Documentation}
4380
- */
4381
- async keepaliveMarginUserDataStream(requestParameters) {
4382
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveMarginUserDataStream(
4383
- requestParameters?.listenKey
4384
- );
4385
- return sendRequest6(
4386
- this.configuration,
4387
- localVarAxiosArgs.endpoint,
4388
- localVarAxiosArgs.method,
4389
- localVarAxiosArgs.params,
4390
- localVarAxiosArgs?.timeUnit,
4391
- { isSigned: false }
4392
- );
4393
- }
4394
- /**
4395
- * Start a new isolated margin user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
4396
- *
4397
- * Weight: 1
4398
- *
4399
- * @summary Start Isolated Margin User Data Stream (USER_STREAM)
4400
- * @param {StartIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
4401
- * @returns {Promise<RestApiResponse<StartIsolatedMarginUserDataStreamResponse>>}
4402
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4403
- * @memberof TradeDataStreamApi
4404
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Isolated-Margin-User-Data-Stream Binance API Documentation}
4405
- */
4406
- async startIsolatedMarginUserDataStream(requestParameters) {
4407
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.startIsolatedMarginUserDataStream(
4408
- requestParameters?.symbol
4409
- );
4410
- return sendRequest6(
4411
- this.configuration,
4412
- localVarAxiosArgs.endpoint,
4413
- localVarAxiosArgs.method,
4414
- localVarAxiosArgs.params,
4415
- localVarAxiosArgs?.timeUnit,
4416
- { isSigned: false }
4417
- );
4418
- }
4419
- /**
4420
- * Start a new margin user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
4421
- *
4422
- * Weight: 1
4423
- *
4424
- * @summary Start Margin User Data Stream (USER_STREAM)
4425
- * @returns {Promise<RestApiResponse<StartMarginUserDataStreamResponse>>}
4426
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4427
- * @memberof TradeDataStreamApi
4428
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Margin-User-Data-Stream Binance API Documentation}
4429
- */
4430
- async startMarginUserDataStream() {
4431
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.startMarginUserDataStream();
4432
- return sendRequest6(
4433
- this.configuration,
4434
- localVarAxiosArgs.endpoint,
4435
- localVarAxiosArgs.method,
4436
- localVarAxiosArgs.params,
4437
- localVarAxiosArgs?.timeUnit,
4438
- { isSigned: false }
4439
- );
4440
- }
4441
- };
4442
-
4443
- // src/rest-api/modules/transfer-api.ts
4444
- import {
4445
- assertParamExists as assertParamExists7,
4446
- sendRequest as sendRequest7
4447
- } from "@binance/common";
4448
4121
  var TransferApiAxiosParamCreator = function(configuration) {
4449
4122
  return {
4450
4123
  /**
@@ -4459,12 +4132,12 @@ var TransferApiAxiosParamCreator = function(configuration) {
4459
4132
  * @summary Get Cross Margin Transfer History (USER_DATA)
4460
4133
  * @param {string} [asset]
4461
4134
  * @param {string} [type] Transfer Type: ROLL_IN, ROLL_OUT
4462
- * @param {number} [startTime] 只支持查询最近90天的数据
4463
- * @param {number} [endTime]
4464
- * @param {number} [current] Currently querying page. Start from 1. Default:1
4465
- * @param {number} [size] Default:10 Max:100
4135
+ * @param {number | bigint} [startTime] 只支持查询最近90天的数据
4136
+ * @param {number | bigint} [endTime]
4137
+ * @param {number | bigint} [current] Currently querying page. Start from 1. Default:1
4138
+ * @param {number | bigint} [size] Default:10 Max:100
4466
4139
  * @param {string} [isolatedSymbol] isolated symbol
4467
- * @param {number} [recvWindow] No more than 60000
4140
+ * @param {number | bigint} [recvWindow] No more than 60000
4468
4141
  *
4469
4142
  * @throws {RequiredError}
4470
4143
  */
@@ -4513,12 +4186,12 @@ var TransferApiAxiosParamCreator = function(configuration) {
4513
4186
  * @summary Query Max Transfer-Out Amount (USER_DATA)
4514
4187
  * @param {string} asset
4515
4188
  * @param {string} [isolatedSymbol] isolated symbol
4516
- * @param {number} [recvWindow] No more than 60000
4189
+ * @param {number | bigint} [recvWindow] No more than 60000
4517
4190
  *
4518
4191
  * @throws {RequiredError}
4519
4192
  */
4520
4193
  queryMaxTransferOutAmount: async (asset, isolatedSymbol, recvWindow) => {
4521
- assertParamExists7("queryMaxTransferOutAmount", "asset", asset);
4194
+ assertParamExists6("queryMaxTransferOutAmount", "asset", asset);
4522
4195
  const localVarQueryParameter = {};
4523
4196
  if (asset !== void 0 && asset !== null) {
4524
4197
  localVarQueryParameter["asset"] = asset;
@@ -4572,7 +4245,7 @@ var TransferApi = class {
4572
4245
  requestParameters?.isolatedSymbol,
4573
4246
  requestParameters?.recvWindow
4574
4247
  );
4575
- return sendRequest7(
4248
+ return sendRequest6(
4576
4249
  this.configuration,
4577
4250
  localVarAxiosArgs.endpoint,
4578
4251
  localVarAxiosArgs.method,
@@ -4601,7 +4274,7 @@ var TransferApi = class {
4601
4274
  requestParameters?.isolatedSymbol,
4602
4275
  requestParameters?.recvWindow
4603
4276
  );
4604
- return sendRequest7(
4277
+ return sendRequest6(
4605
4278
  this.configuration,
4606
4279
  localVarAxiosArgs.endpoint,
4607
4280
  localVarAxiosArgs.method,
@@ -4613,7 +4286,7 @@ var TransferApi = class {
4613
4286
  };
4614
4287
 
4615
4288
  // src/rest-api/rest-api.ts
4616
- import { sendRequest as sendRequest8 } from "@binance/common";
4289
+ import { sendRequest as sendRequest7 } from "@binance/common";
4617
4290
  var RestAPI = class {
4618
4291
  constructor(configuration) {
4619
4292
  this.configuration = configuration;
@@ -4622,7 +4295,6 @@ var RestAPI = class {
4622
4295
  this.marketDataApi = new MarketDataApi(configuration);
4623
4296
  this.riskDataStreamApi = new RiskDataStreamApi(configuration);
4624
4297
  this.tradeApi = new TradeApi(configuration);
4625
- this.tradeDataStreamApi = new TradeDataStreamApi(configuration);
4626
4298
  this.transferApi = new TransferApi(configuration);
4627
4299
  }
4628
4300
  /**
@@ -4634,7 +4306,7 @@ var RestAPI = class {
4634
4306
  * @returns A promise resolving to the response data object.
4635
4307
  */
4636
4308
  sendRequest(endpoint, method, params = {}) {
4637
- return sendRequest8(this.configuration, endpoint, method, params, void 0);
4309
+ return sendRequest7(this.configuration, endpoint, method, params, void 0);
4638
4310
  }
4639
4311
  /**
4640
4312
  * Generic function to send a signed request.
@@ -4645,7 +4317,7 @@ var RestAPI = class {
4645
4317
  * @returns A promise resolving to the response data object.
4646
4318
  */
4647
4319
  sendSignedRequest(endpoint, method, params = {}) {
4648
- return sendRequest8(this.configuration, endpoint, method, params, void 0, {
4320
+ return sendRequest7(this.configuration, endpoint, method, params, void 0, {
4649
4321
  isSigned: true
4650
4322
  });
4651
4323
  }
@@ -5596,95 +5268,6 @@ var RestAPI = class {
5596
5268
  smallLiabilityExchange(requestParameters) {
5597
5269
  return this.tradeApi.smallLiabilityExchange(requestParameters);
5598
5270
  }
5599
- /**
5600
- * Close out a isolated margin user data stream.
5601
- *
5602
- * Weight: 3000
5603
- *
5604
- * @summary Close Isolated Margin User Data Stream (USER_STREAM)
5605
- * @param {CloseIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
5606
- * @deprecated
5607
- * @returns {Promise<RestApiResponse<void>>}
5608
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5609
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Isolated-Margin-User-Data-Stream Binance API Documentation}
5610
- */
5611
- closeIsolatedMarginUserDataStream(requestParameters) {
5612
- return this.tradeDataStreamApi.closeIsolatedMarginUserDataStream(requestParameters);
5613
- }
5614
- /**
5615
- * Close out a Margin user data stream.
5616
- *
5617
- * Weight: 3000
5618
- *
5619
- * @summary Close Margin User Data Stream (USER_STREAM)
5620
- * @param {CloseMarginUserDataStreamRequest} requestParameters Request parameters.
5621
- * @deprecated
5622
- * @returns {Promise<RestApiResponse<void>>}
5623
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5624
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Margin-User-Data-Stream Binance API Documentation}
5625
- */
5626
- closeMarginUserDataStream(requestParameters) {
5627
- return this.tradeDataStreamApi.closeMarginUserDataStream(requestParameters);
5628
- }
5629
- /**
5630
- * Keepalive an isolated margin user data stream to prevent a time out.
5631
- *
5632
- * Weight: 1
5633
- *
5634
- * @summary Keepalive Isolated Margin User Data Stream (USER_STREAM)
5635
- * @param {KeepaliveIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
5636
- * @deprecated
5637
- * @returns {Promise<RestApiResponse<void>>}
5638
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5639
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Isolated-Margin-User-Data-Stream Binance API Documentation}
5640
- */
5641
- keepaliveIsolatedMarginUserDataStream(requestParameters) {
5642
- return this.tradeDataStreamApi.keepaliveIsolatedMarginUserDataStream(requestParameters);
5643
- }
5644
- /**
5645
- * Keepalive a margin user data stream to prevent a time out.
5646
- *
5647
- * Weight: 1
5648
- *
5649
- * @summary Keepalive Margin User Data Stream (USER_STREAM)
5650
- * @param {KeepaliveMarginUserDataStreamRequest} requestParameters Request parameters.
5651
- * @deprecated
5652
- * @returns {Promise<RestApiResponse<void>>}
5653
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5654
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Margin-User-Data-Stream Binance API Documentation}
5655
- */
5656
- keepaliveMarginUserDataStream(requestParameters) {
5657
- return this.tradeDataStreamApi.keepaliveMarginUserDataStream(requestParameters);
5658
- }
5659
- /**
5660
- * Start a new isolated margin user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
5661
- *
5662
- * Weight: 1
5663
- *
5664
- * @summary Start Isolated Margin User Data Stream (USER_STREAM)
5665
- * @param {StartIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
5666
- * @deprecated
5667
- * @returns {Promise<RestApiResponse<StartIsolatedMarginUserDataStreamResponse>>}
5668
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5669
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Isolated-Margin-User-Data-Stream Binance API Documentation}
5670
- */
5671
- startIsolatedMarginUserDataStream(requestParameters) {
5672
- return this.tradeDataStreamApi.startIsolatedMarginUserDataStream(requestParameters);
5673
- }
5674
- /**
5675
- * Start a new margin user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
5676
- *
5677
- * Weight: 1
5678
- *
5679
- * @summary Start Margin User Data Stream (USER_STREAM)
5680
- * @deprecated
5681
- * @returns {Promise<RestApiResponse<StartMarginUserDataStreamResponse>>}
5682
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5683
- * @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Margin-User-Data-Stream Binance API Documentation}
5684
- */
5685
- startMarginUserDataStream() {
5686
- return this.tradeDataStreamApi.startMarginUserDataStream();
5687
- }
5688
5271
  /**
5689
5272
  * Get Cross Margin Transfer History
5690
5273
  *
@@ -5869,7 +5452,7 @@ var MarginTrading = class {
5869
5452
  constructor(config) {
5870
5453
  const userAgent = buildUserAgent(name, version);
5871
5454
  if (config?.configurationRestAPI) {
5872
- const configRestAPI = new ConfigurationRestAPI9(
5455
+ const configRestAPI = new ConfigurationRestAPI8(
5873
5456
  config.configurationRestAPI
5874
5457
  );
5875
5458
  configRestAPI.basePath = configRestAPI.basePath || MARGIN_TRADING_REST_API_PROD_URL;