@binance/derivatives-trading-options 15.0.6 → 15.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +132 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -46
- 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 = "15.0.
|
|
17
|
+
var version = "15.0.8";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/types/place-multiple-orders-orders-parameter-inner.ts
|
|
@@ -62,6 +62,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
62
62
|
(0, __binance_common.assertParamExists)("accountFundingFlow", "currency", currency);
|
|
63
63
|
const localVarQueryParameter = {};
|
|
64
64
|
const localVarBodyParameter = {};
|
|
65
|
+
const localVarHeaderParameter = {};
|
|
65
66
|
if (currency !== void 0 && currency !== null) localVarQueryParameter["currency"] = currency;
|
|
66
67
|
if (recordId !== void 0 && recordId !== null) localVarQueryParameter["recordId"] = recordId;
|
|
67
68
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -75,12 +76,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
75
76
|
method: "GET",
|
|
76
77
|
queryParams: localVarQueryParameter,
|
|
77
78
|
bodyParams: localVarBodyParameter,
|
|
79
|
+
headerParams: localVarHeaderParameter,
|
|
78
80
|
timeUnit: _timeUnit
|
|
79
81
|
};
|
|
80
82
|
},
|
|
81
83
|
optionMarginAccountInformation: async (recvWindow) => {
|
|
82
84
|
const localVarQueryParameter = {};
|
|
83
85
|
const localVarBodyParameter = {};
|
|
86
|
+
const localVarHeaderParameter = {};
|
|
84
87
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
85
88
|
let _timeUnit;
|
|
86
89
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -89,6 +92,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
89
92
|
method: "GET",
|
|
90
93
|
queryParams: localVarQueryParameter,
|
|
91
94
|
bodyParams: localVarBodyParameter,
|
|
95
|
+
headerParams: localVarHeaderParameter,
|
|
92
96
|
timeUnit: _timeUnit
|
|
93
97
|
};
|
|
94
98
|
}
|
|
@@ -120,7 +124,7 @@ var AccountApi = class {
|
|
|
120
124
|
*/
|
|
121
125
|
async accountFundingFlow(requestParameters) {
|
|
122
126
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountFundingFlow(requestParameters?.currency, requestParameters?.recordId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
123
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
127
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
124
128
|
}
|
|
125
129
|
/**
|
|
126
130
|
* Get current account information.
|
|
@@ -136,7 +140,7 @@ var AccountApi = class {
|
|
|
136
140
|
*/
|
|
137
141
|
async optionMarginAccountInformation(requestParameters = {}) {
|
|
138
142
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(requestParameters?.recvWindow);
|
|
139
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
143
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
140
144
|
}
|
|
141
145
|
};
|
|
142
146
|
|
|
@@ -162,6 +166,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
162
166
|
checkServerTime: async () => {
|
|
163
167
|
const localVarQueryParameter = {};
|
|
164
168
|
const localVarBodyParameter = {};
|
|
169
|
+
const localVarHeaderParameter = {};
|
|
165
170
|
let _timeUnit;
|
|
166
171
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
167
172
|
return {
|
|
@@ -169,12 +174,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
169
174
|
method: "GET",
|
|
170
175
|
queryParams: localVarQueryParameter,
|
|
171
176
|
bodyParams: localVarBodyParameter,
|
|
177
|
+
headerParams: localVarHeaderParameter,
|
|
172
178
|
timeUnit: _timeUnit
|
|
173
179
|
};
|
|
174
180
|
},
|
|
175
181
|
exchangeInformation: async () => {
|
|
176
182
|
const localVarQueryParameter = {};
|
|
177
183
|
const localVarBodyParameter = {};
|
|
184
|
+
const localVarHeaderParameter = {};
|
|
178
185
|
let _timeUnit;
|
|
179
186
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
180
187
|
return {
|
|
@@ -182,12 +189,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
182
189
|
method: "GET",
|
|
183
190
|
queryParams: localVarQueryParameter,
|
|
184
191
|
bodyParams: localVarBodyParameter,
|
|
192
|
+
headerParams: localVarHeaderParameter,
|
|
185
193
|
timeUnit: _timeUnit
|
|
186
194
|
};
|
|
187
195
|
},
|
|
188
196
|
historicalExerciseRecords: async (underlying, startTime, endTime, limit) => {
|
|
189
197
|
const localVarQueryParameter = {};
|
|
190
198
|
const localVarBodyParameter = {};
|
|
199
|
+
const localVarHeaderParameter = {};
|
|
191
200
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
192
201
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
193
202
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -199,6 +208,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
199
208
|
method: "GET",
|
|
200
209
|
queryParams: localVarQueryParameter,
|
|
201
210
|
bodyParams: localVarBodyParameter,
|
|
211
|
+
headerParams: localVarHeaderParameter,
|
|
202
212
|
timeUnit: _timeUnit
|
|
203
213
|
};
|
|
204
214
|
},
|
|
@@ -206,6 +216,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
206
216
|
(0, __binance_common.assertParamExists)("indexPrice", "underlying", underlying);
|
|
207
217
|
const localVarQueryParameter = {};
|
|
208
218
|
const localVarBodyParameter = {};
|
|
219
|
+
const localVarHeaderParameter = {};
|
|
209
220
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
210
221
|
let _timeUnit;
|
|
211
222
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -214,6 +225,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
214
225
|
method: "GET",
|
|
215
226
|
queryParams: localVarQueryParameter,
|
|
216
227
|
bodyParams: localVarBodyParameter,
|
|
228
|
+
headerParams: localVarHeaderParameter,
|
|
217
229
|
timeUnit: _timeUnit
|
|
218
230
|
};
|
|
219
231
|
},
|
|
@@ -222,6 +234,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
222
234
|
(0, __binance_common.assertParamExists)("klineCandlestickData", "interval", interval);
|
|
223
235
|
const localVarQueryParameter = {};
|
|
224
236
|
const localVarBodyParameter = {};
|
|
237
|
+
const localVarHeaderParameter = {};
|
|
225
238
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
226
239
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
227
240
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -234,6 +247,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
234
247
|
method: "GET",
|
|
235
248
|
queryParams: localVarQueryParameter,
|
|
236
249
|
bodyParams: localVarBodyParameter,
|
|
250
|
+
headerParams: localVarHeaderParameter,
|
|
237
251
|
timeUnit: _timeUnit
|
|
238
252
|
};
|
|
239
253
|
},
|
|
@@ -242,6 +256,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
242
256
|
(0, __binance_common.assertParamExists)("openInterest", "expiration", expiration);
|
|
243
257
|
const localVarQueryParameter = {};
|
|
244
258
|
const localVarBodyParameter = {};
|
|
259
|
+
const localVarHeaderParameter = {};
|
|
245
260
|
if (underlyingAsset !== void 0 && underlyingAsset !== null) localVarQueryParameter["underlyingAsset"] = underlyingAsset;
|
|
246
261
|
if (expiration !== void 0 && expiration !== null) localVarQueryParameter["expiration"] = expiration;
|
|
247
262
|
let _timeUnit;
|
|
@@ -251,12 +266,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
251
266
|
method: "GET",
|
|
252
267
|
queryParams: localVarQueryParameter,
|
|
253
268
|
bodyParams: localVarBodyParameter,
|
|
269
|
+
headerParams: localVarHeaderParameter,
|
|
254
270
|
timeUnit: _timeUnit
|
|
255
271
|
};
|
|
256
272
|
},
|
|
257
273
|
optionMarkPrice: async (symbol) => {
|
|
258
274
|
const localVarQueryParameter = {};
|
|
259
275
|
const localVarBodyParameter = {};
|
|
276
|
+
const localVarHeaderParameter = {};
|
|
260
277
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
261
278
|
let _timeUnit;
|
|
262
279
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -265,6 +282,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
265
282
|
method: "GET",
|
|
266
283
|
queryParams: localVarQueryParameter,
|
|
267
284
|
bodyParams: localVarBodyParameter,
|
|
285
|
+
headerParams: localVarHeaderParameter,
|
|
268
286
|
timeUnit: _timeUnit
|
|
269
287
|
};
|
|
270
288
|
},
|
|
@@ -272,6 +290,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
272
290
|
(0, __binance_common.assertParamExists)("orderBook", "symbol", symbol);
|
|
273
291
|
const localVarQueryParameter = {};
|
|
274
292
|
const localVarBodyParameter = {};
|
|
293
|
+
const localVarHeaderParameter = {};
|
|
275
294
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
276
295
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
277
296
|
let _timeUnit;
|
|
@@ -281,12 +300,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
281
300
|
method: "GET",
|
|
282
301
|
queryParams: localVarQueryParameter,
|
|
283
302
|
bodyParams: localVarBodyParameter,
|
|
303
|
+
headerParams: localVarHeaderParameter,
|
|
284
304
|
timeUnit: _timeUnit
|
|
285
305
|
};
|
|
286
306
|
},
|
|
287
307
|
recentBlockTradesList: async (symbol, limit) => {
|
|
288
308
|
const localVarQueryParameter = {};
|
|
289
309
|
const localVarBodyParameter = {};
|
|
310
|
+
const localVarHeaderParameter = {};
|
|
290
311
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
291
312
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
292
313
|
let _timeUnit;
|
|
@@ -296,6 +317,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
296
317
|
method: "GET",
|
|
297
318
|
queryParams: localVarQueryParameter,
|
|
298
319
|
bodyParams: localVarBodyParameter,
|
|
320
|
+
headerParams: localVarHeaderParameter,
|
|
299
321
|
timeUnit: _timeUnit
|
|
300
322
|
};
|
|
301
323
|
},
|
|
@@ -303,6 +325,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
303
325
|
(0, __binance_common.assertParamExists)("recentTradesList", "symbol", symbol);
|
|
304
326
|
const localVarQueryParameter = {};
|
|
305
327
|
const localVarBodyParameter = {};
|
|
328
|
+
const localVarHeaderParameter = {};
|
|
306
329
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
307
330
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
308
331
|
let _timeUnit;
|
|
@@ -312,12 +335,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
312
335
|
method: "GET",
|
|
313
336
|
queryParams: localVarQueryParameter,
|
|
314
337
|
bodyParams: localVarBodyParameter,
|
|
338
|
+
headerParams: localVarHeaderParameter,
|
|
315
339
|
timeUnit: _timeUnit
|
|
316
340
|
};
|
|
317
341
|
},
|
|
318
342
|
testConnectivity: async () => {
|
|
319
343
|
const localVarQueryParameter = {};
|
|
320
344
|
const localVarBodyParameter = {};
|
|
345
|
+
const localVarHeaderParameter = {};
|
|
321
346
|
let _timeUnit;
|
|
322
347
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
323
348
|
return {
|
|
@@ -325,12 +350,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
325
350
|
method: "GET",
|
|
326
351
|
queryParams: localVarQueryParameter,
|
|
327
352
|
bodyParams: localVarBodyParameter,
|
|
353
|
+
headerParams: localVarHeaderParameter,
|
|
328
354
|
timeUnit: _timeUnit
|
|
329
355
|
};
|
|
330
356
|
},
|
|
331
357
|
ticker24hrPriceChangeStatistics: async (symbol) => {
|
|
332
358
|
const localVarQueryParameter = {};
|
|
333
359
|
const localVarBodyParameter = {};
|
|
360
|
+
const localVarHeaderParameter = {};
|
|
334
361
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
335
362
|
let _timeUnit;
|
|
336
363
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -339,6 +366,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
339
366
|
method: "GET",
|
|
340
367
|
queryParams: localVarQueryParameter,
|
|
341
368
|
bodyParams: localVarBodyParameter,
|
|
369
|
+
headerParams: localVarHeaderParameter,
|
|
342
370
|
timeUnit: _timeUnit
|
|
343
371
|
};
|
|
344
372
|
}
|
|
@@ -366,7 +394,7 @@ var MarketDataApi = class {
|
|
|
366
394
|
*/
|
|
367
395
|
async checkServerTime() {
|
|
368
396
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkServerTime();
|
|
369
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
397
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
370
398
|
}
|
|
371
399
|
/**
|
|
372
400
|
* Current exchange trading rules and symbol information
|
|
@@ -381,7 +409,7 @@ var MarketDataApi = class {
|
|
|
381
409
|
*/
|
|
382
410
|
async exchangeInformation() {
|
|
383
411
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.exchangeInformation();
|
|
384
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
412
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
385
413
|
}
|
|
386
414
|
/**
|
|
387
415
|
* Get historical exercise records.
|
|
@@ -399,7 +427,7 @@ var MarketDataApi = class {
|
|
|
399
427
|
*/
|
|
400
428
|
async historicalExerciseRecords(requestParameters = {}) {
|
|
401
429
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.historicalExerciseRecords(requestParameters?.underlying, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
402
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
430
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
403
431
|
}
|
|
404
432
|
/**
|
|
405
433
|
* Get spot index price for option underlying.
|
|
@@ -415,7 +443,7 @@ var MarketDataApi = class {
|
|
|
415
443
|
*/
|
|
416
444
|
async indexPrice(requestParameters) {
|
|
417
445
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPrice(requestParameters?.underlying);
|
|
418
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
446
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
419
447
|
}
|
|
420
448
|
/**
|
|
421
449
|
* Kline/candlestick bars for an option symbol.
|
|
@@ -434,7 +462,7 @@ var MarketDataApi = class {
|
|
|
434
462
|
*/
|
|
435
463
|
async klineCandlestickData(requestParameters) {
|
|
436
464
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.klineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
437
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
465
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
438
466
|
}
|
|
439
467
|
/**
|
|
440
468
|
* Get open interest for specific underlying asset on specific expiration date.
|
|
@@ -450,7 +478,7 @@ var MarketDataApi = class {
|
|
|
450
478
|
*/
|
|
451
479
|
async openInterest(requestParameters) {
|
|
452
480
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterest(requestParameters?.underlyingAsset, requestParameters?.expiration);
|
|
453
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
481
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
454
482
|
}
|
|
455
483
|
/**
|
|
456
484
|
* Option mark price and greek info.
|
|
@@ -466,7 +494,7 @@ var MarketDataApi = class {
|
|
|
466
494
|
*/
|
|
467
495
|
async optionMarkPrice(requestParameters = {}) {
|
|
468
496
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarkPrice(requestParameters?.symbol);
|
|
469
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
497
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
470
498
|
}
|
|
471
499
|
/**
|
|
472
500
|
* Check orderbook depth on specific symbol
|
|
@@ -487,7 +515,7 @@ var MarketDataApi = class {
|
|
|
487
515
|
*/
|
|
488
516
|
async orderBook(requestParameters) {
|
|
489
517
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderBook(requestParameters?.symbol, requestParameters?.limit);
|
|
490
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
518
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
491
519
|
}
|
|
492
520
|
/**
|
|
493
521
|
* Get recent block trades
|
|
@@ -503,7 +531,7 @@ var MarketDataApi = class {
|
|
|
503
531
|
*/
|
|
504
532
|
async recentBlockTradesList(requestParameters = {}) {
|
|
505
533
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentBlockTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
506
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
534
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
507
535
|
}
|
|
508
536
|
/**
|
|
509
537
|
* Get recent market trades
|
|
@@ -519,7 +547,7 @@ var MarketDataApi = class {
|
|
|
519
547
|
*/
|
|
520
548
|
async recentTradesList(requestParameters) {
|
|
521
549
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
522
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
550
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
523
551
|
}
|
|
524
552
|
/**
|
|
525
553
|
* Test connectivity to the Rest API.
|
|
@@ -534,7 +562,7 @@ var MarketDataApi = class {
|
|
|
534
562
|
*/
|
|
535
563
|
async testConnectivity() {
|
|
536
564
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
537
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
565
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
538
566
|
}
|
|
539
567
|
/**
|
|
540
568
|
* 24 hour rolling window price change statistics.
|
|
@@ -550,7 +578,7 @@ var MarketDataApi = class {
|
|
|
550
578
|
*/
|
|
551
579
|
async ticker24hrPriceChangeStatistics(requestParameters = {}) {
|
|
552
580
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.ticker24hrPriceChangeStatistics(requestParameters?.symbol);
|
|
553
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
581
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
554
582
|
}
|
|
555
583
|
};
|
|
556
584
|
|
|
@@ -577,6 +605,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
577
605
|
(0, __binance_common.assertParamExists)("acceptBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
578
606
|
const localVarQueryParameter = {};
|
|
579
607
|
const localVarBodyParameter = {};
|
|
608
|
+
const localVarHeaderParameter = {};
|
|
580
609
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
581
610
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
582
611
|
let _timeUnit;
|
|
@@ -586,12 +615,14 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
586
615
|
method: "POST",
|
|
587
616
|
queryParams: localVarQueryParameter,
|
|
588
617
|
bodyParams: localVarBodyParameter,
|
|
618
|
+
headerParams: localVarHeaderParameter,
|
|
589
619
|
timeUnit: _timeUnit
|
|
590
620
|
};
|
|
591
621
|
},
|
|
592
622
|
accountBlockTradeList: async (endTime, startTime, underlying, recvWindow) => {
|
|
593
623
|
const localVarQueryParameter = {};
|
|
594
624
|
const localVarBodyParameter = {};
|
|
625
|
+
const localVarHeaderParameter = {};
|
|
595
626
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
596
627
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
597
628
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
@@ -603,6 +634,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
603
634
|
method: "GET",
|
|
604
635
|
queryParams: localVarQueryParameter,
|
|
605
636
|
bodyParams: localVarBodyParameter,
|
|
637
|
+
headerParams: localVarHeaderParameter,
|
|
606
638
|
timeUnit: _timeUnit
|
|
607
639
|
};
|
|
608
640
|
},
|
|
@@ -610,6 +642,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
610
642
|
(0, __binance_common.assertParamExists)("cancelBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
611
643
|
const localVarQueryParameter = {};
|
|
612
644
|
const localVarBodyParameter = {};
|
|
645
|
+
const localVarHeaderParameter = {};
|
|
613
646
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
614
647
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
615
648
|
let _timeUnit;
|
|
@@ -619,6 +652,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
619
652
|
method: "DELETE",
|
|
620
653
|
queryParams: localVarQueryParameter,
|
|
621
654
|
bodyParams: localVarBodyParameter,
|
|
655
|
+
headerParams: localVarHeaderParameter,
|
|
622
656
|
timeUnit: _timeUnit
|
|
623
657
|
};
|
|
624
658
|
},
|
|
@@ -626,6 +660,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
626
660
|
(0, __binance_common.assertParamExists)("extendBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
627
661
|
const localVarQueryParameter = {};
|
|
628
662
|
const localVarBodyParameter = {};
|
|
663
|
+
const localVarHeaderParameter = {};
|
|
629
664
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
630
665
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
631
666
|
let _timeUnit;
|
|
@@ -635,6 +670,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
635
670
|
method: "PUT",
|
|
636
671
|
queryParams: localVarQueryParameter,
|
|
637
672
|
bodyParams: localVarBodyParameter,
|
|
673
|
+
headerParams: localVarHeaderParameter,
|
|
638
674
|
timeUnit: _timeUnit
|
|
639
675
|
};
|
|
640
676
|
},
|
|
@@ -643,6 +679,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
643
679
|
(0, __binance_common.assertParamExists)("newBlockTradeOrder", "legs", legs);
|
|
644
680
|
const localVarQueryParameter = {};
|
|
645
681
|
const localVarBodyParameter = {};
|
|
682
|
+
const localVarHeaderParameter = {};
|
|
646
683
|
if (liquidity !== void 0 && liquidity !== null) localVarQueryParameter["liquidity"] = liquidity;
|
|
647
684
|
if (legs) localVarQueryParameter["legs"] = legs;
|
|
648
685
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -653,6 +690,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
653
690
|
method: "POST",
|
|
654
691
|
queryParams: localVarQueryParameter,
|
|
655
692
|
bodyParams: localVarBodyParameter,
|
|
693
|
+
headerParams: localVarHeaderParameter,
|
|
656
694
|
timeUnit: _timeUnit
|
|
657
695
|
};
|
|
658
696
|
},
|
|
@@ -660,6 +698,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
660
698
|
(0, __binance_common.assertParamExists)("queryBlockTradeDetails", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
661
699
|
const localVarQueryParameter = {};
|
|
662
700
|
const localVarBodyParameter = {};
|
|
701
|
+
const localVarHeaderParameter = {};
|
|
663
702
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
664
703
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
665
704
|
let _timeUnit;
|
|
@@ -669,12 +708,14 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
669
708
|
method: "GET",
|
|
670
709
|
queryParams: localVarQueryParameter,
|
|
671
710
|
bodyParams: localVarBodyParameter,
|
|
711
|
+
headerParams: localVarHeaderParameter,
|
|
672
712
|
timeUnit: _timeUnit
|
|
673
713
|
};
|
|
674
714
|
},
|
|
675
715
|
queryBlockTradeOrder: async (blockOrderMatchingKey, endTime, startTime, underlying, recvWindow) => {
|
|
676
716
|
const localVarQueryParameter = {};
|
|
677
717
|
const localVarBodyParameter = {};
|
|
718
|
+
const localVarHeaderParameter = {};
|
|
678
719
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
679
720
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
680
721
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -687,6 +728,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
687
728
|
method: "GET",
|
|
688
729
|
queryParams: localVarQueryParameter,
|
|
689
730
|
bodyParams: localVarBodyParameter,
|
|
731
|
+
headerParams: localVarHeaderParameter,
|
|
690
732
|
timeUnit: _timeUnit
|
|
691
733
|
};
|
|
692
734
|
}
|
|
@@ -715,7 +757,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
715
757
|
*/
|
|
716
758
|
async acceptBlockTradeOrder(requestParameters) {
|
|
717
759
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
718
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
760
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
719
761
|
}
|
|
720
762
|
/**
|
|
721
763
|
* Gets block trades for a specific account.
|
|
@@ -731,7 +773,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
731
773
|
*/
|
|
732
774
|
async accountBlockTradeList(requestParameters = {}) {
|
|
733
775
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBlockTradeList(requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
|
|
734
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
776
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
735
777
|
}
|
|
736
778
|
/**
|
|
737
779
|
* Cancel a block trade order.
|
|
@@ -747,7 +789,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
747
789
|
*/
|
|
748
790
|
async cancelBlockTradeOrder(requestParameters) {
|
|
749
791
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
750
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
792
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
751
793
|
}
|
|
752
794
|
/**
|
|
753
795
|
* Extends a block trade expire time by 30 mins from the current time.
|
|
@@ -763,7 +805,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
763
805
|
*/
|
|
764
806
|
async extendBlockTradeOrder(requestParameters) {
|
|
765
807
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.extendBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
766
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
808
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
767
809
|
}
|
|
768
810
|
/**
|
|
769
811
|
* Send in a new block trade order.
|
|
@@ -779,7 +821,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
779
821
|
*/
|
|
780
822
|
async newBlockTradeOrder(requestParameters) {
|
|
781
823
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newBlockTradeOrder(requestParameters?.liquidity, requestParameters?.legs, requestParameters?.recvWindow);
|
|
782
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
824
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
783
825
|
}
|
|
784
826
|
/**
|
|
785
827
|
* Query block trade details; returns block trade details from counterparty's perspective.
|
|
@@ -795,7 +837,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
795
837
|
*/
|
|
796
838
|
async queryBlockTradeDetails(requestParameters) {
|
|
797
839
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeDetails(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
798
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
840
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
799
841
|
}
|
|
800
842
|
/**
|
|
801
843
|
* Check block trade order status.
|
|
@@ -811,7 +853,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
811
853
|
*/
|
|
812
854
|
async queryBlockTradeOrder(requestParameters = {}) {
|
|
813
855
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
|
|
814
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
856
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
815
857
|
}
|
|
816
858
|
};
|
|
817
859
|
|
|
@@ -838,6 +880,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
838
880
|
(0, __binance_common.assertParamExists)("autoCancelAllOpenOrders", "underlyings", underlyings);
|
|
839
881
|
const localVarQueryParameter = {};
|
|
840
882
|
const localVarBodyParameter = {};
|
|
883
|
+
const localVarHeaderParameter = {};
|
|
841
884
|
if (underlyings !== void 0 && underlyings !== null) localVarQueryParameter["underlyings"] = underlyings;
|
|
842
885
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
843
886
|
let _timeUnit;
|
|
@@ -847,12 +890,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
847
890
|
method: "POST",
|
|
848
891
|
queryParams: localVarQueryParameter,
|
|
849
892
|
bodyParams: localVarBodyParameter,
|
|
893
|
+
headerParams: localVarHeaderParameter,
|
|
850
894
|
timeUnit: _timeUnit
|
|
851
895
|
};
|
|
852
896
|
},
|
|
853
897
|
getAutoCancelAllOpenOrders: async (underlying, recvWindow) => {
|
|
854
898
|
const localVarQueryParameter = {};
|
|
855
899
|
const localVarBodyParameter = {};
|
|
900
|
+
const localVarHeaderParameter = {};
|
|
856
901
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
857
902
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
858
903
|
let _timeUnit;
|
|
@@ -862,12 +907,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
862
907
|
method: "GET",
|
|
863
908
|
queryParams: localVarQueryParameter,
|
|
864
909
|
bodyParams: localVarBodyParameter,
|
|
910
|
+
headerParams: localVarHeaderParameter,
|
|
865
911
|
timeUnit: _timeUnit
|
|
866
912
|
};
|
|
867
913
|
},
|
|
868
914
|
getMarketMakerProtectionConfig: async (underlying, recvWindow) => {
|
|
869
915
|
const localVarQueryParameter = {};
|
|
870
916
|
const localVarBodyParameter = {};
|
|
917
|
+
const localVarHeaderParameter = {};
|
|
871
918
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
872
919
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
873
920
|
let _timeUnit;
|
|
@@ -877,12 +924,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
877
924
|
method: "GET",
|
|
878
925
|
queryParams: localVarQueryParameter,
|
|
879
926
|
bodyParams: localVarBodyParameter,
|
|
927
|
+
headerParams: localVarHeaderParameter,
|
|
880
928
|
timeUnit: _timeUnit
|
|
881
929
|
};
|
|
882
930
|
},
|
|
883
931
|
resetMarketMakerProtectionConfig: async (underlying, recvWindow) => {
|
|
884
932
|
const localVarQueryParameter = {};
|
|
885
933
|
const localVarBodyParameter = {};
|
|
934
|
+
const localVarHeaderParameter = {};
|
|
886
935
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
887
936
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
888
937
|
let _timeUnit;
|
|
@@ -892,6 +941,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
892
941
|
method: "POST",
|
|
893
942
|
queryParams: localVarQueryParameter,
|
|
894
943
|
bodyParams: localVarBodyParameter,
|
|
944
|
+
headerParams: localVarHeaderParameter,
|
|
895
945
|
timeUnit: _timeUnit
|
|
896
946
|
};
|
|
897
947
|
},
|
|
@@ -900,6 +950,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
900
950
|
(0, __binance_common.assertParamExists)("setAutoCancelAllOpenOrders", "countdownTime", countdownTime);
|
|
901
951
|
const localVarQueryParameter = {};
|
|
902
952
|
const localVarBodyParameter = {};
|
|
953
|
+
const localVarHeaderParameter = {};
|
|
903
954
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
904
955
|
if (countdownTime !== void 0 && countdownTime !== null) localVarQueryParameter["countdownTime"] = countdownTime;
|
|
905
956
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -910,12 +961,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
910
961
|
method: "POST",
|
|
911
962
|
queryParams: localVarQueryParameter,
|
|
912
963
|
bodyParams: localVarBodyParameter,
|
|
964
|
+
headerParams: localVarHeaderParameter,
|
|
913
965
|
timeUnit: _timeUnit
|
|
914
966
|
};
|
|
915
967
|
},
|
|
916
968
|
setMarketMakerProtectionConfig: async (underlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindow) => {
|
|
917
969
|
const localVarQueryParameter = {};
|
|
918
970
|
const localVarBodyParameter = {};
|
|
971
|
+
const localVarHeaderParameter = {};
|
|
919
972
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
920
973
|
if (windowTimeInMilliseconds !== void 0 && windowTimeInMilliseconds !== null) localVarQueryParameter["windowTimeInMilliseconds"] = windowTimeInMilliseconds;
|
|
921
974
|
if (frozenTimeInMilliseconds !== void 0 && frozenTimeInMilliseconds !== null) localVarQueryParameter["frozenTimeInMilliseconds"] = frozenTimeInMilliseconds;
|
|
@@ -929,6 +982,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
929
982
|
method: "POST",
|
|
930
983
|
queryParams: localVarQueryParameter,
|
|
931
984
|
bodyParams: localVarBodyParameter,
|
|
985
|
+
headerParams: localVarHeaderParameter,
|
|
932
986
|
timeUnit: _timeUnit
|
|
933
987
|
};
|
|
934
988
|
}
|
|
@@ -959,7 +1013,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
959
1013
|
*/
|
|
960
1014
|
async autoCancelAllOpenOrders(requestParameters) {
|
|
961
1015
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.autoCancelAllOpenOrders(requestParameters?.underlyings, requestParameters?.recvWindow);
|
|
962
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1016
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
963
1017
|
}
|
|
964
1018
|
/**
|
|
965
1019
|
* 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.
|
|
@@ -977,7 +1031,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
977
1031
|
*/
|
|
978
1032
|
async getAutoCancelAllOpenOrders(requestParameters = {}) {
|
|
979
1033
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
980
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1034
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
981
1035
|
}
|
|
982
1036
|
/**
|
|
983
1037
|
* Get config for MMP.
|
|
@@ -993,7 +1047,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
993
1047
|
*/
|
|
994
1048
|
async getMarketMakerProtectionConfig(requestParameters = {}) {
|
|
995
1049
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
996
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1050
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
997
1051
|
}
|
|
998
1052
|
/**
|
|
999
1053
|
* Reset MMP, start MMP order again.
|
|
@@ -1009,7 +1063,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1009
1063
|
*/
|
|
1010
1064
|
async resetMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1011
1065
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.resetMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1012
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1066
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1013
1067
|
}
|
|
1014
1068
|
/**
|
|
1015
1069
|
* 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.
|
|
@@ -1031,7 +1085,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1031
1085
|
*/
|
|
1032
1086
|
async setAutoCancelAllOpenOrders(requestParameters) {
|
|
1033
1087
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.countdownTime, requestParameters?.recvWindow);
|
|
1034
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1088
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1035
1089
|
}
|
|
1036
1090
|
/**
|
|
1037
1091
|
* Set config for MMP.
|
|
@@ -1048,7 +1102,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1048
1102
|
*/
|
|
1049
1103
|
async setMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1050
1104
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.windowTimeInMilliseconds, requestParameters?.frozenTimeInMilliseconds, requestParameters?.qtyLimit, requestParameters?.deltaLimit, requestParameters?.recvWindow);
|
|
1051
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1105
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1052
1106
|
}
|
|
1053
1107
|
};
|
|
1054
1108
|
|
|
@@ -1074,6 +1128,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1074
1128
|
accountTradeList: async (symbol, fromId, startTime, endTime, limit, recvWindow) => {
|
|
1075
1129
|
const localVarQueryParameter = {};
|
|
1076
1130
|
const localVarBodyParameter = {};
|
|
1131
|
+
const localVarHeaderParameter = {};
|
|
1077
1132
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1078
1133
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
1079
1134
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1087,6 +1142,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1087
1142
|
method: "GET",
|
|
1088
1143
|
queryParams: localVarQueryParameter,
|
|
1089
1144
|
bodyParams: localVarBodyParameter,
|
|
1145
|
+
headerParams: localVarHeaderParameter,
|
|
1090
1146
|
timeUnit: _timeUnit
|
|
1091
1147
|
};
|
|
1092
1148
|
},
|
|
@@ -1094,6 +1150,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1094
1150
|
(0, __binance_common.assertParamExists)("cancelAllOptionOrdersByUnderlying", "underlying", underlying);
|
|
1095
1151
|
const localVarQueryParameter = {};
|
|
1096
1152
|
const localVarBodyParameter = {};
|
|
1153
|
+
const localVarHeaderParameter = {};
|
|
1097
1154
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
1098
1155
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1099
1156
|
let _timeUnit;
|
|
@@ -1103,6 +1160,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1103
1160
|
method: "DELETE",
|
|
1104
1161
|
queryParams: localVarQueryParameter,
|
|
1105
1162
|
bodyParams: localVarBodyParameter,
|
|
1163
|
+
headerParams: localVarHeaderParameter,
|
|
1106
1164
|
timeUnit: _timeUnit
|
|
1107
1165
|
};
|
|
1108
1166
|
},
|
|
@@ -1110,6 +1168,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1110
1168
|
(0, __binance_common.assertParamExists)("cancelAllOptionOrdersOnSpecificSymbol", "symbol", symbol);
|
|
1111
1169
|
const localVarQueryParameter = {};
|
|
1112
1170
|
const localVarBodyParameter = {};
|
|
1171
|
+
const localVarHeaderParameter = {};
|
|
1113
1172
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1114
1173
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1115
1174
|
let _timeUnit;
|
|
@@ -1119,6 +1178,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1119
1178
|
method: "DELETE",
|
|
1120
1179
|
queryParams: localVarQueryParameter,
|
|
1121
1180
|
bodyParams: localVarBodyParameter,
|
|
1181
|
+
headerParams: localVarHeaderParameter,
|
|
1122
1182
|
timeUnit: _timeUnit
|
|
1123
1183
|
};
|
|
1124
1184
|
},
|
|
@@ -1126,6 +1186,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1126
1186
|
(0, __binance_common.assertParamExists)("cancelMultipleOptionOrders", "symbol", symbol);
|
|
1127
1187
|
const localVarQueryParameter = {};
|
|
1128
1188
|
const localVarBodyParameter = {};
|
|
1189
|
+
const localVarHeaderParameter = {};
|
|
1129
1190
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1130
1191
|
if (orderIds) localVarQueryParameter["orderIds"] = orderIds;
|
|
1131
1192
|
if (clientOrderIds) localVarQueryParameter["clientOrderIds"] = clientOrderIds;
|
|
@@ -1137,6 +1198,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1137
1198
|
method: "DELETE",
|
|
1138
1199
|
queryParams: localVarQueryParameter,
|
|
1139
1200
|
bodyParams: localVarBodyParameter,
|
|
1201
|
+
headerParams: localVarHeaderParameter,
|
|
1140
1202
|
timeUnit: _timeUnit
|
|
1141
1203
|
};
|
|
1142
1204
|
},
|
|
@@ -1144,6 +1206,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1144
1206
|
(0, __binance_common.assertParamExists)("cancelOptionOrder", "symbol", symbol);
|
|
1145
1207
|
const localVarQueryParameter = {};
|
|
1146
1208
|
const localVarBodyParameter = {};
|
|
1209
|
+
const localVarHeaderParameter = {};
|
|
1147
1210
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1148
1211
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1149
1212
|
if (clientOrderId !== void 0 && clientOrderId !== null) localVarQueryParameter["clientOrderId"] = clientOrderId;
|
|
@@ -1155,6 +1218,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1155
1218
|
method: "DELETE",
|
|
1156
1219
|
queryParams: localVarQueryParameter,
|
|
1157
1220
|
bodyParams: localVarBodyParameter,
|
|
1221
|
+
headerParams: localVarHeaderParameter,
|
|
1158
1222
|
timeUnit: _timeUnit
|
|
1159
1223
|
};
|
|
1160
1224
|
},
|
|
@@ -1165,6 +1229,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1165
1229
|
(0, __binance_common.assertParamExists)("newOrder", "quantity", quantity);
|
|
1166
1230
|
const localVarQueryParameter = {};
|
|
1167
1231
|
const localVarBodyParameter = {};
|
|
1232
|
+
const localVarHeaderParameter = {};
|
|
1168
1233
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1169
1234
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1170
1235
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -1185,12 +1250,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1185
1250
|
method: "POST",
|
|
1186
1251
|
queryParams: localVarQueryParameter,
|
|
1187
1252
|
bodyParams: localVarBodyParameter,
|
|
1253
|
+
headerParams: localVarHeaderParameter,
|
|
1188
1254
|
timeUnit: _timeUnit
|
|
1189
1255
|
};
|
|
1190
1256
|
},
|
|
1191
1257
|
optionPositionInformation: async (symbol, recvWindow) => {
|
|
1192
1258
|
const localVarQueryParameter = {};
|
|
1193
1259
|
const localVarBodyParameter = {};
|
|
1260
|
+
const localVarHeaderParameter = {};
|
|
1194
1261
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1195
1262
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1196
1263
|
let _timeUnit;
|
|
@@ -1200,6 +1267,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1200
1267
|
method: "GET",
|
|
1201
1268
|
queryParams: localVarQueryParameter,
|
|
1202
1269
|
bodyParams: localVarBodyParameter,
|
|
1270
|
+
headerParams: localVarHeaderParameter,
|
|
1203
1271
|
timeUnit: _timeUnit
|
|
1204
1272
|
};
|
|
1205
1273
|
},
|
|
@@ -1207,6 +1275,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1207
1275
|
(0, __binance_common.assertParamExists)("placeMultipleOrders", "orders", orders);
|
|
1208
1276
|
const localVarQueryParameter = {};
|
|
1209
1277
|
const localVarBodyParameter = {};
|
|
1278
|
+
const localVarHeaderParameter = {};
|
|
1210
1279
|
if (orders) localVarQueryParameter["orders"] = orders;
|
|
1211
1280
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1212
1281
|
let _timeUnit;
|
|
@@ -1216,12 +1285,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1216
1285
|
method: "POST",
|
|
1217
1286
|
queryParams: localVarQueryParameter,
|
|
1218
1287
|
bodyParams: localVarBodyParameter,
|
|
1288
|
+
headerParams: localVarHeaderParameter,
|
|
1219
1289
|
timeUnit: _timeUnit
|
|
1220
1290
|
};
|
|
1221
1291
|
},
|
|
1222
1292
|
queryCurrentOpenOptionOrders: async (symbol, orderId, startTime, endTime, recvWindow) => {
|
|
1223
1293
|
const localVarQueryParameter = {};
|
|
1224
1294
|
const localVarBodyParameter = {};
|
|
1295
|
+
const localVarHeaderParameter = {};
|
|
1225
1296
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1226
1297
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1227
1298
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1234,6 +1305,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1234
1305
|
method: "GET",
|
|
1235
1306
|
queryParams: localVarQueryParameter,
|
|
1236
1307
|
bodyParams: localVarBodyParameter,
|
|
1308
|
+
headerParams: localVarHeaderParameter,
|
|
1237
1309
|
timeUnit: _timeUnit
|
|
1238
1310
|
};
|
|
1239
1311
|
},
|
|
@@ -1241,6 +1313,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1241
1313
|
(0, __binance_common.assertParamExists)("queryOptionOrderHistory", "symbol", symbol);
|
|
1242
1314
|
const localVarQueryParameter = {};
|
|
1243
1315
|
const localVarBodyParameter = {};
|
|
1316
|
+
const localVarHeaderParameter = {};
|
|
1244
1317
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1245
1318
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1246
1319
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1254,6 +1327,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1254
1327
|
method: "GET",
|
|
1255
1328
|
queryParams: localVarQueryParameter,
|
|
1256
1329
|
bodyParams: localVarBodyParameter,
|
|
1330
|
+
headerParams: localVarHeaderParameter,
|
|
1257
1331
|
timeUnit: _timeUnit
|
|
1258
1332
|
};
|
|
1259
1333
|
},
|
|
@@ -1261,6 +1335,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1261
1335
|
(0, __binance_common.assertParamExists)("querySingleOrder", "symbol", symbol);
|
|
1262
1336
|
const localVarQueryParameter = {};
|
|
1263
1337
|
const localVarBodyParameter = {};
|
|
1338
|
+
const localVarHeaderParameter = {};
|
|
1264
1339
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1265
1340
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1266
1341
|
if (clientOrderId !== void 0 && clientOrderId !== null) localVarQueryParameter["clientOrderId"] = clientOrderId;
|
|
@@ -1272,12 +1347,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1272
1347
|
method: "GET",
|
|
1273
1348
|
queryParams: localVarQueryParameter,
|
|
1274
1349
|
bodyParams: localVarBodyParameter,
|
|
1350
|
+
headerParams: localVarHeaderParameter,
|
|
1275
1351
|
timeUnit: _timeUnit
|
|
1276
1352
|
};
|
|
1277
1353
|
},
|
|
1278
1354
|
userCommission: async (recvWindow) => {
|
|
1279
1355
|
const localVarQueryParameter = {};
|
|
1280
1356
|
const localVarBodyParameter = {};
|
|
1357
|
+
const localVarHeaderParameter = {};
|
|
1281
1358
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1282
1359
|
let _timeUnit;
|
|
1283
1360
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1286,12 +1363,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1286
1363
|
method: "GET",
|
|
1287
1364
|
queryParams: localVarQueryParameter,
|
|
1288
1365
|
bodyParams: localVarBodyParameter,
|
|
1366
|
+
headerParams: localVarHeaderParameter,
|
|
1289
1367
|
timeUnit: _timeUnit
|
|
1290
1368
|
};
|
|
1291
1369
|
},
|
|
1292
1370
|
userExerciseRecord: async (symbol, startTime, endTime, limit, recvWindow) => {
|
|
1293
1371
|
const localVarQueryParameter = {};
|
|
1294
1372
|
const localVarBodyParameter = {};
|
|
1373
|
+
const localVarHeaderParameter = {};
|
|
1295
1374
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1296
1375
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1297
1376
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -1304,6 +1383,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1304
1383
|
method: "GET",
|
|
1305
1384
|
queryParams: localVarQueryParameter,
|
|
1306
1385
|
bodyParams: localVarBodyParameter,
|
|
1386
|
+
headerParams: localVarHeaderParameter,
|
|
1307
1387
|
timeUnit: _timeUnit
|
|
1308
1388
|
};
|
|
1309
1389
|
}
|
|
@@ -1334,7 +1414,7 @@ var TradeApi = class {
|
|
|
1334
1414
|
*/
|
|
1335
1415
|
async accountTradeList(requestParameters = {}) {
|
|
1336
1416
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountTradeList(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1337
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1417
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1338
1418
|
}
|
|
1339
1419
|
/**
|
|
1340
1420
|
* Cancel all active orders on specified underlying.
|
|
@@ -1350,7 +1430,7 @@ var TradeApi = class {
|
|
|
1350
1430
|
*/
|
|
1351
1431
|
async cancelAllOptionOrdersByUnderlying(requestParameters) {
|
|
1352
1432
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersByUnderlying(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1353
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1433
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1354
1434
|
}
|
|
1355
1435
|
/**
|
|
1356
1436
|
* Cancel all active order on a symbol.
|
|
@@ -1366,7 +1446,7 @@ var TradeApi = class {
|
|
|
1366
1446
|
*/
|
|
1367
1447
|
async cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
|
|
1368
1448
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersOnSpecificSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1369
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1449
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1370
1450
|
}
|
|
1371
1451
|
/**
|
|
1372
1452
|
* Cancel multiple orders.
|
|
@@ -1384,7 +1464,7 @@ var TradeApi = class {
|
|
|
1384
1464
|
*/
|
|
1385
1465
|
async cancelMultipleOptionOrders(requestParameters) {
|
|
1386
1466
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMultipleOptionOrders(requestParameters?.symbol, requestParameters?.orderIds, requestParameters?.clientOrderIds, requestParameters?.recvWindow);
|
|
1387
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1467
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1388
1468
|
}
|
|
1389
1469
|
/**
|
|
1390
1470
|
* Cancel an active order.
|
|
@@ -1402,7 +1482,7 @@ var TradeApi = class {
|
|
|
1402
1482
|
*/
|
|
1403
1483
|
async cancelOptionOrder(requestParameters) {
|
|
1404
1484
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelOptionOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
|
|
1405
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1485
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1406
1486
|
}
|
|
1407
1487
|
/**
|
|
1408
1488
|
* Send a new order.
|
|
@@ -1418,7 +1498,7 @@ var TradeApi = class {
|
|
|
1418
1498
|
*/
|
|
1419
1499
|
async newOrder(requestParameters) {
|
|
1420
1500
|
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?.selfTradePreventionMode, requestParameters?.recvWindow);
|
|
1421
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1501
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1422
1502
|
}
|
|
1423
1503
|
/**
|
|
1424
1504
|
* Get current position information.
|
|
@@ -1434,7 +1514,7 @@ var TradeApi = class {
|
|
|
1434
1514
|
*/
|
|
1435
1515
|
async optionPositionInformation(requestParameters = {}) {
|
|
1436
1516
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1437
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1517
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1438
1518
|
}
|
|
1439
1519
|
/**
|
|
1440
1520
|
* Send multiple option orders.
|
|
@@ -1453,7 +1533,7 @@ var TradeApi = class {
|
|
|
1453
1533
|
*/
|
|
1454
1534
|
async placeMultipleOrders(requestParameters) {
|
|
1455
1535
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeMultipleOrders(requestParameters?.orders, requestParameters?.recvWindow);
|
|
1456
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1536
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1457
1537
|
}
|
|
1458
1538
|
/**
|
|
1459
1539
|
* Query current all open orders, status: ACCEPTED PARTIALLY_FILLED
|
|
@@ -1469,7 +1549,7 @@ var TradeApi = class {
|
|
|
1469
1549
|
*/
|
|
1470
1550
|
async queryCurrentOpenOptionOrders(requestParameters = {}) {
|
|
1471
1551
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentOpenOptionOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1472
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1552
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1473
1553
|
}
|
|
1474
1554
|
/**
|
|
1475
1555
|
* Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.
|
|
@@ -1485,7 +1565,7 @@ var TradeApi = class {
|
|
|
1485
1565
|
*/
|
|
1486
1566
|
async queryOptionOrderHistory(requestParameters) {
|
|
1487
1567
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOptionOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1488
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1568
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1489
1569
|
}
|
|
1490
1570
|
/**
|
|
1491
1571
|
* Check an order status.
|
|
@@ -1509,7 +1589,7 @@ var TradeApi = class {
|
|
|
1509
1589
|
*/
|
|
1510
1590
|
async querySingleOrder(requestParameters) {
|
|
1511
1591
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySingleOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
|
|
1512
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1592
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1513
1593
|
}
|
|
1514
1594
|
/**
|
|
1515
1595
|
* Get account commission.
|
|
@@ -1525,7 +1605,7 @@ var TradeApi = class {
|
|
|
1525
1605
|
*/
|
|
1526
1606
|
async userCommission(requestParameters = {}) {
|
|
1527
1607
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userCommission(requestParameters?.recvWindow);
|
|
1528
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1608
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1529
1609
|
}
|
|
1530
1610
|
/**
|
|
1531
1611
|
* Get account exercise records.
|
|
@@ -1541,7 +1621,7 @@ var TradeApi = class {
|
|
|
1541
1621
|
*/
|
|
1542
1622
|
async userExerciseRecord(requestParameters = {}) {
|
|
1543
1623
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userExerciseRecord(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1544
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1624
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1545
1625
|
}
|
|
1546
1626
|
};
|
|
1547
1627
|
let NewOrderSideEnum = /* @__PURE__ */ function(NewOrderSideEnum$1) {
|
|
@@ -1594,6 +1674,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1594
1674
|
closeUserDataStream: async () => {
|
|
1595
1675
|
const localVarQueryParameter = {};
|
|
1596
1676
|
const localVarBodyParameter = {};
|
|
1677
|
+
const localVarHeaderParameter = {};
|
|
1597
1678
|
let _timeUnit;
|
|
1598
1679
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1599
1680
|
return {
|
|
@@ -1601,12 +1682,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1601
1682
|
method: "DELETE",
|
|
1602
1683
|
queryParams: localVarQueryParameter,
|
|
1603
1684
|
bodyParams: localVarBodyParameter,
|
|
1685
|
+
headerParams: localVarHeaderParameter,
|
|
1604
1686
|
timeUnit: _timeUnit
|
|
1605
1687
|
};
|
|
1606
1688
|
},
|
|
1607
1689
|
keepaliveUserDataStream: async () => {
|
|
1608
1690
|
const localVarQueryParameter = {};
|
|
1609
1691
|
const localVarBodyParameter = {};
|
|
1692
|
+
const localVarHeaderParameter = {};
|
|
1610
1693
|
let _timeUnit;
|
|
1611
1694
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1612
1695
|
return {
|
|
@@ -1614,12 +1697,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1614
1697
|
method: "PUT",
|
|
1615
1698
|
queryParams: localVarQueryParameter,
|
|
1616
1699
|
bodyParams: localVarBodyParameter,
|
|
1700
|
+
headerParams: localVarHeaderParameter,
|
|
1617
1701
|
timeUnit: _timeUnit
|
|
1618
1702
|
};
|
|
1619
1703
|
},
|
|
1620
1704
|
startUserDataStream: async () => {
|
|
1621
1705
|
const localVarQueryParameter = {};
|
|
1622
1706
|
const localVarBodyParameter = {};
|
|
1707
|
+
const localVarHeaderParameter = {};
|
|
1623
1708
|
let _timeUnit;
|
|
1624
1709
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1625
1710
|
return {
|
|
@@ -1627,6 +1712,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1627
1712
|
method: "POST",
|
|
1628
1713
|
queryParams: localVarQueryParameter,
|
|
1629
1714
|
bodyParams: localVarBodyParameter,
|
|
1715
|
+
headerParams: localVarHeaderParameter,
|
|
1630
1716
|
timeUnit: _timeUnit
|
|
1631
1717
|
};
|
|
1632
1718
|
}
|
|
@@ -1654,7 +1740,7 @@ var UserDataStreamsApi = class {
|
|
|
1654
1740
|
*/
|
|
1655
1741
|
async closeUserDataStream() {
|
|
1656
1742
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
1657
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1743
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1658
1744
|
}
|
|
1659
1745
|
/**
|
|
1660
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.
|
|
@@ -1669,7 +1755,7 @@ var UserDataStreamsApi = class {
|
|
|
1669
1755
|
*/
|
|
1670
1756
|
async keepaliveUserDataStream() {
|
|
1671
1757
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
1672
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1758
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1673
1759
|
}
|
|
1674
1760
|
/**
|
|
1675
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.
|
|
@@ -1684,7 +1770,7 @@ var UserDataStreamsApi = class {
|
|
|
1684
1770
|
*/
|
|
1685
1771
|
async startUserDataStream() {
|
|
1686
1772
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
1687
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1773
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1688
1774
|
}
|
|
1689
1775
|
};
|
|
1690
1776
|
|
|
@@ -1722,7 +1808,7 @@ var RestAPI = class {
|
|
|
1722
1808
|
* @returns A promise resolving to the response data object.
|
|
1723
1809
|
*/
|
|
1724
1810
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1725
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
1811
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
1726
1812
|
}
|
|
1727
1813
|
/**
|
|
1728
1814
|
* Generic function to send a signed request.
|
|
@@ -1734,7 +1820,7 @@ var RestAPI = class {
|
|
|
1734
1820
|
* @returns A promise resolving to the response data object.
|
|
1735
1821
|
*/
|
|
1736
1822
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1737
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
1823
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
1738
1824
|
}
|
|
1739
1825
|
/**
|
|
1740
1826
|
* Query account funding flows.
|