@binance/derivatives-trading-portfolio-margin 14.0.1 → 14.0.3
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 +330 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +330 -112
- 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-portfolio-margin";
|
|
17
|
-
var version = "14.0.
|
|
17
|
+
var version = "14.0.3";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -38,6 +38,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
38
38
|
accountBalance: async (asset, recvWindow) => {
|
|
39
39
|
const localVarQueryParameter = {};
|
|
40
40
|
const localVarBodyParameter = {};
|
|
41
|
+
const localVarHeaderParameter = {};
|
|
41
42
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
42
43
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
43
44
|
let _timeUnit;
|
|
@@ -47,12 +48,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
47
48
|
method: "GET",
|
|
48
49
|
queryParams: localVarQueryParameter,
|
|
49
50
|
bodyParams: localVarBodyParameter,
|
|
51
|
+
headerParams: localVarHeaderParameter,
|
|
50
52
|
timeUnit: _timeUnit
|
|
51
53
|
};
|
|
52
54
|
},
|
|
53
55
|
accountInformation: async (recvWindow) => {
|
|
54
56
|
const localVarQueryParameter = {};
|
|
55
57
|
const localVarBodyParameter = {};
|
|
58
|
+
const localVarHeaderParameter = {};
|
|
56
59
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
57
60
|
let _timeUnit;
|
|
58
61
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -61,6 +64,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
61
64
|
method: "GET",
|
|
62
65
|
queryParams: localVarQueryParameter,
|
|
63
66
|
bodyParams: localVarBodyParameter,
|
|
67
|
+
headerParams: localVarHeaderParameter,
|
|
64
68
|
timeUnit: _timeUnit
|
|
65
69
|
};
|
|
66
70
|
},
|
|
@@ -69,6 +73,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
69
73
|
(0, __binance_common.assertParamExists)("bnbTransfer", "transferSide", transferSide);
|
|
70
74
|
const localVarQueryParameter = {};
|
|
71
75
|
const localVarBodyParameter = {};
|
|
76
|
+
const localVarHeaderParameter = {};
|
|
72
77
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
73
78
|
if (transferSide !== void 0 && transferSide !== null) localVarQueryParameter["transferSide"] = transferSide;
|
|
74
79
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -79,6 +84,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
79
84
|
method: "POST",
|
|
80
85
|
queryParams: localVarQueryParameter,
|
|
81
86
|
bodyParams: localVarBodyParameter,
|
|
87
|
+
headerParams: localVarHeaderParameter,
|
|
82
88
|
timeUnit: _timeUnit
|
|
83
89
|
};
|
|
84
90
|
},
|
|
@@ -86,6 +92,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
86
92
|
(0, __binance_common.assertParamExists)("changeAutoRepayFuturesStatus", "autoRepay", autoRepay);
|
|
87
93
|
const localVarQueryParameter = {};
|
|
88
94
|
const localVarBodyParameter = {};
|
|
95
|
+
const localVarHeaderParameter = {};
|
|
89
96
|
if (autoRepay !== void 0 && autoRepay !== null) localVarQueryParameter["autoRepay"] = autoRepay;
|
|
90
97
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
91
98
|
let _timeUnit;
|
|
@@ -95,6 +102,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
95
102
|
method: "POST",
|
|
96
103
|
queryParams: localVarQueryParameter,
|
|
97
104
|
bodyParams: localVarBodyParameter,
|
|
105
|
+
headerParams: localVarHeaderParameter,
|
|
98
106
|
timeUnit: _timeUnit
|
|
99
107
|
};
|
|
100
108
|
},
|
|
@@ -103,6 +111,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
103
111
|
(0, __binance_common.assertParamExists)("changeCmInitialLeverage", "leverage", leverage);
|
|
104
112
|
const localVarQueryParameter = {};
|
|
105
113
|
const localVarBodyParameter = {};
|
|
114
|
+
const localVarHeaderParameter = {};
|
|
106
115
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
107
116
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
108
117
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -113,6 +122,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
113
122
|
method: "POST",
|
|
114
123
|
queryParams: localVarQueryParameter,
|
|
115
124
|
bodyParams: localVarBodyParameter,
|
|
125
|
+
headerParams: localVarHeaderParameter,
|
|
116
126
|
timeUnit: _timeUnit
|
|
117
127
|
};
|
|
118
128
|
},
|
|
@@ -120,6 +130,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
120
130
|
(0, __binance_common.assertParamExists)("changeCmPositionMode", "dualSidePosition", dualSidePosition);
|
|
121
131
|
const localVarQueryParameter = {};
|
|
122
132
|
const localVarBodyParameter = {};
|
|
133
|
+
const localVarHeaderParameter = {};
|
|
123
134
|
if (dualSidePosition !== void 0 && dualSidePosition !== null) localVarQueryParameter["dualSidePosition"] = dualSidePosition;
|
|
124
135
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
125
136
|
let _timeUnit;
|
|
@@ -129,6 +140,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
129
140
|
method: "POST",
|
|
130
141
|
queryParams: localVarQueryParameter,
|
|
131
142
|
bodyParams: localVarBodyParameter,
|
|
143
|
+
headerParams: localVarHeaderParameter,
|
|
132
144
|
timeUnit: _timeUnit
|
|
133
145
|
};
|
|
134
146
|
},
|
|
@@ -137,6 +149,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
137
149
|
(0, __binance_common.assertParamExists)("changeUmInitialLeverage", "leverage", leverage);
|
|
138
150
|
const localVarQueryParameter = {};
|
|
139
151
|
const localVarBodyParameter = {};
|
|
152
|
+
const localVarHeaderParameter = {};
|
|
140
153
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
141
154
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
142
155
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -147,6 +160,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
147
160
|
method: "POST",
|
|
148
161
|
queryParams: localVarQueryParameter,
|
|
149
162
|
bodyParams: localVarBodyParameter,
|
|
163
|
+
headerParams: localVarHeaderParameter,
|
|
150
164
|
timeUnit: _timeUnit
|
|
151
165
|
};
|
|
152
166
|
},
|
|
@@ -154,6 +168,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
154
168
|
(0, __binance_common.assertParamExists)("changeUmPositionMode", "dualSidePosition", dualSidePosition);
|
|
155
169
|
const localVarQueryParameter = {};
|
|
156
170
|
const localVarBodyParameter = {};
|
|
171
|
+
const localVarHeaderParameter = {};
|
|
157
172
|
if (dualSidePosition !== void 0 && dualSidePosition !== null) localVarQueryParameter["dualSidePosition"] = dualSidePosition;
|
|
158
173
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
159
174
|
let _timeUnit;
|
|
@@ -163,12 +178,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
163
178
|
method: "POST",
|
|
164
179
|
queryParams: localVarQueryParameter,
|
|
165
180
|
bodyParams: localVarBodyParameter,
|
|
181
|
+
headerParams: localVarHeaderParameter,
|
|
166
182
|
timeUnit: _timeUnit
|
|
167
183
|
};
|
|
168
184
|
},
|
|
169
185
|
cmNotionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
170
186
|
const localVarQueryParameter = {};
|
|
171
187
|
const localVarBodyParameter = {};
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
172
189
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
173
190
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
174
191
|
let _timeUnit;
|
|
@@ -178,12 +195,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
178
195
|
method: "GET",
|
|
179
196
|
queryParams: localVarQueryParameter,
|
|
180
197
|
bodyParams: localVarBodyParameter,
|
|
198
|
+
headerParams: localVarHeaderParameter,
|
|
181
199
|
timeUnit: _timeUnit
|
|
182
200
|
};
|
|
183
201
|
},
|
|
184
202
|
fundAutoCollection: async (recvWindow) => {
|
|
185
203
|
const localVarQueryParameter = {};
|
|
186
204
|
const localVarBodyParameter = {};
|
|
205
|
+
const localVarHeaderParameter = {};
|
|
187
206
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
188
207
|
let _timeUnit;
|
|
189
208
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -192,6 +211,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
192
211
|
method: "POST",
|
|
193
212
|
queryParams: localVarQueryParameter,
|
|
194
213
|
bodyParams: localVarBodyParameter,
|
|
214
|
+
headerParams: localVarHeaderParameter,
|
|
195
215
|
timeUnit: _timeUnit
|
|
196
216
|
};
|
|
197
217
|
},
|
|
@@ -199,6 +219,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
199
219
|
(0, __binance_common.assertParamExists)("fundCollectionByAsset", "asset", asset);
|
|
200
220
|
const localVarQueryParameter = {};
|
|
201
221
|
const localVarBodyParameter = {};
|
|
222
|
+
const localVarHeaderParameter = {};
|
|
202
223
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
203
224
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
204
225
|
let _timeUnit;
|
|
@@ -208,12 +229,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
208
229
|
method: "POST",
|
|
209
230
|
queryParams: localVarQueryParameter,
|
|
210
231
|
bodyParams: localVarBodyParameter,
|
|
232
|
+
headerParams: localVarHeaderParameter,
|
|
211
233
|
timeUnit: _timeUnit
|
|
212
234
|
};
|
|
213
235
|
},
|
|
214
236
|
getAutoRepayFuturesStatus: async (recvWindow) => {
|
|
215
237
|
const localVarQueryParameter = {};
|
|
216
238
|
const localVarBodyParameter = {};
|
|
239
|
+
const localVarHeaderParameter = {};
|
|
217
240
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
218
241
|
let _timeUnit;
|
|
219
242
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -222,12 +245,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
222
245
|
method: "GET",
|
|
223
246
|
queryParams: localVarQueryParameter,
|
|
224
247
|
bodyParams: localVarBodyParameter,
|
|
248
|
+
headerParams: localVarHeaderParameter,
|
|
225
249
|
timeUnit: _timeUnit
|
|
226
250
|
};
|
|
227
251
|
},
|
|
228
252
|
getCmAccountDetail: async (recvWindow) => {
|
|
229
253
|
const localVarQueryParameter = {};
|
|
230
254
|
const localVarBodyParameter = {};
|
|
255
|
+
const localVarHeaderParameter = {};
|
|
231
256
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
232
257
|
let _timeUnit;
|
|
233
258
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -236,12 +261,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
236
261
|
method: "GET",
|
|
237
262
|
queryParams: localVarQueryParameter,
|
|
238
263
|
bodyParams: localVarBodyParameter,
|
|
264
|
+
headerParams: localVarHeaderParameter,
|
|
239
265
|
timeUnit: _timeUnit
|
|
240
266
|
};
|
|
241
267
|
},
|
|
242
268
|
getCmCurrentPositionMode: async (recvWindow) => {
|
|
243
269
|
const localVarQueryParameter = {};
|
|
244
270
|
const localVarBodyParameter = {};
|
|
271
|
+
const localVarHeaderParameter = {};
|
|
245
272
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
246
273
|
let _timeUnit;
|
|
247
274
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -250,12 +277,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
250
277
|
method: "GET",
|
|
251
278
|
queryParams: localVarQueryParameter,
|
|
252
279
|
bodyParams: localVarBodyParameter,
|
|
280
|
+
headerParams: localVarHeaderParameter,
|
|
253
281
|
timeUnit: _timeUnit
|
|
254
282
|
};
|
|
255
283
|
},
|
|
256
284
|
getCmIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
257
285
|
const localVarQueryParameter = {};
|
|
258
286
|
const localVarBodyParameter = {};
|
|
287
|
+
const localVarHeaderParameter = {};
|
|
259
288
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
260
289
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
261
290
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -270,6 +299,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
270
299
|
method: "GET",
|
|
271
300
|
queryParams: localVarQueryParameter,
|
|
272
301
|
bodyParams: localVarBodyParameter,
|
|
302
|
+
headerParams: localVarHeaderParameter,
|
|
273
303
|
timeUnit: _timeUnit
|
|
274
304
|
};
|
|
275
305
|
},
|
|
@@ -278,6 +308,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
278
308
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesOrderHistory", "endTime", endTime);
|
|
279
309
|
const localVarQueryParameter = {};
|
|
280
310
|
const localVarBodyParameter = {};
|
|
311
|
+
const localVarHeaderParameter = {};
|
|
281
312
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
282
313
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
283
314
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -288,6 +319,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
288
319
|
method: "GET",
|
|
289
320
|
queryParams: localVarQueryParameter,
|
|
290
321
|
bodyParams: localVarBodyParameter,
|
|
322
|
+
headerParams: localVarHeaderParameter,
|
|
291
323
|
timeUnit: _timeUnit
|
|
292
324
|
};
|
|
293
325
|
},
|
|
@@ -296,6 +328,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
296
328
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesTradeHistory", "endTime", endTime);
|
|
297
329
|
const localVarQueryParameter = {};
|
|
298
330
|
const localVarBodyParameter = {};
|
|
331
|
+
const localVarHeaderParameter = {};
|
|
299
332
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
300
333
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
301
334
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -306,6 +339,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
306
339
|
method: "GET",
|
|
307
340
|
queryParams: localVarQueryParameter,
|
|
308
341
|
bodyParams: localVarBodyParameter,
|
|
342
|
+
headerParams: localVarHeaderParameter,
|
|
309
343
|
timeUnit: _timeUnit
|
|
310
344
|
};
|
|
311
345
|
},
|
|
@@ -314,6 +348,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
314
348
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesTransactionHistory", "endTime", endTime);
|
|
315
349
|
const localVarQueryParameter = {};
|
|
316
350
|
const localVarBodyParameter = {};
|
|
351
|
+
const localVarHeaderParameter = {};
|
|
317
352
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
318
353
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
319
354
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -324,12 +359,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
324
359
|
method: "GET",
|
|
325
360
|
queryParams: localVarQueryParameter,
|
|
326
361
|
bodyParams: localVarBodyParameter,
|
|
362
|
+
headerParams: localVarHeaderParameter,
|
|
327
363
|
timeUnit: _timeUnit
|
|
328
364
|
};
|
|
329
365
|
},
|
|
330
366
|
getMarginBorrowLoanInterestHistory: async (asset, startTime, endTime, current, size, archived, recvWindow) => {
|
|
331
367
|
const localVarQueryParameter = {};
|
|
332
368
|
const localVarBodyParameter = {};
|
|
369
|
+
const localVarHeaderParameter = {};
|
|
333
370
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
334
371
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
335
372
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -344,12 +381,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
344
381
|
method: "GET",
|
|
345
382
|
queryParams: localVarQueryParameter,
|
|
346
383
|
bodyParams: localVarBodyParameter,
|
|
384
|
+
headerParams: localVarHeaderParameter,
|
|
347
385
|
timeUnit: _timeUnit
|
|
348
386
|
};
|
|
349
387
|
},
|
|
350
388
|
getUmAccountDetail: async (recvWindow) => {
|
|
351
389
|
const localVarQueryParameter = {};
|
|
352
390
|
const localVarBodyParameter = {};
|
|
391
|
+
const localVarHeaderParameter = {};
|
|
353
392
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
354
393
|
let _timeUnit;
|
|
355
394
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -358,12 +397,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
358
397
|
method: "GET",
|
|
359
398
|
queryParams: localVarQueryParameter,
|
|
360
399
|
bodyParams: localVarBodyParameter,
|
|
400
|
+
headerParams: localVarHeaderParameter,
|
|
361
401
|
timeUnit: _timeUnit
|
|
362
402
|
};
|
|
363
403
|
},
|
|
364
404
|
getUmAccountDetailV2: async (recvWindow) => {
|
|
365
405
|
const localVarQueryParameter = {};
|
|
366
406
|
const localVarBodyParameter = {};
|
|
407
|
+
const localVarHeaderParameter = {};
|
|
367
408
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
368
409
|
let _timeUnit;
|
|
369
410
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -372,12 +413,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
372
413
|
method: "GET",
|
|
373
414
|
queryParams: localVarQueryParameter,
|
|
374
415
|
bodyParams: localVarBodyParameter,
|
|
416
|
+
headerParams: localVarHeaderParameter,
|
|
375
417
|
timeUnit: _timeUnit
|
|
376
418
|
};
|
|
377
419
|
},
|
|
378
420
|
getUmCurrentPositionMode: async (recvWindow) => {
|
|
379
421
|
const localVarQueryParameter = {};
|
|
380
422
|
const localVarBodyParameter = {};
|
|
423
|
+
const localVarHeaderParameter = {};
|
|
381
424
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
382
425
|
let _timeUnit;
|
|
383
426
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -386,6 +429,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
386
429
|
method: "GET",
|
|
387
430
|
queryParams: localVarQueryParameter,
|
|
388
431
|
bodyParams: localVarBodyParameter,
|
|
432
|
+
headerParams: localVarHeaderParameter,
|
|
389
433
|
timeUnit: _timeUnit
|
|
390
434
|
};
|
|
391
435
|
},
|
|
@@ -393,6 +437,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
393
437
|
(0, __binance_common.assertParamExists)("getUmFuturesOrderDownloadLinkById", "downloadId", downloadId);
|
|
394
438
|
const localVarQueryParameter = {};
|
|
395
439
|
const localVarBodyParameter = {};
|
|
440
|
+
const localVarHeaderParameter = {};
|
|
396
441
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
397
442
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
398
443
|
let _timeUnit;
|
|
@@ -402,6 +447,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
402
447
|
method: "GET",
|
|
403
448
|
queryParams: localVarQueryParameter,
|
|
404
449
|
bodyParams: localVarBodyParameter,
|
|
450
|
+
headerParams: localVarHeaderParameter,
|
|
405
451
|
timeUnit: _timeUnit
|
|
406
452
|
};
|
|
407
453
|
},
|
|
@@ -409,6 +455,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
409
455
|
(0, __binance_common.assertParamExists)("getUmFuturesTradeDownloadLinkById", "downloadId", downloadId);
|
|
410
456
|
const localVarQueryParameter = {};
|
|
411
457
|
const localVarBodyParameter = {};
|
|
458
|
+
const localVarHeaderParameter = {};
|
|
412
459
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
413
460
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
414
461
|
let _timeUnit;
|
|
@@ -418,6 +465,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
418
465
|
method: "GET",
|
|
419
466
|
queryParams: localVarQueryParameter,
|
|
420
467
|
bodyParams: localVarBodyParameter,
|
|
468
|
+
headerParams: localVarHeaderParameter,
|
|
421
469
|
timeUnit: _timeUnit
|
|
422
470
|
};
|
|
423
471
|
},
|
|
@@ -425,6 +473,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
425
473
|
(0, __binance_common.assertParamExists)("getUmFuturesTransactionDownloadLinkById", "downloadId", downloadId);
|
|
426
474
|
const localVarQueryParameter = {};
|
|
427
475
|
const localVarBodyParameter = {};
|
|
476
|
+
const localVarHeaderParameter = {};
|
|
428
477
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
429
478
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
430
479
|
let _timeUnit;
|
|
@@ -434,12 +483,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
434
483
|
method: "GET",
|
|
435
484
|
queryParams: localVarQueryParameter,
|
|
436
485
|
bodyParams: localVarBodyParameter,
|
|
486
|
+
headerParams: localVarHeaderParameter,
|
|
437
487
|
timeUnit: _timeUnit
|
|
438
488
|
};
|
|
439
489
|
},
|
|
440
490
|
getUmIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
441
491
|
const localVarQueryParameter = {};
|
|
442
492
|
const localVarBodyParameter = {};
|
|
493
|
+
const localVarHeaderParameter = {};
|
|
443
494
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
444
495
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
445
496
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -454,6 +505,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
454
505
|
method: "GET",
|
|
455
506
|
queryParams: localVarQueryParameter,
|
|
456
507
|
bodyParams: localVarBodyParameter,
|
|
508
|
+
headerParams: localVarHeaderParameter,
|
|
457
509
|
timeUnit: _timeUnit
|
|
458
510
|
};
|
|
459
511
|
},
|
|
@@ -461,6 +513,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
461
513
|
(0, __binance_common.assertParamExists)("getUserCommissionRateForCm", "symbol", symbol);
|
|
462
514
|
const localVarQueryParameter = {};
|
|
463
515
|
const localVarBodyParameter = {};
|
|
516
|
+
const localVarHeaderParameter = {};
|
|
464
517
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
465
518
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
466
519
|
let _timeUnit;
|
|
@@ -470,6 +523,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
470
523
|
method: "GET",
|
|
471
524
|
queryParams: localVarQueryParameter,
|
|
472
525
|
bodyParams: localVarBodyParameter,
|
|
526
|
+
headerParams: localVarHeaderParameter,
|
|
473
527
|
timeUnit: _timeUnit
|
|
474
528
|
};
|
|
475
529
|
},
|
|
@@ -477,6 +531,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
477
531
|
(0, __binance_common.assertParamExists)("getUserCommissionRateForUm", "symbol", symbol);
|
|
478
532
|
const localVarQueryParameter = {};
|
|
479
533
|
const localVarBodyParameter = {};
|
|
534
|
+
const localVarHeaderParameter = {};
|
|
480
535
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
481
536
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
482
537
|
let _timeUnit;
|
|
@@ -486,6 +541,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
486
541
|
method: "GET",
|
|
487
542
|
queryParams: localVarQueryParameter,
|
|
488
543
|
bodyParams: localVarBodyParameter,
|
|
544
|
+
headerParams: localVarHeaderParameter,
|
|
489
545
|
timeUnit: _timeUnit
|
|
490
546
|
};
|
|
491
547
|
},
|
|
@@ -493,6 +549,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
493
549
|
(0, __binance_common.assertParamExists)("marginMaxBorrow", "asset", asset);
|
|
494
550
|
const localVarQueryParameter = {};
|
|
495
551
|
const localVarBodyParameter = {};
|
|
552
|
+
const localVarHeaderParameter = {};
|
|
496
553
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
497
554
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
498
555
|
let _timeUnit;
|
|
@@ -502,12 +559,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
502
559
|
method: "GET",
|
|
503
560
|
queryParams: localVarQueryParameter,
|
|
504
561
|
bodyParams: localVarBodyParameter,
|
|
562
|
+
headerParams: localVarHeaderParameter,
|
|
505
563
|
timeUnit: _timeUnit
|
|
506
564
|
};
|
|
507
565
|
},
|
|
508
566
|
portfolioMarginUmTradingQuantitativeRulesIndicators: async (symbol, recvWindow) => {
|
|
509
567
|
const localVarQueryParameter = {};
|
|
510
568
|
const localVarBodyParameter = {};
|
|
569
|
+
const localVarHeaderParameter = {};
|
|
511
570
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
512
571
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
513
572
|
let _timeUnit;
|
|
@@ -517,12 +576,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
517
576
|
method: "GET",
|
|
518
577
|
queryParams: localVarQueryParameter,
|
|
519
578
|
bodyParams: localVarBodyParameter,
|
|
579
|
+
headerParams: localVarHeaderParameter,
|
|
520
580
|
timeUnit: _timeUnit
|
|
521
581
|
};
|
|
522
582
|
},
|
|
523
583
|
queryCmPositionInformation: async (marginAsset, pair, recvWindow) => {
|
|
524
584
|
const localVarQueryParameter = {};
|
|
525
585
|
const localVarBodyParameter = {};
|
|
586
|
+
const localVarHeaderParameter = {};
|
|
526
587
|
if (marginAsset !== void 0 && marginAsset !== null) localVarQueryParameter["marginAsset"] = marginAsset;
|
|
527
588
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
528
589
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -533,6 +594,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
533
594
|
method: "GET",
|
|
534
595
|
queryParams: localVarQueryParameter,
|
|
535
596
|
bodyParams: localVarBodyParameter,
|
|
597
|
+
headerParams: localVarHeaderParameter,
|
|
536
598
|
timeUnit: _timeUnit
|
|
537
599
|
};
|
|
538
600
|
},
|
|
@@ -540,6 +602,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
540
602
|
(0, __binance_common.assertParamExists)("queryMarginLoanRecord", "asset", asset);
|
|
541
603
|
const localVarQueryParameter = {};
|
|
542
604
|
const localVarBodyParameter = {};
|
|
605
|
+
const localVarHeaderParameter = {};
|
|
543
606
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
544
607
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
545
608
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -555,6 +618,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
555
618
|
method: "GET",
|
|
556
619
|
queryParams: localVarQueryParameter,
|
|
557
620
|
bodyParams: localVarBodyParameter,
|
|
621
|
+
headerParams: localVarHeaderParameter,
|
|
558
622
|
timeUnit: _timeUnit
|
|
559
623
|
};
|
|
560
624
|
},
|
|
@@ -562,6 +626,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
562
626
|
(0, __binance_common.assertParamExists)("queryMarginMaxWithdraw", "asset", asset);
|
|
563
627
|
const localVarQueryParameter = {};
|
|
564
628
|
const localVarBodyParameter = {};
|
|
629
|
+
const localVarHeaderParameter = {};
|
|
565
630
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
566
631
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
567
632
|
let _timeUnit;
|
|
@@ -571,6 +636,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
571
636
|
method: "GET",
|
|
572
637
|
queryParams: localVarQueryParameter,
|
|
573
638
|
bodyParams: localVarBodyParameter,
|
|
639
|
+
headerParams: localVarHeaderParameter,
|
|
574
640
|
timeUnit: _timeUnit
|
|
575
641
|
};
|
|
576
642
|
},
|
|
@@ -578,6 +644,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
578
644
|
(0, __binance_common.assertParamExists)("queryMarginRepayRecord", "asset", asset);
|
|
579
645
|
const localVarQueryParameter = {};
|
|
580
646
|
const localVarBodyParameter = {};
|
|
647
|
+
const localVarHeaderParameter = {};
|
|
581
648
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
582
649
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
583
650
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -593,12 +660,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
593
660
|
method: "GET",
|
|
594
661
|
queryParams: localVarQueryParameter,
|
|
595
662
|
bodyParams: localVarBodyParameter,
|
|
663
|
+
headerParams: localVarHeaderParameter,
|
|
596
664
|
timeUnit: _timeUnit
|
|
597
665
|
};
|
|
598
666
|
},
|
|
599
667
|
queryPortfolioMarginNegativeBalanceInterestHistory: async (asset, startTime, endTime, size, recvWindow) => {
|
|
600
668
|
const localVarQueryParameter = {};
|
|
601
669
|
const localVarBodyParameter = {};
|
|
670
|
+
const localVarHeaderParameter = {};
|
|
602
671
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
603
672
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
604
673
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -611,12 +680,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
611
680
|
method: "GET",
|
|
612
681
|
queryParams: localVarQueryParameter,
|
|
613
682
|
bodyParams: localVarBodyParameter,
|
|
683
|
+
headerParams: localVarHeaderParameter,
|
|
614
684
|
timeUnit: _timeUnit
|
|
615
685
|
};
|
|
616
686
|
},
|
|
617
687
|
queryUmPositionInformation: async (symbol, recvWindow) => {
|
|
618
688
|
const localVarQueryParameter = {};
|
|
619
689
|
const localVarBodyParameter = {};
|
|
690
|
+
const localVarHeaderParameter = {};
|
|
620
691
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
621
692
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
622
693
|
let _timeUnit;
|
|
@@ -626,6 +697,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
626
697
|
method: "GET",
|
|
627
698
|
queryParams: localVarQueryParameter,
|
|
628
699
|
bodyParams: localVarBodyParameter,
|
|
700
|
+
headerParams: localVarHeaderParameter,
|
|
629
701
|
timeUnit: _timeUnit
|
|
630
702
|
};
|
|
631
703
|
},
|
|
@@ -634,6 +706,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
634
706
|
(0, __binance_common.assertParamExists)("queryUserNegativeBalanceAutoExchangeRecord", "endTime", endTime);
|
|
635
707
|
const localVarQueryParameter = {};
|
|
636
708
|
const localVarBodyParameter = {};
|
|
709
|
+
const localVarHeaderParameter = {};
|
|
637
710
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
638
711
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
639
712
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -644,12 +717,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
644
717
|
method: "GET",
|
|
645
718
|
queryParams: localVarQueryParameter,
|
|
646
719
|
bodyParams: localVarBodyParameter,
|
|
720
|
+
headerParams: localVarHeaderParameter,
|
|
647
721
|
timeUnit: _timeUnit
|
|
648
722
|
};
|
|
649
723
|
},
|
|
650
724
|
queryUserRateLimit: async (recvWindow) => {
|
|
651
725
|
const localVarQueryParameter = {};
|
|
652
726
|
const localVarBodyParameter = {};
|
|
727
|
+
const localVarHeaderParameter = {};
|
|
653
728
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
654
729
|
let _timeUnit;
|
|
655
730
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -658,12 +733,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
658
733
|
method: "GET",
|
|
659
734
|
queryParams: localVarQueryParameter,
|
|
660
735
|
bodyParams: localVarBodyParameter,
|
|
736
|
+
headerParams: localVarHeaderParameter,
|
|
661
737
|
timeUnit: _timeUnit
|
|
662
738
|
};
|
|
663
739
|
},
|
|
664
740
|
repayFuturesNegativeBalance: async (recvWindow) => {
|
|
665
741
|
const localVarQueryParameter = {};
|
|
666
742
|
const localVarBodyParameter = {};
|
|
743
|
+
const localVarHeaderParameter = {};
|
|
667
744
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
668
745
|
let _timeUnit;
|
|
669
746
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -672,12 +749,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
672
749
|
method: "POST",
|
|
673
750
|
queryParams: localVarQueryParameter,
|
|
674
751
|
bodyParams: localVarBodyParameter,
|
|
752
|
+
headerParams: localVarHeaderParameter,
|
|
675
753
|
timeUnit: _timeUnit
|
|
676
754
|
};
|
|
677
755
|
},
|
|
678
756
|
umFuturesAccountConfiguration: async (recvWindow) => {
|
|
679
757
|
const localVarQueryParameter = {};
|
|
680
758
|
const localVarBodyParameter = {};
|
|
759
|
+
const localVarHeaderParameter = {};
|
|
681
760
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
682
761
|
let _timeUnit;
|
|
683
762
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -686,12 +765,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
686
765
|
method: "GET",
|
|
687
766
|
queryParams: localVarQueryParameter,
|
|
688
767
|
bodyParams: localVarBodyParameter,
|
|
768
|
+
headerParams: localVarHeaderParameter,
|
|
689
769
|
timeUnit: _timeUnit
|
|
690
770
|
};
|
|
691
771
|
},
|
|
692
772
|
umFuturesSymbolConfiguration: async (symbol, recvWindow) => {
|
|
693
773
|
const localVarQueryParameter = {};
|
|
694
774
|
const localVarBodyParameter = {};
|
|
775
|
+
const localVarHeaderParameter = {};
|
|
695
776
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
696
777
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
697
778
|
let _timeUnit;
|
|
@@ -701,12 +782,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
701
782
|
method: "GET",
|
|
702
783
|
queryParams: localVarQueryParameter,
|
|
703
784
|
bodyParams: localVarBodyParameter,
|
|
785
|
+
headerParams: localVarHeaderParameter,
|
|
704
786
|
timeUnit: _timeUnit
|
|
705
787
|
};
|
|
706
788
|
},
|
|
707
789
|
umNotionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
708
790
|
const localVarQueryParameter = {};
|
|
709
791
|
const localVarBodyParameter = {};
|
|
792
|
+
const localVarHeaderParameter = {};
|
|
710
793
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
711
794
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
712
795
|
let _timeUnit;
|
|
@@ -716,6 +799,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
716
799
|
method: "GET",
|
|
717
800
|
queryParams: localVarQueryParameter,
|
|
718
801
|
bodyParams: localVarBodyParameter,
|
|
802
|
+
headerParams: localVarHeaderParameter,
|
|
719
803
|
timeUnit: _timeUnit
|
|
720
804
|
};
|
|
721
805
|
}
|
|
@@ -744,7 +828,7 @@ var AccountApi = class {
|
|
|
744
828
|
*/
|
|
745
829
|
async accountBalance(requestParameters = {}) {
|
|
746
830
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBalance(requestParameters?.asset, requestParameters?.recvWindow);
|
|
747
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
831
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
748
832
|
}
|
|
749
833
|
/**
|
|
750
834
|
* Query account information
|
|
@@ -760,7 +844,7 @@ var AccountApi = class {
|
|
|
760
844
|
*/
|
|
761
845
|
async accountInformation(requestParameters = {}) {
|
|
762
846
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInformation(requestParameters?.recvWindow);
|
|
763
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
847
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
764
848
|
}
|
|
765
849
|
/**
|
|
766
850
|
* Transfer BNB in and out of UM
|
|
@@ -778,7 +862,7 @@ var AccountApi = class {
|
|
|
778
862
|
*/
|
|
779
863
|
async bnbTransfer(requestParameters) {
|
|
780
864
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.bnbTransfer(requestParameters?.amount, requestParameters?.transferSide, requestParameters?.recvWindow);
|
|
781
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
865
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
782
866
|
}
|
|
783
867
|
/**
|
|
784
868
|
* Change Auto-repay-futures Status
|
|
@@ -794,7 +878,7 @@ var AccountApi = class {
|
|
|
794
878
|
*/
|
|
795
879
|
async changeAutoRepayFuturesStatus(requestParameters) {
|
|
796
880
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeAutoRepayFuturesStatus(requestParameters?.autoRepay, requestParameters?.recvWindow);
|
|
797
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
881
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
798
882
|
}
|
|
799
883
|
/**
|
|
800
884
|
* Change user's initial leverage of specific symbol in CM.
|
|
@@ -810,7 +894,7 @@ var AccountApi = class {
|
|
|
810
894
|
*/
|
|
811
895
|
async changeCmInitialLeverage(requestParameters) {
|
|
812
896
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeCmInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
813
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
897
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
814
898
|
}
|
|
815
899
|
/**
|
|
816
900
|
* Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
|
|
@@ -826,7 +910,7 @@ var AccountApi = class {
|
|
|
826
910
|
*/
|
|
827
911
|
async changeCmPositionMode(requestParameters) {
|
|
828
912
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeCmPositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
829
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
913
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
830
914
|
}
|
|
831
915
|
/**
|
|
832
916
|
* Change user's initial leverage of specific symbol in UM.
|
|
@@ -842,7 +926,7 @@ var AccountApi = class {
|
|
|
842
926
|
*/
|
|
843
927
|
async changeUmInitialLeverage(requestParameters) {
|
|
844
928
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeUmInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
845
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
929
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
846
930
|
}
|
|
847
931
|
/**
|
|
848
932
|
* Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
|
|
@@ -858,7 +942,7 @@ var AccountApi = class {
|
|
|
858
942
|
*/
|
|
859
943
|
async changeUmPositionMode(requestParameters) {
|
|
860
944
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeUmPositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
861
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
945
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
862
946
|
}
|
|
863
947
|
/**
|
|
864
948
|
* Query CM notional and leverage brackets
|
|
@@ -874,7 +958,7 @@ var AccountApi = class {
|
|
|
874
958
|
*/
|
|
875
959
|
async cmNotionalAndLeverageBrackets(requestParameters = {}) {
|
|
876
960
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmNotionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
877
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
961
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
878
962
|
}
|
|
879
963
|
/**
|
|
880
964
|
* Fund collection for Portfolio Margin
|
|
@@ -893,7 +977,7 @@ var AccountApi = class {
|
|
|
893
977
|
*/
|
|
894
978
|
async fundAutoCollection(requestParameters = {}) {
|
|
895
979
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundAutoCollection(requestParameters?.recvWindow);
|
|
896
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
980
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
897
981
|
}
|
|
898
982
|
/**
|
|
899
983
|
* Transfers specific asset from Futures Account to Margin account
|
|
@@ -911,7 +995,7 @@ var AccountApi = class {
|
|
|
911
995
|
*/
|
|
912
996
|
async fundCollectionByAsset(requestParameters) {
|
|
913
997
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundCollectionByAsset(requestParameters?.asset, requestParameters?.recvWindow);
|
|
914
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
998
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
915
999
|
}
|
|
916
1000
|
/**
|
|
917
1001
|
* Query Auto-repay-futures Status
|
|
@@ -927,7 +1011,7 @@ var AccountApi = class {
|
|
|
927
1011
|
*/
|
|
928
1012
|
async getAutoRepayFuturesStatus(requestParameters = {}) {
|
|
929
1013
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoRepayFuturesStatus(requestParameters?.recvWindow);
|
|
930
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1014
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
931
1015
|
}
|
|
932
1016
|
/**
|
|
933
1017
|
* Get current CM account asset and position information.
|
|
@@ -943,7 +1027,7 @@ var AccountApi = class {
|
|
|
943
1027
|
*/
|
|
944
1028
|
async getCmAccountDetail(requestParameters = {}) {
|
|
945
1029
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmAccountDetail(requestParameters?.recvWindow);
|
|
946
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1030
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
947
1031
|
}
|
|
948
1032
|
/**
|
|
949
1033
|
* Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
|
|
@@ -959,7 +1043,7 @@ var AccountApi = class {
|
|
|
959
1043
|
*/
|
|
960
1044
|
async getCmCurrentPositionMode(requestParameters = {}) {
|
|
961
1045
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmCurrentPositionMode(requestParameters?.recvWindow);
|
|
962
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1046
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
963
1047
|
}
|
|
964
1048
|
/**
|
|
965
1049
|
* Get CM Income History
|
|
@@ -981,7 +1065,7 @@ var AccountApi = class {
|
|
|
981
1065
|
*/
|
|
982
1066
|
async getCmIncomeHistory(requestParameters = {}) {
|
|
983
1067
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
984
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1068
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
985
1069
|
}
|
|
986
1070
|
/**
|
|
987
1071
|
* Get download id for UM futures order history
|
|
@@ -1000,7 +1084,7 @@ var AccountApi = class {
|
|
|
1000
1084
|
*/
|
|
1001
1085
|
async getDownloadIdForUmFuturesOrderHistory(requestParameters) {
|
|
1002
1086
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesOrderHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1003
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1087
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1004
1088
|
}
|
|
1005
1089
|
/**
|
|
1006
1090
|
* Get download id for UM futures trade history
|
|
@@ -1019,7 +1103,7 @@ var AccountApi = class {
|
|
|
1019
1103
|
*/
|
|
1020
1104
|
async getDownloadIdForUmFuturesTradeHistory(requestParameters) {
|
|
1021
1105
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1022
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1106
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1023
1107
|
}
|
|
1024
1108
|
/**
|
|
1025
1109
|
* Get download id for UM futures transaction history
|
|
@@ -1038,7 +1122,7 @@ var AccountApi = class {
|
|
|
1038
1122
|
*/
|
|
1039
1123
|
async getDownloadIdForUmFuturesTransactionHistory(requestParameters) {
|
|
1040
1124
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1041
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1125
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1042
1126
|
}
|
|
1043
1127
|
/**
|
|
1044
1128
|
* Get Margin Borrow/Loan Interest History
|
|
@@ -1067,7 +1151,7 @@ var AccountApi = class {
|
|
|
1067
1151
|
*/
|
|
1068
1152
|
async getMarginBorrowLoanInterestHistory(requestParameters = {}) {
|
|
1069
1153
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginBorrowLoanInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1070
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1154
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1071
1155
|
}
|
|
1072
1156
|
/**
|
|
1073
1157
|
* Get current UM account asset and position information.
|
|
@@ -1083,7 +1167,7 @@ var AccountApi = class {
|
|
|
1083
1167
|
*/
|
|
1084
1168
|
async getUmAccountDetail(requestParameters = {}) {
|
|
1085
1169
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmAccountDetail(requestParameters?.recvWindow);
|
|
1086
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1170
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1087
1171
|
}
|
|
1088
1172
|
/**
|
|
1089
1173
|
* Get current UM account asset and position information.
|
|
@@ -1099,7 +1183,7 @@ var AccountApi = class {
|
|
|
1099
1183
|
*/
|
|
1100
1184
|
async getUmAccountDetailV2(requestParameters = {}) {
|
|
1101
1185
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmAccountDetailV2(requestParameters?.recvWindow);
|
|
1102
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1186
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1103
1187
|
}
|
|
1104
1188
|
/**
|
|
1105
1189
|
* Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
|
|
@@ -1115,7 +1199,7 @@ var AccountApi = class {
|
|
|
1115
1199
|
*/
|
|
1116
1200
|
async getUmCurrentPositionMode(requestParameters = {}) {
|
|
1117
1201
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmCurrentPositionMode(requestParameters?.recvWindow);
|
|
1118
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1202
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1119
1203
|
}
|
|
1120
1204
|
/**
|
|
1121
1205
|
* Get UM futures order download link by Id
|
|
@@ -1133,7 +1217,7 @@ var AccountApi = class {
|
|
|
1133
1217
|
*/
|
|
1134
1218
|
async getUmFuturesOrderDownloadLinkById(requestParameters) {
|
|
1135
1219
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesOrderDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1136
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1220
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1137
1221
|
}
|
|
1138
1222
|
/**
|
|
1139
1223
|
* Get UM futures trade download link by Id
|
|
@@ -1151,7 +1235,7 @@ var AccountApi = class {
|
|
|
1151
1235
|
*/
|
|
1152
1236
|
async getUmFuturesTradeDownloadLinkById(requestParameters) {
|
|
1153
1237
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesTradeDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1154
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1238
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1155
1239
|
}
|
|
1156
1240
|
/**
|
|
1157
1241
|
* Get UM futures Transaction download link by Id
|
|
@@ -1169,7 +1253,7 @@ var AccountApi = class {
|
|
|
1169
1253
|
*/
|
|
1170
1254
|
async getUmFuturesTransactionDownloadLinkById(requestParameters) {
|
|
1171
1255
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesTransactionDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1172
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1256
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1173
1257
|
}
|
|
1174
1258
|
/**
|
|
1175
1259
|
* Get UM Income History
|
|
@@ -1190,7 +1274,7 @@ var AccountApi = class {
|
|
|
1190
1274
|
*/
|
|
1191
1275
|
async getUmIncomeHistory(requestParameters = {}) {
|
|
1192
1276
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1193
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1277
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1194
1278
|
}
|
|
1195
1279
|
/**
|
|
1196
1280
|
* Get User Commission Rate for CM
|
|
@@ -1206,7 +1290,7 @@ var AccountApi = class {
|
|
|
1206
1290
|
*/
|
|
1207
1291
|
async getUserCommissionRateForCm(requestParameters) {
|
|
1208
1292
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUserCommissionRateForCm(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1209
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1293
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1210
1294
|
}
|
|
1211
1295
|
/**
|
|
1212
1296
|
* Get User Commission Rate for UM
|
|
@@ -1222,7 +1306,7 @@ var AccountApi = class {
|
|
|
1222
1306
|
*/
|
|
1223
1307
|
async getUserCommissionRateForUm(requestParameters) {
|
|
1224
1308
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUserCommissionRateForUm(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1225
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1309
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1226
1310
|
}
|
|
1227
1311
|
/**
|
|
1228
1312
|
* Query margin max borrow
|
|
@@ -1238,7 +1322,7 @@ var AccountApi = class {
|
|
|
1238
1322
|
*/
|
|
1239
1323
|
async marginMaxBorrow(requestParameters) {
|
|
1240
1324
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginMaxBorrow(requestParameters?.asset, requestParameters?.recvWindow);
|
|
1241
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1325
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1242
1326
|
}
|
|
1243
1327
|
/**
|
|
1244
1328
|
* Portfolio Margin UM Trading Quantitative Rules Indicators
|
|
@@ -1255,7 +1339,7 @@ var AccountApi = class {
|
|
|
1255
1339
|
*/
|
|
1256
1340
|
async portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters = {}) {
|
|
1257
1341
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1258
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1342
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1259
1343
|
}
|
|
1260
1344
|
/**
|
|
1261
1345
|
* Get current CM position information.
|
|
@@ -1276,7 +1360,7 @@ var AccountApi = class {
|
|
|
1276
1360
|
*/
|
|
1277
1361
|
async queryCmPositionInformation(requestParameters = {}) {
|
|
1278
1362
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmPositionInformation(requestParameters?.marginAsset, requestParameters?.pair, requestParameters?.recvWindow);
|
|
1279
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1363
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1280
1364
|
}
|
|
1281
1365
|
/**
|
|
1282
1366
|
* Query margin loan record
|
|
@@ -1298,7 +1382,7 @@ var AccountApi = class {
|
|
|
1298
1382
|
*/
|
|
1299
1383
|
async queryMarginLoanRecord(requestParameters) {
|
|
1300
1384
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginLoanRecord(requestParameters?.asset, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1301
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1385
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1302
1386
|
}
|
|
1303
1387
|
/**
|
|
1304
1388
|
* Query Margin Max Withdraw
|
|
@@ -1314,7 +1398,7 @@ var AccountApi = class {
|
|
|
1314
1398
|
*/
|
|
1315
1399
|
async queryMarginMaxWithdraw(requestParameters) {
|
|
1316
1400
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginMaxWithdraw(requestParameters?.asset, requestParameters?.recvWindow);
|
|
1317
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1401
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1318
1402
|
}
|
|
1319
1403
|
/**
|
|
1320
1404
|
* Query margin repay record.
|
|
@@ -1336,7 +1420,7 @@ var AccountApi = class {
|
|
|
1336
1420
|
*/
|
|
1337
1421
|
async queryMarginRepayRecord(requestParameters) {
|
|
1338
1422
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginRepayRecord(requestParameters?.asset, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1339
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1423
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1340
1424
|
}
|
|
1341
1425
|
/**
|
|
1342
1426
|
* Query interest history of negative balance for portfolio margin.
|
|
@@ -1358,7 +1442,7 @@ var AccountApi = class {
|
|
|
1358
1442
|
*/
|
|
1359
1443
|
async queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters = {}) {
|
|
1360
1444
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.size, requestParameters?.recvWindow);
|
|
1361
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1445
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1362
1446
|
}
|
|
1363
1447
|
/**
|
|
1364
1448
|
* Get current UM position information.
|
|
@@ -1378,7 +1462,7 @@ var AccountApi = class {
|
|
|
1378
1462
|
*/
|
|
1379
1463
|
async queryUmPositionInformation(requestParameters = {}) {
|
|
1380
1464
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1381
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1465
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1382
1466
|
}
|
|
1383
1467
|
/**
|
|
1384
1468
|
* Query user negative balance auto exchange record
|
|
@@ -1397,7 +1481,7 @@ var AccountApi = class {
|
|
|
1397
1481
|
*/
|
|
1398
1482
|
async queryUserNegativeBalanceAutoExchangeRecord(requestParameters) {
|
|
1399
1483
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserNegativeBalanceAutoExchangeRecord(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1400
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1484
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1401
1485
|
}
|
|
1402
1486
|
/**
|
|
1403
1487
|
* Query User Rate Limit
|
|
@@ -1413,7 +1497,7 @@ var AccountApi = class {
|
|
|
1413
1497
|
*/
|
|
1414
1498
|
async queryUserRateLimit(requestParameters = {}) {
|
|
1415
1499
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserRateLimit(requestParameters?.recvWindow);
|
|
1416
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1500
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1417
1501
|
}
|
|
1418
1502
|
/**
|
|
1419
1503
|
* Repay futures Negative Balance
|
|
@@ -1429,7 +1513,7 @@ var AccountApi = class {
|
|
|
1429
1513
|
*/
|
|
1430
1514
|
async repayFuturesNegativeBalance(requestParameters = {}) {
|
|
1431
1515
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.repayFuturesNegativeBalance(requestParameters?.recvWindow);
|
|
1432
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1516
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1433
1517
|
}
|
|
1434
1518
|
/**
|
|
1435
1519
|
* Query UM Futures account configuration
|
|
@@ -1445,7 +1529,7 @@ var AccountApi = class {
|
|
|
1445
1529
|
*/
|
|
1446
1530
|
async umFuturesAccountConfiguration(requestParameters = {}) {
|
|
1447
1531
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umFuturesAccountConfiguration(requestParameters?.recvWindow);
|
|
1448
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1532
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1449
1533
|
}
|
|
1450
1534
|
/**
|
|
1451
1535
|
* Get current UM account symbol configuration.
|
|
@@ -1461,7 +1545,7 @@ var AccountApi = class {
|
|
|
1461
1545
|
*/
|
|
1462
1546
|
async umFuturesSymbolConfiguration(requestParameters = {}) {
|
|
1463
1547
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umFuturesSymbolConfiguration(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1464
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1548
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1465
1549
|
}
|
|
1466
1550
|
/**
|
|
1467
1551
|
* Query UM notional and leverage brackets
|
|
@@ -1477,7 +1561,7 @@ var AccountApi = class {
|
|
|
1477
1561
|
*/
|
|
1478
1562
|
async umNotionalAndLeverageBrackets(requestParameters = {}) {
|
|
1479
1563
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umNotionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1480
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1564
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1481
1565
|
}
|
|
1482
1566
|
};
|
|
1483
1567
|
|
|
@@ -1502,6 +1586,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1502
1586
|
return { testConnectivity: async () => {
|
|
1503
1587
|
const localVarQueryParameter = {};
|
|
1504
1588
|
const localVarBodyParameter = {};
|
|
1589
|
+
const localVarHeaderParameter = {};
|
|
1505
1590
|
let _timeUnit;
|
|
1506
1591
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1507
1592
|
return {
|
|
@@ -1509,6 +1594,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1509
1594
|
method: "GET",
|
|
1510
1595
|
queryParams: localVarQueryParameter,
|
|
1511
1596
|
bodyParams: localVarBodyParameter,
|
|
1597
|
+
headerParams: localVarHeaderParameter,
|
|
1512
1598
|
timeUnit: _timeUnit
|
|
1513
1599
|
};
|
|
1514
1600
|
} };
|
|
@@ -1535,7 +1621,7 @@ var MarketDataApi = class {
|
|
|
1535
1621
|
*/
|
|
1536
1622
|
async testConnectivity() {
|
|
1537
1623
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
1538
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1624
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1539
1625
|
}
|
|
1540
1626
|
};
|
|
1541
1627
|
|
|
@@ -1562,6 +1648,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1562
1648
|
(0, __binance_common.assertParamExists)("cancelAllCmOpenConditionalOrders", "symbol", symbol);
|
|
1563
1649
|
const localVarQueryParameter = {};
|
|
1564
1650
|
const localVarBodyParameter = {};
|
|
1651
|
+
const localVarHeaderParameter = {};
|
|
1565
1652
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1566
1653
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1567
1654
|
let _timeUnit;
|
|
@@ -1571,6 +1658,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1571
1658
|
method: "DELETE",
|
|
1572
1659
|
queryParams: localVarQueryParameter,
|
|
1573
1660
|
bodyParams: localVarBodyParameter,
|
|
1661
|
+
headerParams: localVarHeaderParameter,
|
|
1574
1662
|
timeUnit: _timeUnit
|
|
1575
1663
|
};
|
|
1576
1664
|
},
|
|
@@ -1578,6 +1666,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1578
1666
|
(0, __binance_common.assertParamExists)("cancelAllCmOpenOrders", "symbol", symbol);
|
|
1579
1667
|
const localVarQueryParameter = {};
|
|
1580
1668
|
const localVarBodyParameter = {};
|
|
1669
|
+
const localVarHeaderParameter = {};
|
|
1581
1670
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1582
1671
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1583
1672
|
let _timeUnit;
|
|
@@ -1587,6 +1676,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1587
1676
|
method: "DELETE",
|
|
1588
1677
|
queryParams: localVarQueryParameter,
|
|
1589
1678
|
bodyParams: localVarBodyParameter,
|
|
1679
|
+
headerParams: localVarHeaderParameter,
|
|
1590
1680
|
timeUnit: _timeUnit
|
|
1591
1681
|
};
|
|
1592
1682
|
},
|
|
@@ -1594,6 +1684,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1594
1684
|
(0, __binance_common.assertParamExists)("cancelAllUmAlgoOpenOrders", "symbol", symbol);
|
|
1595
1685
|
const localVarQueryParameter = {};
|
|
1596
1686
|
const localVarBodyParameter = {};
|
|
1687
|
+
const localVarHeaderParameter = {};
|
|
1597
1688
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1598
1689
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1599
1690
|
let _timeUnit;
|
|
@@ -1603,6 +1694,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1603
1694
|
method: "DELETE",
|
|
1604
1695
|
queryParams: localVarQueryParameter,
|
|
1605
1696
|
bodyParams: localVarBodyParameter,
|
|
1697
|
+
headerParams: localVarHeaderParameter,
|
|
1606
1698
|
timeUnit: _timeUnit
|
|
1607
1699
|
};
|
|
1608
1700
|
},
|
|
@@ -1610,6 +1702,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1610
1702
|
(0, __binance_common.assertParamExists)("cancelAllUmOpenConditionalOrders", "symbol", symbol);
|
|
1611
1703
|
const localVarQueryParameter = {};
|
|
1612
1704
|
const localVarBodyParameter = {};
|
|
1705
|
+
const localVarHeaderParameter = {};
|
|
1613
1706
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1614
1707
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1615
1708
|
let _timeUnit;
|
|
@@ -1619,6 +1712,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1619
1712
|
method: "DELETE",
|
|
1620
1713
|
queryParams: localVarQueryParameter,
|
|
1621
1714
|
bodyParams: localVarBodyParameter,
|
|
1715
|
+
headerParams: localVarHeaderParameter,
|
|
1622
1716
|
timeUnit: _timeUnit
|
|
1623
1717
|
};
|
|
1624
1718
|
},
|
|
@@ -1626,6 +1720,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1626
1720
|
(0, __binance_common.assertParamExists)("cancelAllUmOpenOrders", "symbol", symbol);
|
|
1627
1721
|
const localVarQueryParameter = {};
|
|
1628
1722
|
const localVarBodyParameter = {};
|
|
1723
|
+
const localVarHeaderParameter = {};
|
|
1629
1724
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1630
1725
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1631
1726
|
let _timeUnit;
|
|
@@ -1635,6 +1730,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1635
1730
|
method: "DELETE",
|
|
1636
1731
|
queryParams: localVarQueryParameter,
|
|
1637
1732
|
bodyParams: localVarBodyParameter,
|
|
1733
|
+
headerParams: localVarHeaderParameter,
|
|
1638
1734
|
timeUnit: _timeUnit
|
|
1639
1735
|
};
|
|
1640
1736
|
},
|
|
@@ -1642,6 +1738,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1642
1738
|
(0, __binance_common.assertParamExists)("cancelCmConditionalOrder", "symbol", symbol);
|
|
1643
1739
|
const localVarQueryParameter = {};
|
|
1644
1740
|
const localVarBodyParameter = {};
|
|
1741
|
+
const localVarHeaderParameter = {};
|
|
1645
1742
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1646
1743
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1647
1744
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -1653,6 +1750,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1653
1750
|
method: "DELETE",
|
|
1654
1751
|
queryParams: localVarQueryParameter,
|
|
1655
1752
|
bodyParams: localVarBodyParameter,
|
|
1753
|
+
headerParams: localVarHeaderParameter,
|
|
1656
1754
|
timeUnit: _timeUnit
|
|
1657
1755
|
};
|
|
1658
1756
|
},
|
|
@@ -1660,6 +1758,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1660
1758
|
(0, __binance_common.assertParamExists)("cancelCmOrder", "symbol", symbol);
|
|
1661
1759
|
const localVarQueryParameter = {};
|
|
1662
1760
|
const localVarBodyParameter = {};
|
|
1761
|
+
const localVarHeaderParameter = {};
|
|
1663
1762
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1664
1763
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1665
1764
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1671,6 +1770,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1671
1770
|
method: "DELETE",
|
|
1672
1771
|
queryParams: localVarQueryParameter,
|
|
1673
1772
|
bodyParams: localVarBodyParameter,
|
|
1773
|
+
headerParams: localVarHeaderParameter,
|
|
1674
1774
|
timeUnit: _timeUnit
|
|
1675
1775
|
};
|
|
1676
1776
|
},
|
|
@@ -1678,6 +1778,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1678
1778
|
(0, __binance_common.assertParamExists)("cancelMarginAccountAllOpenOrdersOnASymbol", "symbol", symbol);
|
|
1679
1779
|
const localVarQueryParameter = {};
|
|
1680
1780
|
const localVarBodyParameter = {};
|
|
1781
|
+
const localVarHeaderParameter = {};
|
|
1681
1782
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1682
1783
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1683
1784
|
let _timeUnit;
|
|
@@ -1687,6 +1788,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1687
1788
|
method: "DELETE",
|
|
1688
1789
|
queryParams: localVarQueryParameter,
|
|
1689
1790
|
bodyParams: localVarBodyParameter,
|
|
1791
|
+
headerParams: localVarHeaderParameter,
|
|
1690
1792
|
timeUnit: _timeUnit
|
|
1691
1793
|
};
|
|
1692
1794
|
},
|
|
@@ -1694,6 +1796,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1694
1796
|
(0, __binance_common.assertParamExists)("cancelMarginAccountOcoOrders", "symbol", symbol);
|
|
1695
1797
|
const localVarQueryParameter = {};
|
|
1696
1798
|
const localVarBodyParameter = {};
|
|
1799
|
+
const localVarHeaderParameter = {};
|
|
1697
1800
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1698
1801
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
1699
1802
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1706,6 +1809,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1706
1809
|
method: "DELETE",
|
|
1707
1810
|
queryParams: localVarQueryParameter,
|
|
1708
1811
|
bodyParams: localVarBodyParameter,
|
|
1812
|
+
headerParams: localVarHeaderParameter,
|
|
1709
1813
|
timeUnit: _timeUnit
|
|
1710
1814
|
};
|
|
1711
1815
|
},
|
|
@@ -1713,6 +1817,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1713
1817
|
(0, __binance_common.assertParamExists)("cancelMarginAccountOrder", "symbol", symbol);
|
|
1714
1818
|
const localVarQueryParameter = {};
|
|
1715
1819
|
const localVarBodyParameter = {};
|
|
1820
|
+
const localVarHeaderParameter = {};
|
|
1716
1821
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1717
1822
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1718
1823
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1725,12 +1830,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1725
1830
|
method: "DELETE",
|
|
1726
1831
|
queryParams: localVarQueryParameter,
|
|
1727
1832
|
bodyParams: localVarBodyParameter,
|
|
1833
|
+
headerParams: localVarHeaderParameter,
|
|
1728
1834
|
timeUnit: _timeUnit
|
|
1729
1835
|
};
|
|
1730
1836
|
},
|
|
1731
1837
|
cancelUmAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
|
|
1732
1838
|
const localVarQueryParameter = {};
|
|
1733
1839
|
const localVarBodyParameter = {};
|
|
1840
|
+
const localVarHeaderParameter = {};
|
|
1734
1841
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
1735
1842
|
if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
|
|
1736
1843
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1741,6 +1848,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1741
1848
|
method: "DELETE",
|
|
1742
1849
|
queryParams: localVarQueryParameter,
|
|
1743
1850
|
bodyParams: localVarBodyParameter,
|
|
1851
|
+
headerParams: localVarHeaderParameter,
|
|
1744
1852
|
timeUnit: _timeUnit
|
|
1745
1853
|
};
|
|
1746
1854
|
},
|
|
@@ -1748,6 +1856,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1748
1856
|
(0, __binance_common.assertParamExists)("cancelUmConditionalOrder", "symbol", symbol);
|
|
1749
1857
|
const localVarQueryParameter = {};
|
|
1750
1858
|
const localVarBodyParameter = {};
|
|
1859
|
+
const localVarHeaderParameter = {};
|
|
1751
1860
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1752
1861
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1753
1862
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -1759,6 +1868,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1759
1868
|
method: "DELETE",
|
|
1760
1869
|
queryParams: localVarQueryParameter,
|
|
1761
1870
|
bodyParams: localVarBodyParameter,
|
|
1871
|
+
headerParams: localVarHeaderParameter,
|
|
1762
1872
|
timeUnit: _timeUnit
|
|
1763
1873
|
};
|
|
1764
1874
|
},
|
|
@@ -1766,6 +1876,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1766
1876
|
(0, __binance_common.assertParamExists)("cancelUmOrder", "symbol", symbol);
|
|
1767
1877
|
const localVarQueryParameter = {};
|
|
1768
1878
|
const localVarBodyParameter = {};
|
|
1879
|
+
const localVarHeaderParameter = {};
|
|
1769
1880
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1770
1881
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1771
1882
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1777,12 +1888,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1777
1888
|
method: "DELETE",
|
|
1778
1889
|
queryParams: localVarQueryParameter,
|
|
1779
1890
|
bodyParams: localVarBodyParameter,
|
|
1891
|
+
headerParams: localVarHeaderParameter,
|
|
1780
1892
|
timeUnit: _timeUnit
|
|
1781
1893
|
};
|
|
1782
1894
|
},
|
|
1783
1895
|
cmAccountTradeList: async (symbol, pair, startTime, endTime, fromId, limit, recvWindow) => {
|
|
1784
1896
|
const localVarQueryParameter = {};
|
|
1785
1897
|
const localVarBodyParameter = {};
|
|
1898
|
+
const localVarHeaderParameter = {};
|
|
1786
1899
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1787
1900
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1788
1901
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1797,12 +1910,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1797
1910
|
method: "GET",
|
|
1798
1911
|
queryParams: localVarQueryParameter,
|
|
1799
1912
|
bodyParams: localVarBodyParameter,
|
|
1913
|
+
headerParams: localVarHeaderParameter,
|
|
1800
1914
|
timeUnit: _timeUnit
|
|
1801
1915
|
};
|
|
1802
1916
|
},
|
|
1803
1917
|
cmPositionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
1804
1918
|
const localVarQueryParameter = {};
|
|
1805
1919
|
const localVarBodyParameter = {};
|
|
1920
|
+
const localVarHeaderParameter = {};
|
|
1806
1921
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1807
1922
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1808
1923
|
let _timeUnit;
|
|
@@ -1812,12 +1927,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1812
1927
|
method: "GET",
|
|
1813
1928
|
queryParams: localVarQueryParameter,
|
|
1814
1929
|
bodyParams: localVarBodyParameter,
|
|
1930
|
+
headerParams: localVarHeaderParameter,
|
|
1815
1931
|
timeUnit: _timeUnit
|
|
1816
1932
|
};
|
|
1817
1933
|
},
|
|
1818
1934
|
futuresTradfiPerpsContract: async (recvWindow) => {
|
|
1819
1935
|
const localVarQueryParameter = {};
|
|
1820
1936
|
const localVarBodyParameter = {};
|
|
1937
|
+
const localVarHeaderParameter = {};
|
|
1821
1938
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1822
1939
|
let _timeUnit;
|
|
1823
1940
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1826,12 +1943,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1826
1943
|
method: "POST",
|
|
1827
1944
|
queryParams: localVarQueryParameter,
|
|
1828
1945
|
bodyParams: localVarBodyParameter,
|
|
1946
|
+
headerParams: localVarHeaderParameter,
|
|
1829
1947
|
timeUnit: _timeUnit
|
|
1830
1948
|
};
|
|
1831
1949
|
},
|
|
1832
1950
|
getUmFuturesBnbBurnStatus: async (recvWindow) => {
|
|
1833
1951
|
const localVarQueryParameter = {};
|
|
1834
1952
|
const localVarBodyParameter = {};
|
|
1953
|
+
const localVarHeaderParameter = {};
|
|
1835
1954
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1836
1955
|
let _timeUnit;
|
|
1837
1956
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1840,6 +1959,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1840
1959
|
method: "GET",
|
|
1841
1960
|
queryParams: localVarQueryParameter,
|
|
1842
1961
|
bodyParams: localVarBodyParameter,
|
|
1962
|
+
headerParams: localVarHeaderParameter,
|
|
1843
1963
|
timeUnit: _timeUnit
|
|
1844
1964
|
};
|
|
1845
1965
|
},
|
|
@@ -1848,6 +1968,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1848
1968
|
(0, __binance_common.assertParamExists)("marginAccountBorrow", "amount", amount);
|
|
1849
1969
|
const localVarQueryParameter = {};
|
|
1850
1970
|
const localVarBodyParameter = {};
|
|
1971
|
+
const localVarHeaderParameter = {};
|
|
1851
1972
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1852
1973
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1853
1974
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1858,6 +1979,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1858
1979
|
method: "POST",
|
|
1859
1980
|
queryParams: localVarQueryParameter,
|
|
1860
1981
|
bodyParams: localVarBodyParameter,
|
|
1982
|
+
headerParams: localVarHeaderParameter,
|
|
1861
1983
|
timeUnit: _timeUnit
|
|
1862
1984
|
};
|
|
1863
1985
|
},
|
|
@@ -1869,6 +1991,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1869
1991
|
(0, __binance_common.assertParamExists)("marginAccountNewOco", "stopPrice", stopPrice);
|
|
1870
1992
|
const localVarQueryParameter = {};
|
|
1871
1993
|
const localVarBodyParameter = {};
|
|
1994
|
+
const localVarHeaderParameter = {};
|
|
1872
1995
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1873
1996
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
1874
1997
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -1891,6 +2014,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1891
2014
|
method: "POST",
|
|
1892
2015
|
queryParams: localVarQueryParameter,
|
|
1893
2016
|
bodyParams: localVarBodyParameter,
|
|
2017
|
+
headerParams: localVarHeaderParameter,
|
|
1894
2018
|
timeUnit: _timeUnit
|
|
1895
2019
|
};
|
|
1896
2020
|
},
|
|
@@ -1899,6 +2023,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1899
2023
|
(0, __binance_common.assertParamExists)("marginAccountRepay", "amount", amount);
|
|
1900
2024
|
const localVarQueryParameter = {};
|
|
1901
2025
|
const localVarBodyParameter = {};
|
|
2026
|
+
const localVarHeaderParameter = {};
|
|
1902
2027
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1903
2028
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1904
2029
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1909,6 +2034,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1909
2034
|
method: "POST",
|
|
1910
2035
|
queryParams: localVarQueryParameter,
|
|
1911
2036
|
bodyParams: localVarBodyParameter,
|
|
2037
|
+
headerParams: localVarHeaderParameter,
|
|
1912
2038
|
timeUnit: _timeUnit
|
|
1913
2039
|
};
|
|
1914
2040
|
},
|
|
@@ -1916,6 +2042,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1916
2042
|
(0, __binance_common.assertParamExists)("marginAccountRepayDebt", "asset", asset);
|
|
1917
2043
|
const localVarQueryParameter = {};
|
|
1918
2044
|
const localVarBodyParameter = {};
|
|
2045
|
+
const localVarHeaderParameter = {};
|
|
1919
2046
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1920
2047
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1921
2048
|
if (specifyRepayAssets !== void 0 && specifyRepayAssets !== null) localVarQueryParameter["specifyRepayAssets"] = specifyRepayAssets;
|
|
@@ -1927,6 +2054,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1927
2054
|
method: "POST",
|
|
1928
2055
|
queryParams: localVarQueryParameter,
|
|
1929
2056
|
bodyParams: localVarBodyParameter,
|
|
2057
|
+
headerParams: localVarHeaderParameter,
|
|
1930
2058
|
timeUnit: _timeUnit
|
|
1931
2059
|
};
|
|
1932
2060
|
},
|
|
@@ -1934,6 +2062,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1934
2062
|
(0, __binance_common.assertParamExists)("marginAccountTradeList", "symbol", symbol);
|
|
1935
2063
|
const localVarQueryParameter = {};
|
|
1936
2064
|
const localVarBodyParameter = {};
|
|
2065
|
+
const localVarHeaderParameter = {};
|
|
1937
2066
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1938
2067
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1939
2068
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1948,6 +2077,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1948
2077
|
method: "GET",
|
|
1949
2078
|
queryParams: localVarQueryParameter,
|
|
1950
2079
|
bodyParams: localVarBodyParameter,
|
|
2080
|
+
headerParams: localVarHeaderParameter,
|
|
1951
2081
|
timeUnit: _timeUnit
|
|
1952
2082
|
};
|
|
1953
2083
|
},
|
|
@@ -1958,6 +2088,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1958
2088
|
(0, __binance_common.assertParamExists)("modifyCmOrder", "price", price);
|
|
1959
2089
|
const localVarQueryParameter = {};
|
|
1960
2090
|
const localVarBodyParameter = {};
|
|
2091
|
+
const localVarHeaderParameter = {};
|
|
1961
2092
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1962
2093
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
1963
2094
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -1973,6 +2104,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1973
2104
|
method: "PUT",
|
|
1974
2105
|
queryParams: localVarQueryParameter,
|
|
1975
2106
|
bodyParams: localVarBodyParameter,
|
|
2107
|
+
headerParams: localVarHeaderParameter,
|
|
1976
2108
|
timeUnit: _timeUnit
|
|
1977
2109
|
};
|
|
1978
2110
|
},
|
|
@@ -1983,6 +2115,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1983
2115
|
(0, __binance_common.assertParamExists)("modifyUmOrder", "price", price);
|
|
1984
2116
|
const localVarQueryParameter = {};
|
|
1985
2117
|
const localVarBodyParameter = {};
|
|
2118
|
+
const localVarHeaderParameter = {};
|
|
1986
2119
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1987
2120
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
1988
2121
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -1998,6 +2131,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1998
2131
|
method: "PUT",
|
|
1999
2132
|
queryParams: localVarQueryParameter,
|
|
2000
2133
|
bodyParams: localVarBodyParameter,
|
|
2134
|
+
headerParams: localVarHeaderParameter,
|
|
2001
2135
|
timeUnit: _timeUnit
|
|
2002
2136
|
};
|
|
2003
2137
|
},
|
|
@@ -2007,6 +2141,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2007
2141
|
(0, __binance_common.assertParamExists)("newCmConditionalOrder", "strategyType", strategyType);
|
|
2008
2142
|
const localVarQueryParameter = {};
|
|
2009
2143
|
const localVarBodyParameter = {};
|
|
2144
|
+
const localVarHeaderParameter = {};
|
|
2010
2145
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2011
2146
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2012
2147
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2029,6 +2164,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2029
2164
|
method: "POST",
|
|
2030
2165
|
queryParams: localVarQueryParameter,
|
|
2031
2166
|
bodyParams: localVarBodyParameter,
|
|
2167
|
+
headerParams: localVarHeaderParameter,
|
|
2032
2168
|
timeUnit: _timeUnit
|
|
2033
2169
|
};
|
|
2034
2170
|
},
|
|
@@ -2038,6 +2174,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2038
2174
|
(0, __binance_common.assertParamExists)("newCmOrder", "type", type);
|
|
2039
2175
|
const localVarQueryParameter = {};
|
|
2040
2176
|
const localVarBodyParameter = {};
|
|
2177
|
+
const localVarHeaderParameter = {};
|
|
2041
2178
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2042
2179
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2043
2180
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2057,6 +2194,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2057
2194
|
method: "POST",
|
|
2058
2195
|
queryParams: localVarQueryParameter,
|
|
2059
2196
|
bodyParams: localVarBodyParameter,
|
|
2197
|
+
headerParams: localVarHeaderParameter,
|
|
2060
2198
|
timeUnit: _timeUnit
|
|
2061
2199
|
};
|
|
2062
2200
|
},
|
|
@@ -2066,6 +2204,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2066
2204
|
(0, __binance_common.assertParamExists)("newMarginOrder", "type", type);
|
|
2067
2205
|
const localVarQueryParameter = {};
|
|
2068
2206
|
const localVarBodyParameter = {};
|
|
2207
|
+
const localVarHeaderParameter = {};
|
|
2069
2208
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2070
2209
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2071
2210
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -2088,6 +2227,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2088
2227
|
method: "POST",
|
|
2089
2228
|
queryParams: localVarQueryParameter,
|
|
2090
2229
|
bodyParams: localVarBodyParameter,
|
|
2230
|
+
headerParams: localVarHeaderParameter,
|
|
2091
2231
|
timeUnit: _timeUnit
|
|
2092
2232
|
};
|
|
2093
2233
|
},
|
|
@@ -2099,6 +2239,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2099
2239
|
(0, __binance_common.assertParamExists)("newUmAlgoOrder", "quantity", quantity);
|
|
2100
2240
|
const localVarQueryParameter = {};
|
|
2101
2241
|
const localVarBodyParameter = {};
|
|
2242
|
+
const localVarHeaderParameter = {};
|
|
2102
2243
|
if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
|
|
2103
2244
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2104
2245
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -2126,6 +2267,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2126
2267
|
method: "POST",
|
|
2127
2268
|
queryParams: localVarQueryParameter,
|
|
2128
2269
|
bodyParams: localVarBodyParameter,
|
|
2270
|
+
headerParams: localVarHeaderParameter,
|
|
2129
2271
|
timeUnit: _timeUnit
|
|
2130
2272
|
};
|
|
2131
2273
|
},
|
|
@@ -2135,6 +2277,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2135
2277
|
(0, __binance_common.assertParamExists)("newUmConditionalOrder", "strategyType", strategyType);
|
|
2136
2278
|
const localVarQueryParameter = {};
|
|
2137
2279
|
const localVarBodyParameter = {};
|
|
2280
|
+
const localVarHeaderParameter = {};
|
|
2138
2281
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2139
2282
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2140
2283
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2160,6 +2303,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2160
2303
|
method: "POST",
|
|
2161
2304
|
queryParams: localVarQueryParameter,
|
|
2162
2305
|
bodyParams: localVarBodyParameter,
|
|
2306
|
+
headerParams: localVarHeaderParameter,
|
|
2163
2307
|
timeUnit: _timeUnit
|
|
2164
2308
|
};
|
|
2165
2309
|
},
|
|
@@ -2169,6 +2313,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2169
2313
|
(0, __binance_common.assertParamExists)("newUmOrder", "type", type);
|
|
2170
2314
|
const localVarQueryParameter = {};
|
|
2171
2315
|
const localVarBodyParameter = {};
|
|
2316
|
+
const localVarHeaderParameter = {};
|
|
2172
2317
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2173
2318
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2174
2319
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2190,12 +2335,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2190
2335
|
method: "POST",
|
|
2191
2336
|
queryParams: localVarQueryParameter,
|
|
2192
2337
|
bodyParams: localVarBodyParameter,
|
|
2338
|
+
headerParams: localVarHeaderParameter,
|
|
2193
2339
|
timeUnit: _timeUnit
|
|
2194
2340
|
};
|
|
2195
2341
|
},
|
|
2196
2342
|
queryAllCmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2197
2343
|
const localVarQueryParameter = {};
|
|
2198
2344
|
const localVarBodyParameter = {};
|
|
2345
|
+
const localVarHeaderParameter = {};
|
|
2199
2346
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2200
2347
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2201
2348
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2209,6 +2356,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2209
2356
|
method: "GET",
|
|
2210
2357
|
queryParams: localVarQueryParameter,
|
|
2211
2358
|
bodyParams: localVarBodyParameter,
|
|
2359
|
+
headerParams: localVarHeaderParameter,
|
|
2212
2360
|
timeUnit: _timeUnit
|
|
2213
2361
|
};
|
|
2214
2362
|
},
|
|
@@ -2216,6 +2364,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2216
2364
|
(0, __binance_common.assertParamExists)("queryAllCmOrders", "symbol", symbol);
|
|
2217
2365
|
const localVarQueryParameter = {};
|
|
2218
2366
|
const localVarBodyParameter = {};
|
|
2367
|
+
const localVarHeaderParameter = {};
|
|
2219
2368
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2220
2369
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
2221
2370
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -2230,12 +2379,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2230
2379
|
method: "GET",
|
|
2231
2380
|
queryParams: localVarQueryParameter,
|
|
2232
2381
|
bodyParams: localVarBodyParameter,
|
|
2382
|
+
headerParams: localVarHeaderParameter,
|
|
2233
2383
|
timeUnit: _timeUnit
|
|
2234
2384
|
};
|
|
2235
2385
|
},
|
|
2236
2386
|
queryAllCurrentCmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2237
2387
|
const localVarQueryParameter = {};
|
|
2238
2388
|
const localVarBodyParameter = {};
|
|
2389
|
+
const localVarHeaderParameter = {};
|
|
2239
2390
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2240
2391
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2241
2392
|
let _timeUnit;
|
|
@@ -2245,12 +2396,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2245
2396
|
method: "GET",
|
|
2246
2397
|
queryParams: localVarQueryParameter,
|
|
2247
2398
|
bodyParams: localVarBodyParameter,
|
|
2399
|
+
headerParams: localVarHeaderParameter,
|
|
2248
2400
|
timeUnit: _timeUnit
|
|
2249
2401
|
};
|
|
2250
2402
|
},
|
|
2251
2403
|
queryAllCurrentCmOpenOrders: async (symbol, pair, recvWindow) => {
|
|
2252
2404
|
const localVarQueryParameter = {};
|
|
2253
2405
|
const localVarBodyParameter = {};
|
|
2406
|
+
const localVarHeaderParameter = {};
|
|
2254
2407
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2255
2408
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
2256
2409
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2261,12 +2414,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2261
2414
|
method: "GET",
|
|
2262
2415
|
queryParams: localVarQueryParameter,
|
|
2263
2416
|
bodyParams: localVarBodyParameter,
|
|
2417
|
+
headerParams: localVarHeaderParameter,
|
|
2264
2418
|
timeUnit: _timeUnit
|
|
2265
2419
|
};
|
|
2266
2420
|
},
|
|
2267
2421
|
queryAllCurrentUmOpenAlgoOrders: async (algoType, symbol, algoId, recvWindow) => {
|
|
2268
2422
|
const localVarQueryParameter = {};
|
|
2269
2423
|
const localVarBodyParameter = {};
|
|
2424
|
+
const localVarHeaderParameter = {};
|
|
2270
2425
|
if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
|
|
2271
2426
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2272
2427
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
@@ -2278,12 +2433,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2278
2433
|
method: "GET",
|
|
2279
2434
|
queryParams: localVarQueryParameter,
|
|
2280
2435
|
bodyParams: localVarBodyParameter,
|
|
2436
|
+
headerParams: localVarHeaderParameter,
|
|
2281
2437
|
timeUnit: _timeUnit
|
|
2282
2438
|
};
|
|
2283
2439
|
},
|
|
2284
2440
|
queryAllCurrentUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2285
2441
|
const localVarQueryParameter = {};
|
|
2286
2442
|
const localVarBodyParameter = {};
|
|
2443
|
+
const localVarHeaderParameter = {};
|
|
2287
2444
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2288
2445
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2289
2446
|
let _timeUnit;
|
|
@@ -2293,12 +2450,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2293
2450
|
method: "GET",
|
|
2294
2451
|
queryParams: localVarQueryParameter,
|
|
2295
2452
|
bodyParams: localVarBodyParameter,
|
|
2453
|
+
headerParams: localVarHeaderParameter,
|
|
2296
2454
|
timeUnit: _timeUnit
|
|
2297
2455
|
};
|
|
2298
2456
|
},
|
|
2299
2457
|
queryAllCurrentUmOpenOrders: async (symbol, recvWindow) => {
|
|
2300
2458
|
const localVarQueryParameter = {};
|
|
2301
2459
|
const localVarBodyParameter = {};
|
|
2460
|
+
const localVarHeaderParameter = {};
|
|
2302
2461
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2303
2462
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2304
2463
|
let _timeUnit;
|
|
@@ -2308,6 +2467,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2308
2467
|
method: "GET",
|
|
2309
2468
|
queryParams: localVarQueryParameter,
|
|
2310
2469
|
bodyParams: localVarBodyParameter,
|
|
2470
|
+
headerParams: localVarHeaderParameter,
|
|
2311
2471
|
timeUnit: _timeUnit
|
|
2312
2472
|
};
|
|
2313
2473
|
},
|
|
@@ -2315,6 +2475,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2315
2475
|
(0, __binance_common.assertParamExists)("queryAllMarginAccountOrders", "symbol", symbol);
|
|
2316
2476
|
const localVarQueryParameter = {};
|
|
2317
2477
|
const localVarBodyParameter = {};
|
|
2478
|
+
const localVarHeaderParameter = {};
|
|
2318
2479
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2319
2480
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2320
2481
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2328,12 +2489,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2328
2489
|
method: "GET",
|
|
2329
2490
|
queryParams: localVarQueryParameter,
|
|
2330
2491
|
bodyParams: localVarBodyParameter,
|
|
2492
|
+
headerParams: localVarHeaderParameter,
|
|
2331
2493
|
timeUnit: _timeUnit
|
|
2332
2494
|
};
|
|
2333
2495
|
},
|
|
2334
2496
|
queryAllUmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2335
2497
|
const localVarQueryParameter = {};
|
|
2336
2498
|
const localVarBodyParameter = {};
|
|
2499
|
+
const localVarHeaderParameter = {};
|
|
2337
2500
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2338
2501
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2339
2502
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2347,6 +2510,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2347
2510
|
method: "GET",
|
|
2348
2511
|
queryParams: localVarQueryParameter,
|
|
2349
2512
|
bodyParams: localVarBodyParameter,
|
|
2513
|
+
headerParams: localVarHeaderParameter,
|
|
2350
2514
|
timeUnit: _timeUnit
|
|
2351
2515
|
};
|
|
2352
2516
|
},
|
|
@@ -2354,6 +2518,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2354
2518
|
(0, __binance_common.assertParamExists)("queryAllUmOrders", "symbol", symbol);
|
|
2355
2519
|
const localVarQueryParameter = {};
|
|
2356
2520
|
const localVarBodyParameter = {};
|
|
2521
|
+
const localVarHeaderParameter = {};
|
|
2357
2522
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2358
2523
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2359
2524
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2367,6 +2532,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2367
2532
|
method: "GET",
|
|
2368
2533
|
queryParams: localVarQueryParameter,
|
|
2369
2534
|
bodyParams: localVarBodyParameter,
|
|
2535
|
+
headerParams: localVarHeaderParameter,
|
|
2370
2536
|
timeUnit: _timeUnit
|
|
2371
2537
|
};
|
|
2372
2538
|
},
|
|
@@ -2374,6 +2540,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2374
2540
|
(0, __binance_common.assertParamExists)("queryCmConditionalOrderHistory", "symbol", symbol);
|
|
2375
2541
|
const localVarQueryParameter = {};
|
|
2376
2542
|
const localVarBodyParameter = {};
|
|
2543
|
+
const localVarHeaderParameter = {};
|
|
2377
2544
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2378
2545
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2379
2546
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2385,6 +2552,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2385
2552
|
method: "GET",
|
|
2386
2553
|
queryParams: localVarQueryParameter,
|
|
2387
2554
|
bodyParams: localVarBodyParameter,
|
|
2555
|
+
headerParams: localVarHeaderParameter,
|
|
2388
2556
|
timeUnit: _timeUnit
|
|
2389
2557
|
};
|
|
2390
2558
|
},
|
|
@@ -2392,6 +2560,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2392
2560
|
(0, __binance_common.assertParamExists)("queryCmModifyOrderHistory", "symbol", symbol);
|
|
2393
2561
|
const localVarQueryParameter = {};
|
|
2394
2562
|
const localVarBodyParameter = {};
|
|
2563
|
+
const localVarHeaderParameter = {};
|
|
2395
2564
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2396
2565
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2397
2566
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2406,6 +2575,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2406
2575
|
method: "GET",
|
|
2407
2576
|
queryParams: localVarQueryParameter,
|
|
2408
2577
|
bodyParams: localVarBodyParameter,
|
|
2578
|
+
headerParams: localVarHeaderParameter,
|
|
2409
2579
|
timeUnit: _timeUnit
|
|
2410
2580
|
};
|
|
2411
2581
|
},
|
|
@@ -2413,6 +2583,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2413
2583
|
(0, __binance_common.assertParamExists)("queryCmOrder", "symbol", symbol);
|
|
2414
2584
|
const localVarQueryParameter = {};
|
|
2415
2585
|
const localVarBodyParameter = {};
|
|
2586
|
+
const localVarHeaderParameter = {};
|
|
2416
2587
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2417
2588
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2418
2589
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2424,6 +2595,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2424
2595
|
method: "GET",
|
|
2425
2596
|
queryParams: localVarQueryParameter,
|
|
2426
2597
|
bodyParams: localVarBodyParameter,
|
|
2598
|
+
headerParams: localVarHeaderParameter,
|
|
2427
2599
|
timeUnit: _timeUnit
|
|
2428
2600
|
};
|
|
2429
2601
|
},
|
|
@@ -2431,6 +2603,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2431
2603
|
(0, __binance_common.assertParamExists)("queryCurrentCmOpenConditionalOrder", "symbol", symbol);
|
|
2432
2604
|
const localVarQueryParameter = {};
|
|
2433
2605
|
const localVarBodyParameter = {};
|
|
2606
|
+
const localVarHeaderParameter = {};
|
|
2434
2607
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2435
2608
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2436
2609
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2442,6 +2615,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2442
2615
|
method: "GET",
|
|
2443
2616
|
queryParams: localVarQueryParameter,
|
|
2444
2617
|
bodyParams: localVarBodyParameter,
|
|
2618
|
+
headerParams: localVarHeaderParameter,
|
|
2445
2619
|
timeUnit: _timeUnit
|
|
2446
2620
|
};
|
|
2447
2621
|
},
|
|
@@ -2449,6 +2623,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2449
2623
|
(0, __binance_common.assertParamExists)("queryCurrentCmOpenOrder", "symbol", symbol);
|
|
2450
2624
|
const localVarQueryParameter = {};
|
|
2451
2625
|
const localVarBodyParameter = {};
|
|
2626
|
+
const localVarHeaderParameter = {};
|
|
2452
2627
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2453
2628
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2454
2629
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2460,6 +2635,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2460
2635
|
method: "GET",
|
|
2461
2636
|
queryParams: localVarQueryParameter,
|
|
2462
2637
|
bodyParams: localVarBodyParameter,
|
|
2638
|
+
headerParams: localVarHeaderParameter,
|
|
2463
2639
|
timeUnit: _timeUnit
|
|
2464
2640
|
};
|
|
2465
2641
|
},
|
|
@@ -2467,6 +2643,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2467
2643
|
(0, __binance_common.assertParamExists)("queryCurrentMarginOpenOrder", "symbol", symbol);
|
|
2468
2644
|
const localVarQueryParameter = {};
|
|
2469
2645
|
const localVarBodyParameter = {};
|
|
2646
|
+
const localVarHeaderParameter = {};
|
|
2470
2647
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2471
2648
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2472
2649
|
let _timeUnit;
|
|
@@ -2476,12 +2653,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2476
2653
|
method: "GET",
|
|
2477
2654
|
queryParams: localVarQueryParameter,
|
|
2478
2655
|
bodyParams: localVarBodyParameter,
|
|
2656
|
+
headerParams: localVarHeaderParameter,
|
|
2479
2657
|
timeUnit: _timeUnit
|
|
2480
2658
|
};
|
|
2481
2659
|
},
|
|
2482
2660
|
queryCurrentUmOpenAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
|
|
2483
2661
|
const localVarQueryParameter = {};
|
|
2484
2662
|
const localVarBodyParameter = {};
|
|
2663
|
+
const localVarHeaderParameter = {};
|
|
2485
2664
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
2486
2665
|
if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
|
|
2487
2666
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2492,6 +2671,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2492
2671
|
method: "GET",
|
|
2493
2672
|
queryParams: localVarQueryParameter,
|
|
2494
2673
|
bodyParams: localVarBodyParameter,
|
|
2674
|
+
headerParams: localVarHeaderParameter,
|
|
2495
2675
|
timeUnit: _timeUnit
|
|
2496
2676
|
};
|
|
2497
2677
|
},
|
|
@@ -2499,6 +2679,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2499
2679
|
(0, __binance_common.assertParamExists)("queryCurrentUmOpenConditionalOrder", "symbol", symbol);
|
|
2500
2680
|
const localVarQueryParameter = {};
|
|
2501
2681
|
const localVarBodyParameter = {};
|
|
2682
|
+
const localVarHeaderParameter = {};
|
|
2502
2683
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2503
2684
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2504
2685
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2510,6 +2691,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2510
2691
|
method: "GET",
|
|
2511
2692
|
queryParams: localVarQueryParameter,
|
|
2512
2693
|
bodyParams: localVarBodyParameter,
|
|
2694
|
+
headerParams: localVarHeaderParameter,
|
|
2513
2695
|
timeUnit: _timeUnit
|
|
2514
2696
|
};
|
|
2515
2697
|
},
|
|
@@ -2517,6 +2699,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2517
2699
|
(0, __binance_common.assertParamExists)("queryCurrentUmOpenOrder", "symbol", symbol);
|
|
2518
2700
|
const localVarQueryParameter = {};
|
|
2519
2701
|
const localVarBodyParameter = {};
|
|
2702
|
+
const localVarHeaderParameter = {};
|
|
2520
2703
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2521
2704
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2522
2705
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2528,6 +2711,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2528
2711
|
method: "GET",
|
|
2529
2712
|
queryParams: localVarQueryParameter,
|
|
2530
2713
|
bodyParams: localVarBodyParameter,
|
|
2714
|
+
headerParams: localVarHeaderParameter,
|
|
2531
2715
|
timeUnit: _timeUnit
|
|
2532
2716
|
};
|
|
2533
2717
|
},
|
|
@@ -2535,6 +2719,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2535
2719
|
(0, __binance_common.assertParamExists)("queryMarginAccountOrder", "symbol", symbol);
|
|
2536
2720
|
const localVarQueryParameter = {};
|
|
2537
2721
|
const localVarBodyParameter = {};
|
|
2722
|
+
const localVarHeaderParameter = {};
|
|
2538
2723
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2539
2724
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2540
2725
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2546,12 +2731,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2546
2731
|
method: "GET",
|
|
2547
2732
|
queryParams: localVarQueryParameter,
|
|
2548
2733
|
bodyParams: localVarBodyParameter,
|
|
2734
|
+
headerParams: localVarHeaderParameter,
|
|
2549
2735
|
timeUnit: _timeUnit
|
|
2550
2736
|
};
|
|
2551
2737
|
},
|
|
2552
2738
|
queryMarginAccountsAllOco: async (fromId, startTime, endTime, limit, recvWindow) => {
|
|
2553
2739
|
const localVarQueryParameter = {};
|
|
2554
2740
|
const localVarBodyParameter = {};
|
|
2741
|
+
const localVarHeaderParameter = {};
|
|
2555
2742
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
2556
2743
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2557
2744
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -2564,12 +2751,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2564
2751
|
method: "GET",
|
|
2565
2752
|
queryParams: localVarQueryParameter,
|
|
2566
2753
|
bodyParams: localVarBodyParameter,
|
|
2754
|
+
headerParams: localVarHeaderParameter,
|
|
2567
2755
|
timeUnit: _timeUnit
|
|
2568
2756
|
};
|
|
2569
2757
|
},
|
|
2570
2758
|
queryMarginAccountsOco: async (orderListId, origClientOrderId, recvWindow) => {
|
|
2571
2759
|
const localVarQueryParameter = {};
|
|
2572
2760
|
const localVarBodyParameter = {};
|
|
2761
|
+
const localVarHeaderParameter = {};
|
|
2573
2762
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
2574
2763
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
2575
2764
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2580,12 +2769,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2580
2769
|
method: "GET",
|
|
2581
2770
|
queryParams: localVarQueryParameter,
|
|
2582
2771
|
bodyParams: localVarBodyParameter,
|
|
2772
|
+
headerParams: localVarHeaderParameter,
|
|
2583
2773
|
timeUnit: _timeUnit
|
|
2584
2774
|
};
|
|
2585
2775
|
},
|
|
2586
2776
|
queryMarginAccountsOpenOco: async (recvWindow) => {
|
|
2587
2777
|
const localVarQueryParameter = {};
|
|
2588
2778
|
const localVarBodyParameter = {};
|
|
2779
|
+
const localVarHeaderParameter = {};
|
|
2589
2780
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2590
2781
|
let _timeUnit;
|
|
2591
2782
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -2594,6 +2785,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2594
2785
|
method: "GET",
|
|
2595
2786
|
queryParams: localVarQueryParameter,
|
|
2596
2787
|
bodyParams: localVarBodyParameter,
|
|
2788
|
+
headerParams: localVarHeaderParameter,
|
|
2597
2789
|
timeUnit: _timeUnit
|
|
2598
2790
|
};
|
|
2599
2791
|
},
|
|
@@ -2601,6 +2793,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2601
2793
|
(0, __binance_common.assertParamExists)("queryUmAlgoOrderHistory", "symbol", symbol);
|
|
2602
2794
|
const localVarQueryParameter = {};
|
|
2603
2795
|
const localVarBodyParameter = {};
|
|
2796
|
+
const localVarHeaderParameter = {};
|
|
2604
2797
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2605
2798
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
2606
2799
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2614,6 +2807,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2614
2807
|
method: "GET",
|
|
2615
2808
|
queryParams: localVarQueryParameter,
|
|
2616
2809
|
bodyParams: localVarBodyParameter,
|
|
2810
|
+
headerParams: localVarHeaderParameter,
|
|
2617
2811
|
timeUnit: _timeUnit
|
|
2618
2812
|
};
|
|
2619
2813
|
},
|
|
@@ -2621,6 +2815,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2621
2815
|
(0, __binance_common.assertParamExists)("queryUmConditionalOrderHistory", "symbol", symbol);
|
|
2622
2816
|
const localVarQueryParameter = {};
|
|
2623
2817
|
const localVarBodyParameter = {};
|
|
2818
|
+
const localVarHeaderParameter = {};
|
|
2624
2819
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2625
2820
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2626
2821
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2632,6 +2827,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2632
2827
|
method: "GET",
|
|
2633
2828
|
queryParams: localVarQueryParameter,
|
|
2634
2829
|
bodyParams: localVarBodyParameter,
|
|
2830
|
+
headerParams: localVarHeaderParameter,
|
|
2635
2831
|
timeUnit: _timeUnit
|
|
2636
2832
|
};
|
|
2637
2833
|
},
|
|
@@ -2639,6 +2835,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2639
2835
|
(0, __binance_common.assertParamExists)("queryUmModifyOrderHistory", "symbol", symbol);
|
|
2640
2836
|
const localVarQueryParameter = {};
|
|
2641
2837
|
const localVarBodyParameter = {};
|
|
2838
|
+
const localVarHeaderParameter = {};
|
|
2642
2839
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2643
2840
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2644
2841
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2653,6 +2850,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2653
2850
|
method: "GET",
|
|
2654
2851
|
queryParams: localVarQueryParameter,
|
|
2655
2852
|
bodyParams: localVarBodyParameter,
|
|
2853
|
+
headerParams: localVarHeaderParameter,
|
|
2656
2854
|
timeUnit: _timeUnit
|
|
2657
2855
|
};
|
|
2658
2856
|
},
|
|
@@ -2660,6 +2858,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2660
2858
|
(0, __binance_common.assertParamExists)("queryUmOrder", "symbol", symbol);
|
|
2661
2859
|
const localVarQueryParameter = {};
|
|
2662
2860
|
const localVarBodyParameter = {};
|
|
2861
|
+
const localVarHeaderParameter = {};
|
|
2663
2862
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2664
2863
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2665
2864
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2671,12 +2870,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2671
2870
|
method: "GET",
|
|
2672
2871
|
queryParams: localVarQueryParameter,
|
|
2673
2872
|
bodyParams: localVarBodyParameter,
|
|
2873
|
+
headerParams: localVarHeaderParameter,
|
|
2674
2874
|
timeUnit: _timeUnit
|
|
2675
2875
|
};
|
|
2676
2876
|
},
|
|
2677
2877
|
queryUsersCmForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
2678
2878
|
const localVarQueryParameter = {};
|
|
2679
2879
|
const localVarBodyParameter = {};
|
|
2880
|
+
const localVarHeaderParameter = {};
|
|
2680
2881
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2681
2882
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
2682
2883
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2690,12 +2891,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2690
2891
|
method: "GET",
|
|
2691
2892
|
queryParams: localVarQueryParameter,
|
|
2692
2893
|
bodyParams: localVarBodyParameter,
|
|
2894
|
+
headerParams: localVarHeaderParameter,
|
|
2693
2895
|
timeUnit: _timeUnit
|
|
2694
2896
|
};
|
|
2695
2897
|
},
|
|
2696
2898
|
queryUsersMarginForceOrders: async (startTime, endTime, current, size, recvWindow) => {
|
|
2697
2899
|
const localVarQueryParameter = {};
|
|
2698
2900
|
const localVarBodyParameter = {};
|
|
2901
|
+
const localVarHeaderParameter = {};
|
|
2699
2902
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2700
2903
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
2701
2904
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -2708,12 +2911,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2708
2911
|
method: "GET",
|
|
2709
2912
|
queryParams: localVarQueryParameter,
|
|
2710
2913
|
bodyParams: localVarBodyParameter,
|
|
2914
|
+
headerParams: localVarHeaderParameter,
|
|
2711
2915
|
timeUnit: _timeUnit
|
|
2712
2916
|
};
|
|
2713
2917
|
},
|
|
2714
2918
|
queryUsersUmForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
2715
2919
|
const localVarQueryParameter = {};
|
|
2716
2920
|
const localVarBodyParameter = {};
|
|
2921
|
+
const localVarHeaderParameter = {};
|
|
2717
2922
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2718
2923
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
2719
2924
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2727,6 +2932,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2727
2932
|
method: "GET",
|
|
2728
2933
|
queryParams: localVarQueryParameter,
|
|
2729
2934
|
bodyParams: localVarBodyParameter,
|
|
2935
|
+
headerParams: localVarHeaderParameter,
|
|
2730
2936
|
timeUnit: _timeUnit
|
|
2731
2937
|
};
|
|
2732
2938
|
},
|
|
@@ -2734,6 +2940,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2734
2940
|
(0, __binance_common.assertParamExists)("toggleBnbBurnOnUmFuturesTrade", "feeBurn", feeBurn);
|
|
2735
2941
|
const localVarQueryParameter = {};
|
|
2736
2942
|
const localVarBodyParameter = {};
|
|
2943
|
+
const localVarHeaderParameter = {};
|
|
2737
2944
|
if (feeBurn !== void 0 && feeBurn !== null) localVarQueryParameter["feeBurn"] = feeBurn;
|
|
2738
2945
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2739
2946
|
let _timeUnit;
|
|
@@ -2743,6 +2950,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2743
2950
|
method: "POST",
|
|
2744
2951
|
queryParams: localVarQueryParameter,
|
|
2745
2952
|
bodyParams: localVarBodyParameter,
|
|
2953
|
+
headerParams: localVarHeaderParameter,
|
|
2746
2954
|
timeUnit: _timeUnit
|
|
2747
2955
|
};
|
|
2748
2956
|
},
|
|
@@ -2750,6 +2958,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2750
2958
|
(0, __binance_common.assertParamExists)("umAccountTradeList", "symbol", symbol);
|
|
2751
2959
|
const localVarQueryParameter = {};
|
|
2752
2960
|
const localVarBodyParameter = {};
|
|
2961
|
+
const localVarHeaderParameter = {};
|
|
2753
2962
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2754
2963
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2755
2964
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -2763,12 +2972,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2763
2972
|
method: "GET",
|
|
2764
2973
|
queryParams: localVarQueryParameter,
|
|
2765
2974
|
bodyParams: localVarBodyParameter,
|
|
2975
|
+
headerParams: localVarHeaderParameter,
|
|
2766
2976
|
timeUnit: _timeUnit
|
|
2767
2977
|
};
|
|
2768
2978
|
},
|
|
2769
2979
|
umPositionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
2770
2980
|
const localVarQueryParameter = {};
|
|
2771
2981
|
const localVarBodyParameter = {};
|
|
2982
|
+
const localVarHeaderParameter = {};
|
|
2772
2983
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2773
2984
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2774
2985
|
let _timeUnit;
|
|
@@ -2778,6 +2989,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2778
2989
|
method: "GET",
|
|
2779
2990
|
queryParams: localVarQueryParameter,
|
|
2780
2991
|
bodyParams: localVarBodyParameter,
|
|
2992
|
+
headerParams: localVarHeaderParameter,
|
|
2781
2993
|
timeUnit: _timeUnit
|
|
2782
2994
|
};
|
|
2783
2995
|
}
|
|
@@ -2806,7 +3018,7 @@ var TradeApi = class {
|
|
|
2806
3018
|
*/
|
|
2807
3019
|
async cancelAllCmOpenConditionalOrders(requestParameters) {
|
|
2808
3020
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2809
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3021
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2810
3022
|
}
|
|
2811
3023
|
/**
|
|
2812
3024
|
* Cancel all active LIMIT orders on specific symbol
|
|
@@ -2822,7 +3034,7 @@ var TradeApi = class {
|
|
|
2822
3034
|
*/
|
|
2823
3035
|
async cancelAllCmOpenOrders(requestParameters) {
|
|
2824
3036
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2825
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3037
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2826
3038
|
}
|
|
2827
3039
|
/**
|
|
2828
3040
|
* Cancel All UM Algo Open Orders
|
|
@@ -2838,7 +3050,7 @@ var TradeApi = class {
|
|
|
2838
3050
|
*/
|
|
2839
3051
|
async cancelAllUmAlgoOpenOrders(requestParameters) {
|
|
2840
3052
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmAlgoOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2841
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3053
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2842
3054
|
}
|
|
2843
3055
|
/**
|
|
2844
3056
|
* Cancel All UM Open Conditional Orders
|
|
@@ -2854,7 +3066,7 @@ var TradeApi = class {
|
|
|
2854
3066
|
*/
|
|
2855
3067
|
async cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
2856
3068
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2857
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3069
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2858
3070
|
}
|
|
2859
3071
|
/**
|
|
2860
3072
|
* Cancel all active LIMIT orders on specific symbol
|
|
@@ -2870,7 +3082,7 @@ var TradeApi = class {
|
|
|
2870
3082
|
*/
|
|
2871
3083
|
async cancelAllUmOpenOrders(requestParameters) {
|
|
2872
3084
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2873
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3085
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2874
3086
|
}
|
|
2875
3087
|
/**
|
|
2876
3088
|
* Cancel CM Conditional Order
|
|
@@ -2888,7 +3100,7 @@ var TradeApi = class {
|
|
|
2888
3100
|
*/
|
|
2889
3101
|
async cancelCmConditionalOrder(requestParameters) {
|
|
2890
3102
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
2891
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3103
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2892
3104
|
}
|
|
2893
3105
|
/**
|
|
2894
3106
|
* Cancel an active LIMIT order
|
|
@@ -2906,7 +3118,7 @@ var TradeApi = class {
|
|
|
2906
3118
|
*/
|
|
2907
3119
|
async cancelCmOrder(requestParameters) {
|
|
2908
3120
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2909
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3121
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2910
3122
|
}
|
|
2911
3123
|
/**
|
|
2912
3124
|
* Cancel Margin Account All Open Orders on a Symbol
|
|
@@ -2922,7 +3134,7 @@ var TradeApi = class {
|
|
|
2922
3134
|
*/
|
|
2923
3135
|
async cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters) {
|
|
2924
3136
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2925
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3137
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2926
3138
|
}
|
|
2927
3139
|
/**
|
|
2928
3140
|
* Cancel Margin Account OCO Orders
|
|
@@ -2940,7 +3152,7 @@ var TradeApi = class {
|
|
|
2940
3152
|
*/
|
|
2941
3153
|
async cancelMarginAccountOcoOrders(requestParameters) {
|
|
2942
3154
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountOcoOrders(requestParameters?.symbol, requestParameters?.orderListId, requestParameters?.listClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
2943
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3155
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2944
3156
|
}
|
|
2945
3157
|
/**
|
|
2946
3158
|
* Cancel Margin Account Order
|
|
@@ -2958,7 +3170,7 @@ var TradeApi = class {
|
|
|
2958
3170
|
*/
|
|
2959
3171
|
async cancelMarginAccountOrder(requestParameters) {
|
|
2960
3172
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
2961
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3173
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2962
3174
|
}
|
|
2963
3175
|
/**
|
|
2964
3176
|
* Cancel an active UM algo order.
|
|
@@ -2976,7 +3188,7 @@ var TradeApi = class {
|
|
|
2976
3188
|
*/
|
|
2977
3189
|
async cancelUmAlgoOrder(requestParameters = {}) {
|
|
2978
3190
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
|
|
2979
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3191
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2980
3192
|
}
|
|
2981
3193
|
/**
|
|
2982
3194
|
* Cancel UM Conditional Order
|
|
@@ -2994,7 +3206,7 @@ var TradeApi = class {
|
|
|
2994
3206
|
*/
|
|
2995
3207
|
async cancelUmConditionalOrder(requestParameters) {
|
|
2996
3208
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
2997
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3209
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2998
3210
|
}
|
|
2999
3211
|
/**
|
|
3000
3212
|
* Cancel an active UM LIMIT order
|
|
@@ -3012,7 +3224,7 @@ var TradeApi = class {
|
|
|
3012
3224
|
*/
|
|
3013
3225
|
async cancelUmOrder(requestParameters) {
|
|
3014
3226
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3015
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3227
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3016
3228
|
}
|
|
3017
3229
|
/**
|
|
3018
3230
|
* Get trades for a specific account and CM symbol.
|
|
@@ -3037,7 +3249,7 @@ var TradeApi = class {
|
|
|
3037
3249
|
*/
|
|
3038
3250
|
async cmAccountTradeList(requestParameters = {}) {
|
|
3039
3251
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmAccountTradeList(requestParameters?.symbol, requestParameters?.pair, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3040
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3252
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3041
3253
|
}
|
|
3042
3254
|
/**
|
|
3043
3255
|
* Query CM Position ADL Quantile Estimation
|
|
@@ -3059,7 +3271,7 @@ var TradeApi = class {
|
|
|
3059
3271
|
*/
|
|
3060
3272
|
async cmPositionAdlQuantileEstimation(requestParameters = {}) {
|
|
3061
3273
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmPositionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3062
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3274
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3063
3275
|
}
|
|
3064
3276
|
/**
|
|
3065
3277
|
* Sign TradFi-Perps agreement contract
|
|
@@ -3075,7 +3287,7 @@ var TradeApi = class {
|
|
|
3075
3287
|
*/
|
|
3076
3288
|
async futuresTradfiPerpsContract(requestParameters = {}) {
|
|
3077
3289
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresTradfiPerpsContract(requestParameters?.recvWindow);
|
|
3078
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3290
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3079
3291
|
}
|
|
3080
3292
|
/**
|
|
3081
3293
|
* Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
|
|
@@ -3091,7 +3303,7 @@ var TradeApi = class {
|
|
|
3091
3303
|
*/
|
|
3092
3304
|
async getUmFuturesBnbBurnStatus(requestParameters = {}) {
|
|
3093
3305
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesBnbBurnStatus(requestParameters?.recvWindow);
|
|
3094
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3306
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3095
3307
|
}
|
|
3096
3308
|
/**
|
|
3097
3309
|
* Apply for a margin loan.
|
|
@@ -3107,7 +3319,7 @@ var TradeApi = class {
|
|
|
3107
3319
|
*/
|
|
3108
3320
|
async marginAccountBorrow(requestParameters) {
|
|
3109
3321
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountBorrow(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
3110
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3322
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3111
3323
|
}
|
|
3112
3324
|
/**
|
|
3113
3325
|
* Send in a new OCO for a margin account
|
|
@@ -3132,7 +3344,7 @@ var TradeApi = class {
|
|
|
3132
3344
|
*/
|
|
3133
3345
|
async marginAccountNewOco(requestParameters) {
|
|
3134
3346
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountNewOco(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.stopPrice, requestParameters?.listClientOrderId, requestParameters?.limitClientOrderId, requestParameters?.limitIcebergQty, requestParameters?.stopClientOrderId, requestParameters?.stopLimitPrice, requestParameters?.stopIcebergQty, requestParameters?.stopLimitTimeInForce, requestParameters?.newOrderRespType, requestParameters?.sideEffectType, requestParameters?.recvWindow);
|
|
3135
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3347
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3136
3348
|
}
|
|
3137
3349
|
/**
|
|
3138
3350
|
* Repay for a margin loan.
|
|
@@ -3148,7 +3360,7 @@ var TradeApi = class {
|
|
|
3148
3360
|
*/
|
|
3149
3361
|
async marginAccountRepay(requestParameters) {
|
|
3150
3362
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountRepay(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
3151
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3363
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3152
3364
|
}
|
|
3153
3365
|
/**
|
|
3154
3366
|
* Repay debt for a margin loan.
|
|
@@ -3169,7 +3381,7 @@ var TradeApi = class {
|
|
|
3169
3381
|
*/
|
|
3170
3382
|
async marginAccountRepayDebt(requestParameters) {
|
|
3171
3383
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountRepayDebt(requestParameters?.asset, requestParameters?.amount, requestParameters?.specifyRepayAssets, requestParameters?.recvWindow);
|
|
3172
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3384
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3173
3385
|
}
|
|
3174
3386
|
/**
|
|
3175
3387
|
* Margin Account Trade List
|
|
@@ -3185,7 +3397,7 @@ var TradeApi = class {
|
|
|
3185
3397
|
*/
|
|
3186
3398
|
async marginAccountTradeList(requestParameters) {
|
|
3187
3399
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountTradeList(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3188
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3400
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3189
3401
|
}
|
|
3190
3402
|
/**
|
|
3191
3403
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -3208,7 +3420,7 @@ var TradeApi = class {
|
|
|
3208
3420
|
*/
|
|
3209
3421
|
async modifyCmOrder(requestParameters) {
|
|
3210
3422
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyCmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3211
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3423
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3212
3424
|
}
|
|
3213
3425
|
/**
|
|
3214
3426
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -3231,7 +3443,7 @@ var TradeApi = class {
|
|
|
3231
3443
|
*/
|
|
3232
3444
|
async modifyUmOrder(requestParameters) {
|
|
3233
3445
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyUmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3234
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3446
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3235
3447
|
}
|
|
3236
3448
|
/**
|
|
3237
3449
|
* New CM Conditional Order
|
|
@@ -3272,7 +3484,7 @@ var TradeApi = class {
|
|
|
3272
3484
|
*/
|
|
3273
3485
|
async newCmConditionalOrder(requestParameters) {
|
|
3274
3486
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newCmConditionalOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.strategyType, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.reduceOnly, requestParameters?.price, requestParameters?.workingType, requestParameters?.priceProtect, requestParameters?.newClientStrategyId, requestParameters?.stopPrice, requestParameters?.activationPrice, requestParameters?.callbackRate, requestParameters?.recvWindow);
|
|
3275
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3487
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3276
3488
|
}
|
|
3277
3489
|
/**
|
|
3278
3490
|
* Place new CM order
|
|
@@ -3292,7 +3504,7 @@ var TradeApi = class {
|
|
|
3292
3504
|
*/
|
|
3293
3505
|
async newCmOrder(requestParameters) {
|
|
3294
3506
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newCmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.reduceOnly, requestParameters?.price, requestParameters?.priceMatch, requestParameters?.newClientOrderId, requestParameters?.newOrderRespType, requestParameters?.recvWindow);
|
|
3295
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3507
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3296
3508
|
}
|
|
3297
3509
|
/**
|
|
3298
3510
|
* New Margin Order
|
|
@@ -3308,7 +3520,7 @@ var TradeApi = class {
|
|
|
3308
3520
|
*/
|
|
3309
3521
|
async newMarginOrder(requestParameters) {
|
|
3310
3522
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newMarginOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.quoteOrderQty, requestParameters?.price, requestParameters?.stopPrice, requestParameters?.newClientOrderId, requestParameters?.newOrderRespType, requestParameters?.icebergQty, requestParameters?.sideEffectType, requestParameters?.timeInForce, requestParameters?.selfTradePreventionMode, requestParameters?.autoRepayAtCancel, requestParameters?.recvWindow);
|
|
3311
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3523
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3312
3524
|
}
|
|
3313
3525
|
/**
|
|
3314
3526
|
* Place new UM conditional order
|
|
@@ -3350,7 +3562,7 @@ var TradeApi = class {
|
|
|
3350
3562
|
*/
|
|
3351
3563
|
async newUmAlgoOrder(requestParameters) {
|
|
3352
3564
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newUmAlgoOrder(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.price, requestParameters?.triggerPrice, requestParameters?.workingType, requestParameters?.priceMatch, requestParameters?.priceProtect, requestParameters?.reduceOnly, requestParameters?.activatePrice, requestParameters?.callbackRate, requestParameters?.clientAlgoId, requestParameters?.newOrderRespType, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3353
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3565
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3354
3566
|
}
|
|
3355
3567
|
/**
|
|
3356
3568
|
* Place new UM conditional order
|
|
@@ -3393,7 +3605,7 @@ var TradeApi = class {
|
|
|
3393
3605
|
*/
|
|
3394
3606
|
async newUmConditionalOrder(requestParameters) {
|
|
3395
3607
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newUmConditionalOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.strategyType, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.reduceOnly, requestParameters?.price, requestParameters?.workingType, requestParameters?.priceProtect, requestParameters?.newClientStrategyId, requestParameters?.stopPrice, requestParameters?.activationPrice, requestParameters?.callbackRate, requestParameters?.priceMatch, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3396
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3608
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3397
3609
|
}
|
|
3398
3610
|
/**
|
|
3399
3611
|
* Place new UM order
|
|
@@ -3415,7 +3627,7 @@ var TradeApi = class {
|
|
|
3415
3627
|
*/
|
|
3416
3628
|
async newUmOrder(requestParameters) {
|
|
3417
3629
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newUmOrder(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);
|
|
3418
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3630
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3419
3631
|
}
|
|
3420
3632
|
/**
|
|
3421
3633
|
* Query All CM Conditional Orders
|
|
@@ -3437,7 +3649,7 @@ var TradeApi = class {
|
|
|
3437
3649
|
*/
|
|
3438
3650
|
async queryAllCmConditionalOrders(requestParameters = {}) {
|
|
3439
3651
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3440
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3652
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3441
3653
|
}
|
|
3442
3654
|
/**
|
|
3443
3655
|
* Get all account CM orders; active, canceled, or filled.
|
|
@@ -3460,7 +3672,7 @@ var TradeApi = class {
|
|
|
3460
3672
|
*/
|
|
3461
3673
|
async queryAllCmOrders(requestParameters) {
|
|
3462
3674
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCmOrders(requestParameters?.symbol, requestParameters?.pair, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3463
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3675
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3464
3676
|
}
|
|
3465
3677
|
/**
|
|
3466
3678
|
* Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
|
|
@@ -3478,7 +3690,7 @@ var TradeApi = class {
|
|
|
3478
3690
|
*/
|
|
3479
3691
|
async queryAllCurrentCmOpenConditionalOrders(requestParameters = {}) {
|
|
3480
3692
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3481
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3693
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3482
3694
|
}
|
|
3483
3695
|
/**
|
|
3484
3696
|
* Get all open orders on a symbol.
|
|
@@ -3497,7 +3709,7 @@ var TradeApi = class {
|
|
|
3497
3709
|
*/
|
|
3498
3710
|
async queryAllCurrentCmOpenOrders(requestParameters = {}) {
|
|
3499
3711
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenOrders(requestParameters?.symbol, requestParameters?.pair, requestParameters?.recvWindow);
|
|
3500
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3712
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3501
3713
|
}
|
|
3502
3714
|
/**
|
|
3503
3715
|
* Get all UM open algo orders on a symbol.
|
|
@@ -3516,7 +3728,7 @@ var TradeApi = class {
|
|
|
3516
3728
|
*/
|
|
3517
3729
|
async queryAllCurrentUmOpenAlgoOrders(requestParameters = {}) {
|
|
3518
3730
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenAlgoOrders(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.algoId, requestParameters?.recvWindow);
|
|
3519
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3731
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3520
3732
|
}
|
|
3521
3733
|
/**
|
|
3522
3734
|
* Get all open conditional orders on a symbol.
|
|
@@ -3535,7 +3747,7 @@ var TradeApi = class {
|
|
|
3535
3747
|
*/
|
|
3536
3748
|
async queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
3537
3749
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3538
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3750
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3539
3751
|
}
|
|
3540
3752
|
/**
|
|
3541
3753
|
* Get all open orders on a symbol.
|
|
@@ -3554,7 +3766,7 @@ var TradeApi = class {
|
|
|
3554
3766
|
*/
|
|
3555
3767
|
async queryAllCurrentUmOpenOrders(requestParameters = {}) {
|
|
3556
3768
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3557
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3769
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3558
3770
|
}
|
|
3559
3771
|
/**
|
|
3560
3772
|
* Query All Margin Account Orders
|
|
@@ -3570,7 +3782,7 @@ var TradeApi = class {
|
|
|
3570
3782
|
*/
|
|
3571
3783
|
async queryAllMarginAccountOrders(requestParameters) {
|
|
3572
3784
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllMarginAccountOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3573
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3785
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3574
3786
|
}
|
|
3575
3787
|
/**
|
|
3576
3788
|
* Query All UM Conditional Orders
|
|
@@ -3592,7 +3804,7 @@ var TradeApi = class {
|
|
|
3592
3804
|
*/
|
|
3593
3805
|
async queryAllUmConditionalOrders(requestParameters = {}) {
|
|
3594
3806
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3595
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3807
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3596
3808
|
}
|
|
3597
3809
|
/**
|
|
3598
3810
|
* Get all account UM orders; active, canceled, or filled.
|
|
@@ -3615,7 +3827,7 @@ var TradeApi = class {
|
|
|
3615
3827
|
*/
|
|
3616
3828
|
async queryAllUmOrders(requestParameters) {
|
|
3617
3829
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3618
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3830
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3619
3831
|
}
|
|
3620
3832
|
/**
|
|
3621
3833
|
* Query CM Conditional Order History
|
|
@@ -3639,7 +3851,7 @@ var TradeApi = class {
|
|
|
3639
3851
|
*/
|
|
3640
3852
|
async queryCmConditionalOrderHistory(requestParameters) {
|
|
3641
3853
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3642
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3854
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3643
3855
|
}
|
|
3644
3856
|
/**
|
|
3645
3857
|
* Get order modification history
|
|
@@ -3657,7 +3869,7 @@ var TradeApi = class {
|
|
|
3657
3869
|
*/
|
|
3658
3870
|
async queryCmModifyOrderHistory(requestParameters) {
|
|
3659
3871
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmModifyOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3660
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3872
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3661
3873
|
}
|
|
3662
3874
|
/**
|
|
3663
3875
|
* Check an CM order's status.
|
|
@@ -3679,7 +3891,7 @@ var TradeApi = class {
|
|
|
3679
3891
|
*/
|
|
3680
3892
|
async queryCmOrder(requestParameters) {
|
|
3681
3893
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3682
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3894
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3683
3895
|
}
|
|
3684
3896
|
/**
|
|
3685
3897
|
* Query Current CM Open Conditional Order
|
|
@@ -3698,7 +3910,7 @@ var TradeApi = class {
|
|
|
3698
3910
|
*/
|
|
3699
3911
|
async queryCurrentCmOpenConditionalOrder(requestParameters) {
|
|
3700
3912
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3701
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3913
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3702
3914
|
}
|
|
3703
3915
|
/**
|
|
3704
3916
|
* Query current CM open order
|
|
@@ -3717,7 +3929,7 @@ var TradeApi = class {
|
|
|
3717
3929
|
*/
|
|
3718
3930
|
async queryCurrentCmOpenOrder(requestParameters) {
|
|
3719
3931
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3720
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3932
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3721
3933
|
}
|
|
3722
3934
|
/**
|
|
3723
3935
|
* Query Current Margin Open Order
|
|
@@ -3733,7 +3945,7 @@ var TradeApi = class {
|
|
|
3733
3945
|
*/
|
|
3734
3946
|
async queryCurrentMarginOpenOrder(requestParameters) {
|
|
3735
3947
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentMarginOpenOrder(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3736
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3948
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3737
3949
|
}
|
|
3738
3950
|
/**
|
|
3739
3951
|
* Check an UM algo order's status.
|
|
@@ -3756,7 +3968,7 @@ var TradeApi = class {
|
|
|
3756
3968
|
*/
|
|
3757
3969
|
async queryCurrentUmOpenAlgoOrder(requestParameters = {}) {
|
|
3758
3970
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
|
|
3759
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3971
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3760
3972
|
}
|
|
3761
3973
|
/**
|
|
3762
3974
|
* Query Current UM Open Conditional Order
|
|
@@ -3775,7 +3987,7 @@ var TradeApi = class {
|
|
|
3775
3987
|
*/
|
|
3776
3988
|
async queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
3777
3989
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3778
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3990
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3779
3991
|
}
|
|
3780
3992
|
/**
|
|
3781
3993
|
* Query current UM open order
|
|
@@ -3795,7 +4007,7 @@ var TradeApi = class {
|
|
|
3795
4007
|
*/
|
|
3796
4008
|
async queryCurrentUmOpenOrder(requestParameters) {
|
|
3797
4009
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3798
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4010
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3799
4011
|
}
|
|
3800
4012
|
/**
|
|
3801
4013
|
* Query Margin Account Order
|
|
@@ -3811,7 +4023,7 @@ var TradeApi = class {
|
|
|
3811
4023
|
*/
|
|
3812
4024
|
async queryMarginAccountOrder(requestParameters) {
|
|
3813
4025
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3814
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4026
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3815
4027
|
}
|
|
3816
4028
|
/**
|
|
3817
4029
|
* Query all OCO for a specific margin account based on provided optional parameters
|
|
@@ -3827,7 +4039,7 @@ var TradeApi = class {
|
|
|
3827
4039
|
*/
|
|
3828
4040
|
async queryMarginAccountsAllOco(requestParameters = {}) {
|
|
3829
4041
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOco(requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3830
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4042
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3831
4043
|
}
|
|
3832
4044
|
/**
|
|
3833
4045
|
* Retrieves a specific OCO based on provided optional parameters
|
|
@@ -3843,7 +4055,7 @@ var TradeApi = class {
|
|
|
3843
4055
|
*/
|
|
3844
4056
|
async queryMarginAccountsOco(requestParameters = {}) {
|
|
3845
4057
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOco(requestParameters?.orderListId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3846
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4058
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3847
4059
|
}
|
|
3848
4060
|
/**
|
|
3849
4061
|
* Query Margin Account's Open OCO
|
|
@@ -3859,7 +4071,7 @@ var TradeApi = class {
|
|
|
3859
4071
|
*/
|
|
3860
4072
|
async queryMarginAccountsOpenOco(requestParameters = {}) {
|
|
3861
4073
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOco(requestParameters?.recvWindow);
|
|
3862
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4074
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3863
4075
|
}
|
|
3864
4076
|
/**
|
|
3865
4077
|
* Get all algo orders; ACTIVE, CANCELED, TRIGGERED or FINISHED .
|
|
@@ -3878,7 +4090,7 @@ var TradeApi = class {
|
|
|
3878
4090
|
*/
|
|
3879
4091
|
async queryUmAlgoOrderHistory(requestParameters) {
|
|
3880
4092
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmAlgoOrderHistory(requestParameters?.symbol, requestParameters?.algoId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3881
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4093
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3882
4094
|
}
|
|
3883
4095
|
/**
|
|
3884
4096
|
* Query UM Conditional Order History
|
|
@@ -3901,7 +4113,7 @@ var TradeApi = class {
|
|
|
3901
4113
|
*/
|
|
3902
4114
|
async queryUmConditionalOrderHistory(requestParameters) {
|
|
3903
4115
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3904
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4116
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3905
4117
|
}
|
|
3906
4118
|
/**
|
|
3907
4119
|
* Get order modification history
|
|
@@ -3919,7 +4131,7 @@ var TradeApi = class {
|
|
|
3919
4131
|
*/
|
|
3920
4132
|
async queryUmModifyOrderHistory(requestParameters) {
|
|
3921
4133
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmModifyOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3922
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4134
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3923
4135
|
}
|
|
3924
4136
|
/**
|
|
3925
4137
|
* Check an UM order's status.
|
|
@@ -3941,7 +4153,7 @@ var TradeApi = class {
|
|
|
3941
4153
|
*/
|
|
3942
4154
|
async queryUmOrder(requestParameters) {
|
|
3943
4155
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3944
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4156
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3945
4157
|
}
|
|
3946
4158
|
/**
|
|
3947
4159
|
* Query User's CM Force Orders
|
|
@@ -3961,7 +4173,7 @@ var TradeApi = class {
|
|
|
3961
4173
|
*/
|
|
3962
4174
|
async queryUsersCmForceOrders(requestParameters = {}) {
|
|
3963
4175
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersCmForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3964
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4176
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3965
4177
|
}
|
|
3966
4178
|
/**
|
|
3967
4179
|
* Query user's margin force orders
|
|
@@ -3977,7 +4189,7 @@ var TradeApi = class {
|
|
|
3977
4189
|
*/
|
|
3978
4190
|
async queryUsersMarginForceOrders(requestParameters = {}) {
|
|
3979
4191
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersMarginForceOrders(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
3980
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4192
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3981
4193
|
}
|
|
3982
4194
|
/**
|
|
3983
4195
|
* Query User's UM Force Orders
|
|
@@ -3997,7 +4209,7 @@ var TradeApi = class {
|
|
|
3997
4209
|
*/
|
|
3998
4210
|
async queryUsersUmForceOrders(requestParameters = {}) {
|
|
3999
4211
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersUmForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
4000
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4212
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4001
4213
|
}
|
|
4002
4214
|
/**
|
|
4003
4215
|
* Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
|
|
@@ -4016,7 +4228,7 @@ var TradeApi = class {
|
|
|
4016
4228
|
*/
|
|
4017
4229
|
async toggleBnbBurnOnUmFuturesTrade(requestParameters) {
|
|
4018
4230
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnUmFuturesTrade(requestParameters?.feeBurn, requestParameters?.recvWindow);
|
|
4019
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4231
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4020
4232
|
}
|
|
4021
4233
|
/**
|
|
4022
4234
|
* Get trades for a specific account and UM symbol.
|
|
@@ -4037,7 +4249,7 @@ var TradeApi = class {
|
|
|
4037
4249
|
*/
|
|
4038
4250
|
async umAccountTradeList(requestParameters) {
|
|
4039
4251
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umAccountTradeList(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
4040
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4252
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4041
4253
|
}
|
|
4042
4254
|
/**
|
|
4043
4255
|
* Query UM Position ADL Quantile Estimation
|
|
@@ -4060,7 +4272,7 @@ var TradeApi = class {
|
|
|
4060
4272
|
*/
|
|
4061
4273
|
async umPositionAdlQuantileEstimation(requestParameters = {}) {
|
|
4062
4274
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umPositionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
4063
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4275
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4064
4276
|
}
|
|
4065
4277
|
};
|
|
4066
4278
|
let MarginAccountNewOcoSideEnum = /* @__PURE__ */ function(MarginAccountNewOcoSideEnum$1) {
|
|
@@ -4406,6 +4618,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4406
4618
|
closeUserDataStream: async () => {
|
|
4407
4619
|
const localVarQueryParameter = {};
|
|
4408
4620
|
const localVarBodyParameter = {};
|
|
4621
|
+
const localVarHeaderParameter = {};
|
|
4409
4622
|
let _timeUnit;
|
|
4410
4623
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4411
4624
|
return {
|
|
@@ -4413,12 +4626,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4413
4626
|
method: "DELETE",
|
|
4414
4627
|
queryParams: localVarQueryParameter,
|
|
4415
4628
|
bodyParams: localVarBodyParameter,
|
|
4629
|
+
headerParams: localVarHeaderParameter,
|
|
4416
4630
|
timeUnit: _timeUnit
|
|
4417
4631
|
};
|
|
4418
4632
|
},
|
|
4419
4633
|
keepaliveUserDataStream: async () => {
|
|
4420
4634
|
const localVarQueryParameter = {};
|
|
4421
4635
|
const localVarBodyParameter = {};
|
|
4636
|
+
const localVarHeaderParameter = {};
|
|
4422
4637
|
let _timeUnit;
|
|
4423
4638
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4424
4639
|
return {
|
|
@@ -4426,12 +4641,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4426
4641
|
method: "PUT",
|
|
4427
4642
|
queryParams: localVarQueryParameter,
|
|
4428
4643
|
bodyParams: localVarBodyParameter,
|
|
4644
|
+
headerParams: localVarHeaderParameter,
|
|
4429
4645
|
timeUnit: _timeUnit
|
|
4430
4646
|
};
|
|
4431
4647
|
},
|
|
4432
4648
|
startUserDataStream: async () => {
|
|
4433
4649
|
const localVarQueryParameter = {};
|
|
4434
4650
|
const localVarBodyParameter = {};
|
|
4651
|
+
const localVarHeaderParameter = {};
|
|
4435
4652
|
let _timeUnit;
|
|
4436
4653
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4437
4654
|
return {
|
|
@@ -4439,6 +4656,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4439
4656
|
method: "POST",
|
|
4440
4657
|
queryParams: localVarQueryParameter,
|
|
4441
4658
|
bodyParams: localVarBodyParameter,
|
|
4659
|
+
headerParams: localVarHeaderParameter,
|
|
4442
4660
|
timeUnit: _timeUnit
|
|
4443
4661
|
};
|
|
4444
4662
|
}
|
|
@@ -4466,7 +4684,7 @@ var UserDataStreamsApi = class {
|
|
|
4466
4684
|
*/
|
|
4467
4685
|
async closeUserDataStream() {
|
|
4468
4686
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
4469
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4687
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4470
4688
|
}
|
|
4471
4689
|
/**
|
|
4472
4690
|
* 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.
|
|
@@ -4481,7 +4699,7 @@ var UserDataStreamsApi = class {
|
|
|
4481
4699
|
*/
|
|
4482
4700
|
async keepaliveUserDataStream() {
|
|
4483
4701
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
4484
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4702
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4485
4703
|
}
|
|
4486
4704
|
/**
|
|
4487
4705
|
* 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.
|
|
@@ -4496,7 +4714,7 @@ var UserDataStreamsApi = class {
|
|
|
4496
4714
|
*/
|
|
4497
4715
|
async startUserDataStream() {
|
|
4498
4716
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
4499
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4717
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4500
4718
|
}
|
|
4501
4719
|
};
|
|
4502
4720
|
|
|
@@ -4532,7 +4750,7 @@ var RestAPI = class {
|
|
|
4532
4750
|
* @returns A promise resolving to the response data object.
|
|
4533
4751
|
*/
|
|
4534
4752
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4535
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
4753
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
4536
4754
|
}
|
|
4537
4755
|
/**
|
|
4538
4756
|
* Generic function to send a signed request.
|
|
@@ -4544,7 +4762,7 @@ var RestAPI = class {
|
|
|
4544
4762
|
* @returns A promise resolving to the response data object.
|
|
4545
4763
|
*/
|
|
4546
4764
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4547
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
4765
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
4548
4766
|
}
|
|
4549
4767
|
/**
|
|
4550
4768
|
* Query account balance
|