@binance/derivatives-trading-options 10.0.1 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +36 -34
- package/dist/index.d.ts +36 -34
- package/dist/index.js +194 -99
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +194 -99
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/derivatives-trading-options";
|
|
17
|
-
var version = "
|
|
17
|
+
var version = "12.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/types/place-multiple-orders-orders-parameter-inner.ts
|
|
@@ -55,6 +55,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
55
55
|
accountFundingFlow: async (currency, recordId, startTime, endTime, limit, recvWindow) => {
|
|
56
56
|
(0, __binance_common.assertParamExists)("accountFundingFlow", "currency", currency);
|
|
57
57
|
const localVarQueryParameter = {};
|
|
58
|
+
const localVarBodyParameter = {};
|
|
58
59
|
if (currency !== void 0 && currency !== null) localVarQueryParameter["currency"] = currency;
|
|
59
60
|
if (recordId !== void 0 && recordId !== null) localVarQueryParameter["recordId"] = recordId;
|
|
60
61
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -66,7 +67,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
66
67
|
return {
|
|
67
68
|
endpoint: "/eapi/v1/bill",
|
|
68
69
|
method: "GET",
|
|
69
|
-
|
|
70
|
+
queryParams: localVarQueryParameter,
|
|
71
|
+
bodyParams: localVarBodyParameter,
|
|
70
72
|
timeUnit: _timeUnit
|
|
71
73
|
};
|
|
72
74
|
},
|
|
@@ -74,6 +76,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
74
76
|
(0, __binance_common.assertParamExists)("getDownloadIdForOptionTransactionHistory", "startTime", startTime);
|
|
75
77
|
(0, __binance_common.assertParamExists)("getDownloadIdForOptionTransactionHistory", "endTime", endTime);
|
|
76
78
|
const localVarQueryParameter = {};
|
|
79
|
+
const localVarBodyParameter = {};
|
|
77
80
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
78
81
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
79
82
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -82,13 +85,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
82
85
|
return {
|
|
83
86
|
endpoint: "/eapi/v1/income/asyn",
|
|
84
87
|
method: "GET",
|
|
85
|
-
|
|
88
|
+
queryParams: localVarQueryParameter,
|
|
89
|
+
bodyParams: localVarBodyParameter,
|
|
86
90
|
timeUnit: _timeUnit
|
|
87
91
|
};
|
|
88
92
|
},
|
|
89
93
|
getOptionTransactionHistoryDownloadLinkById: async (downloadId, recvWindow) => {
|
|
90
94
|
(0, __binance_common.assertParamExists)("getOptionTransactionHistoryDownloadLinkById", "downloadId", downloadId);
|
|
91
95
|
const localVarQueryParameter = {};
|
|
96
|
+
const localVarBodyParameter = {};
|
|
92
97
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
93
98
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
94
99
|
let _timeUnit;
|
|
@@ -96,31 +101,36 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
96
101
|
return {
|
|
97
102
|
endpoint: "/eapi/v1/income/asyn/id",
|
|
98
103
|
method: "GET",
|
|
99
|
-
|
|
104
|
+
queryParams: localVarQueryParameter,
|
|
105
|
+
bodyParams: localVarBodyParameter,
|
|
100
106
|
timeUnit: _timeUnit
|
|
101
107
|
};
|
|
102
108
|
},
|
|
103
109
|
optionAccountInformation: async (recvWindow) => {
|
|
104
110
|
const localVarQueryParameter = {};
|
|
111
|
+
const localVarBodyParameter = {};
|
|
105
112
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
106
113
|
let _timeUnit;
|
|
107
114
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
108
115
|
return {
|
|
109
116
|
endpoint: "/eapi/v1/account",
|
|
110
117
|
method: "GET",
|
|
111
|
-
|
|
118
|
+
queryParams: localVarQueryParameter,
|
|
119
|
+
bodyParams: localVarBodyParameter,
|
|
112
120
|
timeUnit: _timeUnit
|
|
113
121
|
};
|
|
114
122
|
},
|
|
115
123
|
optionMarginAccountInformation: async (recvWindow) => {
|
|
116
124
|
const localVarQueryParameter = {};
|
|
125
|
+
const localVarBodyParameter = {};
|
|
117
126
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
118
127
|
let _timeUnit;
|
|
119
128
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
120
129
|
return {
|
|
121
130
|
endpoint: "/eapi/v1/marginAccount",
|
|
122
131
|
method: "GET",
|
|
123
|
-
|
|
132
|
+
queryParams: localVarQueryParameter,
|
|
133
|
+
bodyParams: localVarBodyParameter,
|
|
124
134
|
timeUnit: _timeUnit
|
|
125
135
|
};
|
|
126
136
|
}
|
|
@@ -149,7 +159,7 @@ var AccountApi = class {
|
|
|
149
159
|
*/
|
|
150
160
|
async accountFundingFlow(requestParameters) {
|
|
151
161
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountFundingFlow(requestParameters?.currency, requestParameters?.recordId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
152
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
162
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
153
163
|
}
|
|
154
164
|
/**
|
|
155
165
|
* Get download id for option transaction history
|
|
@@ -168,7 +178,7 @@ var AccountApi = class {
|
|
|
168
178
|
*/
|
|
169
179
|
async getDownloadIdForOptionTransactionHistory(requestParameters) {
|
|
170
180
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForOptionTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
171
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
181
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
172
182
|
}
|
|
173
183
|
/**
|
|
174
184
|
* Get option transaction history download Link by Id
|
|
@@ -186,7 +196,7 @@ var AccountApi = class {
|
|
|
186
196
|
*/
|
|
187
197
|
async getOptionTransactionHistoryDownloadLinkById(requestParameters) {
|
|
188
198
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOptionTransactionHistoryDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
189
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
199
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
190
200
|
}
|
|
191
201
|
/**
|
|
192
202
|
* Get current account information.
|
|
@@ -202,7 +212,7 @@ var AccountApi = class {
|
|
|
202
212
|
*/
|
|
203
213
|
async optionAccountInformation(requestParameters = {}) {
|
|
204
214
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionAccountInformation(requestParameters?.recvWindow);
|
|
205
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
215
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
206
216
|
}
|
|
207
217
|
/**
|
|
208
218
|
* Get current account information.
|
|
@@ -218,7 +228,7 @@ var AccountApi = class {
|
|
|
218
228
|
*/
|
|
219
229
|
async optionMarginAccountInformation(requestParameters = {}) {
|
|
220
230
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(requestParameters?.recvWindow);
|
|
221
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
231
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
222
232
|
}
|
|
223
233
|
};
|
|
224
234
|
|
|
@@ -243,28 +253,33 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
243
253
|
return {
|
|
244
254
|
checkServerTime: async () => {
|
|
245
255
|
const localVarQueryParameter = {};
|
|
256
|
+
const localVarBodyParameter = {};
|
|
246
257
|
let _timeUnit;
|
|
247
258
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
248
259
|
return {
|
|
249
260
|
endpoint: "/eapi/v1/time",
|
|
250
261
|
method: "GET",
|
|
251
|
-
|
|
262
|
+
queryParams: localVarQueryParameter,
|
|
263
|
+
bodyParams: localVarBodyParameter,
|
|
252
264
|
timeUnit: _timeUnit
|
|
253
265
|
};
|
|
254
266
|
},
|
|
255
267
|
exchangeInformation: async () => {
|
|
256
268
|
const localVarQueryParameter = {};
|
|
269
|
+
const localVarBodyParameter = {};
|
|
257
270
|
let _timeUnit;
|
|
258
271
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
259
272
|
return {
|
|
260
273
|
endpoint: "/eapi/v1/exchangeInfo",
|
|
261
274
|
method: "GET",
|
|
262
|
-
|
|
275
|
+
queryParams: localVarQueryParameter,
|
|
276
|
+
bodyParams: localVarBodyParameter,
|
|
263
277
|
timeUnit: _timeUnit
|
|
264
278
|
};
|
|
265
279
|
},
|
|
266
280
|
historicalExerciseRecords: async (underlying, startTime, endTime, limit) => {
|
|
267
281
|
const localVarQueryParameter = {};
|
|
282
|
+
const localVarBodyParameter = {};
|
|
268
283
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
269
284
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
270
285
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -274,20 +289,23 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
274
289
|
return {
|
|
275
290
|
endpoint: "/eapi/v1/exerciseHistory",
|
|
276
291
|
method: "GET",
|
|
277
|
-
|
|
292
|
+
queryParams: localVarQueryParameter,
|
|
293
|
+
bodyParams: localVarBodyParameter,
|
|
278
294
|
timeUnit: _timeUnit
|
|
279
295
|
};
|
|
280
296
|
},
|
|
281
297
|
indexPriceTicker: async (underlying) => {
|
|
282
298
|
(0, __binance_common.assertParamExists)("indexPriceTicker", "underlying", underlying);
|
|
283
299
|
const localVarQueryParameter = {};
|
|
300
|
+
const localVarBodyParameter = {};
|
|
284
301
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
285
302
|
let _timeUnit;
|
|
286
303
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
287
304
|
return {
|
|
288
305
|
endpoint: "/eapi/v1/index",
|
|
289
306
|
method: "GET",
|
|
290
|
-
|
|
307
|
+
queryParams: localVarQueryParameter,
|
|
308
|
+
bodyParams: localVarBodyParameter,
|
|
291
309
|
timeUnit: _timeUnit
|
|
292
310
|
};
|
|
293
311
|
},
|
|
@@ -295,6 +313,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
295
313
|
(0, __binance_common.assertParamExists)("klineCandlestickData", "symbol", symbol);
|
|
296
314
|
(0, __binance_common.assertParamExists)("klineCandlestickData", "interval", interval);
|
|
297
315
|
const localVarQueryParameter = {};
|
|
316
|
+
const localVarBodyParameter = {};
|
|
298
317
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
299
318
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
300
319
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -305,13 +324,15 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
305
324
|
return {
|
|
306
325
|
endpoint: "/eapi/v1/klines",
|
|
307
326
|
method: "GET",
|
|
308
|
-
|
|
327
|
+
queryParams: localVarQueryParameter,
|
|
328
|
+
bodyParams: localVarBodyParameter,
|
|
309
329
|
timeUnit: _timeUnit
|
|
310
330
|
};
|
|
311
331
|
},
|
|
312
332
|
oldTradesLookup: async (symbol, fromId, limit) => {
|
|
313
333
|
(0, __binance_common.assertParamExists)("oldTradesLookup", "symbol", symbol);
|
|
314
334
|
const localVarQueryParameter = {};
|
|
335
|
+
const localVarBodyParameter = {};
|
|
315
336
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
316
337
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
317
338
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
@@ -320,7 +341,8 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
320
341
|
return {
|
|
321
342
|
endpoint: "/eapi/v1/historicalTrades",
|
|
322
343
|
method: "GET",
|
|
323
|
-
|
|
344
|
+
queryParams: localVarQueryParameter,
|
|
345
|
+
bodyParams: localVarBodyParameter,
|
|
324
346
|
timeUnit: _timeUnit
|
|
325
347
|
};
|
|
326
348
|
},
|
|
@@ -328,6 +350,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
328
350
|
(0, __binance_common.assertParamExists)("openInterest", "underlyingAsset", underlyingAsset);
|
|
329
351
|
(0, __binance_common.assertParamExists)("openInterest", "expiration", expiration);
|
|
330
352
|
const localVarQueryParameter = {};
|
|
353
|
+
const localVarBodyParameter = {};
|
|
331
354
|
if (underlyingAsset !== void 0 && underlyingAsset !== null) localVarQueryParameter["underlyingAsset"] = underlyingAsset;
|
|
332
355
|
if (expiration !== void 0 && expiration !== null) localVarQueryParameter["expiration"] = expiration;
|
|
333
356
|
let _timeUnit;
|
|
@@ -335,25 +358,29 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
335
358
|
return {
|
|
336
359
|
endpoint: "/eapi/v1/openInterest",
|
|
337
360
|
method: "GET",
|
|
338
|
-
|
|
361
|
+
queryParams: localVarQueryParameter,
|
|
362
|
+
bodyParams: localVarBodyParameter,
|
|
339
363
|
timeUnit: _timeUnit
|
|
340
364
|
};
|
|
341
365
|
},
|
|
342
366
|
optionMarkPrice: async (symbol) => {
|
|
343
367
|
const localVarQueryParameter = {};
|
|
368
|
+
const localVarBodyParameter = {};
|
|
344
369
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
345
370
|
let _timeUnit;
|
|
346
371
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
347
372
|
return {
|
|
348
373
|
endpoint: "/eapi/v1/mark",
|
|
349
374
|
method: "GET",
|
|
350
|
-
|
|
375
|
+
queryParams: localVarQueryParameter,
|
|
376
|
+
bodyParams: localVarBodyParameter,
|
|
351
377
|
timeUnit: _timeUnit
|
|
352
378
|
};
|
|
353
379
|
},
|
|
354
380
|
orderBook: async (symbol, limit) => {
|
|
355
381
|
(0, __binance_common.assertParamExists)("orderBook", "symbol", symbol);
|
|
356
382
|
const localVarQueryParameter = {};
|
|
383
|
+
const localVarBodyParameter = {};
|
|
357
384
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
358
385
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
359
386
|
let _timeUnit;
|
|
@@ -361,12 +388,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
361
388
|
return {
|
|
362
389
|
endpoint: "/eapi/v1/depth",
|
|
363
390
|
method: "GET",
|
|
364
|
-
|
|
391
|
+
queryParams: localVarQueryParameter,
|
|
392
|
+
bodyParams: localVarBodyParameter,
|
|
365
393
|
timeUnit: _timeUnit
|
|
366
394
|
};
|
|
367
395
|
},
|
|
368
396
|
recentBlockTradesList: async (symbol, limit) => {
|
|
369
397
|
const localVarQueryParameter = {};
|
|
398
|
+
const localVarBodyParameter = {};
|
|
370
399
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
371
400
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
372
401
|
let _timeUnit;
|
|
@@ -374,13 +403,15 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
374
403
|
return {
|
|
375
404
|
endpoint: "/eapi/v1/blockTrades",
|
|
376
405
|
method: "GET",
|
|
377
|
-
|
|
406
|
+
queryParams: localVarQueryParameter,
|
|
407
|
+
bodyParams: localVarBodyParameter,
|
|
378
408
|
timeUnit: _timeUnit
|
|
379
409
|
};
|
|
380
410
|
},
|
|
381
411
|
recentTradesList: async (symbol, limit) => {
|
|
382
412
|
(0, __binance_common.assertParamExists)("recentTradesList", "symbol", symbol);
|
|
383
413
|
const localVarQueryParameter = {};
|
|
414
|
+
const localVarBodyParameter = {};
|
|
384
415
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
385
416
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
386
417
|
let _timeUnit;
|
|
@@ -388,30 +419,35 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
388
419
|
return {
|
|
389
420
|
endpoint: "/eapi/v1/trades",
|
|
390
421
|
method: "GET",
|
|
391
|
-
|
|
422
|
+
queryParams: localVarQueryParameter,
|
|
423
|
+
bodyParams: localVarBodyParameter,
|
|
392
424
|
timeUnit: _timeUnit
|
|
393
425
|
};
|
|
394
426
|
},
|
|
395
427
|
testConnectivity: async () => {
|
|
396
428
|
const localVarQueryParameter = {};
|
|
429
|
+
const localVarBodyParameter = {};
|
|
397
430
|
let _timeUnit;
|
|
398
431
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
399
432
|
return {
|
|
400
433
|
endpoint: "/eapi/v1/ping",
|
|
401
434
|
method: "GET",
|
|
402
|
-
|
|
435
|
+
queryParams: localVarQueryParameter,
|
|
436
|
+
bodyParams: localVarBodyParameter,
|
|
403
437
|
timeUnit: _timeUnit
|
|
404
438
|
};
|
|
405
439
|
},
|
|
406
440
|
ticker24hrPriceChangeStatistics: async (symbol) => {
|
|
407
441
|
const localVarQueryParameter = {};
|
|
442
|
+
const localVarBodyParameter = {};
|
|
408
443
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
409
444
|
let _timeUnit;
|
|
410
445
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
411
446
|
return {
|
|
412
447
|
endpoint: "/eapi/v1/ticker",
|
|
413
448
|
method: "GET",
|
|
414
|
-
|
|
449
|
+
queryParams: localVarQueryParameter,
|
|
450
|
+
bodyParams: localVarBodyParameter,
|
|
415
451
|
timeUnit: _timeUnit
|
|
416
452
|
};
|
|
417
453
|
}
|
|
@@ -439,7 +475,7 @@ var MarketDataApi = class {
|
|
|
439
475
|
*/
|
|
440
476
|
async checkServerTime() {
|
|
441
477
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkServerTime();
|
|
442
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
478
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
443
479
|
}
|
|
444
480
|
/**
|
|
445
481
|
* Current exchange trading rules and symbol information
|
|
@@ -454,7 +490,7 @@ var MarketDataApi = class {
|
|
|
454
490
|
*/
|
|
455
491
|
async exchangeInformation() {
|
|
456
492
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.exchangeInformation();
|
|
457
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
493
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
458
494
|
}
|
|
459
495
|
/**
|
|
460
496
|
* Get historical exercise records.
|
|
@@ -472,7 +508,7 @@ var MarketDataApi = class {
|
|
|
472
508
|
*/
|
|
473
509
|
async historicalExerciseRecords(requestParameters = {}) {
|
|
474
510
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.historicalExerciseRecords(requestParameters?.underlying, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
475
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
511
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
476
512
|
}
|
|
477
513
|
/**
|
|
478
514
|
* Get spot index price for option underlying.
|
|
@@ -488,7 +524,7 @@ var MarketDataApi = class {
|
|
|
488
524
|
*/
|
|
489
525
|
async indexPriceTicker(requestParameters) {
|
|
490
526
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPriceTicker(requestParameters?.underlying);
|
|
491
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
527
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
492
528
|
}
|
|
493
529
|
/**
|
|
494
530
|
* Kline/candlestick bars for an option symbol.
|
|
@@ -507,7 +543,7 @@ var MarketDataApi = class {
|
|
|
507
543
|
*/
|
|
508
544
|
async klineCandlestickData(requestParameters) {
|
|
509
545
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.klineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
510
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
546
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
511
547
|
}
|
|
512
548
|
/**
|
|
513
549
|
* Get older market historical trades.
|
|
@@ -523,7 +559,7 @@ var MarketDataApi = class {
|
|
|
523
559
|
*/
|
|
524
560
|
async oldTradesLookup(requestParameters) {
|
|
525
561
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.oldTradesLookup(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.limit);
|
|
526
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
562
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
527
563
|
}
|
|
528
564
|
/**
|
|
529
565
|
* Get open interest for specific underlying asset on specific expiration date.
|
|
@@ -539,7 +575,7 @@ var MarketDataApi = class {
|
|
|
539
575
|
*/
|
|
540
576
|
async openInterest(requestParameters) {
|
|
541
577
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterest(requestParameters?.underlyingAsset, requestParameters?.expiration);
|
|
542
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
578
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
543
579
|
}
|
|
544
580
|
/**
|
|
545
581
|
* Option mark price and greek info.
|
|
@@ -555,7 +591,7 @@ var MarketDataApi = class {
|
|
|
555
591
|
*/
|
|
556
592
|
async optionMarkPrice(requestParameters = {}) {
|
|
557
593
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarkPrice(requestParameters?.symbol);
|
|
558
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
594
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
559
595
|
}
|
|
560
596
|
/**
|
|
561
597
|
* Check orderbook depth on specific symbol
|
|
@@ -576,7 +612,7 @@ var MarketDataApi = class {
|
|
|
576
612
|
*/
|
|
577
613
|
async orderBook(requestParameters) {
|
|
578
614
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderBook(requestParameters?.symbol, requestParameters?.limit);
|
|
579
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
615
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
580
616
|
}
|
|
581
617
|
/**
|
|
582
618
|
* Get recent block trades
|
|
@@ -592,7 +628,7 @@ var MarketDataApi = class {
|
|
|
592
628
|
*/
|
|
593
629
|
async recentBlockTradesList(requestParameters = {}) {
|
|
594
630
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentBlockTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
595
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
631
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
596
632
|
}
|
|
597
633
|
/**
|
|
598
634
|
* Get recent market trades
|
|
@@ -608,7 +644,7 @@ var MarketDataApi = class {
|
|
|
608
644
|
*/
|
|
609
645
|
async recentTradesList(requestParameters) {
|
|
610
646
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
611
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
647
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
612
648
|
}
|
|
613
649
|
/**
|
|
614
650
|
* Test connectivity to the Rest API.
|
|
@@ -623,7 +659,7 @@ var MarketDataApi = class {
|
|
|
623
659
|
*/
|
|
624
660
|
async testConnectivity() {
|
|
625
661
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
626
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
662
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
627
663
|
}
|
|
628
664
|
/**
|
|
629
665
|
* 24 hour rolling window price change statistics.
|
|
@@ -639,7 +675,7 @@ var MarketDataApi = class {
|
|
|
639
675
|
*/
|
|
640
676
|
async ticker24hrPriceChangeStatistics(requestParameters = {}) {
|
|
641
677
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.ticker24hrPriceChangeStatistics(requestParameters?.symbol);
|
|
642
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
678
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
643
679
|
}
|
|
644
680
|
};
|
|
645
681
|
|
|
@@ -665,6 +701,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
665
701
|
acceptBlockTradeOrder: async (blockOrderMatchingKey, recvWindow) => {
|
|
666
702
|
(0, __binance_common.assertParamExists)("acceptBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
667
703
|
const localVarQueryParameter = {};
|
|
704
|
+
const localVarBodyParameter = {};
|
|
668
705
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
669
706
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
670
707
|
let _timeUnit;
|
|
@@ -672,12 +709,14 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
672
709
|
return {
|
|
673
710
|
endpoint: "/eapi/v1/block/order/execute",
|
|
674
711
|
method: "POST",
|
|
675
|
-
|
|
712
|
+
queryParams: localVarQueryParameter,
|
|
713
|
+
bodyParams: localVarBodyParameter,
|
|
676
714
|
timeUnit: _timeUnit
|
|
677
715
|
};
|
|
678
716
|
},
|
|
679
717
|
accountBlockTradeList: async (endTime, startTime, underlying, recvWindow) => {
|
|
680
718
|
const localVarQueryParameter = {};
|
|
719
|
+
const localVarBodyParameter = {};
|
|
681
720
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
682
721
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
683
722
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
@@ -687,13 +726,15 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
687
726
|
return {
|
|
688
727
|
endpoint: "/eapi/v1/block/user-trades",
|
|
689
728
|
method: "GET",
|
|
690
|
-
|
|
729
|
+
queryParams: localVarQueryParameter,
|
|
730
|
+
bodyParams: localVarBodyParameter,
|
|
691
731
|
timeUnit: _timeUnit
|
|
692
732
|
};
|
|
693
733
|
},
|
|
694
734
|
cancelBlockTradeOrder: async (blockOrderMatchingKey, recvWindow) => {
|
|
695
735
|
(0, __binance_common.assertParamExists)("cancelBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
696
736
|
const localVarQueryParameter = {};
|
|
737
|
+
const localVarBodyParameter = {};
|
|
697
738
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
698
739
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
699
740
|
let _timeUnit;
|
|
@@ -701,13 +742,15 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
701
742
|
return {
|
|
702
743
|
endpoint: "/eapi/v1/block/order/create",
|
|
703
744
|
method: "DELETE",
|
|
704
|
-
|
|
745
|
+
queryParams: localVarQueryParameter,
|
|
746
|
+
bodyParams: localVarBodyParameter,
|
|
705
747
|
timeUnit: _timeUnit
|
|
706
748
|
};
|
|
707
749
|
},
|
|
708
750
|
extendBlockTradeOrder: async (blockOrderMatchingKey, recvWindow) => {
|
|
709
751
|
(0, __binance_common.assertParamExists)("extendBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
710
752
|
const localVarQueryParameter = {};
|
|
753
|
+
const localVarBodyParameter = {};
|
|
711
754
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
712
755
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
713
756
|
let _timeUnit;
|
|
@@ -715,7 +758,8 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
715
758
|
return {
|
|
716
759
|
endpoint: "/eapi/v1/block/order/create",
|
|
717
760
|
method: "PUT",
|
|
718
|
-
|
|
761
|
+
queryParams: localVarQueryParameter,
|
|
762
|
+
bodyParams: localVarBodyParameter,
|
|
719
763
|
timeUnit: _timeUnit
|
|
720
764
|
};
|
|
721
765
|
},
|
|
@@ -723,6 +767,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
723
767
|
(0, __binance_common.assertParamExists)("newBlockTradeOrder", "liquidity", liquidity);
|
|
724
768
|
(0, __binance_common.assertParamExists)("newBlockTradeOrder", "legs", legs);
|
|
725
769
|
const localVarQueryParameter = {};
|
|
770
|
+
const localVarBodyParameter = {};
|
|
726
771
|
if (liquidity !== void 0 && liquidity !== null) localVarQueryParameter["liquidity"] = liquidity;
|
|
727
772
|
if (legs) localVarQueryParameter["legs"] = legs;
|
|
728
773
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -731,13 +776,15 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
731
776
|
return {
|
|
732
777
|
endpoint: "/eapi/v1/block/order/create",
|
|
733
778
|
method: "POST",
|
|
734
|
-
|
|
779
|
+
queryParams: localVarQueryParameter,
|
|
780
|
+
bodyParams: localVarBodyParameter,
|
|
735
781
|
timeUnit: _timeUnit
|
|
736
782
|
};
|
|
737
783
|
},
|
|
738
784
|
queryBlockTradeDetails: async (blockOrderMatchingKey, recvWindow) => {
|
|
739
785
|
(0, __binance_common.assertParamExists)("queryBlockTradeDetails", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
740
786
|
const localVarQueryParameter = {};
|
|
787
|
+
const localVarBodyParameter = {};
|
|
741
788
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
742
789
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
743
790
|
let _timeUnit;
|
|
@@ -745,12 +792,14 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
745
792
|
return {
|
|
746
793
|
endpoint: "/eapi/v1/block/order/execute",
|
|
747
794
|
method: "GET",
|
|
748
|
-
|
|
795
|
+
queryParams: localVarQueryParameter,
|
|
796
|
+
bodyParams: localVarBodyParameter,
|
|
749
797
|
timeUnit: _timeUnit
|
|
750
798
|
};
|
|
751
799
|
},
|
|
752
800
|
queryBlockTradeOrder: async (blockOrderMatchingKey, endTime, startTime, underlying, recvWindow) => {
|
|
753
801
|
const localVarQueryParameter = {};
|
|
802
|
+
const localVarBodyParameter = {};
|
|
754
803
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
755
804
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
756
805
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -761,7 +810,8 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
761
810
|
return {
|
|
762
811
|
endpoint: "/eapi/v1/block/order/orders",
|
|
763
812
|
method: "GET",
|
|
764
|
-
|
|
813
|
+
queryParams: localVarQueryParameter,
|
|
814
|
+
bodyParams: localVarBodyParameter,
|
|
765
815
|
timeUnit: _timeUnit
|
|
766
816
|
};
|
|
767
817
|
}
|
|
@@ -790,7 +840,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
790
840
|
*/
|
|
791
841
|
async acceptBlockTradeOrder(requestParameters) {
|
|
792
842
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
793
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
843
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
794
844
|
}
|
|
795
845
|
/**
|
|
796
846
|
* Gets block trades for a specific account.
|
|
@@ -806,7 +856,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
806
856
|
*/
|
|
807
857
|
async accountBlockTradeList(requestParameters = {}) {
|
|
808
858
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBlockTradeList(requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
|
|
809
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
859
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
810
860
|
}
|
|
811
861
|
/**
|
|
812
862
|
* Cancel a block trade order.
|
|
@@ -822,7 +872,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
822
872
|
*/
|
|
823
873
|
async cancelBlockTradeOrder(requestParameters) {
|
|
824
874
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
825
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
875
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
826
876
|
}
|
|
827
877
|
/**
|
|
828
878
|
* Extends a block trade expire time by 30 mins from the current time.
|
|
@@ -838,7 +888,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
838
888
|
*/
|
|
839
889
|
async extendBlockTradeOrder(requestParameters) {
|
|
840
890
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.extendBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
841
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
891
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
842
892
|
}
|
|
843
893
|
/**
|
|
844
894
|
* Send in a new block trade order.
|
|
@@ -854,7 +904,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
854
904
|
*/
|
|
855
905
|
async newBlockTradeOrder(requestParameters) {
|
|
856
906
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newBlockTradeOrder(requestParameters?.liquidity, requestParameters?.legs, requestParameters?.recvWindow);
|
|
857
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
907
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
858
908
|
}
|
|
859
909
|
/**
|
|
860
910
|
* Query block trade details; returns block trade details from counterparty's perspective.
|
|
@@ -870,7 +920,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
870
920
|
*/
|
|
871
921
|
async queryBlockTradeDetails(requestParameters) {
|
|
872
922
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeDetails(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
873
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
923
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
874
924
|
}
|
|
875
925
|
/**
|
|
876
926
|
* Check block trade order status.
|
|
@@ -886,7 +936,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
886
936
|
*/
|
|
887
937
|
async queryBlockTradeOrder(requestParameters = {}) {
|
|
888
938
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
|
|
889
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
939
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
890
940
|
}
|
|
891
941
|
};
|
|
892
942
|
|
|
@@ -912,6 +962,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
912
962
|
autoCancelAllOpenOrders: async (underlyings, recvWindow) => {
|
|
913
963
|
(0, __binance_common.assertParamExists)("autoCancelAllOpenOrders", "underlyings", underlyings);
|
|
914
964
|
const localVarQueryParameter = {};
|
|
965
|
+
const localVarBodyParameter = {};
|
|
915
966
|
if (underlyings !== void 0 && underlyings !== null) localVarQueryParameter["underlyings"] = underlyings;
|
|
916
967
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
917
968
|
let _timeUnit;
|
|
@@ -919,12 +970,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
919
970
|
return {
|
|
920
971
|
endpoint: "/eapi/v1/countdownCancelAllHeartBeat",
|
|
921
972
|
method: "POST",
|
|
922
|
-
|
|
973
|
+
queryParams: localVarQueryParameter,
|
|
974
|
+
bodyParams: localVarBodyParameter,
|
|
923
975
|
timeUnit: _timeUnit
|
|
924
976
|
};
|
|
925
977
|
},
|
|
926
978
|
getAutoCancelAllOpenOrders: async (underlying, recvWindow) => {
|
|
927
979
|
const localVarQueryParameter = {};
|
|
980
|
+
const localVarBodyParameter = {};
|
|
928
981
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
929
982
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
930
983
|
let _timeUnit;
|
|
@@ -932,12 +985,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
932
985
|
return {
|
|
933
986
|
endpoint: "/eapi/v1/countdownCancelAll",
|
|
934
987
|
method: "GET",
|
|
935
|
-
|
|
988
|
+
queryParams: localVarQueryParameter,
|
|
989
|
+
bodyParams: localVarBodyParameter,
|
|
936
990
|
timeUnit: _timeUnit
|
|
937
991
|
};
|
|
938
992
|
},
|
|
939
993
|
getMarketMakerProtectionConfig: async (underlying, recvWindow) => {
|
|
940
994
|
const localVarQueryParameter = {};
|
|
995
|
+
const localVarBodyParameter = {};
|
|
941
996
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
942
997
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
943
998
|
let _timeUnit;
|
|
@@ -945,12 +1000,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
945
1000
|
return {
|
|
946
1001
|
endpoint: "/eapi/v1/mmp",
|
|
947
1002
|
method: "GET",
|
|
948
|
-
|
|
1003
|
+
queryParams: localVarQueryParameter,
|
|
1004
|
+
bodyParams: localVarBodyParameter,
|
|
949
1005
|
timeUnit: _timeUnit
|
|
950
1006
|
};
|
|
951
1007
|
},
|
|
952
1008
|
resetMarketMakerProtectionConfig: async (underlying, recvWindow) => {
|
|
953
1009
|
const localVarQueryParameter = {};
|
|
1010
|
+
const localVarBodyParameter = {};
|
|
954
1011
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
955
1012
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
956
1013
|
let _timeUnit;
|
|
@@ -958,7 +1015,8 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
958
1015
|
return {
|
|
959
1016
|
endpoint: "/eapi/v1/mmpReset",
|
|
960
1017
|
method: "POST",
|
|
961
|
-
|
|
1018
|
+
queryParams: localVarQueryParameter,
|
|
1019
|
+
bodyParams: localVarBodyParameter,
|
|
962
1020
|
timeUnit: _timeUnit
|
|
963
1021
|
};
|
|
964
1022
|
},
|
|
@@ -966,6 +1024,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
966
1024
|
(0, __binance_common.assertParamExists)("setAutoCancelAllOpenOrders", "underlying", underlying);
|
|
967
1025
|
(0, __binance_common.assertParamExists)("setAutoCancelAllOpenOrders", "countdownTime", countdownTime);
|
|
968
1026
|
const localVarQueryParameter = {};
|
|
1027
|
+
const localVarBodyParameter = {};
|
|
969
1028
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
970
1029
|
if (countdownTime !== void 0 && countdownTime !== null) localVarQueryParameter["countdownTime"] = countdownTime;
|
|
971
1030
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -974,12 +1033,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
974
1033
|
return {
|
|
975
1034
|
endpoint: "/eapi/v1/countdownCancelAll",
|
|
976
1035
|
method: "POST",
|
|
977
|
-
|
|
1036
|
+
queryParams: localVarQueryParameter,
|
|
1037
|
+
bodyParams: localVarBodyParameter,
|
|
978
1038
|
timeUnit: _timeUnit
|
|
979
1039
|
};
|
|
980
1040
|
},
|
|
981
1041
|
setMarketMakerProtectionConfig: async (underlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindow) => {
|
|
982
1042
|
const localVarQueryParameter = {};
|
|
1043
|
+
const localVarBodyParameter = {};
|
|
983
1044
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
984
1045
|
if (windowTimeInMilliseconds !== void 0 && windowTimeInMilliseconds !== null) localVarQueryParameter["windowTimeInMilliseconds"] = windowTimeInMilliseconds;
|
|
985
1046
|
if (frozenTimeInMilliseconds !== void 0 && frozenTimeInMilliseconds !== null) localVarQueryParameter["frozenTimeInMilliseconds"] = frozenTimeInMilliseconds;
|
|
@@ -991,7 +1052,8 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
991
1052
|
return {
|
|
992
1053
|
endpoint: "/eapi/v1/mmpSet",
|
|
993
1054
|
method: "POST",
|
|
994
|
-
|
|
1055
|
+
queryParams: localVarQueryParameter,
|
|
1056
|
+
bodyParams: localVarBodyParameter,
|
|
995
1057
|
timeUnit: _timeUnit
|
|
996
1058
|
};
|
|
997
1059
|
}
|
|
@@ -1022,7 +1084,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1022
1084
|
*/
|
|
1023
1085
|
async autoCancelAllOpenOrders(requestParameters) {
|
|
1024
1086
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.autoCancelAllOpenOrders(requestParameters?.underlyings, requestParameters?.recvWindow);
|
|
1025
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1087
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1026
1088
|
}
|
|
1027
1089
|
/**
|
|
1028
1090
|
* This endpoint returns the auto-cancel parameters for each underlying symbol. Note only active auto-cancel parameters will be returned, if countdownTime is set to 0 (ie. countdownTime has been turned off), the underlying symbol and corresponding countdownTime parameter will not be returned in the response.
|
|
@@ -1040,7 +1102,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1040
1102
|
*/
|
|
1041
1103
|
async getAutoCancelAllOpenOrders(requestParameters = {}) {
|
|
1042
1104
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1043
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1105
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1044
1106
|
}
|
|
1045
1107
|
/**
|
|
1046
1108
|
* Get config for MMP.
|
|
@@ -1056,7 +1118,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1056
1118
|
*/
|
|
1057
1119
|
async getMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1058
1120
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1059
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1121
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1060
1122
|
}
|
|
1061
1123
|
/**
|
|
1062
1124
|
* Reset MMP, start MMP order again.
|
|
@@ -1072,7 +1134,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1072
1134
|
*/
|
|
1073
1135
|
async resetMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1074
1136
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.resetMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1075
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1137
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1076
1138
|
}
|
|
1077
1139
|
/**
|
|
1078
1140
|
* This endpoint sets the parameters of the auto-cancel feature which cancels all open orders (both market maker protection and non market maker protection order types) of the underlying symbol at the end of the specified countdown time period if no heartbeat message is sent. After the countdown time period, all open orders will be cancelled and new orders will be rejected with error code -2010 until either a heartbeat message is sent or the auto-cancel feature is turned off by setting countdownTime to 0.
|
|
@@ -1094,7 +1156,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1094
1156
|
*/
|
|
1095
1157
|
async setAutoCancelAllOpenOrders(requestParameters) {
|
|
1096
1158
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.countdownTime, requestParameters?.recvWindow);
|
|
1097
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1159
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1098
1160
|
}
|
|
1099
1161
|
/**
|
|
1100
1162
|
* Set config for MMP.
|
|
@@ -1111,7 +1173,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1111
1173
|
*/
|
|
1112
1174
|
async setMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1113
1175
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.windowTimeInMilliseconds, requestParameters?.frozenTimeInMilliseconds, requestParameters?.qtyLimit, requestParameters?.deltaLimit, requestParameters?.recvWindow);
|
|
1114
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1176
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1115
1177
|
}
|
|
1116
1178
|
};
|
|
1117
1179
|
|
|
@@ -1136,6 +1198,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1136
1198
|
return {
|
|
1137
1199
|
accountTradeList: async (symbol, fromId, startTime, endTime, limit, recvWindow) => {
|
|
1138
1200
|
const localVarQueryParameter = {};
|
|
1201
|
+
const localVarBodyParameter = {};
|
|
1139
1202
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1140
1203
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
1141
1204
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1147,13 +1210,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1147
1210
|
return {
|
|
1148
1211
|
endpoint: "/eapi/v1/userTrades",
|
|
1149
1212
|
method: "GET",
|
|
1150
|
-
|
|
1213
|
+
queryParams: localVarQueryParameter,
|
|
1214
|
+
bodyParams: localVarBodyParameter,
|
|
1151
1215
|
timeUnit: _timeUnit
|
|
1152
1216
|
};
|
|
1153
1217
|
},
|
|
1154
1218
|
cancelAllOptionOrdersByUnderlying: async (underlying, recvWindow) => {
|
|
1155
1219
|
(0, __binance_common.assertParamExists)("cancelAllOptionOrdersByUnderlying", "underlying", underlying);
|
|
1156
1220
|
const localVarQueryParameter = {};
|
|
1221
|
+
const localVarBodyParameter = {};
|
|
1157
1222
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
1158
1223
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1159
1224
|
let _timeUnit;
|
|
@@ -1161,13 +1226,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1161
1226
|
return {
|
|
1162
1227
|
endpoint: "/eapi/v1/allOpenOrdersByUnderlying",
|
|
1163
1228
|
method: "DELETE",
|
|
1164
|
-
|
|
1229
|
+
queryParams: localVarQueryParameter,
|
|
1230
|
+
bodyParams: localVarBodyParameter,
|
|
1165
1231
|
timeUnit: _timeUnit
|
|
1166
1232
|
};
|
|
1167
1233
|
},
|
|
1168
1234
|
cancelAllOptionOrdersOnSpecificSymbol: async (symbol, recvWindow) => {
|
|
1169
1235
|
(0, __binance_common.assertParamExists)("cancelAllOptionOrdersOnSpecificSymbol", "symbol", symbol);
|
|
1170
1236
|
const localVarQueryParameter = {};
|
|
1237
|
+
const localVarBodyParameter = {};
|
|
1171
1238
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1172
1239
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1173
1240
|
let _timeUnit;
|
|
@@ -1175,13 +1242,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1175
1242
|
return {
|
|
1176
1243
|
endpoint: "/eapi/v1/allOpenOrders",
|
|
1177
1244
|
method: "DELETE",
|
|
1178
|
-
|
|
1245
|
+
queryParams: localVarQueryParameter,
|
|
1246
|
+
bodyParams: localVarBodyParameter,
|
|
1179
1247
|
timeUnit: _timeUnit
|
|
1180
1248
|
};
|
|
1181
1249
|
},
|
|
1182
1250
|
cancelMultipleOptionOrders: async (symbol, orderIds, clientOrderIds, recvWindow) => {
|
|
1183
1251
|
(0, __binance_common.assertParamExists)("cancelMultipleOptionOrders", "symbol", symbol);
|
|
1184
1252
|
const localVarQueryParameter = {};
|
|
1253
|
+
const localVarBodyParameter = {};
|
|
1185
1254
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1186
1255
|
if (orderIds) localVarQueryParameter["orderIds"] = orderIds;
|
|
1187
1256
|
if (clientOrderIds) localVarQueryParameter["clientOrderIds"] = clientOrderIds;
|
|
@@ -1191,13 +1260,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1191
1260
|
return {
|
|
1192
1261
|
endpoint: "/eapi/v1/batchOrders",
|
|
1193
1262
|
method: "DELETE",
|
|
1194
|
-
|
|
1263
|
+
queryParams: localVarQueryParameter,
|
|
1264
|
+
bodyParams: localVarBodyParameter,
|
|
1195
1265
|
timeUnit: _timeUnit
|
|
1196
1266
|
};
|
|
1197
1267
|
},
|
|
1198
1268
|
cancelOptionOrder: async (symbol, orderId, clientOrderId, recvWindow) => {
|
|
1199
1269
|
(0, __binance_common.assertParamExists)("cancelOptionOrder", "symbol", symbol);
|
|
1200
1270
|
const localVarQueryParameter = {};
|
|
1271
|
+
const localVarBodyParameter = {};
|
|
1201
1272
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1202
1273
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1203
1274
|
if (clientOrderId !== void 0 && clientOrderId !== null) localVarQueryParameter["clientOrderId"] = clientOrderId;
|
|
@@ -1207,7 +1278,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1207
1278
|
return {
|
|
1208
1279
|
endpoint: "/eapi/v1/order",
|
|
1209
1280
|
method: "DELETE",
|
|
1210
|
-
|
|
1281
|
+
queryParams: localVarQueryParameter,
|
|
1282
|
+
bodyParams: localVarBodyParameter,
|
|
1211
1283
|
timeUnit: _timeUnit
|
|
1212
1284
|
};
|
|
1213
1285
|
},
|
|
@@ -1217,6 +1289,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1217
1289
|
(0, __binance_common.assertParamExists)("newOrder", "type", type);
|
|
1218
1290
|
(0, __binance_common.assertParamExists)("newOrder", "quantity", quantity);
|
|
1219
1291
|
const localVarQueryParameter = {};
|
|
1292
|
+
const localVarBodyParameter = {};
|
|
1220
1293
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1221
1294
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1222
1295
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -1234,12 +1307,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1234
1307
|
return {
|
|
1235
1308
|
endpoint: "/eapi/v1/order",
|
|
1236
1309
|
method: "POST",
|
|
1237
|
-
|
|
1310
|
+
queryParams: localVarQueryParameter,
|
|
1311
|
+
bodyParams: localVarBodyParameter,
|
|
1238
1312
|
timeUnit: _timeUnit
|
|
1239
1313
|
};
|
|
1240
1314
|
},
|
|
1241
1315
|
optionPositionInformation: async (symbol, recvWindow) => {
|
|
1242
1316
|
const localVarQueryParameter = {};
|
|
1317
|
+
const localVarBodyParameter = {};
|
|
1243
1318
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1244
1319
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1245
1320
|
let _timeUnit;
|
|
@@ -1247,13 +1322,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1247
1322
|
return {
|
|
1248
1323
|
endpoint: "/eapi/v1/position",
|
|
1249
1324
|
method: "GET",
|
|
1250
|
-
|
|
1325
|
+
queryParams: localVarQueryParameter,
|
|
1326
|
+
bodyParams: localVarBodyParameter,
|
|
1251
1327
|
timeUnit: _timeUnit
|
|
1252
1328
|
};
|
|
1253
1329
|
},
|
|
1254
1330
|
placeMultipleOrders: async (orders, recvWindow) => {
|
|
1255
1331
|
(0, __binance_common.assertParamExists)("placeMultipleOrders", "orders", orders);
|
|
1256
1332
|
const localVarQueryParameter = {};
|
|
1333
|
+
const localVarBodyParameter = {};
|
|
1257
1334
|
if (orders) localVarQueryParameter["orders"] = orders;
|
|
1258
1335
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1259
1336
|
let _timeUnit;
|
|
@@ -1261,12 +1338,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1261
1338
|
return {
|
|
1262
1339
|
endpoint: "/eapi/v1/batchOrders",
|
|
1263
1340
|
method: "POST",
|
|
1264
|
-
|
|
1341
|
+
queryParams: localVarQueryParameter,
|
|
1342
|
+
bodyParams: localVarBodyParameter,
|
|
1265
1343
|
timeUnit: _timeUnit
|
|
1266
1344
|
};
|
|
1267
1345
|
},
|
|
1268
1346
|
queryCurrentOpenOptionOrders: async (symbol, orderId, startTime, endTime, recvWindow) => {
|
|
1269
1347
|
const localVarQueryParameter = {};
|
|
1348
|
+
const localVarBodyParameter = {};
|
|
1270
1349
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1271
1350
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1272
1351
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1277,13 +1356,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1277
1356
|
return {
|
|
1278
1357
|
endpoint: "/eapi/v1/openOrders",
|
|
1279
1358
|
method: "GET",
|
|
1280
|
-
|
|
1359
|
+
queryParams: localVarQueryParameter,
|
|
1360
|
+
bodyParams: localVarBodyParameter,
|
|
1281
1361
|
timeUnit: _timeUnit
|
|
1282
1362
|
};
|
|
1283
1363
|
},
|
|
1284
1364
|
queryOptionOrderHistory: async (symbol, orderId, startTime, endTime, limit, recvWindow) => {
|
|
1285
1365
|
(0, __binance_common.assertParamExists)("queryOptionOrderHistory", "symbol", symbol);
|
|
1286
1366
|
const localVarQueryParameter = {};
|
|
1367
|
+
const localVarBodyParameter = {};
|
|
1287
1368
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1288
1369
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1289
1370
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1295,13 +1376,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1295
1376
|
return {
|
|
1296
1377
|
endpoint: "/eapi/v1/historyOrders",
|
|
1297
1378
|
method: "GET",
|
|
1298
|
-
|
|
1379
|
+
queryParams: localVarQueryParameter,
|
|
1380
|
+
bodyParams: localVarBodyParameter,
|
|
1299
1381
|
timeUnit: _timeUnit
|
|
1300
1382
|
};
|
|
1301
1383
|
},
|
|
1302
1384
|
querySingleOrder: async (symbol, orderId, clientOrderId, recvWindow) => {
|
|
1303
1385
|
(0, __binance_common.assertParamExists)("querySingleOrder", "symbol", symbol);
|
|
1304
1386
|
const localVarQueryParameter = {};
|
|
1387
|
+
const localVarBodyParameter = {};
|
|
1305
1388
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1306
1389
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1307
1390
|
if (clientOrderId !== void 0 && clientOrderId !== null) localVarQueryParameter["clientOrderId"] = clientOrderId;
|
|
@@ -1311,12 +1394,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1311
1394
|
return {
|
|
1312
1395
|
endpoint: "/eapi/v1/order",
|
|
1313
1396
|
method: "GET",
|
|
1314
|
-
|
|
1397
|
+
queryParams: localVarQueryParameter,
|
|
1398
|
+
bodyParams: localVarBodyParameter,
|
|
1315
1399
|
timeUnit: _timeUnit
|
|
1316
1400
|
};
|
|
1317
1401
|
},
|
|
1318
1402
|
userExerciseRecord: async (symbol, startTime, endTime, limit, recvWindow) => {
|
|
1319
1403
|
const localVarQueryParameter = {};
|
|
1404
|
+
const localVarBodyParameter = {};
|
|
1320
1405
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1321
1406
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1322
1407
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -1327,7 +1412,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1327
1412
|
return {
|
|
1328
1413
|
endpoint: "/eapi/v1/exerciseRecord",
|
|
1329
1414
|
method: "GET",
|
|
1330
|
-
|
|
1415
|
+
queryParams: localVarQueryParameter,
|
|
1416
|
+
bodyParams: localVarBodyParameter,
|
|
1331
1417
|
timeUnit: _timeUnit
|
|
1332
1418
|
};
|
|
1333
1419
|
}
|
|
@@ -1356,7 +1442,7 @@ var TradeApi = class {
|
|
|
1356
1442
|
*/
|
|
1357
1443
|
async accountTradeList(requestParameters = {}) {
|
|
1358
1444
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountTradeList(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1359
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1445
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1360
1446
|
}
|
|
1361
1447
|
/**
|
|
1362
1448
|
* Cancel all active orders on specified underlying.
|
|
@@ -1372,7 +1458,7 @@ var TradeApi = class {
|
|
|
1372
1458
|
*/
|
|
1373
1459
|
async cancelAllOptionOrdersByUnderlying(requestParameters) {
|
|
1374
1460
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersByUnderlying(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1375
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1461
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1376
1462
|
}
|
|
1377
1463
|
/**
|
|
1378
1464
|
* Cancel all active order on a symbol.
|
|
@@ -1388,7 +1474,7 @@ var TradeApi = class {
|
|
|
1388
1474
|
*/
|
|
1389
1475
|
async cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
|
|
1390
1476
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersOnSpecificSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1391
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1477
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1392
1478
|
}
|
|
1393
1479
|
/**
|
|
1394
1480
|
* Cancel multiple orders.
|
|
@@ -1407,7 +1493,7 @@ var TradeApi = class {
|
|
|
1407
1493
|
*/
|
|
1408
1494
|
async cancelMultipleOptionOrders(requestParameters) {
|
|
1409
1495
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMultipleOptionOrders(requestParameters?.symbol, requestParameters?.orderIds, requestParameters?.clientOrderIds, requestParameters?.recvWindow);
|
|
1410
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1496
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1411
1497
|
}
|
|
1412
1498
|
/**
|
|
1413
1499
|
* Cancel an active order.
|
|
@@ -1425,7 +1511,7 @@ var TradeApi = class {
|
|
|
1425
1511
|
*/
|
|
1426
1512
|
async cancelOptionOrder(requestParameters) {
|
|
1427
1513
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelOptionOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
|
|
1428
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1514
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1429
1515
|
}
|
|
1430
1516
|
/**
|
|
1431
1517
|
* Send a new order.
|
|
@@ -1441,7 +1527,7 @@ var TradeApi = class {
|
|
|
1441
1527
|
*/
|
|
1442
1528
|
async newOrder(requestParameters) {
|
|
1443
1529
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.price, requestParameters?.timeInForce, requestParameters?.reduceOnly, requestParameters?.postOnly, requestParameters?.newOrderRespType, requestParameters?.clientOrderId, requestParameters?.isMmp, requestParameters?.recvWindow);
|
|
1444
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1530
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1445
1531
|
}
|
|
1446
1532
|
/**
|
|
1447
1533
|
* Get current position information.
|
|
@@ -1457,7 +1543,7 @@ var TradeApi = class {
|
|
|
1457
1543
|
*/
|
|
1458
1544
|
async optionPositionInformation(requestParameters = {}) {
|
|
1459
1545
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1460
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1546
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1461
1547
|
}
|
|
1462
1548
|
/**
|
|
1463
1549
|
* Send multiple option orders.
|
|
@@ -1476,7 +1562,7 @@ var TradeApi = class {
|
|
|
1476
1562
|
*/
|
|
1477
1563
|
async placeMultipleOrders(requestParameters) {
|
|
1478
1564
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeMultipleOrders(requestParameters?.orders, requestParameters?.recvWindow);
|
|
1479
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1565
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1480
1566
|
}
|
|
1481
1567
|
/**
|
|
1482
1568
|
* Query current all open orders, status: ACCEPTED PARTIALLY_FILLED
|
|
@@ -1492,7 +1578,7 @@ var TradeApi = class {
|
|
|
1492
1578
|
*/
|
|
1493
1579
|
async queryCurrentOpenOptionOrders(requestParameters = {}) {
|
|
1494
1580
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentOpenOptionOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1495
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1581
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1496
1582
|
}
|
|
1497
1583
|
/**
|
|
1498
1584
|
* Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.
|
|
@@ -1508,7 +1594,7 @@ var TradeApi = class {
|
|
|
1508
1594
|
*/
|
|
1509
1595
|
async queryOptionOrderHistory(requestParameters) {
|
|
1510
1596
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOptionOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1511
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1597
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1512
1598
|
}
|
|
1513
1599
|
/**
|
|
1514
1600
|
* Check an order status.
|
|
@@ -1532,7 +1618,7 @@ var TradeApi = class {
|
|
|
1532
1618
|
*/
|
|
1533
1619
|
async querySingleOrder(requestParameters) {
|
|
1534
1620
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySingleOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
|
|
1535
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1621
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1536
1622
|
}
|
|
1537
1623
|
/**
|
|
1538
1624
|
* Get account exercise records.
|
|
@@ -1548,7 +1634,7 @@ var TradeApi = class {
|
|
|
1548
1634
|
*/
|
|
1549
1635
|
async userExerciseRecord(requestParameters = {}) {
|
|
1550
1636
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userExerciseRecord(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1551
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1637
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1552
1638
|
}
|
|
1553
1639
|
};
|
|
1554
1640
|
let NewOrderSideEnum = /* @__PURE__ */ function(NewOrderSideEnum$1) {
|
|
@@ -1593,34 +1679,40 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1593
1679
|
return {
|
|
1594
1680
|
closeUserDataStream: async () => {
|
|
1595
1681
|
const localVarQueryParameter = {};
|
|
1682
|
+
const localVarBodyParameter = {};
|
|
1596
1683
|
let _timeUnit;
|
|
1597
1684
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1598
1685
|
return {
|
|
1599
1686
|
endpoint: "/eapi/v1/listenKey",
|
|
1600
1687
|
method: "DELETE",
|
|
1601
|
-
|
|
1688
|
+
queryParams: localVarQueryParameter,
|
|
1689
|
+
bodyParams: localVarBodyParameter,
|
|
1602
1690
|
timeUnit: _timeUnit
|
|
1603
1691
|
};
|
|
1604
1692
|
},
|
|
1605
1693
|
keepaliveUserDataStream: async () => {
|
|
1606
1694
|
const localVarQueryParameter = {};
|
|
1695
|
+
const localVarBodyParameter = {};
|
|
1607
1696
|
let _timeUnit;
|
|
1608
1697
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1609
1698
|
return {
|
|
1610
1699
|
endpoint: "/eapi/v1/listenKey",
|
|
1611
1700
|
method: "PUT",
|
|
1612
|
-
|
|
1701
|
+
queryParams: localVarQueryParameter,
|
|
1702
|
+
bodyParams: localVarBodyParameter,
|
|
1613
1703
|
timeUnit: _timeUnit
|
|
1614
1704
|
};
|
|
1615
1705
|
},
|
|
1616
1706
|
startUserDataStream: async () => {
|
|
1617
1707
|
const localVarQueryParameter = {};
|
|
1708
|
+
const localVarBodyParameter = {};
|
|
1618
1709
|
let _timeUnit;
|
|
1619
1710
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1620
1711
|
return {
|
|
1621
1712
|
endpoint: "/eapi/v1/listenKey",
|
|
1622
1713
|
method: "POST",
|
|
1623
|
-
|
|
1714
|
+
queryParams: localVarQueryParameter,
|
|
1715
|
+
bodyParams: localVarBodyParameter,
|
|
1624
1716
|
timeUnit: _timeUnit
|
|
1625
1717
|
};
|
|
1626
1718
|
}
|
|
@@ -1648,7 +1740,7 @@ var UserDataStreamsApi = class {
|
|
|
1648
1740
|
*/
|
|
1649
1741
|
async closeUserDataStream() {
|
|
1650
1742
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
1651
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1743
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1652
1744
|
}
|
|
1653
1745
|
/**
|
|
1654
1746
|
* Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
|
|
@@ -1663,7 +1755,7 @@ var UserDataStreamsApi = class {
|
|
|
1663
1755
|
*/
|
|
1664
1756
|
async keepaliveUserDataStream() {
|
|
1665
1757
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
1666
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1758
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1667
1759
|
}
|
|
1668
1760
|
/**
|
|
1669
1761
|
* Start a new 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.
|
|
@@ -1678,7 +1770,7 @@ var UserDataStreamsApi = class {
|
|
|
1678
1770
|
*/
|
|
1679
1771
|
async startUserDataStream() {
|
|
1680
1772
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
1681
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1773
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1682
1774
|
}
|
|
1683
1775
|
};
|
|
1684
1776
|
|
|
@@ -1710,23 +1802,25 @@ var RestAPI = class {
|
|
|
1710
1802
|
* Generic function to send a request.
|
|
1711
1803
|
* @param endpoint - The API endpoint to call.
|
|
1712
1804
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
1713
|
-
* @param
|
|
1805
|
+
* @param queryParams - Query parameters for the request.
|
|
1806
|
+
* @param bodyParams - Body parameters for the request.
|
|
1714
1807
|
*
|
|
1715
1808
|
* @returns A promise resolving to the response data object.
|
|
1716
1809
|
*/
|
|
1717
|
-
sendRequest(endpoint, method,
|
|
1718
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method,
|
|
1810
|
+
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1811
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
1719
1812
|
}
|
|
1720
1813
|
/**
|
|
1721
1814
|
* Generic function to send a signed request.
|
|
1722
1815
|
* @param endpoint - The API endpoint to call.
|
|
1723
1816
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
1724
|
-
* @param
|
|
1817
|
+
* @param queryParams - Query parameters for the request.
|
|
1818
|
+
* @param bodyParams - Body parameters for the request.
|
|
1725
1819
|
*
|
|
1726
1820
|
* @returns A promise resolving to the response data object.
|
|
1727
1821
|
*/
|
|
1728
|
-
sendSignedRequest(endpoint, method,
|
|
1729
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method,
|
|
1822
|
+
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1823
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
1730
1824
|
}
|
|
1731
1825
|
/**
|
|
1732
1826
|
* Query account funding flows.
|
|
@@ -2987,6 +3081,7 @@ var WebsocketStreams = class {
|
|
|
2987
3081
|
...mode && { mode },
|
|
2988
3082
|
...poolSize && { poolSize }
|
|
2989
3083
|
});
|
|
3084
|
+
websocketBase.streamIdIsStrictlyNumber = true;
|
|
2990
3085
|
const websocketStreamsConnection = new WebsocketStreamsConnection(websocketBase);
|
|
2991
3086
|
await websocketBase.connect(stream);
|
|
2992
3087
|
return websocketStreamsConnection;
|