@binance/derivatives-trading-usds-futures 29.0.0 → 29.0.2
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 +288 -98
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +288 -98
- 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-usds-futures";
|
|
17
|
-
var version = "29.0.
|
|
17
|
+
var version = "29.0.2";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/types/modify-multiple-orders-batch-orders-parameter-inner.ts
|
|
@@ -96,6 +96,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
96
96
|
accountInformationV2: async (recvWindow) => {
|
|
97
97
|
const localVarQueryParameter = {};
|
|
98
98
|
const localVarBodyParameter = {};
|
|
99
|
+
const localVarHeaderParameter = {};
|
|
99
100
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
100
101
|
let _timeUnit;
|
|
101
102
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -104,12 +105,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
104
105
|
method: "GET",
|
|
105
106
|
queryParams: localVarQueryParameter,
|
|
106
107
|
bodyParams: localVarBodyParameter,
|
|
108
|
+
headerParams: localVarHeaderParameter,
|
|
107
109
|
timeUnit: _timeUnit
|
|
108
110
|
};
|
|
109
111
|
},
|
|
110
112
|
accountInformationV3: async (recvWindow) => {
|
|
111
113
|
const localVarQueryParameter = {};
|
|
112
114
|
const localVarBodyParameter = {};
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
113
116
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
114
117
|
let _timeUnit;
|
|
115
118
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -118,12 +121,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
118
121
|
method: "GET",
|
|
119
122
|
queryParams: localVarQueryParameter,
|
|
120
123
|
bodyParams: localVarBodyParameter,
|
|
124
|
+
headerParams: localVarHeaderParameter,
|
|
121
125
|
timeUnit: _timeUnit
|
|
122
126
|
};
|
|
123
127
|
},
|
|
124
128
|
futuresAccountBalanceV2: async (recvWindow) => {
|
|
125
129
|
const localVarQueryParameter = {};
|
|
126
130
|
const localVarBodyParameter = {};
|
|
131
|
+
const localVarHeaderParameter = {};
|
|
127
132
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
128
133
|
let _timeUnit;
|
|
129
134
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -132,12 +137,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
132
137
|
method: "GET",
|
|
133
138
|
queryParams: localVarQueryParameter,
|
|
134
139
|
bodyParams: localVarBodyParameter,
|
|
140
|
+
headerParams: localVarHeaderParameter,
|
|
135
141
|
timeUnit: _timeUnit
|
|
136
142
|
};
|
|
137
143
|
},
|
|
138
144
|
futuresAccountBalanceV3: async (recvWindow) => {
|
|
139
145
|
const localVarQueryParameter = {};
|
|
140
146
|
const localVarBodyParameter = {};
|
|
147
|
+
const localVarHeaderParameter = {};
|
|
141
148
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
142
149
|
let _timeUnit;
|
|
143
150
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -146,12 +153,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
146
153
|
method: "GET",
|
|
147
154
|
queryParams: localVarQueryParameter,
|
|
148
155
|
bodyParams: localVarBodyParameter,
|
|
156
|
+
headerParams: localVarHeaderParameter,
|
|
149
157
|
timeUnit: _timeUnit
|
|
150
158
|
};
|
|
151
159
|
},
|
|
152
160
|
futuresAccountConfiguration: async (recvWindow) => {
|
|
153
161
|
const localVarQueryParameter = {};
|
|
154
162
|
const localVarBodyParameter = {};
|
|
163
|
+
const localVarHeaderParameter = {};
|
|
155
164
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
156
165
|
let _timeUnit;
|
|
157
166
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -160,12 +169,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
160
169
|
method: "GET",
|
|
161
170
|
queryParams: localVarQueryParameter,
|
|
162
171
|
bodyParams: localVarBodyParameter,
|
|
172
|
+
headerParams: localVarHeaderParameter,
|
|
163
173
|
timeUnit: _timeUnit
|
|
164
174
|
};
|
|
165
175
|
},
|
|
166
176
|
futuresTradingQuantitativeRulesIndicators: async (symbol, recvWindow) => {
|
|
167
177
|
const localVarQueryParameter = {};
|
|
168
178
|
const localVarBodyParameter = {};
|
|
179
|
+
const localVarHeaderParameter = {};
|
|
169
180
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
170
181
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
171
182
|
let _timeUnit;
|
|
@@ -175,12 +186,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
175
186
|
method: "GET",
|
|
176
187
|
queryParams: localVarQueryParameter,
|
|
177
188
|
bodyParams: localVarBodyParameter,
|
|
189
|
+
headerParams: localVarHeaderParameter,
|
|
178
190
|
timeUnit: _timeUnit
|
|
179
191
|
};
|
|
180
192
|
},
|
|
181
193
|
getBnbBurnStatus: async (recvWindow) => {
|
|
182
194
|
const localVarQueryParameter = {};
|
|
183
195
|
const localVarBodyParameter = {};
|
|
196
|
+
const localVarHeaderParameter = {};
|
|
184
197
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
185
198
|
let _timeUnit;
|
|
186
199
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -189,12 +202,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
189
202
|
method: "GET",
|
|
190
203
|
queryParams: localVarQueryParameter,
|
|
191
204
|
bodyParams: localVarBodyParameter,
|
|
205
|
+
headerParams: localVarHeaderParameter,
|
|
192
206
|
timeUnit: _timeUnit
|
|
193
207
|
};
|
|
194
208
|
},
|
|
195
209
|
getCurrentMultiAssetsMode: async (recvWindow) => {
|
|
196
210
|
const localVarQueryParameter = {};
|
|
197
211
|
const localVarBodyParameter = {};
|
|
212
|
+
const localVarHeaderParameter = {};
|
|
198
213
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
199
214
|
let _timeUnit;
|
|
200
215
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -203,12 +218,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
203
218
|
method: "GET",
|
|
204
219
|
queryParams: localVarQueryParameter,
|
|
205
220
|
bodyParams: localVarBodyParameter,
|
|
221
|
+
headerParams: localVarHeaderParameter,
|
|
206
222
|
timeUnit: _timeUnit
|
|
207
223
|
};
|
|
208
224
|
},
|
|
209
225
|
getCurrentPositionMode: async (recvWindow) => {
|
|
210
226
|
const localVarQueryParameter = {};
|
|
211
227
|
const localVarBodyParameter = {};
|
|
228
|
+
const localVarHeaderParameter = {};
|
|
212
229
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
213
230
|
let _timeUnit;
|
|
214
231
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -217,6 +234,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
217
234
|
method: "GET",
|
|
218
235
|
queryParams: localVarQueryParameter,
|
|
219
236
|
bodyParams: localVarBodyParameter,
|
|
237
|
+
headerParams: localVarHeaderParameter,
|
|
220
238
|
timeUnit: _timeUnit
|
|
221
239
|
};
|
|
222
240
|
},
|
|
@@ -225,6 +243,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
225
243
|
(0, __binance_common.assertParamExists)("getDownloadIdForFuturesOrderHistory", "endTime", endTime);
|
|
226
244
|
const localVarQueryParameter = {};
|
|
227
245
|
const localVarBodyParameter = {};
|
|
246
|
+
const localVarHeaderParameter = {};
|
|
228
247
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
229
248
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
230
249
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -235,6 +254,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
235
254
|
method: "GET",
|
|
236
255
|
queryParams: localVarQueryParameter,
|
|
237
256
|
bodyParams: localVarBodyParameter,
|
|
257
|
+
headerParams: localVarHeaderParameter,
|
|
238
258
|
timeUnit: _timeUnit
|
|
239
259
|
};
|
|
240
260
|
},
|
|
@@ -243,6 +263,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
243
263
|
(0, __binance_common.assertParamExists)("getDownloadIdForFuturesTradeHistory", "endTime", endTime);
|
|
244
264
|
const localVarQueryParameter = {};
|
|
245
265
|
const localVarBodyParameter = {};
|
|
266
|
+
const localVarHeaderParameter = {};
|
|
246
267
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
247
268
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
248
269
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -253,6 +274,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
253
274
|
method: "GET",
|
|
254
275
|
queryParams: localVarQueryParameter,
|
|
255
276
|
bodyParams: localVarBodyParameter,
|
|
277
|
+
headerParams: localVarHeaderParameter,
|
|
256
278
|
timeUnit: _timeUnit
|
|
257
279
|
};
|
|
258
280
|
},
|
|
@@ -261,6 +283,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
261
283
|
(0, __binance_common.assertParamExists)("getDownloadIdForFuturesTransactionHistory", "endTime", endTime);
|
|
262
284
|
const localVarQueryParameter = {};
|
|
263
285
|
const localVarBodyParameter = {};
|
|
286
|
+
const localVarHeaderParameter = {};
|
|
264
287
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
265
288
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
266
289
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -271,6 +294,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
271
294
|
method: "GET",
|
|
272
295
|
queryParams: localVarQueryParameter,
|
|
273
296
|
bodyParams: localVarBodyParameter,
|
|
297
|
+
headerParams: localVarHeaderParameter,
|
|
274
298
|
timeUnit: _timeUnit
|
|
275
299
|
};
|
|
276
300
|
},
|
|
@@ -278,6 +302,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
278
302
|
(0, __binance_common.assertParamExists)("getFuturesOrderHistoryDownloadLinkById", "downloadId", downloadId);
|
|
279
303
|
const localVarQueryParameter = {};
|
|
280
304
|
const localVarBodyParameter = {};
|
|
305
|
+
const localVarHeaderParameter = {};
|
|
281
306
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
282
307
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
283
308
|
let _timeUnit;
|
|
@@ -287,6 +312,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
287
312
|
method: "GET",
|
|
288
313
|
queryParams: localVarQueryParameter,
|
|
289
314
|
bodyParams: localVarBodyParameter,
|
|
315
|
+
headerParams: localVarHeaderParameter,
|
|
290
316
|
timeUnit: _timeUnit
|
|
291
317
|
};
|
|
292
318
|
},
|
|
@@ -294,6 +320,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
294
320
|
(0, __binance_common.assertParamExists)("getFuturesTradeDownloadLinkById", "downloadId", downloadId);
|
|
295
321
|
const localVarQueryParameter = {};
|
|
296
322
|
const localVarBodyParameter = {};
|
|
323
|
+
const localVarHeaderParameter = {};
|
|
297
324
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
298
325
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
299
326
|
let _timeUnit;
|
|
@@ -303,6 +330,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
303
330
|
method: "GET",
|
|
304
331
|
queryParams: localVarQueryParameter,
|
|
305
332
|
bodyParams: localVarBodyParameter,
|
|
333
|
+
headerParams: localVarHeaderParameter,
|
|
306
334
|
timeUnit: _timeUnit
|
|
307
335
|
};
|
|
308
336
|
},
|
|
@@ -310,6 +338,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
310
338
|
(0, __binance_common.assertParamExists)("getFuturesTransactionHistoryDownloadLinkById", "downloadId", downloadId);
|
|
311
339
|
const localVarQueryParameter = {};
|
|
312
340
|
const localVarBodyParameter = {};
|
|
341
|
+
const localVarHeaderParameter = {};
|
|
313
342
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
314
343
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
315
344
|
let _timeUnit;
|
|
@@ -319,12 +348,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
319
348
|
method: "GET",
|
|
320
349
|
queryParams: localVarQueryParameter,
|
|
321
350
|
bodyParams: localVarBodyParameter,
|
|
351
|
+
headerParams: localVarHeaderParameter,
|
|
322
352
|
timeUnit: _timeUnit
|
|
323
353
|
};
|
|
324
354
|
},
|
|
325
355
|
getIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
326
356
|
const localVarQueryParameter = {};
|
|
327
357
|
const localVarBodyParameter = {};
|
|
358
|
+
const localVarHeaderParameter = {};
|
|
328
359
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
329
360
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
330
361
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -339,12 +370,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
339
370
|
method: "GET",
|
|
340
371
|
queryParams: localVarQueryParameter,
|
|
341
372
|
bodyParams: localVarBodyParameter,
|
|
373
|
+
headerParams: localVarHeaderParameter,
|
|
342
374
|
timeUnit: _timeUnit
|
|
343
375
|
};
|
|
344
376
|
},
|
|
345
377
|
notionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
346
378
|
const localVarQueryParameter = {};
|
|
347
379
|
const localVarBodyParameter = {};
|
|
380
|
+
const localVarHeaderParameter = {};
|
|
348
381
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
349
382
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
350
383
|
let _timeUnit;
|
|
@@ -354,12 +387,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
354
387
|
method: "GET",
|
|
355
388
|
queryParams: localVarQueryParameter,
|
|
356
389
|
bodyParams: localVarBodyParameter,
|
|
390
|
+
headerParams: localVarHeaderParameter,
|
|
357
391
|
timeUnit: _timeUnit
|
|
358
392
|
};
|
|
359
393
|
},
|
|
360
394
|
queryUserRateLimit: async (recvWindow) => {
|
|
361
395
|
const localVarQueryParameter = {};
|
|
362
396
|
const localVarBodyParameter = {};
|
|
397
|
+
const localVarHeaderParameter = {};
|
|
363
398
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
364
399
|
let _timeUnit;
|
|
365
400
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -368,12 +403,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
368
403
|
method: "GET",
|
|
369
404
|
queryParams: localVarQueryParameter,
|
|
370
405
|
bodyParams: localVarBodyParameter,
|
|
406
|
+
headerParams: localVarHeaderParameter,
|
|
371
407
|
timeUnit: _timeUnit
|
|
372
408
|
};
|
|
373
409
|
},
|
|
374
410
|
symbolConfiguration: async (symbol, recvWindow) => {
|
|
375
411
|
const localVarQueryParameter = {};
|
|
376
412
|
const localVarBodyParameter = {};
|
|
413
|
+
const localVarHeaderParameter = {};
|
|
377
414
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
378
415
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
379
416
|
let _timeUnit;
|
|
@@ -383,6 +420,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
383
420
|
method: "GET",
|
|
384
421
|
queryParams: localVarQueryParameter,
|
|
385
422
|
bodyParams: localVarBodyParameter,
|
|
423
|
+
headerParams: localVarHeaderParameter,
|
|
386
424
|
timeUnit: _timeUnit
|
|
387
425
|
};
|
|
388
426
|
},
|
|
@@ -390,6 +428,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
390
428
|
(0, __binance_common.assertParamExists)("toggleBnbBurnOnFuturesTrade", "feeBurn", feeBurn);
|
|
391
429
|
const localVarQueryParameter = {};
|
|
392
430
|
const localVarBodyParameter = {};
|
|
431
|
+
const localVarHeaderParameter = {};
|
|
393
432
|
if (feeBurn !== void 0 && feeBurn !== null) localVarQueryParameter["feeBurn"] = feeBurn;
|
|
394
433
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
395
434
|
let _timeUnit;
|
|
@@ -399,6 +438,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
399
438
|
method: "POST",
|
|
400
439
|
queryParams: localVarQueryParameter,
|
|
401
440
|
bodyParams: localVarBodyParameter,
|
|
441
|
+
headerParams: localVarHeaderParameter,
|
|
402
442
|
timeUnit: _timeUnit
|
|
403
443
|
};
|
|
404
444
|
},
|
|
@@ -406,6 +446,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
406
446
|
(0, __binance_common.assertParamExists)("userCommissionRate", "symbol", symbol);
|
|
407
447
|
const localVarQueryParameter = {};
|
|
408
448
|
const localVarBodyParameter = {};
|
|
449
|
+
const localVarHeaderParameter = {};
|
|
409
450
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
410
451
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
411
452
|
let _timeUnit;
|
|
@@ -415,6 +456,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
415
456
|
method: "GET",
|
|
416
457
|
queryParams: localVarQueryParameter,
|
|
417
458
|
bodyParams: localVarBodyParameter,
|
|
459
|
+
headerParams: localVarHeaderParameter,
|
|
418
460
|
timeUnit: _timeUnit
|
|
419
461
|
};
|
|
420
462
|
}
|
|
@@ -443,7 +485,7 @@ var AccountApi$1 = class {
|
|
|
443
485
|
*/
|
|
444
486
|
async accountInformationV2(requestParameters = {}) {
|
|
445
487
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInformationV2(requestParameters?.recvWindow);
|
|
446
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
488
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
447
489
|
}
|
|
448
490
|
/**
|
|
449
491
|
* Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
|
|
@@ -459,7 +501,7 @@ var AccountApi$1 = class {
|
|
|
459
501
|
*/
|
|
460
502
|
async accountInformationV3(requestParameters = {}) {
|
|
461
503
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInformationV3(requestParameters?.recvWindow);
|
|
462
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
504
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
463
505
|
}
|
|
464
506
|
/**
|
|
465
507
|
* Query account balance info
|
|
@@ -475,7 +517,7 @@ var AccountApi$1 = class {
|
|
|
475
517
|
*/
|
|
476
518
|
async futuresAccountBalanceV2(requestParameters = {}) {
|
|
477
519
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresAccountBalanceV2(requestParameters?.recvWindow);
|
|
478
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
520
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
479
521
|
}
|
|
480
522
|
/**
|
|
481
523
|
* Query account balance info
|
|
@@ -491,7 +533,7 @@ var AccountApi$1 = class {
|
|
|
491
533
|
*/
|
|
492
534
|
async futuresAccountBalanceV3(requestParameters = {}) {
|
|
493
535
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresAccountBalanceV3(requestParameters?.recvWindow);
|
|
494
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
536
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
495
537
|
}
|
|
496
538
|
/**
|
|
497
539
|
* Query account configuration
|
|
@@ -507,7 +549,7 @@ var AccountApi$1 = class {
|
|
|
507
549
|
*/
|
|
508
550
|
async futuresAccountConfiguration(requestParameters = {}) {
|
|
509
551
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresAccountConfiguration(requestParameters?.recvWindow);
|
|
510
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
552
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
511
553
|
}
|
|
512
554
|
/**
|
|
513
555
|
* Futures trading quantitative rules indicators, for more information on this, please refer to the [Futures Trading Quantitative Rules](https://www.binance.com/en/support/faq/4f462ebe6ff445d4a170be7d9e897272)
|
|
@@ -524,7 +566,7 @@ var AccountApi$1 = class {
|
|
|
524
566
|
*/
|
|
525
567
|
async futuresTradingQuantitativeRulesIndicators(requestParameters = {}) {
|
|
526
568
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresTradingQuantitativeRulesIndicators(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
527
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
569
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
528
570
|
}
|
|
529
571
|
/**
|
|
530
572
|
* Get user's BNB Fee Discount (Fee Discount On or Fee Discount Off )
|
|
@@ -540,7 +582,7 @@ var AccountApi$1 = class {
|
|
|
540
582
|
*/
|
|
541
583
|
async getBnbBurnStatus(requestParameters = {}) {
|
|
542
584
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBnbBurnStatus(requestParameters?.recvWindow);
|
|
543
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
585
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
544
586
|
}
|
|
545
587
|
/**
|
|
546
588
|
* Get user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on ***Every symbol***
|
|
@@ -556,7 +598,7 @@ var AccountApi$1 = class {
|
|
|
556
598
|
*/
|
|
557
599
|
async getCurrentMultiAssetsMode(requestParameters = {}) {
|
|
558
600
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCurrentMultiAssetsMode(requestParameters?.recvWindow);
|
|
559
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
601
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
560
602
|
}
|
|
561
603
|
/**
|
|
562
604
|
* Get user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
|
|
@@ -572,7 +614,7 @@ var AccountApi$1 = class {
|
|
|
572
614
|
*/
|
|
573
615
|
async getCurrentPositionMode(requestParameters = {}) {
|
|
574
616
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCurrentPositionMode(requestParameters?.recvWindow);
|
|
575
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
617
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
576
618
|
}
|
|
577
619
|
/**
|
|
578
620
|
* Get Download Id For Futures Order History
|
|
@@ -591,7 +633,7 @@ var AccountApi$1 = class {
|
|
|
591
633
|
*/
|
|
592
634
|
async getDownloadIdForFuturesOrderHistory(requestParameters) {
|
|
593
635
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForFuturesOrderHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
594
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
636
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
595
637
|
}
|
|
596
638
|
/**
|
|
597
639
|
* Get download id for futures trade history
|
|
@@ -610,7 +652,7 @@ var AccountApi$1 = class {
|
|
|
610
652
|
*/
|
|
611
653
|
async getDownloadIdForFuturesTradeHistory(requestParameters) {
|
|
612
654
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForFuturesTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
613
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
655
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
614
656
|
}
|
|
615
657
|
/**
|
|
616
658
|
* Get download id for futures transaction history
|
|
@@ -629,7 +671,7 @@ var AccountApi$1 = class {
|
|
|
629
671
|
*/
|
|
630
672
|
async getDownloadIdForFuturesTransactionHistory(requestParameters) {
|
|
631
673
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForFuturesTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
632
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
674
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
633
675
|
}
|
|
634
676
|
/**
|
|
635
677
|
* Get futures order history download link by Id
|
|
@@ -647,7 +689,7 @@ var AccountApi$1 = class {
|
|
|
647
689
|
*/
|
|
648
690
|
async getFuturesOrderHistoryDownloadLinkById(requestParameters) {
|
|
649
691
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFuturesOrderHistoryDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
650
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
692
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
651
693
|
}
|
|
652
694
|
/**
|
|
653
695
|
* Get futures trade download link by Id
|
|
@@ -665,7 +707,7 @@ var AccountApi$1 = class {
|
|
|
665
707
|
*/
|
|
666
708
|
async getFuturesTradeDownloadLinkById(requestParameters) {
|
|
667
709
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFuturesTradeDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
668
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
710
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
669
711
|
}
|
|
670
712
|
/**
|
|
671
713
|
* Get futures transaction history download link by Id
|
|
@@ -683,7 +725,7 @@ var AccountApi$1 = class {
|
|
|
683
725
|
*/
|
|
684
726
|
async getFuturesTransactionHistoryDownloadLinkById(requestParameters) {
|
|
685
727
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFuturesTransactionHistoryDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
686
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
728
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
687
729
|
}
|
|
688
730
|
/**
|
|
689
731
|
* Query income history
|
|
@@ -704,7 +746,7 @@ var AccountApi$1 = class {
|
|
|
704
746
|
*/
|
|
705
747
|
async getIncomeHistory(requestParameters = {}) {
|
|
706
748
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
707
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
749
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
708
750
|
}
|
|
709
751
|
/**
|
|
710
752
|
* Query user notional and leverage bracket on speicfic symbol
|
|
@@ -720,7 +762,7 @@ var AccountApi$1 = class {
|
|
|
720
762
|
*/
|
|
721
763
|
async notionalAndLeverageBrackets(requestParameters = {}) {
|
|
722
764
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.notionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
723
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
765
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
724
766
|
}
|
|
725
767
|
/**
|
|
726
768
|
* Query User Rate Limit
|
|
@@ -736,7 +778,7 @@ var AccountApi$1 = class {
|
|
|
736
778
|
*/
|
|
737
779
|
async queryUserRateLimit(requestParameters = {}) {
|
|
738
780
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserRateLimit(requestParameters?.recvWindow);
|
|
739
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
781
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
740
782
|
}
|
|
741
783
|
/**
|
|
742
784
|
* Get current account symbol configuration.
|
|
@@ -752,7 +794,7 @@ var AccountApi$1 = class {
|
|
|
752
794
|
*/
|
|
753
795
|
async symbolConfiguration(requestParameters = {}) {
|
|
754
796
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.symbolConfiguration(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
755
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
797
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
756
798
|
}
|
|
757
799
|
/**
|
|
758
800
|
* Change user's BNB Fee Discount (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
|
|
@@ -768,7 +810,7 @@ var AccountApi$1 = class {
|
|
|
768
810
|
*/
|
|
769
811
|
async toggleBnbBurnOnFuturesTrade(requestParameters) {
|
|
770
812
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnFuturesTrade(requestParameters?.feeBurn, requestParameters?.recvWindow);
|
|
771
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
813
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
772
814
|
}
|
|
773
815
|
/**
|
|
774
816
|
* Get User Commission Rate
|
|
@@ -784,7 +826,7 @@ var AccountApi$1 = class {
|
|
|
784
826
|
*/
|
|
785
827
|
async userCommissionRate(requestParameters) {
|
|
786
828
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userCommissionRate(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
787
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
829
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
788
830
|
}
|
|
789
831
|
};
|
|
790
832
|
|
|
@@ -811,6 +853,7 @@ const ConvertApiAxiosParamCreator = function(configuration) {
|
|
|
811
853
|
(0, __binance_common.assertParamExists)("acceptTheOfferedQuote", "quoteId", quoteId);
|
|
812
854
|
const localVarQueryParameter = {};
|
|
813
855
|
const localVarBodyParameter = {};
|
|
856
|
+
const localVarHeaderParameter = {};
|
|
814
857
|
if (quoteId !== void 0 && quoteId !== null) localVarQueryParameter["quoteId"] = quoteId;
|
|
815
858
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
816
859
|
let _timeUnit;
|
|
@@ -820,12 +863,14 @@ const ConvertApiAxiosParamCreator = function(configuration) {
|
|
|
820
863
|
method: "POST",
|
|
821
864
|
queryParams: localVarQueryParameter,
|
|
822
865
|
bodyParams: localVarBodyParameter,
|
|
866
|
+
headerParams: localVarHeaderParameter,
|
|
823
867
|
timeUnit: _timeUnit
|
|
824
868
|
};
|
|
825
869
|
},
|
|
826
870
|
listAllConvertPairs: async (fromAsset, toAsset) => {
|
|
827
871
|
const localVarQueryParameter = {};
|
|
828
872
|
const localVarBodyParameter = {};
|
|
873
|
+
const localVarHeaderParameter = {};
|
|
829
874
|
if (fromAsset !== void 0 && fromAsset !== null) localVarQueryParameter["fromAsset"] = fromAsset;
|
|
830
875
|
if (toAsset !== void 0 && toAsset !== null) localVarQueryParameter["toAsset"] = toAsset;
|
|
831
876
|
let _timeUnit;
|
|
@@ -835,12 +880,14 @@ const ConvertApiAxiosParamCreator = function(configuration) {
|
|
|
835
880
|
method: "GET",
|
|
836
881
|
queryParams: localVarQueryParameter,
|
|
837
882
|
bodyParams: localVarBodyParameter,
|
|
883
|
+
headerParams: localVarHeaderParameter,
|
|
838
884
|
timeUnit: _timeUnit
|
|
839
885
|
};
|
|
840
886
|
},
|
|
841
887
|
orderStatus: async (orderId, quoteId) => {
|
|
842
888
|
const localVarQueryParameter = {};
|
|
843
889
|
const localVarBodyParameter = {};
|
|
890
|
+
const localVarHeaderParameter = {};
|
|
844
891
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
845
892
|
if (quoteId !== void 0 && quoteId !== null) localVarQueryParameter["quoteId"] = quoteId;
|
|
846
893
|
let _timeUnit;
|
|
@@ -850,6 +897,7 @@ const ConvertApiAxiosParamCreator = function(configuration) {
|
|
|
850
897
|
method: "GET",
|
|
851
898
|
queryParams: localVarQueryParameter,
|
|
852
899
|
bodyParams: localVarBodyParameter,
|
|
900
|
+
headerParams: localVarHeaderParameter,
|
|
853
901
|
timeUnit: _timeUnit
|
|
854
902
|
};
|
|
855
903
|
},
|
|
@@ -858,6 +906,7 @@ const ConvertApiAxiosParamCreator = function(configuration) {
|
|
|
858
906
|
(0, __binance_common.assertParamExists)("sendQuoteRequest", "toAsset", toAsset);
|
|
859
907
|
const localVarQueryParameter = {};
|
|
860
908
|
const localVarBodyParameter = {};
|
|
909
|
+
const localVarHeaderParameter = {};
|
|
861
910
|
if (fromAsset !== void 0 && fromAsset !== null) localVarQueryParameter["fromAsset"] = fromAsset;
|
|
862
911
|
if (toAsset !== void 0 && toAsset !== null) localVarQueryParameter["toAsset"] = toAsset;
|
|
863
912
|
if (fromAmount !== void 0 && fromAmount !== null) localVarQueryParameter["fromAmount"] = fromAmount;
|
|
@@ -871,6 +920,7 @@ const ConvertApiAxiosParamCreator = function(configuration) {
|
|
|
871
920
|
method: "POST",
|
|
872
921
|
queryParams: localVarQueryParameter,
|
|
873
922
|
bodyParams: localVarBodyParameter,
|
|
923
|
+
headerParams: localVarHeaderParameter,
|
|
874
924
|
timeUnit: _timeUnit
|
|
875
925
|
};
|
|
876
926
|
}
|
|
@@ -899,7 +949,7 @@ var ConvertApi = class {
|
|
|
899
949
|
*/
|
|
900
950
|
async acceptTheOfferedQuote(requestParameters) {
|
|
901
951
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptTheOfferedQuote(requestParameters?.quoteId, requestParameters?.recvWindow);
|
|
902
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
952
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
903
953
|
}
|
|
904
954
|
/**
|
|
905
955
|
* Query for all convertible token pairs and the tokens’ respective upper/lower limits
|
|
@@ -919,7 +969,7 @@ var ConvertApi = class {
|
|
|
919
969
|
*/
|
|
920
970
|
async listAllConvertPairs(requestParameters = {}) {
|
|
921
971
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listAllConvertPairs(requestParameters?.fromAsset, requestParameters?.toAsset);
|
|
922
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
972
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
923
973
|
}
|
|
924
974
|
/**
|
|
925
975
|
* Query order status by order ID.
|
|
@@ -935,7 +985,7 @@ var ConvertApi = class {
|
|
|
935
985
|
*/
|
|
936
986
|
async orderStatus(requestParameters = {}) {
|
|
937
987
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderStatus(requestParameters?.orderId, requestParameters?.quoteId);
|
|
938
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
988
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
939
989
|
}
|
|
940
990
|
/**
|
|
941
991
|
* Request a quote for the requested token pairs
|
|
@@ -954,7 +1004,7 @@ var ConvertApi = class {
|
|
|
954
1004
|
*/
|
|
955
1005
|
async sendQuoteRequest(requestParameters) {
|
|
956
1006
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.sendQuoteRequest(requestParameters?.fromAsset, requestParameters?.toAsset, requestParameters?.fromAmount, requestParameters?.toAmount, requestParameters?.validTime, requestParameters?.recvWindow);
|
|
957
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1007
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
958
1008
|
}
|
|
959
1009
|
};
|
|
960
1010
|
|
|
@@ -980,6 +1030,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
980
1030
|
adlRisk: async (symbol) => {
|
|
981
1031
|
const localVarQueryParameter = {};
|
|
982
1032
|
const localVarBodyParameter = {};
|
|
1033
|
+
const localVarHeaderParameter = {};
|
|
983
1034
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
984
1035
|
let _timeUnit;
|
|
985
1036
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -988,6 +1039,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
988
1039
|
method: "GET",
|
|
989
1040
|
queryParams: localVarQueryParameter,
|
|
990
1041
|
bodyParams: localVarBodyParameter,
|
|
1042
|
+
headerParams: localVarHeaderParameter,
|
|
991
1043
|
timeUnit: _timeUnit
|
|
992
1044
|
};
|
|
993
1045
|
},
|
|
@@ -997,6 +1049,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
997
1049
|
(0, __binance_common.assertParamExists)("basis", "period", period);
|
|
998
1050
|
const localVarQueryParameter = {};
|
|
999
1051
|
const localVarBodyParameter = {};
|
|
1052
|
+
const localVarHeaderParameter = {};
|
|
1000
1053
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1001
1054
|
if (contractType !== void 0 && contractType !== null) localVarQueryParameter["contractType"] = contractType;
|
|
1002
1055
|
if (period !== void 0 && period !== null) localVarQueryParameter["period"] = period;
|
|
@@ -1010,12 +1063,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1010
1063
|
method: "GET",
|
|
1011
1064
|
queryParams: localVarQueryParameter,
|
|
1012
1065
|
bodyParams: localVarBodyParameter,
|
|
1066
|
+
headerParams: localVarHeaderParameter,
|
|
1013
1067
|
timeUnit: _timeUnit
|
|
1014
1068
|
};
|
|
1015
1069
|
},
|
|
1016
1070
|
checkServerTime: async () => {
|
|
1017
1071
|
const localVarQueryParameter = {};
|
|
1018
1072
|
const localVarBodyParameter = {};
|
|
1073
|
+
const localVarHeaderParameter = {};
|
|
1019
1074
|
let _timeUnit;
|
|
1020
1075
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1021
1076
|
return {
|
|
@@ -1023,12 +1078,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1023
1078
|
method: "GET",
|
|
1024
1079
|
queryParams: localVarQueryParameter,
|
|
1025
1080
|
bodyParams: localVarBodyParameter,
|
|
1081
|
+
headerParams: localVarHeaderParameter,
|
|
1026
1082
|
timeUnit: _timeUnit
|
|
1027
1083
|
};
|
|
1028
1084
|
},
|
|
1029
1085
|
compositeIndexSymbolInformation: async (symbol) => {
|
|
1030
1086
|
const localVarQueryParameter = {};
|
|
1031
1087
|
const localVarBodyParameter = {};
|
|
1088
|
+
const localVarHeaderParameter = {};
|
|
1032
1089
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1033
1090
|
let _timeUnit;
|
|
1034
1091
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1037,6 +1094,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1037
1094
|
method: "GET",
|
|
1038
1095
|
queryParams: localVarQueryParameter,
|
|
1039
1096
|
bodyParams: localVarBodyParameter,
|
|
1097
|
+
headerParams: localVarHeaderParameter,
|
|
1040
1098
|
timeUnit: _timeUnit
|
|
1041
1099
|
};
|
|
1042
1100
|
},
|
|
@@ -1044,6 +1102,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1044
1102
|
(0, __binance_common.assertParamExists)("compressedAggregateTradesList", "symbol", symbol);
|
|
1045
1103
|
const localVarQueryParameter = {};
|
|
1046
1104
|
const localVarBodyParameter = {};
|
|
1105
|
+
const localVarHeaderParameter = {};
|
|
1047
1106
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1048
1107
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
1049
1108
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1056,6 +1115,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1056
1115
|
method: "GET",
|
|
1057
1116
|
queryParams: localVarQueryParameter,
|
|
1058
1117
|
bodyParams: localVarBodyParameter,
|
|
1118
|
+
headerParams: localVarHeaderParameter,
|
|
1059
1119
|
timeUnit: _timeUnit
|
|
1060
1120
|
};
|
|
1061
1121
|
},
|
|
@@ -1065,6 +1125,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1065
1125
|
(0, __binance_common.assertParamExists)("continuousContractKlineCandlestickData", "interval", interval);
|
|
1066
1126
|
const localVarQueryParameter = {};
|
|
1067
1127
|
const localVarBodyParameter = {};
|
|
1128
|
+
const localVarHeaderParameter = {};
|
|
1068
1129
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1069
1130
|
if (contractType !== void 0 && contractType !== null) localVarQueryParameter["contractType"] = contractType;
|
|
1070
1131
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
@@ -1078,12 +1139,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1078
1139
|
method: "GET",
|
|
1079
1140
|
queryParams: localVarQueryParameter,
|
|
1080
1141
|
bodyParams: localVarBodyParameter,
|
|
1142
|
+
headerParams: localVarHeaderParameter,
|
|
1081
1143
|
timeUnit: _timeUnit
|
|
1082
1144
|
};
|
|
1083
1145
|
},
|
|
1084
1146
|
exchangeInformation: async () => {
|
|
1085
1147
|
const localVarQueryParameter = {};
|
|
1086
1148
|
const localVarBodyParameter = {};
|
|
1149
|
+
const localVarHeaderParameter = {};
|
|
1087
1150
|
let _timeUnit;
|
|
1088
1151
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1089
1152
|
return {
|
|
@@ -1091,12 +1154,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1091
1154
|
method: "GET",
|
|
1092
1155
|
queryParams: localVarQueryParameter,
|
|
1093
1156
|
bodyParams: localVarBodyParameter,
|
|
1157
|
+
headerParams: localVarHeaderParameter,
|
|
1094
1158
|
timeUnit: _timeUnit
|
|
1095
1159
|
};
|
|
1096
1160
|
},
|
|
1097
1161
|
getFundingRateHistory: async (symbol, startTime, endTime, limit) => {
|
|
1098
1162
|
const localVarQueryParameter = {};
|
|
1099
1163
|
const localVarBodyParameter = {};
|
|
1164
|
+
const localVarHeaderParameter = {};
|
|
1100
1165
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1101
1166
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1102
1167
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -1108,12 +1173,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1108
1173
|
method: "GET",
|
|
1109
1174
|
queryParams: localVarQueryParameter,
|
|
1110
1175
|
bodyParams: localVarBodyParameter,
|
|
1176
|
+
headerParams: localVarHeaderParameter,
|
|
1111
1177
|
timeUnit: _timeUnit
|
|
1112
1178
|
};
|
|
1113
1179
|
},
|
|
1114
1180
|
getFundingRateInfo: async () => {
|
|
1115
1181
|
const localVarQueryParameter = {};
|
|
1116
1182
|
const localVarBodyParameter = {};
|
|
1183
|
+
const localVarHeaderParameter = {};
|
|
1117
1184
|
let _timeUnit;
|
|
1118
1185
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1119
1186
|
return {
|
|
@@ -1121,6 +1188,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1121
1188
|
method: "GET",
|
|
1122
1189
|
queryParams: localVarQueryParameter,
|
|
1123
1190
|
bodyParams: localVarBodyParameter,
|
|
1191
|
+
headerParams: localVarHeaderParameter,
|
|
1124
1192
|
timeUnit: _timeUnit
|
|
1125
1193
|
};
|
|
1126
1194
|
},
|
|
@@ -1129,6 +1197,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1129
1197
|
(0, __binance_common.assertParamExists)("indexPriceKlineCandlestickData", "interval", interval);
|
|
1130
1198
|
const localVarQueryParameter = {};
|
|
1131
1199
|
const localVarBodyParameter = {};
|
|
1200
|
+
const localVarHeaderParameter = {};
|
|
1132
1201
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1133
1202
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
1134
1203
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1141,6 +1210,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1141
1210
|
method: "GET",
|
|
1142
1211
|
queryParams: localVarQueryParameter,
|
|
1143
1212
|
bodyParams: localVarBodyParameter,
|
|
1213
|
+
headerParams: localVarHeaderParameter,
|
|
1144
1214
|
timeUnit: _timeUnit
|
|
1145
1215
|
};
|
|
1146
1216
|
},
|
|
@@ -1149,6 +1219,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1149
1219
|
(0, __binance_common.assertParamExists)("klineCandlestickData", "interval", interval);
|
|
1150
1220
|
const localVarQueryParameter = {};
|
|
1151
1221
|
const localVarBodyParameter = {};
|
|
1222
|
+
const localVarHeaderParameter = {};
|
|
1152
1223
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1153
1224
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
1154
1225
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1161,6 +1232,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1161
1232
|
method: "GET",
|
|
1162
1233
|
queryParams: localVarQueryParameter,
|
|
1163
1234
|
bodyParams: localVarBodyParameter,
|
|
1235
|
+
headerParams: localVarHeaderParameter,
|
|
1164
1236
|
timeUnit: _timeUnit
|
|
1165
1237
|
};
|
|
1166
1238
|
},
|
|
@@ -1169,6 +1241,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1169
1241
|
(0, __binance_common.assertParamExists)("longShortRatio", "period", period);
|
|
1170
1242
|
const localVarQueryParameter = {};
|
|
1171
1243
|
const localVarBodyParameter = {};
|
|
1244
|
+
const localVarHeaderParameter = {};
|
|
1172
1245
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1173
1246
|
if (period !== void 0 && period !== null) localVarQueryParameter["period"] = period;
|
|
1174
1247
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
@@ -1181,12 +1254,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1181
1254
|
method: "GET",
|
|
1182
1255
|
queryParams: localVarQueryParameter,
|
|
1183
1256
|
bodyParams: localVarBodyParameter,
|
|
1257
|
+
headerParams: localVarHeaderParameter,
|
|
1184
1258
|
timeUnit: _timeUnit
|
|
1185
1259
|
};
|
|
1186
1260
|
},
|
|
1187
1261
|
markPrice: async (symbol) => {
|
|
1188
1262
|
const localVarQueryParameter = {};
|
|
1189
1263
|
const localVarBodyParameter = {};
|
|
1264
|
+
const localVarHeaderParameter = {};
|
|
1190
1265
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1191
1266
|
let _timeUnit;
|
|
1192
1267
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1195,6 +1270,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1195
1270
|
method: "GET",
|
|
1196
1271
|
queryParams: localVarQueryParameter,
|
|
1197
1272
|
bodyParams: localVarBodyParameter,
|
|
1273
|
+
headerParams: localVarHeaderParameter,
|
|
1198
1274
|
timeUnit: _timeUnit
|
|
1199
1275
|
};
|
|
1200
1276
|
},
|
|
@@ -1203,6 +1279,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1203
1279
|
(0, __binance_common.assertParamExists)("markPriceKlineCandlestickData", "interval", interval);
|
|
1204
1280
|
const localVarQueryParameter = {};
|
|
1205
1281
|
const localVarBodyParameter = {};
|
|
1282
|
+
const localVarHeaderParameter = {};
|
|
1206
1283
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1207
1284
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
1208
1285
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1215,12 +1292,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1215
1292
|
method: "GET",
|
|
1216
1293
|
queryParams: localVarQueryParameter,
|
|
1217
1294
|
bodyParams: localVarBodyParameter,
|
|
1295
|
+
headerParams: localVarHeaderParameter,
|
|
1218
1296
|
timeUnit: _timeUnit
|
|
1219
1297
|
};
|
|
1220
1298
|
},
|
|
1221
1299
|
multiAssetsModeAssetIndex: async (symbol) => {
|
|
1222
1300
|
const localVarQueryParameter = {};
|
|
1223
1301
|
const localVarBodyParameter = {};
|
|
1302
|
+
const localVarHeaderParameter = {};
|
|
1224
1303
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1225
1304
|
let _timeUnit;
|
|
1226
1305
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1229,6 +1308,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1229
1308
|
method: "GET",
|
|
1230
1309
|
queryParams: localVarQueryParameter,
|
|
1231
1310
|
bodyParams: localVarBodyParameter,
|
|
1311
|
+
headerParams: localVarHeaderParameter,
|
|
1232
1312
|
timeUnit: _timeUnit
|
|
1233
1313
|
};
|
|
1234
1314
|
},
|
|
@@ -1236,6 +1316,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1236
1316
|
(0, __binance_common.assertParamExists)("oldTradesLookup", "symbol", symbol);
|
|
1237
1317
|
const localVarQueryParameter = {};
|
|
1238
1318
|
const localVarBodyParameter = {};
|
|
1319
|
+
const localVarHeaderParameter = {};
|
|
1239
1320
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1240
1321
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
1241
1322
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
@@ -1246,6 +1327,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1246
1327
|
method: "GET",
|
|
1247
1328
|
queryParams: localVarQueryParameter,
|
|
1248
1329
|
bodyParams: localVarBodyParameter,
|
|
1330
|
+
headerParams: localVarHeaderParameter,
|
|
1249
1331
|
timeUnit: _timeUnit
|
|
1250
1332
|
};
|
|
1251
1333
|
},
|
|
@@ -1253,6 +1335,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1253
1335
|
(0, __binance_common.assertParamExists)("openInterest", "symbol", symbol);
|
|
1254
1336
|
const localVarQueryParameter = {};
|
|
1255
1337
|
const localVarBodyParameter = {};
|
|
1338
|
+
const localVarHeaderParameter = {};
|
|
1256
1339
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1257
1340
|
let _timeUnit;
|
|
1258
1341
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1261,6 +1344,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1261
1344
|
method: "GET",
|
|
1262
1345
|
queryParams: localVarQueryParameter,
|
|
1263
1346
|
bodyParams: localVarBodyParameter,
|
|
1347
|
+
headerParams: localVarHeaderParameter,
|
|
1264
1348
|
timeUnit: _timeUnit
|
|
1265
1349
|
};
|
|
1266
1350
|
},
|
|
@@ -1269,6 +1353,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1269
1353
|
(0, __binance_common.assertParamExists)("openInterestStatistics", "period", period);
|
|
1270
1354
|
const localVarQueryParameter = {};
|
|
1271
1355
|
const localVarBodyParameter = {};
|
|
1356
|
+
const localVarHeaderParameter = {};
|
|
1272
1357
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1273
1358
|
if (period !== void 0 && period !== null) localVarQueryParameter["period"] = period;
|
|
1274
1359
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
@@ -1281,6 +1366,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1281
1366
|
method: "GET",
|
|
1282
1367
|
queryParams: localVarQueryParameter,
|
|
1283
1368
|
bodyParams: localVarBodyParameter,
|
|
1369
|
+
headerParams: localVarHeaderParameter,
|
|
1284
1370
|
timeUnit: _timeUnit
|
|
1285
1371
|
};
|
|
1286
1372
|
},
|
|
@@ -1288,6 +1374,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1288
1374
|
(0, __binance_common.assertParamExists)("orderBook", "symbol", symbol);
|
|
1289
1375
|
const localVarQueryParameter = {};
|
|
1290
1376
|
const localVarBodyParameter = {};
|
|
1377
|
+
const localVarHeaderParameter = {};
|
|
1291
1378
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1292
1379
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
1293
1380
|
let _timeUnit;
|
|
@@ -1297,6 +1384,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1297
1384
|
method: "GET",
|
|
1298
1385
|
queryParams: localVarQueryParameter,
|
|
1299
1386
|
bodyParams: localVarBodyParameter,
|
|
1387
|
+
headerParams: localVarHeaderParameter,
|
|
1300
1388
|
timeUnit: _timeUnit
|
|
1301
1389
|
};
|
|
1302
1390
|
},
|
|
@@ -1305,6 +1393,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1305
1393
|
(0, __binance_common.assertParamExists)("premiumIndexKlineData", "interval", interval);
|
|
1306
1394
|
const localVarQueryParameter = {};
|
|
1307
1395
|
const localVarBodyParameter = {};
|
|
1396
|
+
const localVarHeaderParameter = {};
|
|
1308
1397
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1309
1398
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
1310
1399
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1317,6 +1406,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1317
1406
|
method: "GET",
|
|
1318
1407
|
queryParams: localVarQueryParameter,
|
|
1319
1408
|
bodyParams: localVarBodyParameter,
|
|
1409
|
+
headerParams: localVarHeaderParameter,
|
|
1320
1410
|
timeUnit: _timeUnit
|
|
1321
1411
|
};
|
|
1322
1412
|
},
|
|
@@ -1324,6 +1414,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1324
1414
|
(0, __binance_common.assertParamExists)("quarterlyContractSettlementPrice", "pair", pair);
|
|
1325
1415
|
const localVarQueryParameter = {};
|
|
1326
1416
|
const localVarBodyParameter = {};
|
|
1417
|
+
const localVarHeaderParameter = {};
|
|
1327
1418
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1328
1419
|
let _timeUnit;
|
|
1329
1420
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1332,6 +1423,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1332
1423
|
method: "GET",
|
|
1333
1424
|
queryParams: localVarQueryParameter,
|
|
1334
1425
|
bodyParams: localVarBodyParameter,
|
|
1426
|
+
headerParams: localVarHeaderParameter,
|
|
1335
1427
|
timeUnit: _timeUnit
|
|
1336
1428
|
};
|
|
1337
1429
|
},
|
|
@@ -1339,6 +1431,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1339
1431
|
(0, __binance_common.assertParamExists)("queryIndexPriceConstituents", "symbol", symbol);
|
|
1340
1432
|
const localVarQueryParameter = {};
|
|
1341
1433
|
const localVarBodyParameter = {};
|
|
1434
|
+
const localVarHeaderParameter = {};
|
|
1342
1435
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1343
1436
|
let _timeUnit;
|
|
1344
1437
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1347,12 +1440,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1347
1440
|
method: "GET",
|
|
1348
1441
|
queryParams: localVarQueryParameter,
|
|
1349
1442
|
bodyParams: localVarBodyParameter,
|
|
1443
|
+
headerParams: localVarHeaderParameter,
|
|
1350
1444
|
timeUnit: _timeUnit
|
|
1351
1445
|
};
|
|
1352
1446
|
},
|
|
1353
1447
|
queryInsuranceFundBalanceSnapshot: async (symbol) => {
|
|
1354
1448
|
const localVarQueryParameter = {};
|
|
1355
1449
|
const localVarBodyParameter = {};
|
|
1450
|
+
const localVarHeaderParameter = {};
|
|
1356
1451
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1357
1452
|
let _timeUnit;
|
|
1358
1453
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1361,6 +1456,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1361
1456
|
method: "GET",
|
|
1362
1457
|
queryParams: localVarQueryParameter,
|
|
1363
1458
|
bodyParams: localVarBodyParameter,
|
|
1459
|
+
headerParams: localVarHeaderParameter,
|
|
1364
1460
|
timeUnit: _timeUnit
|
|
1365
1461
|
};
|
|
1366
1462
|
},
|
|
@@ -1368,6 +1464,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1368
1464
|
(0, __binance_common.assertParamExists)("recentTradesList", "symbol", symbol);
|
|
1369
1465
|
const localVarQueryParameter = {};
|
|
1370
1466
|
const localVarBodyParameter = {};
|
|
1467
|
+
const localVarHeaderParameter = {};
|
|
1371
1468
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1372
1469
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
1373
1470
|
let _timeUnit;
|
|
@@ -1377,6 +1474,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1377
1474
|
method: "GET",
|
|
1378
1475
|
queryParams: localVarQueryParameter,
|
|
1379
1476
|
bodyParams: localVarBodyParameter,
|
|
1477
|
+
headerParams: localVarHeaderParameter,
|
|
1380
1478
|
timeUnit: _timeUnit
|
|
1381
1479
|
};
|
|
1382
1480
|
},
|
|
@@ -1384,6 +1482,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1384
1482
|
(0, __binance_common.assertParamExists)("rpiOrderBook", "symbol", symbol);
|
|
1385
1483
|
const localVarQueryParameter = {};
|
|
1386
1484
|
const localVarBodyParameter = {};
|
|
1485
|
+
const localVarHeaderParameter = {};
|
|
1387
1486
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1388
1487
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
1389
1488
|
let _timeUnit;
|
|
@@ -1393,12 +1492,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1393
1492
|
method: "GET",
|
|
1394
1493
|
queryParams: localVarQueryParameter,
|
|
1395
1494
|
bodyParams: localVarBodyParameter,
|
|
1495
|
+
headerParams: localVarHeaderParameter,
|
|
1396
1496
|
timeUnit: _timeUnit
|
|
1397
1497
|
};
|
|
1398
1498
|
},
|
|
1399
1499
|
symbolOrderBookTicker: async (symbol) => {
|
|
1400
1500
|
const localVarQueryParameter = {};
|
|
1401
1501
|
const localVarBodyParameter = {};
|
|
1502
|
+
const localVarHeaderParameter = {};
|
|
1402
1503
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1403
1504
|
let _timeUnit;
|
|
1404
1505
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1407,12 +1508,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1407
1508
|
method: "GET",
|
|
1408
1509
|
queryParams: localVarQueryParameter,
|
|
1409
1510
|
bodyParams: localVarBodyParameter,
|
|
1511
|
+
headerParams: localVarHeaderParameter,
|
|
1410
1512
|
timeUnit: _timeUnit
|
|
1411
1513
|
};
|
|
1412
1514
|
},
|
|
1413
1515
|
symbolPriceTicker: async (symbol) => {
|
|
1414
1516
|
const localVarQueryParameter = {};
|
|
1415
1517
|
const localVarBodyParameter = {};
|
|
1518
|
+
const localVarHeaderParameter = {};
|
|
1416
1519
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1417
1520
|
let _timeUnit;
|
|
1418
1521
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1421,12 +1524,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1421
1524
|
method: "GET",
|
|
1422
1525
|
queryParams: localVarQueryParameter,
|
|
1423
1526
|
bodyParams: localVarBodyParameter,
|
|
1527
|
+
headerParams: localVarHeaderParameter,
|
|
1424
1528
|
timeUnit: _timeUnit
|
|
1425
1529
|
};
|
|
1426
1530
|
},
|
|
1427
1531
|
symbolPriceTickerV2: async (symbol) => {
|
|
1428
1532
|
const localVarQueryParameter = {};
|
|
1429
1533
|
const localVarBodyParameter = {};
|
|
1534
|
+
const localVarHeaderParameter = {};
|
|
1430
1535
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1431
1536
|
let _timeUnit;
|
|
1432
1537
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1435,6 +1540,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1435
1540
|
method: "GET",
|
|
1436
1541
|
queryParams: localVarQueryParameter,
|
|
1437
1542
|
bodyParams: localVarBodyParameter,
|
|
1543
|
+
headerParams: localVarHeaderParameter,
|
|
1438
1544
|
timeUnit: _timeUnit
|
|
1439
1545
|
};
|
|
1440
1546
|
},
|
|
@@ -1443,6 +1549,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1443
1549
|
(0, __binance_common.assertParamExists)("takerBuySellVolume", "period", period);
|
|
1444
1550
|
const localVarQueryParameter = {};
|
|
1445
1551
|
const localVarBodyParameter = {};
|
|
1552
|
+
const localVarHeaderParameter = {};
|
|
1446
1553
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1447
1554
|
if (period !== void 0 && period !== null) localVarQueryParameter["period"] = period;
|
|
1448
1555
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
@@ -1455,12 +1562,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1455
1562
|
method: "GET",
|
|
1456
1563
|
queryParams: localVarQueryParameter,
|
|
1457
1564
|
bodyParams: localVarBodyParameter,
|
|
1565
|
+
headerParams: localVarHeaderParameter,
|
|
1458
1566
|
timeUnit: _timeUnit
|
|
1459
1567
|
};
|
|
1460
1568
|
},
|
|
1461
1569
|
testConnectivity: async () => {
|
|
1462
1570
|
const localVarQueryParameter = {};
|
|
1463
1571
|
const localVarBodyParameter = {};
|
|
1572
|
+
const localVarHeaderParameter = {};
|
|
1464
1573
|
let _timeUnit;
|
|
1465
1574
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1466
1575
|
return {
|
|
@@ -1468,12 +1577,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1468
1577
|
method: "GET",
|
|
1469
1578
|
queryParams: localVarQueryParameter,
|
|
1470
1579
|
bodyParams: localVarBodyParameter,
|
|
1580
|
+
headerParams: localVarHeaderParameter,
|
|
1471
1581
|
timeUnit: _timeUnit
|
|
1472
1582
|
};
|
|
1473
1583
|
},
|
|
1474
1584
|
ticker24hrPriceChangeStatistics: async (symbol) => {
|
|
1475
1585
|
const localVarQueryParameter = {};
|
|
1476
1586
|
const localVarBodyParameter = {};
|
|
1587
|
+
const localVarHeaderParameter = {};
|
|
1477
1588
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1478
1589
|
let _timeUnit;
|
|
1479
1590
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1482,6 +1593,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1482
1593
|
method: "GET",
|
|
1483
1594
|
queryParams: localVarQueryParameter,
|
|
1484
1595
|
bodyParams: localVarBodyParameter,
|
|
1596
|
+
headerParams: localVarHeaderParameter,
|
|
1485
1597
|
timeUnit: _timeUnit
|
|
1486
1598
|
};
|
|
1487
1599
|
},
|
|
@@ -1490,6 +1602,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1490
1602
|
(0, __binance_common.assertParamExists)("topTraderLongShortRatioAccounts", "period", period);
|
|
1491
1603
|
const localVarQueryParameter = {};
|
|
1492
1604
|
const localVarBodyParameter = {};
|
|
1605
|
+
const localVarHeaderParameter = {};
|
|
1493
1606
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1494
1607
|
if (period !== void 0 && period !== null) localVarQueryParameter["period"] = period;
|
|
1495
1608
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
@@ -1502,6 +1615,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1502
1615
|
method: "GET",
|
|
1503
1616
|
queryParams: localVarQueryParameter,
|
|
1504
1617
|
bodyParams: localVarBodyParameter,
|
|
1618
|
+
headerParams: localVarHeaderParameter,
|
|
1505
1619
|
timeUnit: _timeUnit
|
|
1506
1620
|
};
|
|
1507
1621
|
},
|
|
@@ -1510,6 +1624,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1510
1624
|
(0, __binance_common.assertParamExists)("topTraderLongShortRatioPositions", "period", period);
|
|
1511
1625
|
const localVarQueryParameter = {};
|
|
1512
1626
|
const localVarBodyParameter = {};
|
|
1627
|
+
const localVarHeaderParameter = {};
|
|
1513
1628
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1514
1629
|
if (period !== void 0 && period !== null) localVarQueryParameter["period"] = period;
|
|
1515
1630
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
@@ -1522,12 +1637,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1522
1637
|
method: "GET",
|
|
1523
1638
|
queryParams: localVarQueryParameter,
|
|
1524
1639
|
bodyParams: localVarBodyParameter,
|
|
1640
|
+
headerParams: localVarHeaderParameter,
|
|
1525
1641
|
timeUnit: _timeUnit
|
|
1526
1642
|
};
|
|
1527
1643
|
},
|
|
1528
1644
|
tradingSchedule: async () => {
|
|
1529
1645
|
const localVarQueryParameter = {};
|
|
1530
1646
|
const localVarBodyParameter = {};
|
|
1647
|
+
const localVarHeaderParameter = {};
|
|
1531
1648
|
let _timeUnit;
|
|
1532
1649
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1533
1650
|
return {
|
|
@@ -1535,6 +1652,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1535
1652
|
method: "GET",
|
|
1536
1653
|
queryParams: localVarQueryParameter,
|
|
1537
1654
|
bodyParams: localVarBodyParameter,
|
|
1655
|
+
headerParams: localVarHeaderParameter,
|
|
1538
1656
|
timeUnit: _timeUnit
|
|
1539
1657
|
};
|
|
1540
1658
|
}
|
|
@@ -1565,7 +1683,7 @@ var MarketDataApi$1 = class {
|
|
|
1565
1683
|
*/
|
|
1566
1684
|
async adlRisk(requestParameters = {}) {
|
|
1567
1685
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.adlRisk(requestParameters?.symbol);
|
|
1568
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1686
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1569
1687
|
}
|
|
1570
1688
|
/**
|
|
1571
1689
|
* Query future basis
|
|
@@ -1584,7 +1702,7 @@ var MarketDataApi$1 = class {
|
|
|
1584
1702
|
*/
|
|
1585
1703
|
async basis(requestParameters) {
|
|
1586
1704
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.basis(requestParameters?.pair, requestParameters?.contractType, requestParameters?.period, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime);
|
|
1587
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1705
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1588
1706
|
}
|
|
1589
1707
|
/**
|
|
1590
1708
|
* Test connectivity to the Rest API and get the current server time.
|
|
@@ -1599,7 +1717,7 @@ var MarketDataApi$1 = class {
|
|
|
1599
1717
|
*/
|
|
1600
1718
|
async checkServerTime() {
|
|
1601
1719
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkServerTime();
|
|
1602
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1720
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1603
1721
|
}
|
|
1604
1722
|
/**
|
|
1605
1723
|
* Query composite index symbol information
|
|
@@ -1617,7 +1735,7 @@ var MarketDataApi$1 = class {
|
|
|
1617
1735
|
*/
|
|
1618
1736
|
async compositeIndexSymbolInformation(requestParameters = {}) {
|
|
1619
1737
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.compositeIndexSymbolInformation(requestParameters?.symbol);
|
|
1620
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1738
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1621
1739
|
}
|
|
1622
1740
|
/**
|
|
1623
1741
|
* Get compressed, aggregate market trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
|
|
@@ -1641,7 +1759,7 @@ var MarketDataApi$1 = class {
|
|
|
1641
1759
|
*/
|
|
1642
1760
|
async compressedAggregateTradesList(requestParameters) {
|
|
1643
1761
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.compressedAggregateTradesList(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1644
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1762
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1645
1763
|
}
|
|
1646
1764
|
/**
|
|
1647
1765
|
* Kline/candlestick bars for a specific contract type.
|
|
@@ -1671,7 +1789,7 @@ var MarketDataApi$1 = class {
|
|
|
1671
1789
|
*/
|
|
1672
1790
|
async continuousContractKlineCandlestickData(requestParameters) {
|
|
1673
1791
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.continuousContractKlineCandlestickData(requestParameters?.pair, requestParameters?.contractType, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1674
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1792
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1675
1793
|
}
|
|
1676
1794
|
/**
|
|
1677
1795
|
* Current exchange trading rules and symbol information
|
|
@@ -1686,7 +1804,7 @@ var MarketDataApi$1 = class {
|
|
|
1686
1804
|
*/
|
|
1687
1805
|
async exchangeInformation() {
|
|
1688
1806
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.exchangeInformation();
|
|
1689
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1807
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1690
1808
|
}
|
|
1691
1809
|
/**
|
|
1692
1810
|
* Get Funding Rate History
|
|
@@ -1707,7 +1825,7 @@ var MarketDataApi$1 = class {
|
|
|
1707
1825
|
*/
|
|
1708
1826
|
async getFundingRateHistory(requestParameters = {}) {
|
|
1709
1827
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFundingRateHistory(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1710
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1828
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1711
1829
|
}
|
|
1712
1830
|
/**
|
|
1713
1831
|
* Query funding rate info for symbols that had FundingRateCap/ FundingRateFloor / fundingIntervalHours adjustment
|
|
@@ -1723,7 +1841,7 @@ var MarketDataApi$1 = class {
|
|
|
1723
1841
|
*/
|
|
1724
1842
|
async getFundingRateInfo() {
|
|
1725
1843
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFundingRateInfo();
|
|
1726
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1844
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1727
1845
|
}
|
|
1728
1846
|
/**
|
|
1729
1847
|
* Kline/candlestick bars for the index price of a pair.
|
|
@@ -1749,7 +1867,7 @@ var MarketDataApi$1 = class {
|
|
|
1749
1867
|
*/
|
|
1750
1868
|
async indexPriceKlineCandlestickData(requestParameters) {
|
|
1751
1869
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPriceKlineCandlestickData(requestParameters?.pair, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1752
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1870
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1753
1871
|
}
|
|
1754
1872
|
/**
|
|
1755
1873
|
* Kline/candlestick bars for a symbol.
|
|
@@ -1774,7 +1892,7 @@ var MarketDataApi$1 = class {
|
|
|
1774
1892
|
*/
|
|
1775
1893
|
async klineCandlestickData(requestParameters) {
|
|
1776
1894
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.klineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1777
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1895
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1778
1896
|
}
|
|
1779
1897
|
/**
|
|
1780
1898
|
* Query symbol Long/Short Ratio
|
|
@@ -1794,7 +1912,7 @@ var MarketDataApi$1 = class {
|
|
|
1794
1912
|
*/
|
|
1795
1913
|
async longShortRatio(requestParameters) {
|
|
1796
1914
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.longShortRatio(requestParameters?.symbol, requestParameters?.period, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime);
|
|
1797
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1915
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1798
1916
|
}
|
|
1799
1917
|
/**
|
|
1800
1918
|
* Mark Price and Funding Rate
|
|
@@ -1810,7 +1928,7 @@ var MarketDataApi$1 = class {
|
|
|
1810
1928
|
*/
|
|
1811
1929
|
async markPrice(requestParameters = {}) {
|
|
1812
1930
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.markPrice(requestParameters?.symbol);
|
|
1813
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1931
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1814
1932
|
}
|
|
1815
1933
|
/**
|
|
1816
1934
|
* Kline/candlestick bars for the mark price of a symbol.
|
|
@@ -1835,7 +1953,7 @@ var MarketDataApi$1 = class {
|
|
|
1835
1953
|
*/
|
|
1836
1954
|
async markPriceKlineCandlestickData(requestParameters) {
|
|
1837
1955
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.markPriceKlineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1838
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1956
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1839
1957
|
}
|
|
1840
1958
|
/**
|
|
1841
1959
|
* asset index for Multi-Assets mode
|
|
@@ -1851,7 +1969,7 @@ var MarketDataApi$1 = class {
|
|
|
1851
1969
|
*/
|
|
1852
1970
|
async multiAssetsModeAssetIndex(requestParameters = {}) {
|
|
1853
1971
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.multiAssetsModeAssetIndex(requestParameters?.symbol);
|
|
1854
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1972
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1855
1973
|
}
|
|
1856
1974
|
/**
|
|
1857
1975
|
* Get older market historical trades.
|
|
@@ -1870,7 +1988,7 @@ var MarketDataApi$1 = class {
|
|
|
1870
1988
|
*/
|
|
1871
1989
|
async oldTradesLookup(requestParameters) {
|
|
1872
1990
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.oldTradesLookup(requestParameters?.symbol, requestParameters?.limit, requestParameters?.fromId);
|
|
1873
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1991
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1874
1992
|
}
|
|
1875
1993
|
/**
|
|
1876
1994
|
* Get present open interest of a specific symbol.
|
|
@@ -1886,7 +2004,7 @@ var MarketDataApi$1 = class {
|
|
|
1886
2004
|
*/
|
|
1887
2005
|
async openInterest(requestParameters) {
|
|
1888
2006
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterest(requestParameters?.symbol);
|
|
1889
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2007
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1890
2008
|
}
|
|
1891
2009
|
/**
|
|
1892
2010
|
* Open Interest Statistics
|
|
@@ -1906,7 +2024,7 @@ var MarketDataApi$1 = class {
|
|
|
1906
2024
|
*/
|
|
1907
2025
|
async openInterestStatistics(requestParameters) {
|
|
1908
2026
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterestStatistics(requestParameters?.symbol, requestParameters?.period, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime);
|
|
1909
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2027
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1910
2028
|
}
|
|
1911
2029
|
/**
|
|
1912
2030
|
* Query symbol orderbook
|
|
@@ -1930,7 +2048,7 @@ var MarketDataApi$1 = class {
|
|
|
1930
2048
|
*/
|
|
1931
2049
|
async orderBook(requestParameters) {
|
|
1932
2050
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderBook(requestParameters?.symbol, requestParameters?.limit);
|
|
1933
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2051
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1934
2052
|
}
|
|
1935
2053
|
/**
|
|
1936
2054
|
* Premium index kline bars of a symbol. Klines are uniquely identified by their open time.
|
|
@@ -1955,7 +2073,7 @@ var MarketDataApi$1 = class {
|
|
|
1955
2073
|
*/
|
|
1956
2074
|
async premiumIndexKlineData(requestParameters) {
|
|
1957
2075
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.premiumIndexKlineData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
1958
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2076
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1959
2077
|
}
|
|
1960
2078
|
/**
|
|
1961
2079
|
* Latest price for a symbol or symbols.
|
|
@@ -1971,7 +2089,7 @@ var MarketDataApi$1 = class {
|
|
|
1971
2089
|
*/
|
|
1972
2090
|
async quarterlyContractSettlementPrice(requestParameters) {
|
|
1973
2091
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.quarterlyContractSettlementPrice(requestParameters?.pair);
|
|
1974
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2092
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1975
2093
|
}
|
|
1976
2094
|
/**
|
|
1977
2095
|
* Query index price constituents
|
|
@@ -1992,7 +2110,7 @@ var MarketDataApi$1 = class {
|
|
|
1992
2110
|
*/
|
|
1993
2111
|
async queryIndexPriceConstituents(requestParameters) {
|
|
1994
2112
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIndexPriceConstituents(requestParameters?.symbol);
|
|
1995
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2113
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1996
2114
|
}
|
|
1997
2115
|
/**
|
|
1998
2116
|
* Query Insurance Fund Balance Snapshot
|
|
@@ -2008,7 +2126,7 @@ var MarketDataApi$1 = class {
|
|
|
2008
2126
|
*/
|
|
2009
2127
|
async queryInsuranceFundBalanceSnapshot(requestParameters = {}) {
|
|
2010
2128
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryInsuranceFundBalanceSnapshot(requestParameters?.symbol);
|
|
2011
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2129
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2012
2130
|
}
|
|
2013
2131
|
/**
|
|
2014
2132
|
* Get recent market trades
|
|
@@ -2026,7 +2144,7 @@ var MarketDataApi$1 = class {
|
|
|
2026
2144
|
*/
|
|
2027
2145
|
async recentTradesList(requestParameters) {
|
|
2028
2146
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
2029
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2147
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2030
2148
|
}
|
|
2031
2149
|
/**
|
|
2032
2150
|
* Query symbol orderbook with RPI orders
|
|
@@ -2047,7 +2165,7 @@ var MarketDataApi$1 = class {
|
|
|
2047
2165
|
*/
|
|
2048
2166
|
async rpiOrderBook(requestParameters) {
|
|
2049
2167
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.rpiOrderBook(requestParameters?.symbol, requestParameters?.limit);
|
|
2050
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2168
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2051
2169
|
}
|
|
2052
2170
|
/**
|
|
2053
2171
|
* Best price/qty on the order book for a symbol or symbols.
|
|
@@ -2068,7 +2186,7 @@ var MarketDataApi$1 = class {
|
|
|
2068
2186
|
*/
|
|
2069
2187
|
async symbolOrderBookTicker(requestParameters = {}) {
|
|
2070
2188
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.symbolOrderBookTicker(requestParameters?.symbol);
|
|
2071
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2189
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2072
2190
|
}
|
|
2073
2191
|
/**
|
|
2074
2192
|
* Latest price for a symbol or symbols.
|
|
@@ -2087,7 +2205,7 @@ var MarketDataApi$1 = class {
|
|
|
2087
2205
|
*/
|
|
2088
2206
|
async symbolPriceTicker(requestParameters = {}) {
|
|
2089
2207
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.symbolPriceTicker(requestParameters?.symbol);
|
|
2090
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2208
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2091
2209
|
}
|
|
2092
2210
|
/**
|
|
2093
2211
|
* Latest price for a symbol or symbols.
|
|
@@ -2107,7 +2225,7 @@ var MarketDataApi$1 = class {
|
|
|
2107
2225
|
*/
|
|
2108
2226
|
async symbolPriceTickerV2(requestParameters = {}) {
|
|
2109
2227
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.symbolPriceTickerV2(requestParameters?.symbol);
|
|
2110
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2228
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2111
2229
|
}
|
|
2112
2230
|
/**
|
|
2113
2231
|
* Taker Buy/Sell Volume
|
|
@@ -2127,7 +2245,7 @@ var MarketDataApi$1 = class {
|
|
|
2127
2245
|
*/
|
|
2128
2246
|
async takerBuySellVolume(requestParameters) {
|
|
2129
2247
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.takerBuySellVolume(requestParameters?.symbol, requestParameters?.period, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime);
|
|
2130
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2248
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2131
2249
|
}
|
|
2132
2250
|
/**
|
|
2133
2251
|
* Test connectivity to the Rest API.
|
|
@@ -2142,7 +2260,7 @@ var MarketDataApi$1 = class {
|
|
|
2142
2260
|
*/
|
|
2143
2261
|
async testConnectivity() {
|
|
2144
2262
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
2145
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2263
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2146
2264
|
}
|
|
2147
2265
|
/**
|
|
2148
2266
|
* 24 hour rolling window price change statistics.
|
|
@@ -2162,7 +2280,7 @@ var MarketDataApi$1 = class {
|
|
|
2162
2280
|
*/
|
|
2163
2281
|
async ticker24hrPriceChangeStatistics(requestParameters = {}) {
|
|
2164
2282
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.ticker24hrPriceChangeStatistics(requestParameters?.symbol);
|
|
2165
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2283
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2166
2284
|
}
|
|
2167
2285
|
/**
|
|
2168
2286
|
* The proportion of net long and net short accounts to total accounts of the top 20% users with the highest margin balance. Each account is counted once only.
|
|
@@ -2185,7 +2303,7 @@ var MarketDataApi$1 = class {
|
|
|
2185
2303
|
*/
|
|
2186
2304
|
async topTraderLongShortRatioAccounts(requestParameters) {
|
|
2187
2305
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.topTraderLongShortRatioAccounts(requestParameters?.symbol, requestParameters?.period, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime);
|
|
2188
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2306
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2189
2307
|
}
|
|
2190
2308
|
/**
|
|
2191
2309
|
* The proportion of net long and net short positions to total open positions of the top 20% users with the highest margin balance.
|
|
@@ -2208,7 +2326,7 @@ var MarketDataApi$1 = class {
|
|
|
2208
2326
|
*/
|
|
2209
2327
|
async topTraderLongShortRatioPositions(requestParameters) {
|
|
2210
2328
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.topTraderLongShortRatioPositions(requestParameters?.symbol, requestParameters?.period, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime);
|
|
2211
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2329
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2212
2330
|
}
|
|
2213
2331
|
/**
|
|
2214
2332
|
* Trading session schedules for the underlying assets of TradFi Perps are provided for a one-week period starting from the day prior to the query time, covering both the U.S. equity and commodity markets. Equity market session types include "PRE_MARKET", "REGULAR", "AFTER_MARKET", "OVERNIGHT", and "NO_TRADING", while commodity market session types include "REGULAR" and "NO_TRADING".
|
|
@@ -2223,7 +2341,7 @@ var MarketDataApi$1 = class {
|
|
|
2223
2341
|
*/
|
|
2224
2342
|
async tradingSchedule() {
|
|
2225
2343
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradingSchedule();
|
|
2226
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2344
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
2227
2345
|
}
|
|
2228
2346
|
};
|
|
2229
2347
|
let BasisContractTypeEnum = /* @__PURE__ */ function(BasisContractTypeEnum$1) {
|
|
@@ -2434,6 +2552,7 @@ const PortfolioMarginEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
2434
2552
|
(0, __binance_common.assertParamExists)("classicPortfolioMarginAccountInformation", "asset", asset);
|
|
2435
2553
|
const localVarQueryParameter = {};
|
|
2436
2554
|
const localVarBodyParameter = {};
|
|
2555
|
+
const localVarHeaderParameter = {};
|
|
2437
2556
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
2438
2557
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2439
2558
|
let _timeUnit;
|
|
@@ -2443,6 +2562,7 @@ const PortfolioMarginEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
2443
2562
|
method: "GET",
|
|
2444
2563
|
queryParams: localVarQueryParameter,
|
|
2445
2564
|
bodyParams: localVarBodyParameter,
|
|
2565
|
+
headerParams: localVarHeaderParameter,
|
|
2446
2566
|
timeUnit: _timeUnit
|
|
2447
2567
|
};
|
|
2448
2568
|
} };
|
|
@@ -2473,7 +2593,7 @@ var PortfolioMarginEndpointsApi = class {
|
|
|
2473
2593
|
*/
|
|
2474
2594
|
async classicPortfolioMarginAccountInformation(requestParameters) {
|
|
2475
2595
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.classicPortfolioMarginAccountInformation(requestParameters?.asset, requestParameters?.recvWindow);
|
|
2476
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2596
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2477
2597
|
}
|
|
2478
2598
|
};
|
|
2479
2599
|
|
|
@@ -2500,6 +2620,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2500
2620
|
(0, __binance_common.assertParamExists)("accountTradeList", "symbol", symbol);
|
|
2501
2621
|
const localVarQueryParameter = {};
|
|
2502
2622
|
const localVarBodyParameter = {};
|
|
2623
|
+
const localVarHeaderParameter = {};
|
|
2503
2624
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2504
2625
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2505
2626
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2514,6 +2635,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2514
2635
|
method: "GET",
|
|
2515
2636
|
queryParams: localVarQueryParameter,
|
|
2516
2637
|
bodyParams: localVarBodyParameter,
|
|
2638
|
+
headerParams: localVarHeaderParameter,
|
|
2517
2639
|
timeUnit: _timeUnit
|
|
2518
2640
|
};
|
|
2519
2641
|
},
|
|
@@ -2521,6 +2643,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2521
2643
|
(0, __binance_common.assertParamExists)("allOrders", "symbol", symbol);
|
|
2522
2644
|
const localVarQueryParameter = {};
|
|
2523
2645
|
const localVarBodyParameter = {};
|
|
2646
|
+
const localVarHeaderParameter = {};
|
|
2524
2647
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2525
2648
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2526
2649
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2534,6 +2657,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2534
2657
|
method: "GET",
|
|
2535
2658
|
queryParams: localVarQueryParameter,
|
|
2536
2659
|
bodyParams: localVarBodyParameter,
|
|
2660
|
+
headerParams: localVarHeaderParameter,
|
|
2537
2661
|
timeUnit: _timeUnit
|
|
2538
2662
|
};
|
|
2539
2663
|
},
|
|
@@ -2542,6 +2666,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2542
2666
|
(0, __binance_common.assertParamExists)("autoCancelAllOpenOrders", "countdownTime", countdownTime);
|
|
2543
2667
|
const localVarQueryParameter = {};
|
|
2544
2668
|
const localVarBodyParameter = {};
|
|
2669
|
+
const localVarHeaderParameter = {};
|
|
2545
2670
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2546
2671
|
if (countdownTime !== void 0 && countdownTime !== null) localVarQueryParameter["countdownTime"] = countdownTime;
|
|
2547
2672
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2552,12 +2677,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2552
2677
|
method: "POST",
|
|
2553
2678
|
queryParams: localVarQueryParameter,
|
|
2554
2679
|
bodyParams: localVarBodyParameter,
|
|
2680
|
+
headerParams: localVarHeaderParameter,
|
|
2555
2681
|
timeUnit: _timeUnit
|
|
2556
2682
|
};
|
|
2557
2683
|
},
|
|
2558
2684
|
cancelAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
|
|
2559
2685
|
const localVarQueryParameter = {};
|
|
2560
2686
|
const localVarBodyParameter = {};
|
|
2687
|
+
const localVarHeaderParameter = {};
|
|
2561
2688
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
2562
2689
|
if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
|
|
2563
2690
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2568,6 +2695,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2568
2695
|
method: "DELETE",
|
|
2569
2696
|
queryParams: localVarQueryParameter,
|
|
2570
2697
|
bodyParams: localVarBodyParameter,
|
|
2698
|
+
headerParams: localVarHeaderParameter,
|
|
2571
2699
|
timeUnit: _timeUnit
|
|
2572
2700
|
};
|
|
2573
2701
|
},
|
|
@@ -2575,6 +2703,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2575
2703
|
(0, __binance_common.assertParamExists)("cancelAllAlgoOpenOrders", "symbol", symbol);
|
|
2576
2704
|
const localVarQueryParameter = {};
|
|
2577
2705
|
const localVarBodyParameter = {};
|
|
2706
|
+
const localVarHeaderParameter = {};
|
|
2578
2707
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2579
2708
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2580
2709
|
let _timeUnit;
|
|
@@ -2584,6 +2713,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2584
2713
|
method: "DELETE",
|
|
2585
2714
|
queryParams: localVarQueryParameter,
|
|
2586
2715
|
bodyParams: localVarBodyParameter,
|
|
2716
|
+
headerParams: localVarHeaderParameter,
|
|
2587
2717
|
timeUnit: _timeUnit
|
|
2588
2718
|
};
|
|
2589
2719
|
},
|
|
@@ -2591,6 +2721,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2591
2721
|
(0, __binance_common.assertParamExists)("cancelAllOpenOrders", "symbol", symbol);
|
|
2592
2722
|
const localVarQueryParameter = {};
|
|
2593
2723
|
const localVarBodyParameter = {};
|
|
2724
|
+
const localVarHeaderParameter = {};
|
|
2594
2725
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2595
2726
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2596
2727
|
let _timeUnit;
|
|
@@ -2600,6 +2731,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2600
2731
|
method: "DELETE",
|
|
2601
2732
|
queryParams: localVarQueryParameter,
|
|
2602
2733
|
bodyParams: localVarBodyParameter,
|
|
2734
|
+
headerParams: localVarHeaderParameter,
|
|
2603
2735
|
timeUnit: _timeUnit
|
|
2604
2736
|
};
|
|
2605
2737
|
},
|
|
@@ -2607,6 +2739,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2607
2739
|
(0, __binance_common.assertParamExists)("cancelMultipleOrders", "symbol", symbol);
|
|
2608
2740
|
const localVarQueryParameter = {};
|
|
2609
2741
|
const localVarBodyParameter = {};
|
|
2742
|
+
const localVarHeaderParameter = {};
|
|
2610
2743
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2611
2744
|
if (orderIdList) localVarQueryParameter["orderIdList"] = orderIdList;
|
|
2612
2745
|
if (origClientOrderIdList) localVarQueryParameter["origClientOrderIdList"] = origClientOrderIdList;
|
|
@@ -2618,6 +2751,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2618
2751
|
method: "DELETE",
|
|
2619
2752
|
queryParams: localVarQueryParameter,
|
|
2620
2753
|
bodyParams: localVarBodyParameter,
|
|
2754
|
+
headerParams: localVarHeaderParameter,
|
|
2621
2755
|
timeUnit: _timeUnit
|
|
2622
2756
|
};
|
|
2623
2757
|
},
|
|
@@ -2625,6 +2759,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2625
2759
|
(0, __binance_common.assertParamExists)("cancelOrder", "symbol", symbol);
|
|
2626
2760
|
const localVarQueryParameter = {};
|
|
2627
2761
|
const localVarBodyParameter = {};
|
|
2762
|
+
const localVarHeaderParameter = {};
|
|
2628
2763
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2629
2764
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2630
2765
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2636,6 +2771,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2636
2771
|
method: "DELETE",
|
|
2637
2772
|
queryParams: localVarQueryParameter,
|
|
2638
2773
|
bodyParams: localVarBodyParameter,
|
|
2774
|
+
headerParams: localVarHeaderParameter,
|
|
2639
2775
|
timeUnit: _timeUnit
|
|
2640
2776
|
};
|
|
2641
2777
|
},
|
|
@@ -2644,6 +2780,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2644
2780
|
(0, __binance_common.assertParamExists)("changeInitialLeverage", "leverage", leverage);
|
|
2645
2781
|
const localVarQueryParameter = {};
|
|
2646
2782
|
const localVarBodyParameter = {};
|
|
2783
|
+
const localVarHeaderParameter = {};
|
|
2647
2784
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2648
2785
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
2649
2786
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2654,6 +2791,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2654
2791
|
method: "POST",
|
|
2655
2792
|
queryParams: localVarQueryParameter,
|
|
2656
2793
|
bodyParams: localVarBodyParameter,
|
|
2794
|
+
headerParams: localVarHeaderParameter,
|
|
2657
2795
|
timeUnit: _timeUnit
|
|
2658
2796
|
};
|
|
2659
2797
|
},
|
|
@@ -2662,6 +2800,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2662
2800
|
(0, __binance_common.assertParamExists)("changeMarginType", "marginType", marginType);
|
|
2663
2801
|
const localVarQueryParameter = {};
|
|
2664
2802
|
const localVarBodyParameter = {};
|
|
2803
|
+
const localVarHeaderParameter = {};
|
|
2665
2804
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2666
2805
|
if (marginType !== void 0 && marginType !== null) localVarQueryParameter["marginType"] = marginType;
|
|
2667
2806
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2672,6 +2811,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2672
2811
|
method: "POST",
|
|
2673
2812
|
queryParams: localVarQueryParameter,
|
|
2674
2813
|
bodyParams: localVarBodyParameter,
|
|
2814
|
+
headerParams: localVarHeaderParameter,
|
|
2675
2815
|
timeUnit: _timeUnit
|
|
2676
2816
|
};
|
|
2677
2817
|
},
|
|
@@ -2679,6 +2819,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2679
2819
|
(0, __binance_common.assertParamExists)("changeMultiAssetsMode", "multiAssetsMargin", multiAssetsMargin);
|
|
2680
2820
|
const localVarQueryParameter = {};
|
|
2681
2821
|
const localVarBodyParameter = {};
|
|
2822
|
+
const localVarHeaderParameter = {};
|
|
2682
2823
|
if (multiAssetsMargin !== void 0 && multiAssetsMargin !== null) localVarQueryParameter["multiAssetsMargin"] = multiAssetsMargin;
|
|
2683
2824
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2684
2825
|
let _timeUnit;
|
|
@@ -2688,6 +2829,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2688
2829
|
method: "POST",
|
|
2689
2830
|
queryParams: localVarQueryParameter,
|
|
2690
2831
|
bodyParams: localVarBodyParameter,
|
|
2832
|
+
headerParams: localVarHeaderParameter,
|
|
2691
2833
|
timeUnit: _timeUnit
|
|
2692
2834
|
};
|
|
2693
2835
|
},
|
|
@@ -2695,6 +2837,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2695
2837
|
(0, __binance_common.assertParamExists)("changePositionMode", "dualSidePosition", dualSidePosition);
|
|
2696
2838
|
const localVarQueryParameter = {};
|
|
2697
2839
|
const localVarBodyParameter = {};
|
|
2840
|
+
const localVarHeaderParameter = {};
|
|
2698
2841
|
if (dualSidePosition !== void 0 && dualSidePosition !== null) localVarQueryParameter["dualSidePosition"] = dualSidePosition;
|
|
2699
2842
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2700
2843
|
let _timeUnit;
|
|
@@ -2704,12 +2847,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2704
2847
|
method: "POST",
|
|
2705
2848
|
queryParams: localVarQueryParameter,
|
|
2706
2849
|
bodyParams: localVarBodyParameter,
|
|
2850
|
+
headerParams: localVarHeaderParameter,
|
|
2707
2851
|
timeUnit: _timeUnit
|
|
2708
2852
|
};
|
|
2709
2853
|
},
|
|
2710
2854
|
currentAllAlgoOpenOrders: async (algoType, symbol, algoId, recvWindow) => {
|
|
2711
2855
|
const localVarQueryParameter = {};
|
|
2712
2856
|
const localVarBodyParameter = {};
|
|
2857
|
+
const localVarHeaderParameter = {};
|
|
2713
2858
|
if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
|
|
2714
2859
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2715
2860
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
@@ -2721,12 +2866,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2721
2866
|
method: "GET",
|
|
2722
2867
|
queryParams: localVarQueryParameter,
|
|
2723
2868
|
bodyParams: localVarBodyParameter,
|
|
2869
|
+
headerParams: localVarHeaderParameter,
|
|
2724
2870
|
timeUnit: _timeUnit
|
|
2725
2871
|
};
|
|
2726
2872
|
},
|
|
2727
2873
|
currentAllOpenOrders: async (symbol, recvWindow) => {
|
|
2728
2874
|
const localVarQueryParameter = {};
|
|
2729
2875
|
const localVarBodyParameter = {};
|
|
2876
|
+
const localVarHeaderParameter = {};
|
|
2730
2877
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2731
2878
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2732
2879
|
let _timeUnit;
|
|
@@ -2736,12 +2883,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2736
2883
|
method: "GET",
|
|
2737
2884
|
queryParams: localVarQueryParameter,
|
|
2738
2885
|
bodyParams: localVarBodyParameter,
|
|
2886
|
+
headerParams: localVarHeaderParameter,
|
|
2739
2887
|
timeUnit: _timeUnit
|
|
2740
2888
|
};
|
|
2741
2889
|
},
|
|
2742
2890
|
futuresTradfiPerpsContract: async (recvWindow) => {
|
|
2743
2891
|
const localVarQueryParameter = {};
|
|
2744
2892
|
const localVarBodyParameter = {};
|
|
2893
|
+
const localVarHeaderParameter = {};
|
|
2745
2894
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2746
2895
|
let _timeUnit;
|
|
2747
2896
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -2750,6 +2899,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2750
2899
|
method: "POST",
|
|
2751
2900
|
queryParams: localVarQueryParameter,
|
|
2752
2901
|
bodyParams: localVarBodyParameter,
|
|
2902
|
+
headerParams: localVarHeaderParameter,
|
|
2753
2903
|
timeUnit: _timeUnit
|
|
2754
2904
|
};
|
|
2755
2905
|
},
|
|
@@ -2757,6 +2907,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2757
2907
|
(0, __binance_common.assertParamExists)("getOrderModifyHistory", "symbol", symbol);
|
|
2758
2908
|
const localVarQueryParameter = {};
|
|
2759
2909
|
const localVarBodyParameter = {};
|
|
2910
|
+
const localVarHeaderParameter = {};
|
|
2760
2911
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2761
2912
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2762
2913
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2771,6 +2922,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2771
2922
|
method: "GET",
|
|
2772
2923
|
queryParams: localVarQueryParameter,
|
|
2773
2924
|
bodyParams: localVarBodyParameter,
|
|
2925
|
+
headerParams: localVarHeaderParameter,
|
|
2774
2926
|
timeUnit: _timeUnit
|
|
2775
2927
|
};
|
|
2776
2928
|
},
|
|
@@ -2778,6 +2930,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2778
2930
|
(0, __binance_common.assertParamExists)("getPositionMarginChangeHistory", "symbol", symbol);
|
|
2779
2931
|
const localVarQueryParameter = {};
|
|
2780
2932
|
const localVarBodyParameter = {};
|
|
2933
|
+
const localVarHeaderParameter = {};
|
|
2781
2934
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2782
2935
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
2783
2936
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2791,6 +2944,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2791
2944
|
method: "GET",
|
|
2792
2945
|
queryParams: localVarQueryParameter,
|
|
2793
2946
|
bodyParams: localVarBodyParameter,
|
|
2947
|
+
headerParams: localVarHeaderParameter,
|
|
2794
2948
|
timeUnit: _timeUnit
|
|
2795
2949
|
};
|
|
2796
2950
|
},
|
|
@@ -2800,6 +2954,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2800
2954
|
(0, __binance_common.assertParamExists)("modifyIsolatedPositionMargin", "type", type);
|
|
2801
2955
|
const localVarQueryParameter = {};
|
|
2802
2956
|
const localVarBodyParameter = {};
|
|
2957
|
+
const localVarHeaderParameter = {};
|
|
2803
2958
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2804
2959
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
2805
2960
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -2812,6 +2967,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2812
2967
|
method: "POST",
|
|
2813
2968
|
queryParams: localVarQueryParameter,
|
|
2814
2969
|
bodyParams: localVarBodyParameter,
|
|
2970
|
+
headerParams: localVarHeaderParameter,
|
|
2815
2971
|
timeUnit: _timeUnit
|
|
2816
2972
|
};
|
|
2817
2973
|
},
|
|
@@ -2819,6 +2975,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2819
2975
|
(0, __binance_common.assertParamExists)("modifyMultipleOrders", "batchOrders", batchOrders);
|
|
2820
2976
|
const localVarQueryParameter = {};
|
|
2821
2977
|
const localVarBodyParameter = {};
|
|
2978
|
+
const localVarHeaderParameter = {};
|
|
2822
2979
|
if (batchOrders) localVarQueryParameter["batchOrders"] = batchOrders;
|
|
2823
2980
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2824
2981
|
let _timeUnit;
|
|
@@ -2828,6 +2985,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2828
2985
|
method: "PUT",
|
|
2829
2986
|
queryParams: localVarQueryParameter,
|
|
2830
2987
|
bodyParams: localVarBodyParameter,
|
|
2988
|
+
headerParams: localVarHeaderParameter,
|
|
2831
2989
|
timeUnit: _timeUnit
|
|
2832
2990
|
};
|
|
2833
2991
|
},
|
|
@@ -2838,6 +2996,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2838
2996
|
(0, __binance_common.assertParamExists)("modifyOrder", "price", price);
|
|
2839
2997
|
const localVarQueryParameter = {};
|
|
2840
2998
|
const localVarBodyParameter = {};
|
|
2999
|
+
const localVarHeaderParameter = {};
|
|
2841
3000
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2842
3001
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
2843
3002
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -2853,6 +3012,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2853
3012
|
method: "PUT",
|
|
2854
3013
|
queryParams: localVarQueryParameter,
|
|
2855
3014
|
bodyParams: localVarBodyParameter,
|
|
3015
|
+
headerParams: localVarHeaderParameter,
|
|
2856
3016
|
timeUnit: _timeUnit
|
|
2857
3017
|
};
|
|
2858
3018
|
},
|
|
@@ -2863,6 +3023,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2863
3023
|
(0, __binance_common.assertParamExists)("newAlgoOrder", "type", type);
|
|
2864
3024
|
const localVarQueryParameter = {};
|
|
2865
3025
|
const localVarBodyParameter = {};
|
|
3026
|
+
const localVarHeaderParameter = {};
|
|
2866
3027
|
if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
|
|
2867
3028
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2868
3029
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -2891,6 +3052,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2891
3052
|
method: "POST",
|
|
2892
3053
|
queryParams: localVarQueryParameter,
|
|
2893
3054
|
bodyParams: localVarBodyParameter,
|
|
3055
|
+
headerParams: localVarHeaderParameter,
|
|
2894
3056
|
timeUnit: _timeUnit
|
|
2895
3057
|
};
|
|
2896
3058
|
},
|
|
@@ -2900,6 +3062,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2900
3062
|
(0, __binance_common.assertParamExists)("newOrder", "type", type);
|
|
2901
3063
|
const localVarQueryParameter = {};
|
|
2902
3064
|
const localVarBodyParameter = {};
|
|
3065
|
+
const localVarHeaderParameter = {};
|
|
2903
3066
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2904
3067
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2905
3068
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2921,6 +3084,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2921
3084
|
method: "POST",
|
|
2922
3085
|
queryParams: localVarQueryParameter,
|
|
2923
3086
|
bodyParams: localVarBodyParameter,
|
|
3087
|
+
headerParams: localVarHeaderParameter,
|
|
2924
3088
|
timeUnit: _timeUnit
|
|
2925
3089
|
};
|
|
2926
3090
|
},
|
|
@@ -2928,6 +3092,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2928
3092
|
(0, __binance_common.assertParamExists)("placeMultipleOrders", "batchOrders", batchOrders);
|
|
2929
3093
|
const localVarQueryParameter = {};
|
|
2930
3094
|
const localVarBodyParameter = {};
|
|
3095
|
+
const localVarHeaderParameter = {};
|
|
2931
3096
|
if (batchOrders) localVarQueryParameter["batchOrders"] = batchOrders;
|
|
2932
3097
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2933
3098
|
let _timeUnit;
|
|
@@ -2937,12 +3102,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2937
3102
|
method: "POST",
|
|
2938
3103
|
queryParams: localVarQueryParameter,
|
|
2939
3104
|
bodyParams: localVarBodyParameter,
|
|
3105
|
+
headerParams: localVarHeaderParameter,
|
|
2940
3106
|
timeUnit: _timeUnit
|
|
2941
3107
|
};
|
|
2942
3108
|
},
|
|
2943
3109
|
positionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
2944
3110
|
const localVarQueryParameter = {};
|
|
2945
3111
|
const localVarBodyParameter = {};
|
|
3112
|
+
const localVarHeaderParameter = {};
|
|
2946
3113
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2947
3114
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2948
3115
|
let _timeUnit;
|
|
@@ -2952,12 +3119,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2952
3119
|
method: "GET",
|
|
2953
3120
|
queryParams: localVarQueryParameter,
|
|
2954
3121
|
bodyParams: localVarBodyParameter,
|
|
3122
|
+
headerParams: localVarHeaderParameter,
|
|
2955
3123
|
timeUnit: _timeUnit
|
|
2956
3124
|
};
|
|
2957
3125
|
},
|
|
2958
3126
|
positionInformationV2: async (symbol, recvWindow) => {
|
|
2959
3127
|
const localVarQueryParameter = {};
|
|
2960
3128
|
const localVarBodyParameter = {};
|
|
3129
|
+
const localVarHeaderParameter = {};
|
|
2961
3130
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2962
3131
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2963
3132
|
let _timeUnit;
|
|
@@ -2967,12 +3136,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2967
3136
|
method: "GET",
|
|
2968
3137
|
queryParams: localVarQueryParameter,
|
|
2969
3138
|
bodyParams: localVarBodyParameter,
|
|
3139
|
+
headerParams: localVarHeaderParameter,
|
|
2970
3140
|
timeUnit: _timeUnit
|
|
2971
3141
|
};
|
|
2972
3142
|
},
|
|
2973
3143
|
positionInformationV3: async (symbol, recvWindow) => {
|
|
2974
3144
|
const localVarQueryParameter = {};
|
|
2975
3145
|
const localVarBodyParameter = {};
|
|
3146
|
+
const localVarHeaderParameter = {};
|
|
2976
3147
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2977
3148
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2978
3149
|
let _timeUnit;
|
|
@@ -2982,12 +3153,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2982
3153
|
method: "GET",
|
|
2983
3154
|
queryParams: localVarQueryParameter,
|
|
2984
3155
|
bodyParams: localVarBodyParameter,
|
|
3156
|
+
headerParams: localVarHeaderParameter,
|
|
2985
3157
|
timeUnit: _timeUnit
|
|
2986
3158
|
};
|
|
2987
3159
|
},
|
|
2988
3160
|
queryAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
|
|
2989
3161
|
const localVarQueryParameter = {};
|
|
2990
3162
|
const localVarBodyParameter = {};
|
|
3163
|
+
const localVarHeaderParameter = {};
|
|
2991
3164
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
2992
3165
|
if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
|
|
2993
3166
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2998,6 +3171,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2998
3171
|
method: "GET",
|
|
2999
3172
|
queryParams: localVarQueryParameter,
|
|
3000
3173
|
bodyParams: localVarBodyParameter,
|
|
3174
|
+
headerParams: localVarHeaderParameter,
|
|
3001
3175
|
timeUnit: _timeUnit
|
|
3002
3176
|
};
|
|
3003
3177
|
},
|
|
@@ -3005,6 +3179,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3005
3179
|
(0, __binance_common.assertParamExists)("queryAllAlgoOrders", "symbol", symbol);
|
|
3006
3180
|
const localVarQueryParameter = {};
|
|
3007
3181
|
const localVarBodyParameter = {};
|
|
3182
|
+
const localVarHeaderParameter = {};
|
|
3008
3183
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
3009
3184
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
3010
3185
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -3018,6 +3193,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3018
3193
|
method: "GET",
|
|
3019
3194
|
queryParams: localVarQueryParameter,
|
|
3020
3195
|
bodyParams: localVarBodyParameter,
|
|
3196
|
+
headerParams: localVarHeaderParameter,
|
|
3021
3197
|
timeUnit: _timeUnit
|
|
3022
3198
|
};
|
|
3023
3199
|
},
|
|
@@ -3025,6 +3201,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3025
3201
|
(0, __binance_common.assertParamExists)("queryCurrentOpenOrder", "symbol", symbol);
|
|
3026
3202
|
const localVarQueryParameter = {};
|
|
3027
3203
|
const localVarBodyParameter = {};
|
|
3204
|
+
const localVarHeaderParameter = {};
|
|
3028
3205
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
3029
3206
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
3030
3207
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -3036,6 +3213,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3036
3213
|
method: "GET",
|
|
3037
3214
|
queryParams: localVarQueryParameter,
|
|
3038
3215
|
bodyParams: localVarBodyParameter,
|
|
3216
|
+
headerParams: localVarHeaderParameter,
|
|
3039
3217
|
timeUnit: _timeUnit
|
|
3040
3218
|
};
|
|
3041
3219
|
},
|
|
@@ -3043,6 +3221,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3043
3221
|
(0, __binance_common.assertParamExists)("queryOrder", "symbol", symbol);
|
|
3044
3222
|
const localVarQueryParameter = {};
|
|
3045
3223
|
const localVarBodyParameter = {};
|
|
3224
|
+
const localVarHeaderParameter = {};
|
|
3046
3225
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
3047
3226
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
3048
3227
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -3054,6 +3233,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3054
3233
|
method: "GET",
|
|
3055
3234
|
queryParams: localVarQueryParameter,
|
|
3056
3235
|
bodyParams: localVarBodyParameter,
|
|
3236
|
+
headerParams: localVarHeaderParameter,
|
|
3057
3237
|
timeUnit: _timeUnit
|
|
3058
3238
|
};
|
|
3059
3239
|
},
|
|
@@ -3063,6 +3243,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3063
3243
|
(0, __binance_common.assertParamExists)("testOrder", "type", type);
|
|
3064
3244
|
const localVarQueryParameter = {};
|
|
3065
3245
|
const localVarBodyParameter = {};
|
|
3246
|
+
const localVarHeaderParameter = {};
|
|
3066
3247
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
3067
3248
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
3068
3249
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -3090,12 +3271,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3090
3271
|
method: "POST",
|
|
3091
3272
|
queryParams: localVarQueryParameter,
|
|
3092
3273
|
bodyParams: localVarBodyParameter,
|
|
3274
|
+
headerParams: localVarHeaderParameter,
|
|
3093
3275
|
timeUnit: _timeUnit
|
|
3094
3276
|
};
|
|
3095
3277
|
},
|
|
3096
3278
|
usersForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
3097
3279
|
const localVarQueryParameter = {};
|
|
3098
3280
|
const localVarBodyParameter = {};
|
|
3281
|
+
const localVarHeaderParameter = {};
|
|
3099
3282
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
3100
3283
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
3101
3284
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -3109,6 +3292,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3109
3292
|
method: "GET",
|
|
3110
3293
|
queryParams: localVarQueryParameter,
|
|
3111
3294
|
bodyParams: localVarBodyParameter,
|
|
3295
|
+
headerParams: localVarHeaderParameter,
|
|
3112
3296
|
timeUnit: _timeUnit
|
|
3113
3297
|
};
|
|
3114
3298
|
}
|
|
@@ -3142,7 +3326,7 @@ var TradeApi$1 = class {
|
|
|
3142
3326
|
*/
|
|
3143
3327
|
async accountTradeList(requestParameters) {
|
|
3144
3328
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountTradeList(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3145
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3329
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3146
3330
|
}
|
|
3147
3331
|
/**
|
|
3148
3332
|
* Get all account orders; active, canceled, or filled.
|
|
@@ -3165,7 +3349,7 @@ var TradeApi$1 = class {
|
|
|
3165
3349
|
*/
|
|
3166
3350
|
async allOrders(requestParameters) {
|
|
3167
3351
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.allOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3168
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3352
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3169
3353
|
}
|
|
3170
3354
|
/**
|
|
3171
3355
|
* Cancel all open orders of the specified symbol at the end of the specified countdown.
|
|
@@ -3189,7 +3373,7 @@ var TradeApi$1 = class {
|
|
|
3189
3373
|
*/
|
|
3190
3374
|
async autoCancelAllOpenOrders(requestParameters) {
|
|
3191
3375
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.autoCancelAllOpenOrders(requestParameters?.symbol, requestParameters?.countdownTime, requestParameters?.recvWindow);
|
|
3192
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3376
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3193
3377
|
}
|
|
3194
3378
|
/**
|
|
3195
3379
|
* Cancel an active algo (conditional) order, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
|
|
@@ -3207,7 +3391,7 @@ var TradeApi$1 = class {
|
|
|
3207
3391
|
*/
|
|
3208
3392
|
async cancelAlgoOrder(requestParameters = {}) {
|
|
3209
3393
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
|
|
3210
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3394
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3211
3395
|
}
|
|
3212
3396
|
/**
|
|
3213
3397
|
* Cancel all open algo (conditional) orders on a symbol, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
|
|
@@ -3223,7 +3407,7 @@ var TradeApi$1 = class {
|
|
|
3223
3407
|
*/
|
|
3224
3408
|
async cancelAllAlgoOpenOrders(requestParameters) {
|
|
3225
3409
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllAlgoOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3226
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3410
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3227
3411
|
}
|
|
3228
3412
|
/**
|
|
3229
3413
|
* Cancel All Open Orders
|
|
@@ -3239,7 +3423,7 @@ var TradeApi$1 = class {
|
|
|
3239
3423
|
*/
|
|
3240
3424
|
async cancelAllOpenOrders(requestParameters) {
|
|
3241
3425
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3242
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3426
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3243
3427
|
}
|
|
3244
3428
|
/**
|
|
3245
3429
|
* Cancel Multiple Orders
|
|
@@ -3257,7 +3441,7 @@ var TradeApi$1 = class {
|
|
|
3257
3441
|
*/
|
|
3258
3442
|
async cancelMultipleOrders(requestParameters) {
|
|
3259
3443
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMultipleOrders(requestParameters?.symbol, requestParameters?.orderIdList, requestParameters?.origClientOrderIdList, requestParameters?.recvWindow);
|
|
3260
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3444
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3261
3445
|
}
|
|
3262
3446
|
/**
|
|
3263
3447
|
* Cancel an active order.
|
|
@@ -3275,7 +3459,7 @@ var TradeApi$1 = class {
|
|
|
3275
3459
|
*/
|
|
3276
3460
|
async cancelOrder(requestParameters) {
|
|
3277
3461
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3278
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3462
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3279
3463
|
}
|
|
3280
3464
|
/**
|
|
3281
3465
|
* Change user's initial leverage of specific symbol market.
|
|
@@ -3291,7 +3475,7 @@ var TradeApi$1 = class {
|
|
|
3291
3475
|
*/
|
|
3292
3476
|
async changeInitialLeverage(requestParameters) {
|
|
3293
3477
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
3294
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3478
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3295
3479
|
}
|
|
3296
3480
|
/**
|
|
3297
3481
|
* Change symbol level margin type
|
|
@@ -3307,7 +3491,7 @@ var TradeApi$1 = class {
|
|
|
3307
3491
|
*/
|
|
3308
3492
|
async changeMarginType(requestParameters) {
|
|
3309
3493
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeMarginType(requestParameters?.symbol, requestParameters?.marginType, requestParameters?.recvWindow);
|
|
3310
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3494
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3311
3495
|
}
|
|
3312
3496
|
/**
|
|
3313
3497
|
* Change user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on ***Every symbol***
|
|
@@ -3323,7 +3507,7 @@ var TradeApi$1 = class {
|
|
|
3323
3507
|
*/
|
|
3324
3508
|
async changeMultiAssetsMode(requestParameters) {
|
|
3325
3509
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeMultiAssetsMode(requestParameters?.multiAssetsMargin, requestParameters?.recvWindow);
|
|
3326
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3510
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3327
3511
|
}
|
|
3328
3512
|
/**
|
|
3329
3513
|
* Change user's position mode (Hedge Mode or One-way Mode ) on ***EVERY symbol***
|
|
@@ -3339,7 +3523,7 @@ var TradeApi$1 = class {
|
|
|
3339
3523
|
*/
|
|
3340
3524
|
async changePositionMode(requestParameters) {
|
|
3341
3525
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changePositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
3342
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3526
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3343
3527
|
}
|
|
3344
3528
|
/**
|
|
3345
3529
|
* Get all open algo (conditional) orders on a symbol, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
|
|
@@ -3358,7 +3542,7 @@ var TradeApi$1 = class {
|
|
|
3358
3542
|
*/
|
|
3359
3543
|
async currentAllAlgoOpenOrders(requestParameters = {}) {
|
|
3360
3544
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.currentAllAlgoOpenOrders(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.algoId, requestParameters?.recvWindow);
|
|
3361
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3545
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3362
3546
|
}
|
|
3363
3547
|
/**
|
|
3364
3548
|
* Get all open orders on a symbol.
|
|
@@ -3377,7 +3561,7 @@ var TradeApi$1 = class {
|
|
|
3377
3561
|
*/
|
|
3378
3562
|
async currentAllOpenOrders(requestParameters = {}) {
|
|
3379
3563
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.currentAllOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3380
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3564
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3381
3565
|
}
|
|
3382
3566
|
/**
|
|
3383
3567
|
* Sign TradFi-Perps agreement contract
|
|
@@ -3393,7 +3577,7 @@ var TradeApi$1 = class {
|
|
|
3393
3577
|
*/
|
|
3394
3578
|
async futuresTradfiPerpsContract(requestParameters = {}) {
|
|
3395
3579
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresTradfiPerpsContract(requestParameters?.recvWindow);
|
|
3396
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3580
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3397
3581
|
}
|
|
3398
3582
|
/**
|
|
3399
3583
|
* Get order modification history
|
|
@@ -3412,7 +3596,7 @@ var TradeApi$1 = class {
|
|
|
3412
3596
|
*/
|
|
3413
3597
|
async getOrderModifyHistory(requestParameters) {
|
|
3414
3598
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOrderModifyHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3415
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3599
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3416
3600
|
}
|
|
3417
3601
|
/**
|
|
3418
3602
|
* Get Position Margin Change History
|
|
@@ -3431,7 +3615,7 @@ var TradeApi$1 = class {
|
|
|
3431
3615
|
*/
|
|
3432
3616
|
async getPositionMarginChangeHistory(requestParameters) {
|
|
3433
3617
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPositionMarginChangeHistory(requestParameters?.symbol, requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3434
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3618
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3435
3619
|
}
|
|
3436
3620
|
/**
|
|
3437
3621
|
* Modify Isolated Position Margin
|
|
@@ -3450,7 +3634,7 @@ var TradeApi$1 = class {
|
|
|
3450
3634
|
*/
|
|
3451
3635
|
async modifyIsolatedPositionMargin(requestParameters) {
|
|
3452
3636
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyIsolatedPositionMargin(requestParameters?.symbol, requestParameters?.amount, requestParameters?.type, requestParameters?.positionSide, requestParameters?.recvWindow);
|
|
3453
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3637
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3454
3638
|
}
|
|
3455
3639
|
/**
|
|
3456
3640
|
* Modify Multiple Orders (TRADE)
|
|
@@ -3473,7 +3657,7 @@ var TradeApi$1 = class {
|
|
|
3473
3657
|
*/
|
|
3474
3658
|
async modifyMultipleOrders(requestParameters) {
|
|
3475
3659
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyMultipleOrders(requestParameters?.batchOrders, requestParameters?.recvWindow);
|
|
3476
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3660
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3477
3661
|
}
|
|
3478
3662
|
/**
|
|
3479
3663
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -3500,7 +3684,7 @@ var TradeApi$1 = class {
|
|
|
3500
3684
|
*/
|
|
3501
3685
|
async modifyOrder(requestParameters) {
|
|
3502
3686
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3503
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3687
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3504
3688
|
}
|
|
3505
3689
|
/**
|
|
3506
3690
|
* Send in a new algo (conditional) order. Use this endpoint to place **TP/SL (Take Profit / Stop Loss)** and trailing stop orders on USD-M Futures. Supported order types under `algoType=CONDITIONAL` are `STOP_MARKET`, `TAKE_PROFIT_MARKET`, `STOP`, `TAKE_PROFIT`, and `TRAILING_STOP_MARKET`.
|
|
@@ -3548,7 +3732,7 @@ var TradeApi$1 = class {
|
|
|
3548
3732
|
*/
|
|
3549
3733
|
async newAlgoOrder(requestParameters) {
|
|
3550
3734
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newAlgoOrder(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.price, requestParameters?.triggerPrice, requestParameters?.workingType, requestParameters?.priceMatch, requestParameters?.closePosition, requestParameters?.priceProtect, requestParameters?.reduceOnly, requestParameters?.activatePrice, requestParameters?.callbackRate, requestParameters?.clientAlgoId, requestParameters?.newOrderRespType, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3551
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3735
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3552
3736
|
}
|
|
3553
3737
|
/**
|
|
3554
3738
|
* Send in a new order.
|
|
@@ -3573,7 +3757,7 @@ var TradeApi$1 = class {
|
|
|
3573
3757
|
*/
|
|
3574
3758
|
async newOrder(requestParameters) {
|
|
3575
3759
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.reduceOnly, requestParameters?.price, requestParameters?.newClientOrderId, requestParameters?.newOrderRespType, requestParameters?.priceMatch, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3576
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3760
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3577
3761
|
}
|
|
3578
3762
|
/**
|
|
3579
3763
|
* Place Multiple Orders
|
|
@@ -3595,7 +3779,7 @@ var TradeApi$1 = class {
|
|
|
3595
3779
|
*/
|
|
3596
3780
|
async placeMultipleOrders(requestParameters) {
|
|
3597
3781
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeMultipleOrders(requestParameters?.batchOrders, requestParameters?.recvWindow);
|
|
3598
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3782
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3599
3783
|
}
|
|
3600
3784
|
/**
|
|
3601
3785
|
* Position ADL Quantile Estimation
|
|
@@ -3618,7 +3802,7 @@ var TradeApi$1 = class {
|
|
|
3618
3802
|
*/
|
|
3619
3803
|
async positionAdlQuantileEstimation(requestParameters = {}) {
|
|
3620
3804
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.positionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3621
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3805
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3622
3806
|
}
|
|
3623
3807
|
/**
|
|
3624
3808
|
* Get current position information.
|
|
@@ -3636,7 +3820,7 @@ var TradeApi$1 = class {
|
|
|
3636
3820
|
*/
|
|
3637
3821
|
async positionInformationV2(requestParameters = {}) {
|
|
3638
3822
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.positionInformationV2(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3639
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3823
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3640
3824
|
}
|
|
3641
3825
|
/**
|
|
3642
3826
|
* Get current position information(only symbol that has position or open orders will be returned).
|
|
@@ -3654,7 +3838,7 @@ var TradeApi$1 = class {
|
|
|
3654
3838
|
*/
|
|
3655
3839
|
async positionInformationV3(requestParameters = {}) {
|
|
3656
3840
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.positionInformationV3(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3657
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3841
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3658
3842
|
}
|
|
3659
3843
|
/**
|
|
3660
3844
|
* Check the status of an algo (conditional) order, such as TP/SL (Take Profit / Stop Loss) or trailing stop orders on USD-M Futures.
|
|
@@ -3677,7 +3861,7 @@ var TradeApi$1 = class {
|
|
|
3677
3861
|
*/
|
|
3678
3862
|
async queryAlgoOrder(requestParameters = {}) {
|
|
3679
3863
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
|
|
3680
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3864
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3681
3865
|
}
|
|
3682
3866
|
/**
|
|
3683
3867
|
* Get all algo (conditional) orders — active, CANCELED, TRIGGERED, or FINISHED — including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
|
|
@@ -3700,7 +3884,7 @@ var TradeApi$1 = class {
|
|
|
3700
3884
|
*/
|
|
3701
3885
|
async queryAllAlgoOrders(requestParameters) {
|
|
3702
3886
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllAlgoOrders(requestParameters?.symbol, requestParameters?.algoId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3703
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3887
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3704
3888
|
}
|
|
3705
3889
|
/**
|
|
3706
3890
|
* Query open order
|
|
@@ -3720,7 +3904,7 @@ var TradeApi$1 = class {
|
|
|
3720
3904
|
*/
|
|
3721
3905
|
async queryCurrentOpenOrder(requestParameters) {
|
|
3722
3906
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3723
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3907
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3724
3908
|
}
|
|
3725
3909
|
/**
|
|
3726
3910
|
* Check an order's status.
|
|
@@ -3743,7 +3927,7 @@ var TradeApi$1 = class {
|
|
|
3743
3927
|
*/
|
|
3744
3928
|
async queryOrder(requestParameters) {
|
|
3745
3929
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3746
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3930
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3747
3931
|
}
|
|
3748
3932
|
/**
|
|
3749
3933
|
* Testing order request, this order will not be submitted to matching engine
|
|
@@ -3796,7 +3980,7 @@ var TradeApi$1 = class {
|
|
|
3796
3980
|
*/
|
|
3797
3981
|
async testOrder(requestParameters) {
|
|
3798
3982
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.reduceOnly, requestParameters?.price, requestParameters?.newClientOrderId, requestParameters?.stopPrice, requestParameters?.closePosition, requestParameters?.activationPrice, requestParameters?.callbackRate, requestParameters?.workingType, requestParameters?.priceProtect, requestParameters?.newOrderRespType, requestParameters?.priceMatch, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3799
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3983
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3800
3984
|
}
|
|
3801
3985
|
/**
|
|
3802
3986
|
* Query user's Force Orders
|
|
@@ -3816,7 +4000,7 @@ var TradeApi$1 = class {
|
|
|
3816
4000
|
*/
|
|
3817
4001
|
async usersForceOrders(requestParameters = {}) {
|
|
3818
4002
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.usersForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3819
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4003
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3820
4004
|
}
|
|
3821
4005
|
};
|
|
3822
4006
|
let ChangeMarginTypeMarginTypeEnum = /* @__PURE__ */ function(ChangeMarginTypeMarginTypeEnum$1) {
|
|
@@ -4014,6 +4198,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4014
4198
|
closeUserDataStream: async () => {
|
|
4015
4199
|
const localVarQueryParameter = {};
|
|
4016
4200
|
const localVarBodyParameter = {};
|
|
4201
|
+
const localVarHeaderParameter = {};
|
|
4017
4202
|
let _timeUnit;
|
|
4018
4203
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4019
4204
|
return {
|
|
@@ -4021,12 +4206,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4021
4206
|
method: "DELETE",
|
|
4022
4207
|
queryParams: localVarQueryParameter,
|
|
4023
4208
|
bodyParams: localVarBodyParameter,
|
|
4209
|
+
headerParams: localVarHeaderParameter,
|
|
4024
4210
|
timeUnit: _timeUnit
|
|
4025
4211
|
};
|
|
4026
4212
|
},
|
|
4027
4213
|
keepaliveUserDataStream: async () => {
|
|
4028
4214
|
const localVarQueryParameter = {};
|
|
4029
4215
|
const localVarBodyParameter = {};
|
|
4216
|
+
const localVarHeaderParameter = {};
|
|
4030
4217
|
let _timeUnit;
|
|
4031
4218
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4032
4219
|
return {
|
|
@@ -4034,12 +4221,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4034
4221
|
method: "PUT",
|
|
4035
4222
|
queryParams: localVarQueryParameter,
|
|
4036
4223
|
bodyParams: localVarBodyParameter,
|
|
4224
|
+
headerParams: localVarHeaderParameter,
|
|
4037
4225
|
timeUnit: _timeUnit
|
|
4038
4226
|
};
|
|
4039
4227
|
},
|
|
4040
4228
|
startUserDataStream: async () => {
|
|
4041
4229
|
const localVarQueryParameter = {};
|
|
4042
4230
|
const localVarBodyParameter = {};
|
|
4231
|
+
const localVarHeaderParameter = {};
|
|
4043
4232
|
let _timeUnit;
|
|
4044
4233
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4045
4234
|
return {
|
|
@@ -4047,6 +4236,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4047
4236
|
method: "POST",
|
|
4048
4237
|
queryParams: localVarQueryParameter,
|
|
4049
4238
|
bodyParams: localVarBodyParameter,
|
|
4239
|
+
headerParams: localVarHeaderParameter,
|
|
4050
4240
|
timeUnit: _timeUnit
|
|
4051
4241
|
};
|
|
4052
4242
|
}
|
|
@@ -4074,7 +4264,7 @@ var UserDataStreamsApi$1 = class {
|
|
|
4074
4264
|
*/
|
|
4075
4265
|
async closeUserDataStream() {
|
|
4076
4266
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
4077
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4267
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4078
4268
|
}
|
|
4079
4269
|
/**
|
|
4080
4270
|
* 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.
|
|
@@ -4089,7 +4279,7 @@ var UserDataStreamsApi$1 = class {
|
|
|
4089
4279
|
*/
|
|
4090
4280
|
async keepaliveUserDataStream() {
|
|
4091
4281
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
4092
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4282
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4093
4283
|
}
|
|
4094
4284
|
/**
|
|
4095
4285
|
* 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.
|
|
@@ -4104,7 +4294,7 @@ var UserDataStreamsApi$1 = class {
|
|
|
4104
4294
|
*/
|
|
4105
4295
|
async startUserDataStream() {
|
|
4106
4296
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
4107
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4297
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4108
4298
|
}
|
|
4109
4299
|
};
|
|
4110
4300
|
|
|
@@ -4142,7 +4332,7 @@ var RestAPI = class {
|
|
|
4142
4332
|
* @returns A promise resolving to the response data object.
|
|
4143
4333
|
*/
|
|
4144
4334
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4145
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
4335
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
4146
4336
|
}
|
|
4147
4337
|
/**
|
|
4148
4338
|
* Generic function to send a signed request.
|
|
@@ -4154,7 +4344,7 @@ var RestAPI = class {
|
|
|
4154
4344
|
* @returns A promise resolving to the response data object.
|
|
4155
4345
|
*/
|
|
4156
4346
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4157
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
4347
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
4158
4348
|
}
|
|
4159
4349
|
/**
|
|
4160
4350
|
* Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
|