@binance/derivatives-trading-portfolio-margin 8.0.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +49 -8
- package/dist/index.d.ts +49 -8
- package/dist/index.js +417 -217
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +418 -212
- 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 = "
|
|
17
|
+
var version = "9.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -37,6 +37,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
37
37
|
return {
|
|
38
38
|
accountBalance: async (asset, recvWindow) => {
|
|
39
39
|
const localVarQueryParameter = {};
|
|
40
|
+
const localVarBodyParameter = {};
|
|
40
41
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
41
42
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
42
43
|
let _timeUnit;
|
|
@@ -44,19 +45,22 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
44
45
|
return {
|
|
45
46
|
endpoint: "/papi/v1/balance",
|
|
46
47
|
method: "GET",
|
|
47
|
-
|
|
48
|
+
queryParams: localVarQueryParameter,
|
|
49
|
+
bodyParams: localVarBodyParameter,
|
|
48
50
|
timeUnit: _timeUnit
|
|
49
51
|
};
|
|
50
52
|
},
|
|
51
53
|
accountInformation: async (recvWindow) => {
|
|
52
54
|
const localVarQueryParameter = {};
|
|
55
|
+
const localVarBodyParameter = {};
|
|
53
56
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
54
57
|
let _timeUnit;
|
|
55
58
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
56
59
|
return {
|
|
57
60
|
endpoint: "/papi/v1/account",
|
|
58
61
|
method: "GET",
|
|
59
|
-
|
|
62
|
+
queryParams: localVarQueryParameter,
|
|
63
|
+
bodyParams: localVarBodyParameter,
|
|
60
64
|
timeUnit: _timeUnit
|
|
61
65
|
};
|
|
62
66
|
},
|
|
@@ -64,6 +68,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
64
68
|
(0, __binance_common.assertParamExists)("bnbTransfer", "amount", amount);
|
|
65
69
|
(0, __binance_common.assertParamExists)("bnbTransfer", "transferSide", transferSide);
|
|
66
70
|
const localVarQueryParameter = {};
|
|
71
|
+
const localVarBodyParameter = {};
|
|
67
72
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
68
73
|
if (transferSide !== void 0 && transferSide !== null) localVarQueryParameter["transferSide"] = transferSide;
|
|
69
74
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -72,13 +77,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
72
77
|
return {
|
|
73
78
|
endpoint: "/papi/v1/bnb-transfer",
|
|
74
79
|
method: "POST",
|
|
75
|
-
|
|
80
|
+
queryParams: localVarQueryParameter,
|
|
81
|
+
bodyParams: localVarBodyParameter,
|
|
76
82
|
timeUnit: _timeUnit
|
|
77
83
|
};
|
|
78
84
|
},
|
|
79
85
|
changeAutoRepayFuturesStatus: async (autoRepay, recvWindow) => {
|
|
80
86
|
(0, __binance_common.assertParamExists)("changeAutoRepayFuturesStatus", "autoRepay", autoRepay);
|
|
81
87
|
const localVarQueryParameter = {};
|
|
88
|
+
const localVarBodyParameter = {};
|
|
82
89
|
if (autoRepay !== void 0 && autoRepay !== null) localVarQueryParameter["autoRepay"] = autoRepay;
|
|
83
90
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
84
91
|
let _timeUnit;
|
|
@@ -86,7 +93,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
86
93
|
return {
|
|
87
94
|
endpoint: "/papi/v1/repay-futures-switch",
|
|
88
95
|
method: "POST",
|
|
89
|
-
|
|
96
|
+
queryParams: localVarQueryParameter,
|
|
97
|
+
bodyParams: localVarBodyParameter,
|
|
90
98
|
timeUnit: _timeUnit
|
|
91
99
|
};
|
|
92
100
|
},
|
|
@@ -94,6 +102,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
94
102
|
(0, __binance_common.assertParamExists)("changeCmInitialLeverage", "symbol", symbol);
|
|
95
103
|
(0, __binance_common.assertParamExists)("changeCmInitialLeverage", "leverage", leverage);
|
|
96
104
|
const localVarQueryParameter = {};
|
|
105
|
+
const localVarBodyParameter = {};
|
|
97
106
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
98
107
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
99
108
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -102,13 +111,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
102
111
|
return {
|
|
103
112
|
endpoint: "/papi/v1/cm/leverage",
|
|
104
113
|
method: "POST",
|
|
105
|
-
|
|
114
|
+
queryParams: localVarQueryParameter,
|
|
115
|
+
bodyParams: localVarBodyParameter,
|
|
106
116
|
timeUnit: _timeUnit
|
|
107
117
|
};
|
|
108
118
|
},
|
|
109
119
|
changeCmPositionMode: async (dualSidePosition, recvWindow) => {
|
|
110
120
|
(0, __binance_common.assertParamExists)("changeCmPositionMode", "dualSidePosition", dualSidePosition);
|
|
111
121
|
const localVarQueryParameter = {};
|
|
122
|
+
const localVarBodyParameter = {};
|
|
112
123
|
if (dualSidePosition !== void 0 && dualSidePosition !== null) localVarQueryParameter["dualSidePosition"] = dualSidePosition;
|
|
113
124
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
114
125
|
let _timeUnit;
|
|
@@ -116,7 +127,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
116
127
|
return {
|
|
117
128
|
endpoint: "/papi/v1/cm/positionSide/dual",
|
|
118
129
|
method: "POST",
|
|
119
|
-
|
|
130
|
+
queryParams: localVarQueryParameter,
|
|
131
|
+
bodyParams: localVarBodyParameter,
|
|
120
132
|
timeUnit: _timeUnit
|
|
121
133
|
};
|
|
122
134
|
},
|
|
@@ -124,6 +136,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
124
136
|
(0, __binance_common.assertParamExists)("changeUmInitialLeverage", "symbol", symbol);
|
|
125
137
|
(0, __binance_common.assertParamExists)("changeUmInitialLeverage", "leverage", leverage);
|
|
126
138
|
const localVarQueryParameter = {};
|
|
139
|
+
const localVarBodyParameter = {};
|
|
127
140
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
128
141
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
129
142
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -132,13 +145,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
132
145
|
return {
|
|
133
146
|
endpoint: "/papi/v1/um/leverage",
|
|
134
147
|
method: "POST",
|
|
135
|
-
|
|
148
|
+
queryParams: localVarQueryParameter,
|
|
149
|
+
bodyParams: localVarBodyParameter,
|
|
136
150
|
timeUnit: _timeUnit
|
|
137
151
|
};
|
|
138
152
|
},
|
|
139
153
|
changeUmPositionMode: async (dualSidePosition, recvWindow) => {
|
|
140
154
|
(0, __binance_common.assertParamExists)("changeUmPositionMode", "dualSidePosition", dualSidePosition);
|
|
141
155
|
const localVarQueryParameter = {};
|
|
156
|
+
const localVarBodyParameter = {};
|
|
142
157
|
if (dualSidePosition !== void 0 && dualSidePosition !== null) localVarQueryParameter["dualSidePosition"] = dualSidePosition;
|
|
143
158
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
144
159
|
let _timeUnit;
|
|
@@ -146,12 +161,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
146
161
|
return {
|
|
147
162
|
endpoint: "/papi/v1/um/positionSide/dual",
|
|
148
163
|
method: "POST",
|
|
149
|
-
|
|
164
|
+
queryParams: localVarQueryParameter,
|
|
165
|
+
bodyParams: localVarBodyParameter,
|
|
150
166
|
timeUnit: _timeUnit
|
|
151
167
|
};
|
|
152
168
|
},
|
|
153
169
|
cmNotionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
154
170
|
const localVarQueryParameter = {};
|
|
171
|
+
const localVarBodyParameter = {};
|
|
155
172
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
156
173
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
157
174
|
let _timeUnit;
|
|
@@ -159,25 +176,29 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
159
176
|
return {
|
|
160
177
|
endpoint: "/papi/v1/cm/leverageBracket",
|
|
161
178
|
method: "GET",
|
|
162
|
-
|
|
179
|
+
queryParams: localVarQueryParameter,
|
|
180
|
+
bodyParams: localVarBodyParameter,
|
|
163
181
|
timeUnit: _timeUnit
|
|
164
182
|
};
|
|
165
183
|
},
|
|
166
184
|
fundAutoCollection: async (recvWindow) => {
|
|
167
185
|
const localVarQueryParameter = {};
|
|
186
|
+
const localVarBodyParameter = {};
|
|
168
187
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
169
188
|
let _timeUnit;
|
|
170
189
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
171
190
|
return {
|
|
172
191
|
endpoint: "/papi/v1/auto-collection",
|
|
173
192
|
method: "POST",
|
|
174
|
-
|
|
193
|
+
queryParams: localVarQueryParameter,
|
|
194
|
+
bodyParams: localVarBodyParameter,
|
|
175
195
|
timeUnit: _timeUnit
|
|
176
196
|
};
|
|
177
197
|
},
|
|
178
198
|
fundCollectionByAsset: async (asset, recvWindow) => {
|
|
179
199
|
(0, __binance_common.assertParamExists)("fundCollectionByAsset", "asset", asset);
|
|
180
200
|
const localVarQueryParameter = {};
|
|
201
|
+
const localVarBodyParameter = {};
|
|
181
202
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
182
203
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
183
204
|
let _timeUnit;
|
|
@@ -185,48 +206,56 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
185
206
|
return {
|
|
186
207
|
endpoint: "/papi/v1/asset-collection",
|
|
187
208
|
method: "POST",
|
|
188
|
-
|
|
209
|
+
queryParams: localVarQueryParameter,
|
|
210
|
+
bodyParams: localVarBodyParameter,
|
|
189
211
|
timeUnit: _timeUnit
|
|
190
212
|
};
|
|
191
213
|
},
|
|
192
214
|
getAutoRepayFuturesStatus: async (recvWindow) => {
|
|
193
215
|
const localVarQueryParameter = {};
|
|
216
|
+
const localVarBodyParameter = {};
|
|
194
217
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
195
218
|
let _timeUnit;
|
|
196
219
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
197
220
|
return {
|
|
198
221
|
endpoint: "/papi/v1/repay-futures-switch",
|
|
199
222
|
method: "GET",
|
|
200
|
-
|
|
223
|
+
queryParams: localVarQueryParameter,
|
|
224
|
+
bodyParams: localVarBodyParameter,
|
|
201
225
|
timeUnit: _timeUnit
|
|
202
226
|
};
|
|
203
227
|
},
|
|
204
228
|
getCmAccountDetail: async (recvWindow) => {
|
|
205
229
|
const localVarQueryParameter = {};
|
|
230
|
+
const localVarBodyParameter = {};
|
|
206
231
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
207
232
|
let _timeUnit;
|
|
208
233
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
209
234
|
return {
|
|
210
235
|
endpoint: "/papi/v1/cm/account",
|
|
211
236
|
method: "GET",
|
|
212
|
-
|
|
237
|
+
queryParams: localVarQueryParameter,
|
|
238
|
+
bodyParams: localVarBodyParameter,
|
|
213
239
|
timeUnit: _timeUnit
|
|
214
240
|
};
|
|
215
241
|
},
|
|
216
242
|
getCmCurrentPositionMode: async (recvWindow) => {
|
|
217
243
|
const localVarQueryParameter = {};
|
|
244
|
+
const localVarBodyParameter = {};
|
|
218
245
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
219
246
|
let _timeUnit;
|
|
220
247
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
221
248
|
return {
|
|
222
249
|
endpoint: "/papi/v1/cm/positionSide/dual",
|
|
223
250
|
method: "GET",
|
|
224
|
-
|
|
251
|
+
queryParams: localVarQueryParameter,
|
|
252
|
+
bodyParams: localVarBodyParameter,
|
|
225
253
|
timeUnit: _timeUnit
|
|
226
254
|
};
|
|
227
255
|
},
|
|
228
256
|
getCmIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
229
257
|
const localVarQueryParameter = {};
|
|
258
|
+
const localVarBodyParameter = {};
|
|
230
259
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
231
260
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
232
261
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -239,7 +268,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
239
268
|
return {
|
|
240
269
|
endpoint: "/papi/v1/cm/income",
|
|
241
270
|
method: "GET",
|
|
242
|
-
|
|
271
|
+
queryParams: localVarQueryParameter,
|
|
272
|
+
bodyParams: localVarBodyParameter,
|
|
243
273
|
timeUnit: _timeUnit
|
|
244
274
|
};
|
|
245
275
|
},
|
|
@@ -247,6 +277,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
247
277
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesOrderHistory", "startTime", startTime);
|
|
248
278
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesOrderHistory", "endTime", endTime);
|
|
249
279
|
const localVarQueryParameter = {};
|
|
280
|
+
const localVarBodyParameter = {};
|
|
250
281
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
251
282
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
252
283
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -255,7 +286,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
255
286
|
return {
|
|
256
287
|
endpoint: "/papi/v1/um/order/asyn",
|
|
257
288
|
method: "GET",
|
|
258
|
-
|
|
289
|
+
queryParams: localVarQueryParameter,
|
|
290
|
+
bodyParams: localVarBodyParameter,
|
|
259
291
|
timeUnit: _timeUnit
|
|
260
292
|
};
|
|
261
293
|
},
|
|
@@ -263,6 +295,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
263
295
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesTradeHistory", "startTime", startTime);
|
|
264
296
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesTradeHistory", "endTime", endTime);
|
|
265
297
|
const localVarQueryParameter = {};
|
|
298
|
+
const localVarBodyParameter = {};
|
|
266
299
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
267
300
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
268
301
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -271,7 +304,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
271
304
|
return {
|
|
272
305
|
endpoint: "/papi/v1/um/trade/asyn",
|
|
273
306
|
method: "GET",
|
|
274
|
-
|
|
307
|
+
queryParams: localVarQueryParameter,
|
|
308
|
+
bodyParams: localVarBodyParameter,
|
|
275
309
|
timeUnit: _timeUnit
|
|
276
310
|
};
|
|
277
311
|
},
|
|
@@ -279,6 +313,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
279
313
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesTransactionHistory", "startTime", startTime);
|
|
280
314
|
(0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesTransactionHistory", "endTime", endTime);
|
|
281
315
|
const localVarQueryParameter = {};
|
|
316
|
+
const localVarBodyParameter = {};
|
|
282
317
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
283
318
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
284
319
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -287,12 +322,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
287
322
|
return {
|
|
288
323
|
endpoint: "/papi/v1/um/income/asyn",
|
|
289
324
|
method: "GET",
|
|
290
|
-
|
|
325
|
+
queryParams: localVarQueryParameter,
|
|
326
|
+
bodyParams: localVarBodyParameter,
|
|
291
327
|
timeUnit: _timeUnit
|
|
292
328
|
};
|
|
293
329
|
},
|
|
294
330
|
getMarginBorrowLoanInterestHistory: async (asset, startTime, endTime, current, size, archived, recvWindow) => {
|
|
295
331
|
const localVarQueryParameter = {};
|
|
332
|
+
const localVarBodyParameter = {};
|
|
296
333
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
297
334
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
298
335
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -305,49 +342,57 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
305
342
|
return {
|
|
306
343
|
endpoint: "/papi/v1/margin/marginInterestHistory",
|
|
307
344
|
method: "GET",
|
|
308
|
-
|
|
345
|
+
queryParams: localVarQueryParameter,
|
|
346
|
+
bodyParams: localVarBodyParameter,
|
|
309
347
|
timeUnit: _timeUnit
|
|
310
348
|
};
|
|
311
349
|
},
|
|
312
350
|
getUmAccountDetail: async (recvWindow) => {
|
|
313
351
|
const localVarQueryParameter = {};
|
|
352
|
+
const localVarBodyParameter = {};
|
|
314
353
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
315
354
|
let _timeUnit;
|
|
316
355
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
317
356
|
return {
|
|
318
357
|
endpoint: "/papi/v1/um/account",
|
|
319
358
|
method: "GET",
|
|
320
|
-
|
|
359
|
+
queryParams: localVarQueryParameter,
|
|
360
|
+
bodyParams: localVarBodyParameter,
|
|
321
361
|
timeUnit: _timeUnit
|
|
322
362
|
};
|
|
323
363
|
},
|
|
324
364
|
getUmAccountDetailV2: async (recvWindow) => {
|
|
325
365
|
const localVarQueryParameter = {};
|
|
366
|
+
const localVarBodyParameter = {};
|
|
326
367
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
327
368
|
let _timeUnit;
|
|
328
369
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
329
370
|
return {
|
|
330
371
|
endpoint: "/papi/v2/um/account",
|
|
331
372
|
method: "GET",
|
|
332
|
-
|
|
373
|
+
queryParams: localVarQueryParameter,
|
|
374
|
+
bodyParams: localVarBodyParameter,
|
|
333
375
|
timeUnit: _timeUnit
|
|
334
376
|
};
|
|
335
377
|
},
|
|
336
378
|
getUmCurrentPositionMode: async (recvWindow) => {
|
|
337
379
|
const localVarQueryParameter = {};
|
|
380
|
+
const localVarBodyParameter = {};
|
|
338
381
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
339
382
|
let _timeUnit;
|
|
340
383
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
341
384
|
return {
|
|
342
385
|
endpoint: "/papi/v1/um/positionSide/dual",
|
|
343
386
|
method: "GET",
|
|
344
|
-
|
|
387
|
+
queryParams: localVarQueryParameter,
|
|
388
|
+
bodyParams: localVarBodyParameter,
|
|
345
389
|
timeUnit: _timeUnit
|
|
346
390
|
};
|
|
347
391
|
},
|
|
348
392
|
getUmFuturesOrderDownloadLinkById: async (downloadId, recvWindow) => {
|
|
349
393
|
(0, __binance_common.assertParamExists)("getUmFuturesOrderDownloadLinkById", "downloadId", downloadId);
|
|
350
394
|
const localVarQueryParameter = {};
|
|
395
|
+
const localVarBodyParameter = {};
|
|
351
396
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
352
397
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
353
398
|
let _timeUnit;
|
|
@@ -355,13 +400,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
355
400
|
return {
|
|
356
401
|
endpoint: "/papi/v1/um/order/asyn/id",
|
|
357
402
|
method: "GET",
|
|
358
|
-
|
|
403
|
+
queryParams: localVarQueryParameter,
|
|
404
|
+
bodyParams: localVarBodyParameter,
|
|
359
405
|
timeUnit: _timeUnit
|
|
360
406
|
};
|
|
361
407
|
},
|
|
362
408
|
getUmFuturesTradeDownloadLinkById: async (downloadId, recvWindow) => {
|
|
363
409
|
(0, __binance_common.assertParamExists)("getUmFuturesTradeDownloadLinkById", "downloadId", downloadId);
|
|
364
410
|
const localVarQueryParameter = {};
|
|
411
|
+
const localVarBodyParameter = {};
|
|
365
412
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
366
413
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
367
414
|
let _timeUnit;
|
|
@@ -369,13 +416,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
369
416
|
return {
|
|
370
417
|
endpoint: "/papi/v1/um/trade/asyn/id",
|
|
371
418
|
method: "GET",
|
|
372
|
-
|
|
419
|
+
queryParams: localVarQueryParameter,
|
|
420
|
+
bodyParams: localVarBodyParameter,
|
|
373
421
|
timeUnit: _timeUnit
|
|
374
422
|
};
|
|
375
423
|
},
|
|
376
424
|
getUmFuturesTransactionDownloadLinkById: async (downloadId, recvWindow) => {
|
|
377
425
|
(0, __binance_common.assertParamExists)("getUmFuturesTransactionDownloadLinkById", "downloadId", downloadId);
|
|
378
426
|
const localVarQueryParameter = {};
|
|
427
|
+
const localVarBodyParameter = {};
|
|
379
428
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
380
429
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
381
430
|
let _timeUnit;
|
|
@@ -383,12 +432,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
383
432
|
return {
|
|
384
433
|
endpoint: "/papi/v1/um/income/asyn/id",
|
|
385
434
|
method: "GET",
|
|
386
|
-
|
|
435
|
+
queryParams: localVarQueryParameter,
|
|
436
|
+
bodyParams: localVarBodyParameter,
|
|
387
437
|
timeUnit: _timeUnit
|
|
388
438
|
};
|
|
389
439
|
},
|
|
390
440
|
getUmIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
391
441
|
const localVarQueryParameter = {};
|
|
442
|
+
const localVarBodyParameter = {};
|
|
392
443
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
393
444
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
394
445
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -401,13 +452,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
401
452
|
return {
|
|
402
453
|
endpoint: "/papi/v1/um/income",
|
|
403
454
|
method: "GET",
|
|
404
|
-
|
|
455
|
+
queryParams: localVarQueryParameter,
|
|
456
|
+
bodyParams: localVarBodyParameter,
|
|
405
457
|
timeUnit: _timeUnit
|
|
406
458
|
};
|
|
407
459
|
},
|
|
408
460
|
getUserCommissionRateForCm: async (symbol, recvWindow) => {
|
|
409
461
|
(0, __binance_common.assertParamExists)("getUserCommissionRateForCm", "symbol", symbol);
|
|
410
462
|
const localVarQueryParameter = {};
|
|
463
|
+
const localVarBodyParameter = {};
|
|
411
464
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
412
465
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
413
466
|
let _timeUnit;
|
|
@@ -415,13 +468,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
415
468
|
return {
|
|
416
469
|
endpoint: "/papi/v1/cm/commissionRate",
|
|
417
470
|
method: "GET",
|
|
418
|
-
|
|
471
|
+
queryParams: localVarQueryParameter,
|
|
472
|
+
bodyParams: localVarBodyParameter,
|
|
419
473
|
timeUnit: _timeUnit
|
|
420
474
|
};
|
|
421
475
|
},
|
|
422
476
|
getUserCommissionRateForUm: async (symbol, recvWindow) => {
|
|
423
477
|
(0, __binance_common.assertParamExists)("getUserCommissionRateForUm", "symbol", symbol);
|
|
424
478
|
const localVarQueryParameter = {};
|
|
479
|
+
const localVarBodyParameter = {};
|
|
425
480
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
426
481
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
427
482
|
let _timeUnit;
|
|
@@ -429,13 +484,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
429
484
|
return {
|
|
430
485
|
endpoint: "/papi/v1/um/commissionRate",
|
|
431
486
|
method: "GET",
|
|
432
|
-
|
|
487
|
+
queryParams: localVarQueryParameter,
|
|
488
|
+
bodyParams: localVarBodyParameter,
|
|
433
489
|
timeUnit: _timeUnit
|
|
434
490
|
};
|
|
435
491
|
},
|
|
436
492
|
marginMaxBorrow: async (asset, recvWindow) => {
|
|
437
493
|
(0, __binance_common.assertParamExists)("marginMaxBorrow", "asset", asset);
|
|
438
494
|
const localVarQueryParameter = {};
|
|
495
|
+
const localVarBodyParameter = {};
|
|
439
496
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
440
497
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
441
498
|
let _timeUnit;
|
|
@@ -443,12 +500,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
443
500
|
return {
|
|
444
501
|
endpoint: "/papi/v1/margin/maxBorrowable",
|
|
445
502
|
method: "GET",
|
|
446
|
-
|
|
503
|
+
queryParams: localVarQueryParameter,
|
|
504
|
+
bodyParams: localVarBodyParameter,
|
|
447
505
|
timeUnit: _timeUnit
|
|
448
506
|
};
|
|
449
507
|
},
|
|
450
508
|
portfolioMarginUmTradingQuantitativeRulesIndicators: async (symbol, recvWindow) => {
|
|
451
509
|
const localVarQueryParameter = {};
|
|
510
|
+
const localVarBodyParameter = {};
|
|
452
511
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
453
512
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
454
513
|
let _timeUnit;
|
|
@@ -456,12 +515,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
456
515
|
return {
|
|
457
516
|
endpoint: "/papi/v1/um/apiTradingStatus",
|
|
458
517
|
method: "GET",
|
|
459
|
-
|
|
518
|
+
queryParams: localVarQueryParameter,
|
|
519
|
+
bodyParams: localVarBodyParameter,
|
|
460
520
|
timeUnit: _timeUnit
|
|
461
521
|
};
|
|
462
522
|
},
|
|
463
523
|
queryCmPositionInformation: async (marginAsset, pair, recvWindow) => {
|
|
464
524
|
const localVarQueryParameter = {};
|
|
525
|
+
const localVarBodyParameter = {};
|
|
465
526
|
if (marginAsset !== void 0 && marginAsset !== null) localVarQueryParameter["marginAsset"] = marginAsset;
|
|
466
527
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
467
528
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -470,13 +531,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
470
531
|
return {
|
|
471
532
|
endpoint: "/papi/v1/cm/positionRisk",
|
|
472
533
|
method: "GET",
|
|
473
|
-
|
|
534
|
+
queryParams: localVarQueryParameter,
|
|
535
|
+
bodyParams: localVarBodyParameter,
|
|
474
536
|
timeUnit: _timeUnit
|
|
475
537
|
};
|
|
476
538
|
},
|
|
477
539
|
queryMarginLoanRecord: async (asset, txId, startTime, endTime, current, size, archived, recvWindow) => {
|
|
478
540
|
(0, __binance_common.assertParamExists)("queryMarginLoanRecord", "asset", asset);
|
|
479
541
|
const localVarQueryParameter = {};
|
|
542
|
+
const localVarBodyParameter = {};
|
|
480
543
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
481
544
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
482
545
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -490,13 +553,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
490
553
|
return {
|
|
491
554
|
endpoint: "/papi/v1/margin/marginLoan",
|
|
492
555
|
method: "GET",
|
|
493
|
-
|
|
556
|
+
queryParams: localVarQueryParameter,
|
|
557
|
+
bodyParams: localVarBodyParameter,
|
|
494
558
|
timeUnit: _timeUnit
|
|
495
559
|
};
|
|
496
560
|
},
|
|
497
561
|
queryMarginMaxWithdraw: async (asset, recvWindow) => {
|
|
498
562
|
(0, __binance_common.assertParamExists)("queryMarginMaxWithdraw", "asset", asset);
|
|
499
563
|
const localVarQueryParameter = {};
|
|
564
|
+
const localVarBodyParameter = {};
|
|
500
565
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
501
566
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
502
567
|
let _timeUnit;
|
|
@@ -504,13 +569,15 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
504
569
|
return {
|
|
505
570
|
endpoint: "/papi/v1/margin/maxWithdraw",
|
|
506
571
|
method: "GET",
|
|
507
|
-
|
|
572
|
+
queryParams: localVarQueryParameter,
|
|
573
|
+
bodyParams: localVarBodyParameter,
|
|
508
574
|
timeUnit: _timeUnit
|
|
509
575
|
};
|
|
510
576
|
},
|
|
511
577
|
queryMarginRepayRecord: async (asset, txId, startTime, endTime, current, size, archived, recvWindow) => {
|
|
512
578
|
(0, __binance_common.assertParamExists)("queryMarginRepayRecord", "asset", asset);
|
|
513
579
|
const localVarQueryParameter = {};
|
|
580
|
+
const localVarBodyParameter = {};
|
|
514
581
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
515
582
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
516
583
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -524,12 +591,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
524
591
|
return {
|
|
525
592
|
endpoint: "/papi/v1/margin/repayLoan",
|
|
526
593
|
method: "GET",
|
|
527
|
-
|
|
594
|
+
queryParams: localVarQueryParameter,
|
|
595
|
+
bodyParams: localVarBodyParameter,
|
|
528
596
|
timeUnit: _timeUnit
|
|
529
597
|
};
|
|
530
598
|
},
|
|
531
599
|
queryPortfolioMarginNegativeBalanceInterestHistory: async (asset, startTime, endTime, size, recvWindow) => {
|
|
532
600
|
const localVarQueryParameter = {};
|
|
601
|
+
const localVarBodyParameter = {};
|
|
533
602
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
534
603
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
535
604
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -540,12 +609,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
540
609
|
return {
|
|
541
610
|
endpoint: "/papi/v1/portfolio/interest-history",
|
|
542
611
|
method: "GET",
|
|
543
|
-
|
|
612
|
+
queryParams: localVarQueryParameter,
|
|
613
|
+
bodyParams: localVarBodyParameter,
|
|
544
614
|
timeUnit: _timeUnit
|
|
545
615
|
};
|
|
546
616
|
},
|
|
547
617
|
queryUmPositionInformation: async (symbol, recvWindow) => {
|
|
548
618
|
const localVarQueryParameter = {};
|
|
619
|
+
const localVarBodyParameter = {};
|
|
549
620
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
550
621
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
551
622
|
let _timeUnit;
|
|
@@ -553,7 +624,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
553
624
|
return {
|
|
554
625
|
endpoint: "/papi/v1/um/positionRisk",
|
|
555
626
|
method: "GET",
|
|
556
|
-
|
|
627
|
+
queryParams: localVarQueryParameter,
|
|
628
|
+
bodyParams: localVarBodyParameter,
|
|
557
629
|
timeUnit: _timeUnit
|
|
558
630
|
};
|
|
559
631
|
},
|
|
@@ -561,6 +633,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
561
633
|
(0, __binance_common.assertParamExists)("queryUserNegativeBalanceAutoExchangeRecord", "startTime", startTime);
|
|
562
634
|
(0, __binance_common.assertParamExists)("queryUserNegativeBalanceAutoExchangeRecord", "endTime", endTime);
|
|
563
635
|
const localVarQueryParameter = {};
|
|
636
|
+
const localVarBodyParameter = {};
|
|
564
637
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
565
638
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
566
639
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -569,48 +642,56 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
569
642
|
return {
|
|
570
643
|
endpoint: "/papi/v1/portfolio/negative-balance-exchange-record",
|
|
571
644
|
method: "GET",
|
|
572
|
-
|
|
645
|
+
queryParams: localVarQueryParameter,
|
|
646
|
+
bodyParams: localVarBodyParameter,
|
|
573
647
|
timeUnit: _timeUnit
|
|
574
648
|
};
|
|
575
649
|
},
|
|
576
650
|
queryUserRateLimit: async (recvWindow) => {
|
|
577
651
|
const localVarQueryParameter = {};
|
|
652
|
+
const localVarBodyParameter = {};
|
|
578
653
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
579
654
|
let _timeUnit;
|
|
580
655
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
581
656
|
return {
|
|
582
657
|
endpoint: "/papi/v1/rateLimit/order",
|
|
583
658
|
method: "GET",
|
|
584
|
-
|
|
659
|
+
queryParams: localVarQueryParameter,
|
|
660
|
+
bodyParams: localVarBodyParameter,
|
|
585
661
|
timeUnit: _timeUnit
|
|
586
662
|
};
|
|
587
663
|
},
|
|
588
664
|
repayFuturesNegativeBalance: async (recvWindow) => {
|
|
589
665
|
const localVarQueryParameter = {};
|
|
666
|
+
const localVarBodyParameter = {};
|
|
590
667
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
591
668
|
let _timeUnit;
|
|
592
669
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
593
670
|
return {
|
|
594
671
|
endpoint: "/papi/v1/repay-futures-negative-balance",
|
|
595
672
|
method: "POST",
|
|
596
|
-
|
|
673
|
+
queryParams: localVarQueryParameter,
|
|
674
|
+
bodyParams: localVarBodyParameter,
|
|
597
675
|
timeUnit: _timeUnit
|
|
598
676
|
};
|
|
599
677
|
},
|
|
600
678
|
umFuturesAccountConfiguration: async (recvWindow) => {
|
|
601
679
|
const localVarQueryParameter = {};
|
|
680
|
+
const localVarBodyParameter = {};
|
|
602
681
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
603
682
|
let _timeUnit;
|
|
604
683
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
605
684
|
return {
|
|
606
685
|
endpoint: "/papi/v1/um/accountConfig",
|
|
607
686
|
method: "GET",
|
|
608
|
-
|
|
687
|
+
queryParams: localVarQueryParameter,
|
|
688
|
+
bodyParams: localVarBodyParameter,
|
|
609
689
|
timeUnit: _timeUnit
|
|
610
690
|
};
|
|
611
691
|
},
|
|
612
692
|
umFuturesSymbolConfiguration: async (symbol, recvWindow) => {
|
|
613
693
|
const localVarQueryParameter = {};
|
|
694
|
+
const localVarBodyParameter = {};
|
|
614
695
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
615
696
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
616
697
|
let _timeUnit;
|
|
@@ -618,12 +699,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
618
699
|
return {
|
|
619
700
|
endpoint: "/papi/v1/um/symbolConfig",
|
|
620
701
|
method: "GET",
|
|
621
|
-
|
|
702
|
+
queryParams: localVarQueryParameter,
|
|
703
|
+
bodyParams: localVarBodyParameter,
|
|
622
704
|
timeUnit: _timeUnit
|
|
623
705
|
};
|
|
624
706
|
},
|
|
625
707
|
umNotionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
626
708
|
const localVarQueryParameter = {};
|
|
709
|
+
const localVarBodyParameter = {};
|
|
627
710
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
628
711
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
629
712
|
let _timeUnit;
|
|
@@ -631,7 +714,8 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
631
714
|
return {
|
|
632
715
|
endpoint: "/papi/v1/um/leverageBracket",
|
|
633
716
|
method: "GET",
|
|
634
|
-
|
|
717
|
+
queryParams: localVarQueryParameter,
|
|
718
|
+
bodyParams: localVarBodyParameter,
|
|
635
719
|
timeUnit: _timeUnit
|
|
636
720
|
};
|
|
637
721
|
}
|
|
@@ -660,7 +744,7 @@ var AccountApi = class {
|
|
|
660
744
|
*/
|
|
661
745
|
async accountBalance(requestParameters = {}) {
|
|
662
746
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBalance(requestParameters?.asset, requestParameters?.recvWindow);
|
|
663
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
747
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
664
748
|
}
|
|
665
749
|
/**
|
|
666
750
|
* Query account information
|
|
@@ -676,7 +760,7 @@ var AccountApi = class {
|
|
|
676
760
|
*/
|
|
677
761
|
async accountInformation(requestParameters = {}) {
|
|
678
762
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInformation(requestParameters?.recvWindow);
|
|
679
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
763
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
680
764
|
}
|
|
681
765
|
/**
|
|
682
766
|
* Transfer BNB in and out of UM
|
|
@@ -694,7 +778,7 @@ var AccountApi = class {
|
|
|
694
778
|
*/
|
|
695
779
|
async bnbTransfer(requestParameters) {
|
|
696
780
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.bnbTransfer(requestParameters?.amount, requestParameters?.transferSide, requestParameters?.recvWindow);
|
|
697
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
781
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
698
782
|
}
|
|
699
783
|
/**
|
|
700
784
|
* Change Auto-repay-futures Status
|
|
@@ -710,7 +794,7 @@ var AccountApi = class {
|
|
|
710
794
|
*/
|
|
711
795
|
async changeAutoRepayFuturesStatus(requestParameters) {
|
|
712
796
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeAutoRepayFuturesStatus(requestParameters?.autoRepay, requestParameters?.recvWindow);
|
|
713
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
797
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
714
798
|
}
|
|
715
799
|
/**
|
|
716
800
|
* Change user's initial leverage of specific symbol in CM.
|
|
@@ -726,7 +810,7 @@ var AccountApi = class {
|
|
|
726
810
|
*/
|
|
727
811
|
async changeCmInitialLeverage(requestParameters) {
|
|
728
812
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeCmInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
729
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
813
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
730
814
|
}
|
|
731
815
|
/**
|
|
732
816
|
* Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
|
|
@@ -742,7 +826,7 @@ var AccountApi = class {
|
|
|
742
826
|
*/
|
|
743
827
|
async changeCmPositionMode(requestParameters) {
|
|
744
828
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeCmPositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
745
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
829
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
746
830
|
}
|
|
747
831
|
/**
|
|
748
832
|
* Change user's initial leverage of specific symbol in UM.
|
|
@@ -758,7 +842,7 @@ var AccountApi = class {
|
|
|
758
842
|
*/
|
|
759
843
|
async changeUmInitialLeverage(requestParameters) {
|
|
760
844
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeUmInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
761
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
845
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
762
846
|
}
|
|
763
847
|
/**
|
|
764
848
|
* Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
|
|
@@ -774,7 +858,7 @@ var AccountApi = class {
|
|
|
774
858
|
*/
|
|
775
859
|
async changeUmPositionMode(requestParameters) {
|
|
776
860
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeUmPositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
777
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
861
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
778
862
|
}
|
|
779
863
|
/**
|
|
780
864
|
* Query CM notional and leverage brackets
|
|
@@ -790,7 +874,7 @@ var AccountApi = class {
|
|
|
790
874
|
*/
|
|
791
875
|
async cmNotionalAndLeverageBrackets(requestParameters = {}) {
|
|
792
876
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmNotionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
793
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
877
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
794
878
|
}
|
|
795
879
|
/**
|
|
796
880
|
* Fund collection for Portfolio Margin
|
|
@@ -809,7 +893,7 @@ var AccountApi = class {
|
|
|
809
893
|
*/
|
|
810
894
|
async fundAutoCollection(requestParameters = {}) {
|
|
811
895
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundAutoCollection(requestParameters?.recvWindow);
|
|
812
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
896
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
813
897
|
}
|
|
814
898
|
/**
|
|
815
899
|
* Transfers specific asset from Futures Account to Margin account
|
|
@@ -827,7 +911,7 @@ var AccountApi = class {
|
|
|
827
911
|
*/
|
|
828
912
|
async fundCollectionByAsset(requestParameters) {
|
|
829
913
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundCollectionByAsset(requestParameters?.asset, requestParameters?.recvWindow);
|
|
830
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
914
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
831
915
|
}
|
|
832
916
|
/**
|
|
833
917
|
* Query Auto-repay-futures Status
|
|
@@ -843,7 +927,7 @@ var AccountApi = class {
|
|
|
843
927
|
*/
|
|
844
928
|
async getAutoRepayFuturesStatus(requestParameters = {}) {
|
|
845
929
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoRepayFuturesStatus(requestParameters?.recvWindow);
|
|
846
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
930
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
847
931
|
}
|
|
848
932
|
/**
|
|
849
933
|
* Get current CM account asset and position information.
|
|
@@ -859,7 +943,7 @@ var AccountApi = class {
|
|
|
859
943
|
*/
|
|
860
944
|
async getCmAccountDetail(requestParameters = {}) {
|
|
861
945
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmAccountDetail(requestParameters?.recvWindow);
|
|
862
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
946
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
863
947
|
}
|
|
864
948
|
/**
|
|
865
949
|
* Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
|
|
@@ -875,7 +959,7 @@ var AccountApi = class {
|
|
|
875
959
|
*/
|
|
876
960
|
async getCmCurrentPositionMode(requestParameters = {}) {
|
|
877
961
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmCurrentPositionMode(requestParameters?.recvWindow);
|
|
878
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
962
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
879
963
|
}
|
|
880
964
|
/**
|
|
881
965
|
* Get CM Income History
|
|
@@ -897,7 +981,7 @@ var AccountApi = class {
|
|
|
897
981
|
*/
|
|
898
982
|
async getCmIncomeHistory(requestParameters = {}) {
|
|
899
983
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
900
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
984
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
901
985
|
}
|
|
902
986
|
/**
|
|
903
987
|
* Get download id for UM futures order history
|
|
@@ -916,7 +1000,7 @@ var AccountApi = class {
|
|
|
916
1000
|
*/
|
|
917
1001
|
async getDownloadIdForUmFuturesOrderHistory(requestParameters) {
|
|
918
1002
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesOrderHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
919
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1003
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
920
1004
|
}
|
|
921
1005
|
/**
|
|
922
1006
|
* Get download id for UM futures trade history
|
|
@@ -935,7 +1019,7 @@ var AccountApi = class {
|
|
|
935
1019
|
*/
|
|
936
1020
|
async getDownloadIdForUmFuturesTradeHistory(requestParameters) {
|
|
937
1021
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
938
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1022
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
939
1023
|
}
|
|
940
1024
|
/**
|
|
941
1025
|
* Get download id for UM futures transaction history
|
|
@@ -954,7 +1038,7 @@ var AccountApi = class {
|
|
|
954
1038
|
*/
|
|
955
1039
|
async getDownloadIdForUmFuturesTransactionHistory(requestParameters) {
|
|
956
1040
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
957
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1041
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
958
1042
|
}
|
|
959
1043
|
/**
|
|
960
1044
|
* Get Margin Borrow/Loan Interest History
|
|
@@ -983,7 +1067,7 @@ var AccountApi = class {
|
|
|
983
1067
|
*/
|
|
984
1068
|
async getMarginBorrowLoanInterestHistory(requestParameters = {}) {
|
|
985
1069
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginBorrowLoanInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
986
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1070
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
987
1071
|
}
|
|
988
1072
|
/**
|
|
989
1073
|
* Get current UM account asset and position information.
|
|
@@ -999,7 +1083,7 @@ var AccountApi = class {
|
|
|
999
1083
|
*/
|
|
1000
1084
|
async getUmAccountDetail(requestParameters = {}) {
|
|
1001
1085
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmAccountDetail(requestParameters?.recvWindow);
|
|
1002
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1086
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1003
1087
|
}
|
|
1004
1088
|
/**
|
|
1005
1089
|
* Get current UM account asset and position information.
|
|
@@ -1015,7 +1099,7 @@ var AccountApi = class {
|
|
|
1015
1099
|
*/
|
|
1016
1100
|
async getUmAccountDetailV2(requestParameters = {}) {
|
|
1017
1101
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmAccountDetailV2(requestParameters?.recvWindow);
|
|
1018
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1102
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1019
1103
|
}
|
|
1020
1104
|
/**
|
|
1021
1105
|
* Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
|
|
@@ -1031,7 +1115,7 @@ var AccountApi = class {
|
|
|
1031
1115
|
*/
|
|
1032
1116
|
async getUmCurrentPositionMode(requestParameters = {}) {
|
|
1033
1117
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmCurrentPositionMode(requestParameters?.recvWindow);
|
|
1034
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1118
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1035
1119
|
}
|
|
1036
1120
|
/**
|
|
1037
1121
|
* Get UM futures order download link by Id
|
|
@@ -1049,7 +1133,7 @@ var AccountApi = class {
|
|
|
1049
1133
|
*/
|
|
1050
1134
|
async getUmFuturesOrderDownloadLinkById(requestParameters) {
|
|
1051
1135
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesOrderDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1052
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1136
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1053
1137
|
}
|
|
1054
1138
|
/**
|
|
1055
1139
|
* Get UM futures trade download link by Id
|
|
@@ -1067,7 +1151,7 @@ var AccountApi = class {
|
|
|
1067
1151
|
*/
|
|
1068
1152
|
async getUmFuturesTradeDownloadLinkById(requestParameters) {
|
|
1069
1153
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesTradeDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1070
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1154
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1071
1155
|
}
|
|
1072
1156
|
/**
|
|
1073
1157
|
* Get UM futures Transaction download link by Id
|
|
@@ -1085,7 +1169,7 @@ var AccountApi = class {
|
|
|
1085
1169
|
*/
|
|
1086
1170
|
async getUmFuturesTransactionDownloadLinkById(requestParameters) {
|
|
1087
1171
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesTransactionDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1088
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1172
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1089
1173
|
}
|
|
1090
1174
|
/**
|
|
1091
1175
|
* Get UM Income History
|
|
@@ -1106,7 +1190,7 @@ var AccountApi = class {
|
|
|
1106
1190
|
*/
|
|
1107
1191
|
async getUmIncomeHistory(requestParameters = {}) {
|
|
1108
1192
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1109
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1193
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1110
1194
|
}
|
|
1111
1195
|
/**
|
|
1112
1196
|
* Get User Commission Rate for CM
|
|
@@ -1122,7 +1206,7 @@ var AccountApi = class {
|
|
|
1122
1206
|
*/
|
|
1123
1207
|
async getUserCommissionRateForCm(requestParameters) {
|
|
1124
1208
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUserCommissionRateForCm(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1125
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1209
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1126
1210
|
}
|
|
1127
1211
|
/**
|
|
1128
1212
|
* Get User Commission Rate for UM
|
|
@@ -1138,7 +1222,7 @@ var AccountApi = class {
|
|
|
1138
1222
|
*/
|
|
1139
1223
|
async getUserCommissionRateForUm(requestParameters) {
|
|
1140
1224
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUserCommissionRateForUm(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1141
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1225
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1142
1226
|
}
|
|
1143
1227
|
/**
|
|
1144
1228
|
* Query margin max borrow
|
|
@@ -1154,7 +1238,7 @@ var AccountApi = class {
|
|
|
1154
1238
|
*/
|
|
1155
1239
|
async marginMaxBorrow(requestParameters) {
|
|
1156
1240
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginMaxBorrow(requestParameters?.asset, requestParameters?.recvWindow);
|
|
1157
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1241
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1158
1242
|
}
|
|
1159
1243
|
/**
|
|
1160
1244
|
* Portfolio Margin UM Trading Quantitative Rules Indicators
|
|
@@ -1171,7 +1255,7 @@ var AccountApi = class {
|
|
|
1171
1255
|
*/
|
|
1172
1256
|
async portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters = {}) {
|
|
1173
1257
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1174
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1258
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1175
1259
|
}
|
|
1176
1260
|
/**
|
|
1177
1261
|
* Get current CM position information.
|
|
@@ -1192,7 +1276,7 @@ var AccountApi = class {
|
|
|
1192
1276
|
*/
|
|
1193
1277
|
async queryCmPositionInformation(requestParameters = {}) {
|
|
1194
1278
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmPositionInformation(requestParameters?.marginAsset, requestParameters?.pair, requestParameters?.recvWindow);
|
|
1195
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1279
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1196
1280
|
}
|
|
1197
1281
|
/**
|
|
1198
1282
|
* Query margin loan record
|
|
@@ -1214,7 +1298,7 @@ var AccountApi = class {
|
|
|
1214
1298
|
*/
|
|
1215
1299
|
async queryMarginLoanRecord(requestParameters) {
|
|
1216
1300
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginLoanRecord(requestParameters?.asset, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1217
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1301
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1218
1302
|
}
|
|
1219
1303
|
/**
|
|
1220
1304
|
* Query Margin Max Withdraw
|
|
@@ -1230,7 +1314,7 @@ var AccountApi = class {
|
|
|
1230
1314
|
*/
|
|
1231
1315
|
async queryMarginMaxWithdraw(requestParameters) {
|
|
1232
1316
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginMaxWithdraw(requestParameters?.asset, requestParameters?.recvWindow);
|
|
1233
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1317
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1234
1318
|
}
|
|
1235
1319
|
/**
|
|
1236
1320
|
* Query margin repay record.
|
|
@@ -1252,7 +1336,7 @@ var AccountApi = class {
|
|
|
1252
1336
|
*/
|
|
1253
1337
|
async queryMarginRepayRecord(requestParameters) {
|
|
1254
1338
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginRepayRecord(requestParameters?.asset, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1255
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1339
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1256
1340
|
}
|
|
1257
1341
|
/**
|
|
1258
1342
|
* Query interest history of negative balance for portfolio margin.
|
|
@@ -1274,7 +1358,7 @@ var AccountApi = class {
|
|
|
1274
1358
|
*/
|
|
1275
1359
|
async queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters = {}) {
|
|
1276
1360
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.size, requestParameters?.recvWindow);
|
|
1277
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1361
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1278
1362
|
}
|
|
1279
1363
|
/**
|
|
1280
1364
|
* Get current UM position information.
|
|
@@ -1294,7 +1378,7 @@ var AccountApi = class {
|
|
|
1294
1378
|
*/
|
|
1295
1379
|
async queryUmPositionInformation(requestParameters = {}) {
|
|
1296
1380
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1297
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1381
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1298
1382
|
}
|
|
1299
1383
|
/**
|
|
1300
1384
|
* Query user negative balance auto exchange record
|
|
@@ -1313,7 +1397,7 @@ var AccountApi = class {
|
|
|
1313
1397
|
*/
|
|
1314
1398
|
async queryUserNegativeBalanceAutoExchangeRecord(requestParameters) {
|
|
1315
1399
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserNegativeBalanceAutoExchangeRecord(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1316
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1400
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1317
1401
|
}
|
|
1318
1402
|
/**
|
|
1319
1403
|
* Query User Rate Limit
|
|
@@ -1329,7 +1413,7 @@ var AccountApi = class {
|
|
|
1329
1413
|
*/
|
|
1330
1414
|
async queryUserRateLimit(requestParameters = {}) {
|
|
1331
1415
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserRateLimit(requestParameters?.recvWindow);
|
|
1332
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1416
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1333
1417
|
}
|
|
1334
1418
|
/**
|
|
1335
1419
|
* Repay futures Negative Balance
|
|
@@ -1345,7 +1429,7 @@ var AccountApi = class {
|
|
|
1345
1429
|
*/
|
|
1346
1430
|
async repayFuturesNegativeBalance(requestParameters = {}) {
|
|
1347
1431
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.repayFuturesNegativeBalance(requestParameters?.recvWindow);
|
|
1348
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1432
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1349
1433
|
}
|
|
1350
1434
|
/**
|
|
1351
1435
|
* Query UM Futures account configuration
|
|
@@ -1361,7 +1445,7 @@ var AccountApi = class {
|
|
|
1361
1445
|
*/
|
|
1362
1446
|
async umFuturesAccountConfiguration(requestParameters = {}) {
|
|
1363
1447
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umFuturesAccountConfiguration(requestParameters?.recvWindow);
|
|
1364
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1448
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1365
1449
|
}
|
|
1366
1450
|
/**
|
|
1367
1451
|
* Get current UM account symbol configuration.
|
|
@@ -1377,7 +1461,7 @@ var AccountApi = class {
|
|
|
1377
1461
|
*/
|
|
1378
1462
|
async umFuturesSymbolConfiguration(requestParameters = {}) {
|
|
1379
1463
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umFuturesSymbolConfiguration(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1380
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1464
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1381
1465
|
}
|
|
1382
1466
|
/**
|
|
1383
1467
|
* Query UM notional and leverage brackets
|
|
@@ -1393,7 +1477,7 @@ var AccountApi = class {
|
|
|
1393
1477
|
*/
|
|
1394
1478
|
async umNotionalAndLeverageBrackets(requestParameters = {}) {
|
|
1395
1479
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umNotionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1396
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1480
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1397
1481
|
}
|
|
1398
1482
|
};
|
|
1399
1483
|
|
|
@@ -1417,12 +1501,14 @@ var AccountApi = class {
|
|
|
1417
1501
|
const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
1418
1502
|
return { testConnectivity: async () => {
|
|
1419
1503
|
const localVarQueryParameter = {};
|
|
1504
|
+
const localVarBodyParameter = {};
|
|
1420
1505
|
let _timeUnit;
|
|
1421
1506
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1422
1507
|
return {
|
|
1423
1508
|
endpoint: "/papi/v1/ping",
|
|
1424
1509
|
method: "GET",
|
|
1425
|
-
|
|
1510
|
+
queryParams: localVarQueryParameter,
|
|
1511
|
+
bodyParams: localVarBodyParameter,
|
|
1426
1512
|
timeUnit: _timeUnit
|
|
1427
1513
|
};
|
|
1428
1514
|
} };
|
|
@@ -1449,7 +1535,7 @@ var MarketDataApi = class {
|
|
|
1449
1535
|
*/
|
|
1450
1536
|
async testConnectivity() {
|
|
1451
1537
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
1452
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1538
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1453
1539
|
}
|
|
1454
1540
|
};
|
|
1455
1541
|
|
|
@@ -1475,6 +1561,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1475
1561
|
cancelAllCmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
1476
1562
|
(0, __binance_common.assertParamExists)("cancelAllCmOpenConditionalOrders", "symbol", symbol);
|
|
1477
1563
|
const localVarQueryParameter = {};
|
|
1564
|
+
const localVarBodyParameter = {};
|
|
1478
1565
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1479
1566
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1480
1567
|
let _timeUnit;
|
|
@@ -1482,13 +1569,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1482
1569
|
return {
|
|
1483
1570
|
endpoint: "/papi/v1/cm/conditional/allOpenOrders",
|
|
1484
1571
|
method: "DELETE",
|
|
1485
|
-
|
|
1572
|
+
queryParams: localVarQueryParameter,
|
|
1573
|
+
bodyParams: localVarBodyParameter,
|
|
1486
1574
|
timeUnit: _timeUnit
|
|
1487
1575
|
};
|
|
1488
1576
|
},
|
|
1489
1577
|
cancelAllCmOpenOrders: async (symbol, recvWindow) => {
|
|
1490
1578
|
(0, __binance_common.assertParamExists)("cancelAllCmOpenOrders", "symbol", symbol);
|
|
1491
1579
|
const localVarQueryParameter = {};
|
|
1580
|
+
const localVarBodyParameter = {};
|
|
1492
1581
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1493
1582
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1494
1583
|
let _timeUnit;
|
|
@@ -1496,13 +1585,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1496
1585
|
return {
|
|
1497
1586
|
endpoint: "/papi/v1/cm/allOpenOrders",
|
|
1498
1587
|
method: "DELETE",
|
|
1499
|
-
|
|
1588
|
+
queryParams: localVarQueryParameter,
|
|
1589
|
+
bodyParams: localVarBodyParameter,
|
|
1500
1590
|
timeUnit: _timeUnit
|
|
1501
1591
|
};
|
|
1502
1592
|
},
|
|
1503
1593
|
cancelAllUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
1504
1594
|
(0, __binance_common.assertParamExists)("cancelAllUmOpenConditionalOrders", "symbol", symbol);
|
|
1505
1595
|
const localVarQueryParameter = {};
|
|
1596
|
+
const localVarBodyParameter = {};
|
|
1506
1597
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1507
1598
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1508
1599
|
let _timeUnit;
|
|
@@ -1510,13 +1601,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1510
1601
|
return {
|
|
1511
1602
|
endpoint: "/papi/v1/um/conditional/allOpenOrders",
|
|
1512
1603
|
method: "DELETE",
|
|
1513
|
-
|
|
1604
|
+
queryParams: localVarQueryParameter,
|
|
1605
|
+
bodyParams: localVarBodyParameter,
|
|
1514
1606
|
timeUnit: _timeUnit
|
|
1515
1607
|
};
|
|
1516
1608
|
},
|
|
1517
1609
|
cancelAllUmOpenOrders: async (symbol, recvWindow) => {
|
|
1518
1610
|
(0, __binance_common.assertParamExists)("cancelAllUmOpenOrders", "symbol", symbol);
|
|
1519
1611
|
const localVarQueryParameter = {};
|
|
1612
|
+
const localVarBodyParameter = {};
|
|
1520
1613
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1521
1614
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1522
1615
|
let _timeUnit;
|
|
@@ -1524,13 +1617,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1524
1617
|
return {
|
|
1525
1618
|
endpoint: "/papi/v1/um/allOpenOrders",
|
|
1526
1619
|
method: "DELETE",
|
|
1527
|
-
|
|
1620
|
+
queryParams: localVarQueryParameter,
|
|
1621
|
+
bodyParams: localVarBodyParameter,
|
|
1528
1622
|
timeUnit: _timeUnit
|
|
1529
1623
|
};
|
|
1530
1624
|
},
|
|
1531
1625
|
cancelCmConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
1532
1626
|
(0, __binance_common.assertParamExists)("cancelCmConditionalOrder", "symbol", symbol);
|
|
1533
1627
|
const localVarQueryParameter = {};
|
|
1628
|
+
const localVarBodyParameter = {};
|
|
1534
1629
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1535
1630
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1536
1631
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -1540,13 +1635,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1540
1635
|
return {
|
|
1541
1636
|
endpoint: "/papi/v1/cm/conditional/order",
|
|
1542
1637
|
method: "DELETE",
|
|
1543
|
-
|
|
1638
|
+
queryParams: localVarQueryParameter,
|
|
1639
|
+
bodyParams: localVarBodyParameter,
|
|
1544
1640
|
timeUnit: _timeUnit
|
|
1545
1641
|
};
|
|
1546
1642
|
},
|
|
1547
1643
|
cancelCmOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
1548
1644
|
(0, __binance_common.assertParamExists)("cancelCmOrder", "symbol", symbol);
|
|
1549
1645
|
const localVarQueryParameter = {};
|
|
1646
|
+
const localVarBodyParameter = {};
|
|
1550
1647
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1551
1648
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1552
1649
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1556,13 +1653,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1556
1653
|
return {
|
|
1557
1654
|
endpoint: "/papi/v1/cm/order",
|
|
1558
1655
|
method: "DELETE",
|
|
1559
|
-
|
|
1656
|
+
queryParams: localVarQueryParameter,
|
|
1657
|
+
bodyParams: localVarBodyParameter,
|
|
1560
1658
|
timeUnit: _timeUnit
|
|
1561
1659
|
};
|
|
1562
1660
|
},
|
|
1563
1661
|
cancelMarginAccountAllOpenOrdersOnASymbol: async (symbol, recvWindow) => {
|
|
1564
1662
|
(0, __binance_common.assertParamExists)("cancelMarginAccountAllOpenOrdersOnASymbol", "symbol", symbol);
|
|
1565
1663
|
const localVarQueryParameter = {};
|
|
1664
|
+
const localVarBodyParameter = {};
|
|
1566
1665
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1567
1666
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1568
1667
|
let _timeUnit;
|
|
@@ -1570,13 +1669,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1570
1669
|
return {
|
|
1571
1670
|
endpoint: "/papi/v1/margin/allOpenOrders",
|
|
1572
1671
|
method: "DELETE",
|
|
1573
|
-
|
|
1672
|
+
queryParams: localVarQueryParameter,
|
|
1673
|
+
bodyParams: localVarBodyParameter,
|
|
1574
1674
|
timeUnit: _timeUnit
|
|
1575
1675
|
};
|
|
1576
1676
|
},
|
|
1577
1677
|
cancelMarginAccountOcoOrders: async (symbol, orderListId, listClientOrderId, newClientOrderId, recvWindow) => {
|
|
1578
1678
|
(0, __binance_common.assertParamExists)("cancelMarginAccountOcoOrders", "symbol", symbol);
|
|
1579
1679
|
const localVarQueryParameter = {};
|
|
1680
|
+
const localVarBodyParameter = {};
|
|
1580
1681
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1581
1682
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
1582
1683
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1587,13 +1688,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1587
1688
|
return {
|
|
1588
1689
|
endpoint: "/papi/v1/margin/orderList",
|
|
1589
1690
|
method: "DELETE",
|
|
1590
|
-
|
|
1691
|
+
queryParams: localVarQueryParameter,
|
|
1692
|
+
bodyParams: localVarBodyParameter,
|
|
1591
1693
|
timeUnit: _timeUnit
|
|
1592
1694
|
};
|
|
1593
1695
|
},
|
|
1594
1696
|
cancelMarginAccountOrder: async (symbol, orderId, origClientOrderId, newClientOrderId, recvWindow) => {
|
|
1595
1697
|
(0, __binance_common.assertParamExists)("cancelMarginAccountOrder", "symbol", symbol);
|
|
1596
1698
|
const localVarQueryParameter = {};
|
|
1699
|
+
const localVarBodyParameter = {};
|
|
1597
1700
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1598
1701
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1599
1702
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1604,13 +1707,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1604
1707
|
return {
|
|
1605
1708
|
endpoint: "/papi/v1/margin/order",
|
|
1606
1709
|
method: "DELETE",
|
|
1607
|
-
|
|
1710
|
+
queryParams: localVarQueryParameter,
|
|
1711
|
+
bodyParams: localVarBodyParameter,
|
|
1608
1712
|
timeUnit: _timeUnit
|
|
1609
1713
|
};
|
|
1610
1714
|
},
|
|
1611
1715
|
cancelUmConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
1612
1716
|
(0, __binance_common.assertParamExists)("cancelUmConditionalOrder", "symbol", symbol);
|
|
1613
1717
|
const localVarQueryParameter = {};
|
|
1718
|
+
const localVarBodyParameter = {};
|
|
1614
1719
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1615
1720
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1616
1721
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -1620,13 +1725,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1620
1725
|
return {
|
|
1621
1726
|
endpoint: "/papi/v1/um/conditional/order",
|
|
1622
1727
|
method: "DELETE",
|
|
1623
|
-
|
|
1728
|
+
queryParams: localVarQueryParameter,
|
|
1729
|
+
bodyParams: localVarBodyParameter,
|
|
1624
1730
|
timeUnit: _timeUnit
|
|
1625
1731
|
};
|
|
1626
1732
|
},
|
|
1627
1733
|
cancelUmOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
1628
1734
|
(0, __binance_common.assertParamExists)("cancelUmOrder", "symbol", symbol);
|
|
1629
1735
|
const localVarQueryParameter = {};
|
|
1736
|
+
const localVarBodyParameter = {};
|
|
1630
1737
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1631
1738
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1632
1739
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1636,12 +1743,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1636
1743
|
return {
|
|
1637
1744
|
endpoint: "/papi/v1/um/order",
|
|
1638
1745
|
method: "DELETE",
|
|
1639
|
-
|
|
1746
|
+
queryParams: localVarQueryParameter,
|
|
1747
|
+
bodyParams: localVarBodyParameter,
|
|
1640
1748
|
timeUnit: _timeUnit
|
|
1641
1749
|
};
|
|
1642
1750
|
},
|
|
1643
1751
|
cmAccountTradeList: async (symbol, pair, startTime, endTime, fromId, limit, recvWindow) => {
|
|
1644
1752
|
const localVarQueryParameter = {};
|
|
1753
|
+
const localVarBodyParameter = {};
|
|
1645
1754
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1646
1755
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1647
1756
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1654,12 +1763,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1654
1763
|
return {
|
|
1655
1764
|
endpoint: "/papi/v1/cm/userTrades",
|
|
1656
1765
|
method: "GET",
|
|
1657
|
-
|
|
1766
|
+
queryParams: localVarQueryParameter,
|
|
1767
|
+
bodyParams: localVarBodyParameter,
|
|
1658
1768
|
timeUnit: _timeUnit
|
|
1659
1769
|
};
|
|
1660
1770
|
},
|
|
1661
1771
|
cmPositionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
1662
1772
|
const localVarQueryParameter = {};
|
|
1773
|
+
const localVarBodyParameter = {};
|
|
1663
1774
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1664
1775
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1665
1776
|
let _timeUnit;
|
|
@@ -1667,19 +1778,22 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1667
1778
|
return {
|
|
1668
1779
|
endpoint: "/papi/v1/cm/adlQuantile",
|
|
1669
1780
|
method: "GET",
|
|
1670
|
-
|
|
1781
|
+
queryParams: localVarQueryParameter,
|
|
1782
|
+
bodyParams: localVarBodyParameter,
|
|
1671
1783
|
timeUnit: _timeUnit
|
|
1672
1784
|
};
|
|
1673
1785
|
},
|
|
1674
1786
|
getUmFuturesBnbBurnStatus: async (recvWindow) => {
|
|
1675
1787
|
const localVarQueryParameter = {};
|
|
1788
|
+
const localVarBodyParameter = {};
|
|
1676
1789
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1677
1790
|
let _timeUnit;
|
|
1678
1791
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1679
1792
|
return {
|
|
1680
1793
|
endpoint: "/papi/v1/um/feeBurn",
|
|
1681
1794
|
method: "GET",
|
|
1682
|
-
|
|
1795
|
+
queryParams: localVarQueryParameter,
|
|
1796
|
+
bodyParams: localVarBodyParameter,
|
|
1683
1797
|
timeUnit: _timeUnit
|
|
1684
1798
|
};
|
|
1685
1799
|
},
|
|
@@ -1687,6 +1801,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1687
1801
|
(0, __binance_common.assertParamExists)("marginAccountBorrow", "asset", asset);
|
|
1688
1802
|
(0, __binance_common.assertParamExists)("marginAccountBorrow", "amount", amount);
|
|
1689
1803
|
const localVarQueryParameter = {};
|
|
1804
|
+
const localVarBodyParameter = {};
|
|
1690
1805
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1691
1806
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1692
1807
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1695,7 +1810,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1695
1810
|
return {
|
|
1696
1811
|
endpoint: "/papi/v1/marginLoan",
|
|
1697
1812
|
method: "POST",
|
|
1698
|
-
|
|
1813
|
+
queryParams: localVarQueryParameter,
|
|
1814
|
+
bodyParams: localVarBodyParameter,
|
|
1699
1815
|
timeUnit: _timeUnit
|
|
1700
1816
|
};
|
|
1701
1817
|
},
|
|
@@ -1706,6 +1822,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1706
1822
|
(0, __binance_common.assertParamExists)("marginAccountNewOco", "price", price);
|
|
1707
1823
|
(0, __binance_common.assertParamExists)("marginAccountNewOco", "stopPrice", stopPrice);
|
|
1708
1824
|
const localVarQueryParameter = {};
|
|
1825
|
+
const localVarBodyParameter = {};
|
|
1709
1826
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1710
1827
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
1711
1828
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -1726,7 +1843,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1726
1843
|
return {
|
|
1727
1844
|
endpoint: "/papi/v1/margin/order/oco",
|
|
1728
1845
|
method: "POST",
|
|
1729
|
-
|
|
1846
|
+
queryParams: localVarQueryParameter,
|
|
1847
|
+
bodyParams: localVarBodyParameter,
|
|
1730
1848
|
timeUnit: _timeUnit
|
|
1731
1849
|
};
|
|
1732
1850
|
},
|
|
@@ -1734,6 +1852,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1734
1852
|
(0, __binance_common.assertParamExists)("marginAccountRepay", "asset", asset);
|
|
1735
1853
|
(0, __binance_common.assertParamExists)("marginAccountRepay", "amount", amount);
|
|
1736
1854
|
const localVarQueryParameter = {};
|
|
1855
|
+
const localVarBodyParameter = {};
|
|
1737
1856
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1738
1857
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1739
1858
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1742,13 +1861,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1742
1861
|
return {
|
|
1743
1862
|
endpoint: "/papi/v1/repayLoan",
|
|
1744
1863
|
method: "POST",
|
|
1745
|
-
|
|
1864
|
+
queryParams: localVarQueryParameter,
|
|
1865
|
+
bodyParams: localVarBodyParameter,
|
|
1746
1866
|
timeUnit: _timeUnit
|
|
1747
1867
|
};
|
|
1748
1868
|
},
|
|
1749
1869
|
marginAccountRepayDebt: async (asset, amount, specifyRepayAssets, recvWindow) => {
|
|
1750
1870
|
(0, __binance_common.assertParamExists)("marginAccountRepayDebt", "asset", asset);
|
|
1751
1871
|
const localVarQueryParameter = {};
|
|
1872
|
+
const localVarBodyParameter = {};
|
|
1752
1873
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1753
1874
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1754
1875
|
if (specifyRepayAssets !== void 0 && specifyRepayAssets !== null) localVarQueryParameter["specifyRepayAssets"] = specifyRepayAssets;
|
|
@@ -1758,13 +1879,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1758
1879
|
return {
|
|
1759
1880
|
endpoint: "/papi/v1/margin/repay-debt",
|
|
1760
1881
|
method: "POST",
|
|
1761
|
-
|
|
1882
|
+
queryParams: localVarQueryParameter,
|
|
1883
|
+
bodyParams: localVarBodyParameter,
|
|
1762
1884
|
timeUnit: _timeUnit
|
|
1763
1885
|
};
|
|
1764
1886
|
},
|
|
1765
1887
|
marginAccountTradeList: async (symbol, orderId, startTime, endTime, fromId, limit, recvWindow) => {
|
|
1766
1888
|
(0, __binance_common.assertParamExists)("marginAccountTradeList", "symbol", symbol);
|
|
1767
1889
|
const localVarQueryParameter = {};
|
|
1890
|
+
const localVarBodyParameter = {};
|
|
1768
1891
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1769
1892
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1770
1893
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1777,7 +1900,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1777
1900
|
return {
|
|
1778
1901
|
endpoint: "/papi/v1/margin/myTrades",
|
|
1779
1902
|
method: "GET",
|
|
1780
|
-
|
|
1903
|
+
queryParams: localVarQueryParameter,
|
|
1904
|
+
bodyParams: localVarBodyParameter,
|
|
1781
1905
|
timeUnit: _timeUnit
|
|
1782
1906
|
};
|
|
1783
1907
|
},
|
|
@@ -1787,6 +1911,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1787
1911
|
(0, __binance_common.assertParamExists)("modifyCmOrder", "quantity", quantity);
|
|
1788
1912
|
(0, __binance_common.assertParamExists)("modifyCmOrder", "price", price);
|
|
1789
1913
|
const localVarQueryParameter = {};
|
|
1914
|
+
const localVarBodyParameter = {};
|
|
1790
1915
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1791
1916
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
1792
1917
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -1800,7 +1925,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1800
1925
|
return {
|
|
1801
1926
|
endpoint: "/papi/v1/cm/order",
|
|
1802
1927
|
method: "PUT",
|
|
1803
|
-
|
|
1928
|
+
queryParams: localVarQueryParameter,
|
|
1929
|
+
bodyParams: localVarBodyParameter,
|
|
1804
1930
|
timeUnit: _timeUnit
|
|
1805
1931
|
};
|
|
1806
1932
|
},
|
|
@@ -1810,6 +1936,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1810
1936
|
(0, __binance_common.assertParamExists)("modifyUmOrder", "quantity", quantity);
|
|
1811
1937
|
(0, __binance_common.assertParamExists)("modifyUmOrder", "price", price);
|
|
1812
1938
|
const localVarQueryParameter = {};
|
|
1939
|
+
const localVarBodyParameter = {};
|
|
1813
1940
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1814
1941
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
1815
1942
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -1823,7 +1950,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1823
1950
|
return {
|
|
1824
1951
|
endpoint: "/papi/v1/um/order",
|
|
1825
1952
|
method: "PUT",
|
|
1826
|
-
|
|
1953
|
+
queryParams: localVarQueryParameter,
|
|
1954
|
+
bodyParams: localVarBodyParameter,
|
|
1827
1955
|
timeUnit: _timeUnit
|
|
1828
1956
|
};
|
|
1829
1957
|
},
|
|
@@ -1832,6 +1960,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1832
1960
|
(0, __binance_common.assertParamExists)("newCmConditionalOrder", "side", side);
|
|
1833
1961
|
(0, __binance_common.assertParamExists)("newCmConditionalOrder", "strategyType", strategyType);
|
|
1834
1962
|
const localVarQueryParameter = {};
|
|
1963
|
+
const localVarBodyParameter = {};
|
|
1835
1964
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1836
1965
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1837
1966
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -1852,7 +1981,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1852
1981
|
return {
|
|
1853
1982
|
endpoint: "/papi/v1/cm/conditional/order",
|
|
1854
1983
|
method: "POST",
|
|
1855
|
-
|
|
1984
|
+
queryParams: localVarQueryParameter,
|
|
1985
|
+
bodyParams: localVarBodyParameter,
|
|
1856
1986
|
timeUnit: _timeUnit
|
|
1857
1987
|
};
|
|
1858
1988
|
},
|
|
@@ -1861,6 +1991,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1861
1991
|
(0, __binance_common.assertParamExists)("newCmOrder", "side", side);
|
|
1862
1992
|
(0, __binance_common.assertParamExists)("newCmOrder", "type", type);
|
|
1863
1993
|
const localVarQueryParameter = {};
|
|
1994
|
+
const localVarBodyParameter = {};
|
|
1864
1995
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1865
1996
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1866
1997
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -1878,7 +2009,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1878
2009
|
return {
|
|
1879
2010
|
endpoint: "/papi/v1/cm/order",
|
|
1880
2011
|
method: "POST",
|
|
1881
|
-
|
|
2012
|
+
queryParams: localVarQueryParameter,
|
|
2013
|
+
bodyParams: localVarBodyParameter,
|
|
1882
2014
|
timeUnit: _timeUnit
|
|
1883
2015
|
};
|
|
1884
2016
|
},
|
|
@@ -1887,6 +2019,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1887
2019
|
(0, __binance_common.assertParamExists)("newMarginOrder", "side", side);
|
|
1888
2020
|
(0, __binance_common.assertParamExists)("newMarginOrder", "type", type);
|
|
1889
2021
|
const localVarQueryParameter = {};
|
|
2022
|
+
const localVarBodyParameter = {};
|
|
1890
2023
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1891
2024
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1892
2025
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -1907,7 +2040,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1907
2040
|
return {
|
|
1908
2041
|
endpoint: "/papi/v1/margin/order",
|
|
1909
2042
|
method: "POST",
|
|
1910
|
-
|
|
2043
|
+
queryParams: localVarQueryParameter,
|
|
2044
|
+
bodyParams: localVarBodyParameter,
|
|
1911
2045
|
timeUnit: _timeUnit
|
|
1912
2046
|
};
|
|
1913
2047
|
},
|
|
@@ -1916,6 +2050,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1916
2050
|
(0, __binance_common.assertParamExists)("newUmConditionalOrder", "side", side);
|
|
1917
2051
|
(0, __binance_common.assertParamExists)("newUmConditionalOrder", "strategyType", strategyType);
|
|
1918
2052
|
const localVarQueryParameter = {};
|
|
2053
|
+
const localVarBodyParameter = {};
|
|
1919
2054
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1920
2055
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1921
2056
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -1939,7 +2074,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1939
2074
|
return {
|
|
1940
2075
|
endpoint: "/papi/v1/um/conditional/order",
|
|
1941
2076
|
method: "POST",
|
|
1942
|
-
|
|
2077
|
+
queryParams: localVarQueryParameter,
|
|
2078
|
+
bodyParams: localVarBodyParameter,
|
|
1943
2079
|
timeUnit: _timeUnit
|
|
1944
2080
|
};
|
|
1945
2081
|
},
|
|
@@ -1948,6 +2084,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1948
2084
|
(0, __binance_common.assertParamExists)("newUmOrder", "side", side);
|
|
1949
2085
|
(0, __binance_common.assertParamExists)("newUmOrder", "type", type);
|
|
1950
2086
|
const localVarQueryParameter = {};
|
|
2087
|
+
const localVarBodyParameter = {};
|
|
1951
2088
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1952
2089
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1953
2090
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -1967,12 +2104,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1967
2104
|
return {
|
|
1968
2105
|
endpoint: "/papi/v1/um/order",
|
|
1969
2106
|
method: "POST",
|
|
1970
|
-
|
|
2107
|
+
queryParams: localVarQueryParameter,
|
|
2108
|
+
bodyParams: localVarBodyParameter,
|
|
1971
2109
|
timeUnit: _timeUnit
|
|
1972
2110
|
};
|
|
1973
2111
|
},
|
|
1974
2112
|
queryAllCmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
1975
2113
|
const localVarQueryParameter = {};
|
|
2114
|
+
const localVarBodyParameter = {};
|
|
1976
2115
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1977
2116
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1978
2117
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1984,13 +2123,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1984
2123
|
return {
|
|
1985
2124
|
endpoint: "/papi/v1/cm/conditional/allOrders",
|
|
1986
2125
|
method: "GET",
|
|
1987
|
-
|
|
2126
|
+
queryParams: localVarQueryParameter,
|
|
2127
|
+
bodyParams: localVarBodyParameter,
|
|
1988
2128
|
timeUnit: _timeUnit
|
|
1989
2129
|
};
|
|
1990
2130
|
},
|
|
1991
2131
|
queryAllCmOrders: async (symbol, pair, orderId, startTime, endTime, limit, recvWindow) => {
|
|
1992
2132
|
(0, __binance_common.assertParamExists)("queryAllCmOrders", "symbol", symbol);
|
|
1993
2133
|
const localVarQueryParameter = {};
|
|
2134
|
+
const localVarBodyParameter = {};
|
|
1994
2135
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1995
2136
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1996
2137
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -2003,12 +2144,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2003
2144
|
return {
|
|
2004
2145
|
endpoint: "/papi/v1/cm/allOrders",
|
|
2005
2146
|
method: "GET",
|
|
2006
|
-
|
|
2147
|
+
queryParams: localVarQueryParameter,
|
|
2148
|
+
bodyParams: localVarBodyParameter,
|
|
2007
2149
|
timeUnit: _timeUnit
|
|
2008
2150
|
};
|
|
2009
2151
|
},
|
|
2010
2152
|
queryAllCurrentCmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2011
2153
|
const localVarQueryParameter = {};
|
|
2154
|
+
const localVarBodyParameter = {};
|
|
2012
2155
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2013
2156
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2014
2157
|
let _timeUnit;
|
|
@@ -2016,12 +2159,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2016
2159
|
return {
|
|
2017
2160
|
endpoint: "/papi/v1/cm/conditional/openOrders",
|
|
2018
2161
|
method: "GET",
|
|
2019
|
-
|
|
2162
|
+
queryParams: localVarQueryParameter,
|
|
2163
|
+
bodyParams: localVarBodyParameter,
|
|
2020
2164
|
timeUnit: _timeUnit
|
|
2021
2165
|
};
|
|
2022
2166
|
},
|
|
2023
2167
|
queryAllCurrentCmOpenOrders: async (symbol, pair, recvWindow) => {
|
|
2024
2168
|
const localVarQueryParameter = {};
|
|
2169
|
+
const localVarBodyParameter = {};
|
|
2025
2170
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2026
2171
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
2027
2172
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2030,12 +2175,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2030
2175
|
return {
|
|
2031
2176
|
endpoint: "/papi/v1/cm/openOrders",
|
|
2032
2177
|
method: "GET",
|
|
2033
|
-
|
|
2178
|
+
queryParams: localVarQueryParameter,
|
|
2179
|
+
bodyParams: localVarBodyParameter,
|
|
2034
2180
|
timeUnit: _timeUnit
|
|
2035
2181
|
};
|
|
2036
2182
|
},
|
|
2037
2183
|
queryAllCurrentUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2038
2184
|
const localVarQueryParameter = {};
|
|
2185
|
+
const localVarBodyParameter = {};
|
|
2039
2186
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2040
2187
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2041
2188
|
let _timeUnit;
|
|
@@ -2043,12 +2190,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2043
2190
|
return {
|
|
2044
2191
|
endpoint: "/papi/v1/um/conditional/openOrders",
|
|
2045
2192
|
method: "GET",
|
|
2046
|
-
|
|
2193
|
+
queryParams: localVarQueryParameter,
|
|
2194
|
+
bodyParams: localVarBodyParameter,
|
|
2047
2195
|
timeUnit: _timeUnit
|
|
2048
2196
|
};
|
|
2049
2197
|
},
|
|
2050
2198
|
queryAllCurrentUmOpenOrders: async (symbol, recvWindow) => {
|
|
2051
2199
|
const localVarQueryParameter = {};
|
|
2200
|
+
const localVarBodyParameter = {};
|
|
2052
2201
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2053
2202
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2054
2203
|
let _timeUnit;
|
|
@@ -2056,13 +2205,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2056
2205
|
return {
|
|
2057
2206
|
endpoint: "/papi/v1/um/openOrders",
|
|
2058
2207
|
method: "GET",
|
|
2059
|
-
|
|
2208
|
+
queryParams: localVarQueryParameter,
|
|
2209
|
+
bodyParams: localVarBodyParameter,
|
|
2060
2210
|
timeUnit: _timeUnit
|
|
2061
2211
|
};
|
|
2062
2212
|
},
|
|
2063
2213
|
queryAllMarginAccountOrders: async (symbol, orderId, startTime, endTime, limit, recvWindow) => {
|
|
2064
2214
|
(0, __binance_common.assertParamExists)("queryAllMarginAccountOrders", "symbol", symbol);
|
|
2065
2215
|
const localVarQueryParameter = {};
|
|
2216
|
+
const localVarBodyParameter = {};
|
|
2066
2217
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2067
2218
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2068
2219
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2074,12 +2225,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2074
2225
|
return {
|
|
2075
2226
|
endpoint: "/papi/v1/margin/allOrders",
|
|
2076
2227
|
method: "GET",
|
|
2077
|
-
|
|
2228
|
+
queryParams: localVarQueryParameter,
|
|
2229
|
+
bodyParams: localVarBodyParameter,
|
|
2078
2230
|
timeUnit: _timeUnit
|
|
2079
2231
|
};
|
|
2080
2232
|
},
|
|
2081
2233
|
queryAllUmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2082
2234
|
const localVarQueryParameter = {};
|
|
2235
|
+
const localVarBodyParameter = {};
|
|
2083
2236
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2084
2237
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2085
2238
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2091,13 +2244,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2091
2244
|
return {
|
|
2092
2245
|
endpoint: "/papi/v1/um/conditional/allOrders",
|
|
2093
2246
|
method: "GET",
|
|
2094
|
-
|
|
2247
|
+
queryParams: localVarQueryParameter,
|
|
2248
|
+
bodyParams: localVarBodyParameter,
|
|
2095
2249
|
timeUnit: _timeUnit
|
|
2096
2250
|
};
|
|
2097
2251
|
},
|
|
2098
2252
|
queryAllUmOrders: async (symbol, orderId, startTime, endTime, limit, recvWindow) => {
|
|
2099
2253
|
(0, __binance_common.assertParamExists)("queryAllUmOrders", "symbol", symbol);
|
|
2100
2254
|
const localVarQueryParameter = {};
|
|
2255
|
+
const localVarBodyParameter = {};
|
|
2101
2256
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2102
2257
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2103
2258
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2109,13 +2264,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2109
2264
|
return {
|
|
2110
2265
|
endpoint: "/papi/v1/um/allOrders",
|
|
2111
2266
|
method: "GET",
|
|
2112
|
-
|
|
2267
|
+
queryParams: localVarQueryParameter,
|
|
2268
|
+
bodyParams: localVarBodyParameter,
|
|
2113
2269
|
timeUnit: _timeUnit
|
|
2114
2270
|
};
|
|
2115
2271
|
},
|
|
2116
2272
|
queryCmConditionalOrderHistory: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2117
2273
|
(0, __binance_common.assertParamExists)("queryCmConditionalOrderHistory", "symbol", symbol);
|
|
2118
2274
|
const localVarQueryParameter = {};
|
|
2275
|
+
const localVarBodyParameter = {};
|
|
2119
2276
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2120
2277
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2121
2278
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2125,13 +2282,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2125
2282
|
return {
|
|
2126
2283
|
endpoint: "/papi/v1/cm/conditional/orderHistory",
|
|
2127
2284
|
method: "GET",
|
|
2128
|
-
|
|
2285
|
+
queryParams: localVarQueryParameter,
|
|
2286
|
+
bodyParams: localVarBodyParameter,
|
|
2129
2287
|
timeUnit: _timeUnit
|
|
2130
2288
|
};
|
|
2131
2289
|
},
|
|
2132
2290
|
queryCmModifyOrderHistory: async (symbol, orderId, origClientOrderId, startTime, endTime, limit, recvWindow) => {
|
|
2133
2291
|
(0, __binance_common.assertParamExists)("queryCmModifyOrderHistory", "symbol", symbol);
|
|
2134
2292
|
const localVarQueryParameter = {};
|
|
2293
|
+
const localVarBodyParameter = {};
|
|
2135
2294
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2136
2295
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2137
2296
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2144,13 +2303,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2144
2303
|
return {
|
|
2145
2304
|
endpoint: "/papi/v1/cm/orderAmendment",
|
|
2146
2305
|
method: "GET",
|
|
2147
|
-
|
|
2306
|
+
queryParams: localVarQueryParameter,
|
|
2307
|
+
bodyParams: localVarBodyParameter,
|
|
2148
2308
|
timeUnit: _timeUnit
|
|
2149
2309
|
};
|
|
2150
2310
|
},
|
|
2151
2311
|
queryCmOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2152
2312
|
(0, __binance_common.assertParamExists)("queryCmOrder", "symbol", symbol);
|
|
2153
2313
|
const localVarQueryParameter = {};
|
|
2314
|
+
const localVarBodyParameter = {};
|
|
2154
2315
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2155
2316
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2156
2317
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2160,13 +2321,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2160
2321
|
return {
|
|
2161
2322
|
endpoint: "/papi/v1/cm/order",
|
|
2162
2323
|
method: "GET",
|
|
2163
|
-
|
|
2324
|
+
queryParams: localVarQueryParameter,
|
|
2325
|
+
bodyParams: localVarBodyParameter,
|
|
2164
2326
|
timeUnit: _timeUnit
|
|
2165
2327
|
};
|
|
2166
2328
|
},
|
|
2167
2329
|
queryCurrentCmOpenConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2168
2330
|
(0, __binance_common.assertParamExists)("queryCurrentCmOpenConditionalOrder", "symbol", symbol);
|
|
2169
2331
|
const localVarQueryParameter = {};
|
|
2332
|
+
const localVarBodyParameter = {};
|
|
2170
2333
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2171
2334
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2172
2335
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2176,13 +2339,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2176
2339
|
return {
|
|
2177
2340
|
endpoint: "/papi/v1/cm/conditional/openOrder",
|
|
2178
2341
|
method: "GET",
|
|
2179
|
-
|
|
2342
|
+
queryParams: localVarQueryParameter,
|
|
2343
|
+
bodyParams: localVarBodyParameter,
|
|
2180
2344
|
timeUnit: _timeUnit
|
|
2181
2345
|
};
|
|
2182
2346
|
},
|
|
2183
2347
|
queryCurrentCmOpenOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2184
2348
|
(0, __binance_common.assertParamExists)("queryCurrentCmOpenOrder", "symbol", symbol);
|
|
2185
2349
|
const localVarQueryParameter = {};
|
|
2350
|
+
const localVarBodyParameter = {};
|
|
2186
2351
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2187
2352
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2188
2353
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2192,13 +2357,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2192
2357
|
return {
|
|
2193
2358
|
endpoint: "/papi/v1/cm/openOrder",
|
|
2194
2359
|
method: "GET",
|
|
2195
|
-
|
|
2360
|
+
queryParams: localVarQueryParameter,
|
|
2361
|
+
bodyParams: localVarBodyParameter,
|
|
2196
2362
|
timeUnit: _timeUnit
|
|
2197
2363
|
};
|
|
2198
2364
|
},
|
|
2199
2365
|
queryCurrentMarginOpenOrder: async (symbol, recvWindow) => {
|
|
2200
2366
|
(0, __binance_common.assertParamExists)("queryCurrentMarginOpenOrder", "symbol", symbol);
|
|
2201
2367
|
const localVarQueryParameter = {};
|
|
2368
|
+
const localVarBodyParameter = {};
|
|
2202
2369
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2203
2370
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2204
2371
|
let _timeUnit;
|
|
@@ -2206,13 +2373,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2206
2373
|
return {
|
|
2207
2374
|
endpoint: "/papi/v1/margin/openOrders",
|
|
2208
2375
|
method: "GET",
|
|
2209
|
-
|
|
2376
|
+
queryParams: localVarQueryParameter,
|
|
2377
|
+
bodyParams: localVarBodyParameter,
|
|
2210
2378
|
timeUnit: _timeUnit
|
|
2211
2379
|
};
|
|
2212
2380
|
},
|
|
2213
2381
|
queryCurrentUmOpenConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2214
2382
|
(0, __binance_common.assertParamExists)("queryCurrentUmOpenConditionalOrder", "symbol", symbol);
|
|
2215
2383
|
const localVarQueryParameter = {};
|
|
2384
|
+
const localVarBodyParameter = {};
|
|
2216
2385
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2217
2386
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2218
2387
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2222,13 +2391,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2222
2391
|
return {
|
|
2223
2392
|
endpoint: "/papi/v1/um/conditional/openOrder",
|
|
2224
2393
|
method: "GET",
|
|
2225
|
-
|
|
2394
|
+
queryParams: localVarQueryParameter,
|
|
2395
|
+
bodyParams: localVarBodyParameter,
|
|
2226
2396
|
timeUnit: _timeUnit
|
|
2227
2397
|
};
|
|
2228
2398
|
},
|
|
2229
2399
|
queryCurrentUmOpenOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2230
2400
|
(0, __binance_common.assertParamExists)("queryCurrentUmOpenOrder", "symbol", symbol);
|
|
2231
2401
|
const localVarQueryParameter = {};
|
|
2402
|
+
const localVarBodyParameter = {};
|
|
2232
2403
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2233
2404
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2234
2405
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2238,13 +2409,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2238
2409
|
return {
|
|
2239
2410
|
endpoint: "/papi/v1/um/openOrder",
|
|
2240
2411
|
method: "GET",
|
|
2241
|
-
|
|
2412
|
+
queryParams: localVarQueryParameter,
|
|
2413
|
+
bodyParams: localVarBodyParameter,
|
|
2242
2414
|
timeUnit: _timeUnit
|
|
2243
2415
|
};
|
|
2244
2416
|
},
|
|
2245
2417
|
queryMarginAccountOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2246
2418
|
(0, __binance_common.assertParamExists)("queryMarginAccountOrder", "symbol", symbol);
|
|
2247
2419
|
const localVarQueryParameter = {};
|
|
2420
|
+
const localVarBodyParameter = {};
|
|
2248
2421
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2249
2422
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2250
2423
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2254,12 +2427,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2254
2427
|
return {
|
|
2255
2428
|
endpoint: "/papi/v1/margin/order",
|
|
2256
2429
|
method: "GET",
|
|
2257
|
-
|
|
2430
|
+
queryParams: localVarQueryParameter,
|
|
2431
|
+
bodyParams: localVarBodyParameter,
|
|
2258
2432
|
timeUnit: _timeUnit
|
|
2259
2433
|
};
|
|
2260
2434
|
},
|
|
2261
2435
|
queryMarginAccountsAllOco: async (fromId, startTime, endTime, limit, recvWindow) => {
|
|
2262
2436
|
const localVarQueryParameter = {};
|
|
2437
|
+
const localVarBodyParameter = {};
|
|
2263
2438
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
2264
2439
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2265
2440
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -2270,12 +2445,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2270
2445
|
return {
|
|
2271
2446
|
endpoint: "/papi/v1/margin/allOrderList",
|
|
2272
2447
|
method: "GET",
|
|
2273
|
-
|
|
2448
|
+
queryParams: localVarQueryParameter,
|
|
2449
|
+
bodyParams: localVarBodyParameter,
|
|
2274
2450
|
timeUnit: _timeUnit
|
|
2275
2451
|
};
|
|
2276
2452
|
},
|
|
2277
2453
|
queryMarginAccountsOco: async (orderListId, origClientOrderId, recvWindow) => {
|
|
2278
2454
|
const localVarQueryParameter = {};
|
|
2455
|
+
const localVarBodyParameter = {};
|
|
2279
2456
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
2280
2457
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
2281
2458
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2284,25 +2461,29 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2284
2461
|
return {
|
|
2285
2462
|
endpoint: "/papi/v1/margin/orderList",
|
|
2286
2463
|
method: "GET",
|
|
2287
|
-
|
|
2464
|
+
queryParams: localVarQueryParameter,
|
|
2465
|
+
bodyParams: localVarBodyParameter,
|
|
2288
2466
|
timeUnit: _timeUnit
|
|
2289
2467
|
};
|
|
2290
2468
|
},
|
|
2291
2469
|
queryMarginAccountsOpenOco: async (recvWindow) => {
|
|
2292
2470
|
const localVarQueryParameter = {};
|
|
2471
|
+
const localVarBodyParameter = {};
|
|
2293
2472
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2294
2473
|
let _timeUnit;
|
|
2295
2474
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2296
2475
|
return {
|
|
2297
2476
|
endpoint: "/papi/v1/margin/openOrderList",
|
|
2298
2477
|
method: "GET",
|
|
2299
|
-
|
|
2478
|
+
queryParams: localVarQueryParameter,
|
|
2479
|
+
bodyParams: localVarBodyParameter,
|
|
2300
2480
|
timeUnit: _timeUnit
|
|
2301
2481
|
};
|
|
2302
2482
|
},
|
|
2303
2483
|
queryUmConditionalOrderHistory: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2304
2484
|
(0, __binance_common.assertParamExists)("queryUmConditionalOrderHistory", "symbol", symbol);
|
|
2305
2485
|
const localVarQueryParameter = {};
|
|
2486
|
+
const localVarBodyParameter = {};
|
|
2306
2487
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2307
2488
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2308
2489
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2312,13 +2493,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2312
2493
|
return {
|
|
2313
2494
|
endpoint: "/papi/v1/um/conditional/orderHistory",
|
|
2314
2495
|
method: "GET",
|
|
2315
|
-
|
|
2496
|
+
queryParams: localVarQueryParameter,
|
|
2497
|
+
bodyParams: localVarBodyParameter,
|
|
2316
2498
|
timeUnit: _timeUnit
|
|
2317
2499
|
};
|
|
2318
2500
|
},
|
|
2319
2501
|
queryUmModifyOrderHistory: async (symbol, orderId, origClientOrderId, startTime, endTime, limit, recvWindow) => {
|
|
2320
2502
|
(0, __binance_common.assertParamExists)("queryUmModifyOrderHistory", "symbol", symbol);
|
|
2321
2503
|
const localVarQueryParameter = {};
|
|
2504
|
+
const localVarBodyParameter = {};
|
|
2322
2505
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2323
2506
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2324
2507
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2331,13 +2514,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2331
2514
|
return {
|
|
2332
2515
|
endpoint: "/papi/v1/um/orderAmendment",
|
|
2333
2516
|
method: "GET",
|
|
2334
|
-
|
|
2517
|
+
queryParams: localVarQueryParameter,
|
|
2518
|
+
bodyParams: localVarBodyParameter,
|
|
2335
2519
|
timeUnit: _timeUnit
|
|
2336
2520
|
};
|
|
2337
2521
|
},
|
|
2338
2522
|
queryUmOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2339
2523
|
(0, __binance_common.assertParamExists)("queryUmOrder", "symbol", symbol);
|
|
2340
2524
|
const localVarQueryParameter = {};
|
|
2525
|
+
const localVarBodyParameter = {};
|
|
2341
2526
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2342
2527
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2343
2528
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2347,12 +2532,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2347
2532
|
return {
|
|
2348
2533
|
endpoint: "/papi/v1/um/order",
|
|
2349
2534
|
method: "GET",
|
|
2350
|
-
|
|
2535
|
+
queryParams: localVarQueryParameter,
|
|
2536
|
+
bodyParams: localVarBodyParameter,
|
|
2351
2537
|
timeUnit: _timeUnit
|
|
2352
2538
|
};
|
|
2353
2539
|
},
|
|
2354
2540
|
queryUsersCmForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
2355
2541
|
const localVarQueryParameter = {};
|
|
2542
|
+
const localVarBodyParameter = {};
|
|
2356
2543
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2357
2544
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
2358
2545
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2364,12 +2551,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2364
2551
|
return {
|
|
2365
2552
|
endpoint: "/papi/v1/cm/forceOrders",
|
|
2366
2553
|
method: "GET",
|
|
2367
|
-
|
|
2554
|
+
queryParams: localVarQueryParameter,
|
|
2555
|
+
bodyParams: localVarBodyParameter,
|
|
2368
2556
|
timeUnit: _timeUnit
|
|
2369
2557
|
};
|
|
2370
2558
|
},
|
|
2371
2559
|
queryUsersMarginForceOrders: async (startTime, endTime, current, size, recvWindow) => {
|
|
2372
2560
|
const localVarQueryParameter = {};
|
|
2561
|
+
const localVarBodyParameter = {};
|
|
2373
2562
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2374
2563
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
2375
2564
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -2380,12 +2569,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2380
2569
|
return {
|
|
2381
2570
|
endpoint: "/papi/v1/margin/forceOrders",
|
|
2382
2571
|
method: "GET",
|
|
2383
|
-
|
|
2572
|
+
queryParams: localVarQueryParameter,
|
|
2573
|
+
bodyParams: localVarBodyParameter,
|
|
2384
2574
|
timeUnit: _timeUnit
|
|
2385
2575
|
};
|
|
2386
2576
|
},
|
|
2387
2577
|
queryUsersUmForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
2388
2578
|
const localVarQueryParameter = {};
|
|
2579
|
+
const localVarBodyParameter = {};
|
|
2389
2580
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2390
2581
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
2391
2582
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2397,13 +2588,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2397
2588
|
return {
|
|
2398
2589
|
endpoint: "/papi/v1/um/forceOrders",
|
|
2399
2590
|
method: "GET",
|
|
2400
|
-
|
|
2591
|
+
queryParams: localVarQueryParameter,
|
|
2592
|
+
bodyParams: localVarBodyParameter,
|
|
2401
2593
|
timeUnit: _timeUnit
|
|
2402
2594
|
};
|
|
2403
2595
|
},
|
|
2404
2596
|
toggleBnbBurnOnUmFuturesTrade: async (feeBurn, recvWindow) => {
|
|
2405
2597
|
(0, __binance_common.assertParamExists)("toggleBnbBurnOnUmFuturesTrade", "feeBurn", feeBurn);
|
|
2406
2598
|
const localVarQueryParameter = {};
|
|
2599
|
+
const localVarBodyParameter = {};
|
|
2407
2600
|
if (feeBurn !== void 0 && feeBurn !== null) localVarQueryParameter["feeBurn"] = feeBurn;
|
|
2408
2601
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2409
2602
|
let _timeUnit;
|
|
@@ -2411,13 +2604,15 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2411
2604
|
return {
|
|
2412
2605
|
endpoint: "/papi/v1/um/feeBurn",
|
|
2413
2606
|
method: "POST",
|
|
2414
|
-
|
|
2607
|
+
queryParams: localVarQueryParameter,
|
|
2608
|
+
bodyParams: localVarBodyParameter,
|
|
2415
2609
|
timeUnit: _timeUnit
|
|
2416
2610
|
};
|
|
2417
2611
|
},
|
|
2418
2612
|
umAccountTradeList: async (symbol, startTime, endTime, fromId, limit, recvWindow) => {
|
|
2419
2613
|
(0, __binance_common.assertParamExists)("umAccountTradeList", "symbol", symbol);
|
|
2420
2614
|
const localVarQueryParameter = {};
|
|
2615
|
+
const localVarBodyParameter = {};
|
|
2421
2616
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2422
2617
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2423
2618
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -2429,12 +2624,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2429
2624
|
return {
|
|
2430
2625
|
endpoint: "/papi/v1/um/userTrades",
|
|
2431
2626
|
method: "GET",
|
|
2432
|
-
|
|
2627
|
+
queryParams: localVarQueryParameter,
|
|
2628
|
+
bodyParams: localVarBodyParameter,
|
|
2433
2629
|
timeUnit: _timeUnit
|
|
2434
2630
|
};
|
|
2435
2631
|
},
|
|
2436
2632
|
umPositionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
2437
2633
|
const localVarQueryParameter = {};
|
|
2634
|
+
const localVarBodyParameter = {};
|
|
2438
2635
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2439
2636
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2440
2637
|
let _timeUnit;
|
|
@@ -2442,7 +2639,8 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2442
2639
|
return {
|
|
2443
2640
|
endpoint: "/papi/v1/um/adlQuantile",
|
|
2444
2641
|
method: "GET",
|
|
2445
|
-
|
|
2642
|
+
queryParams: localVarQueryParameter,
|
|
2643
|
+
bodyParams: localVarBodyParameter,
|
|
2446
2644
|
timeUnit: _timeUnit
|
|
2447
2645
|
};
|
|
2448
2646
|
}
|
|
@@ -2471,7 +2669,7 @@ var TradeApi = class {
|
|
|
2471
2669
|
*/
|
|
2472
2670
|
async cancelAllCmOpenConditionalOrders(requestParameters) {
|
|
2473
2671
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2474
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2672
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2475
2673
|
}
|
|
2476
2674
|
/**
|
|
2477
2675
|
* Cancel all active LIMIT orders on specific symbol
|
|
@@ -2487,7 +2685,7 @@ var TradeApi = class {
|
|
|
2487
2685
|
*/
|
|
2488
2686
|
async cancelAllCmOpenOrders(requestParameters) {
|
|
2489
2687
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2490
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2688
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2491
2689
|
}
|
|
2492
2690
|
/**
|
|
2493
2691
|
* Cancel All UM Open Conditional Orders
|
|
@@ -2503,7 +2701,7 @@ var TradeApi = class {
|
|
|
2503
2701
|
*/
|
|
2504
2702
|
async cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
2505
2703
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2506
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2704
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2507
2705
|
}
|
|
2508
2706
|
/**
|
|
2509
2707
|
* Cancel all active LIMIT orders on specific symbol
|
|
@@ -2519,7 +2717,7 @@ var TradeApi = class {
|
|
|
2519
2717
|
*/
|
|
2520
2718
|
async cancelAllUmOpenOrders(requestParameters) {
|
|
2521
2719
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2522
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2720
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2523
2721
|
}
|
|
2524
2722
|
/**
|
|
2525
2723
|
* Cancel CM Conditional Order
|
|
@@ -2537,7 +2735,7 @@ var TradeApi = class {
|
|
|
2537
2735
|
*/
|
|
2538
2736
|
async cancelCmConditionalOrder(requestParameters) {
|
|
2539
2737
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
2540
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2738
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2541
2739
|
}
|
|
2542
2740
|
/**
|
|
2543
2741
|
* Cancel an active LIMIT order
|
|
@@ -2555,7 +2753,7 @@ var TradeApi = class {
|
|
|
2555
2753
|
*/
|
|
2556
2754
|
async cancelCmOrder(requestParameters) {
|
|
2557
2755
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2558
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2756
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2559
2757
|
}
|
|
2560
2758
|
/**
|
|
2561
2759
|
* Cancel Margin Account All Open Orders on a Symbol
|
|
@@ -2571,7 +2769,7 @@ var TradeApi = class {
|
|
|
2571
2769
|
*/
|
|
2572
2770
|
async cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters) {
|
|
2573
2771
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2574
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2772
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2575
2773
|
}
|
|
2576
2774
|
/**
|
|
2577
2775
|
* Cancel Margin Account OCO Orders
|
|
@@ -2589,7 +2787,7 @@ var TradeApi = class {
|
|
|
2589
2787
|
*/
|
|
2590
2788
|
async cancelMarginAccountOcoOrders(requestParameters) {
|
|
2591
2789
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountOcoOrders(requestParameters?.symbol, requestParameters?.orderListId, requestParameters?.listClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
2592
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2790
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2593
2791
|
}
|
|
2594
2792
|
/**
|
|
2595
2793
|
* Cancel Margin Account Order
|
|
@@ -2607,7 +2805,7 @@ var TradeApi = class {
|
|
|
2607
2805
|
*/
|
|
2608
2806
|
async cancelMarginAccountOrder(requestParameters) {
|
|
2609
2807
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
2610
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2808
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2611
2809
|
}
|
|
2612
2810
|
/**
|
|
2613
2811
|
* Cancel UM Conditional Order
|
|
@@ -2625,7 +2823,7 @@ var TradeApi = class {
|
|
|
2625
2823
|
*/
|
|
2626
2824
|
async cancelUmConditionalOrder(requestParameters) {
|
|
2627
2825
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
2628
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2826
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2629
2827
|
}
|
|
2630
2828
|
/**
|
|
2631
2829
|
* Cancel an active UM LIMIT order
|
|
@@ -2643,7 +2841,7 @@ var TradeApi = class {
|
|
|
2643
2841
|
*/
|
|
2644
2842
|
async cancelUmOrder(requestParameters) {
|
|
2645
2843
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2646
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2844
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2647
2845
|
}
|
|
2648
2846
|
/**
|
|
2649
2847
|
* Get trades for a specific account and CM symbol.
|
|
@@ -2668,7 +2866,7 @@ var TradeApi = class {
|
|
|
2668
2866
|
*/
|
|
2669
2867
|
async cmAccountTradeList(requestParameters = {}) {
|
|
2670
2868
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmAccountTradeList(requestParameters?.symbol, requestParameters?.pair, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2671
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2869
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2672
2870
|
}
|
|
2673
2871
|
/**
|
|
2674
2872
|
* Query CM Position ADL Quantile Estimation
|
|
@@ -2690,7 +2888,7 @@ var TradeApi = class {
|
|
|
2690
2888
|
*/
|
|
2691
2889
|
async cmPositionAdlQuantileEstimation(requestParameters = {}) {
|
|
2692
2890
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmPositionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2693
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2891
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2694
2892
|
}
|
|
2695
2893
|
/**
|
|
2696
2894
|
* Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
|
|
@@ -2706,7 +2904,7 @@ var TradeApi = class {
|
|
|
2706
2904
|
*/
|
|
2707
2905
|
async getUmFuturesBnbBurnStatus(requestParameters = {}) {
|
|
2708
2906
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesBnbBurnStatus(requestParameters?.recvWindow);
|
|
2709
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2907
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2710
2908
|
}
|
|
2711
2909
|
/**
|
|
2712
2910
|
* Apply for a margin loan.
|
|
@@ -2722,7 +2920,7 @@ var TradeApi = class {
|
|
|
2722
2920
|
*/
|
|
2723
2921
|
async marginAccountBorrow(requestParameters) {
|
|
2724
2922
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountBorrow(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
2725
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2923
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2726
2924
|
}
|
|
2727
2925
|
/**
|
|
2728
2926
|
* Send in a new OCO for a margin account
|
|
@@ -2747,7 +2945,7 @@ var TradeApi = class {
|
|
|
2747
2945
|
*/
|
|
2748
2946
|
async marginAccountNewOco(requestParameters) {
|
|
2749
2947
|
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);
|
|
2750
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2948
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2751
2949
|
}
|
|
2752
2950
|
/**
|
|
2753
2951
|
* Repay for a margin loan.
|
|
@@ -2763,7 +2961,7 @@ var TradeApi = class {
|
|
|
2763
2961
|
*/
|
|
2764
2962
|
async marginAccountRepay(requestParameters) {
|
|
2765
2963
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountRepay(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
2766
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2964
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2767
2965
|
}
|
|
2768
2966
|
/**
|
|
2769
2967
|
* Repay debt for a margin loan.
|
|
@@ -2784,7 +2982,7 @@ var TradeApi = class {
|
|
|
2784
2982
|
*/
|
|
2785
2983
|
async marginAccountRepayDebt(requestParameters) {
|
|
2786
2984
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountRepayDebt(requestParameters?.asset, requestParameters?.amount, requestParameters?.specifyRepayAssets, requestParameters?.recvWindow);
|
|
2787
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
2985
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2788
2986
|
}
|
|
2789
2987
|
/**
|
|
2790
2988
|
* Margin Account Trade List
|
|
@@ -2800,7 +2998,7 @@ var TradeApi = class {
|
|
|
2800
2998
|
*/
|
|
2801
2999
|
async marginAccountTradeList(requestParameters) {
|
|
2802
3000
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountTradeList(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2803
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3001
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2804
3002
|
}
|
|
2805
3003
|
/**
|
|
2806
3004
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -2823,7 +3021,7 @@ var TradeApi = class {
|
|
|
2823
3021
|
*/
|
|
2824
3022
|
async modifyCmOrder(requestParameters) {
|
|
2825
3023
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyCmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
2826
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3024
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2827
3025
|
}
|
|
2828
3026
|
/**
|
|
2829
3027
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -2846,7 +3044,7 @@ var TradeApi = class {
|
|
|
2846
3044
|
*/
|
|
2847
3045
|
async modifyUmOrder(requestParameters) {
|
|
2848
3046
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyUmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
2849
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3047
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2850
3048
|
}
|
|
2851
3049
|
/**
|
|
2852
3050
|
* New CM Conditional Order
|
|
@@ -2887,7 +3085,7 @@ var TradeApi = class {
|
|
|
2887
3085
|
*/
|
|
2888
3086
|
async newCmConditionalOrder(requestParameters) {
|
|
2889
3087
|
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);
|
|
2890
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3088
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2891
3089
|
}
|
|
2892
3090
|
/**
|
|
2893
3091
|
* Place new CM order
|
|
@@ -2907,7 +3105,7 @@ var TradeApi = class {
|
|
|
2907
3105
|
*/
|
|
2908
3106
|
async newCmOrder(requestParameters) {
|
|
2909
3107
|
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);
|
|
2910
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3108
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2911
3109
|
}
|
|
2912
3110
|
/**
|
|
2913
3111
|
* New Margin Order
|
|
@@ -2923,7 +3121,7 @@ var TradeApi = class {
|
|
|
2923
3121
|
*/
|
|
2924
3122
|
async newMarginOrder(requestParameters) {
|
|
2925
3123
|
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);
|
|
2926
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3124
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2927
3125
|
}
|
|
2928
3126
|
/**
|
|
2929
3127
|
* Place new UM conditional order
|
|
@@ -2966,7 +3164,7 @@ var TradeApi = class {
|
|
|
2966
3164
|
*/
|
|
2967
3165
|
async newUmConditionalOrder(requestParameters) {
|
|
2968
3166
|
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);
|
|
2969
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3167
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2970
3168
|
}
|
|
2971
3169
|
/**
|
|
2972
3170
|
* Place new UM order
|
|
@@ -2988,7 +3186,7 @@ var TradeApi = class {
|
|
|
2988
3186
|
*/
|
|
2989
3187
|
async newUmOrder(requestParameters) {
|
|
2990
3188
|
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);
|
|
2991
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3189
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2992
3190
|
}
|
|
2993
3191
|
/**
|
|
2994
3192
|
* Query All CM Conditional Orders
|
|
@@ -3010,7 +3208,7 @@ var TradeApi = class {
|
|
|
3010
3208
|
*/
|
|
3011
3209
|
async queryAllCmConditionalOrders(requestParameters = {}) {
|
|
3012
3210
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3013
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3211
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3014
3212
|
}
|
|
3015
3213
|
/**
|
|
3016
3214
|
* Get all account CM orders; active, canceled, or filled.
|
|
@@ -3033,7 +3231,7 @@ var TradeApi = class {
|
|
|
3033
3231
|
*/
|
|
3034
3232
|
async queryAllCmOrders(requestParameters) {
|
|
3035
3233
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCmOrders(requestParameters?.symbol, requestParameters?.pair, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3036
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3234
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3037
3235
|
}
|
|
3038
3236
|
/**
|
|
3039
3237
|
* Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
|
|
@@ -3051,7 +3249,7 @@ var TradeApi = class {
|
|
|
3051
3249
|
*/
|
|
3052
3250
|
async queryAllCurrentCmOpenConditionalOrders(requestParameters = {}) {
|
|
3053
3251
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3054
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3252
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3055
3253
|
}
|
|
3056
3254
|
/**
|
|
3057
3255
|
* Get all open orders on a symbol.
|
|
@@ -3070,7 +3268,7 @@ var TradeApi = class {
|
|
|
3070
3268
|
*/
|
|
3071
3269
|
async queryAllCurrentCmOpenOrders(requestParameters = {}) {
|
|
3072
3270
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenOrders(requestParameters?.symbol, requestParameters?.pair, requestParameters?.recvWindow);
|
|
3073
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3271
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3074
3272
|
}
|
|
3075
3273
|
/**
|
|
3076
3274
|
* Get all open conditional orders on a symbol.
|
|
@@ -3089,7 +3287,7 @@ var TradeApi = class {
|
|
|
3089
3287
|
*/
|
|
3090
3288
|
async queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
3091
3289
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3092
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3290
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3093
3291
|
}
|
|
3094
3292
|
/**
|
|
3095
3293
|
* Get all open orders on a symbol.
|
|
@@ -3108,7 +3306,7 @@ var TradeApi = class {
|
|
|
3108
3306
|
*/
|
|
3109
3307
|
async queryAllCurrentUmOpenOrders(requestParameters = {}) {
|
|
3110
3308
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3111
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3309
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3112
3310
|
}
|
|
3113
3311
|
/**
|
|
3114
3312
|
* Query All Margin Account Orders
|
|
@@ -3124,7 +3322,7 @@ var TradeApi = class {
|
|
|
3124
3322
|
*/
|
|
3125
3323
|
async queryAllMarginAccountOrders(requestParameters) {
|
|
3126
3324
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllMarginAccountOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3127
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3325
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3128
3326
|
}
|
|
3129
3327
|
/**
|
|
3130
3328
|
* Query All UM Conditional Orders
|
|
@@ -3146,7 +3344,7 @@ var TradeApi = class {
|
|
|
3146
3344
|
*/
|
|
3147
3345
|
async queryAllUmConditionalOrders(requestParameters = {}) {
|
|
3148
3346
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3149
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3347
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3150
3348
|
}
|
|
3151
3349
|
/**
|
|
3152
3350
|
* Get all account UM orders; active, canceled, or filled.
|
|
@@ -3169,7 +3367,7 @@ var TradeApi = class {
|
|
|
3169
3367
|
*/
|
|
3170
3368
|
async queryAllUmOrders(requestParameters) {
|
|
3171
3369
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3172
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3370
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3173
3371
|
}
|
|
3174
3372
|
/**
|
|
3175
3373
|
* Query CM Conditional Order History
|
|
@@ -3193,7 +3391,7 @@ var TradeApi = class {
|
|
|
3193
3391
|
*/
|
|
3194
3392
|
async queryCmConditionalOrderHistory(requestParameters) {
|
|
3195
3393
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3196
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3394
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3197
3395
|
}
|
|
3198
3396
|
/**
|
|
3199
3397
|
* Get order modification history
|
|
@@ -3211,7 +3409,7 @@ var TradeApi = class {
|
|
|
3211
3409
|
*/
|
|
3212
3410
|
async queryCmModifyOrderHistory(requestParameters) {
|
|
3213
3411
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmModifyOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3214
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3412
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3215
3413
|
}
|
|
3216
3414
|
/**
|
|
3217
3415
|
* Check an CM order's status.
|
|
@@ -3233,7 +3431,7 @@ var TradeApi = class {
|
|
|
3233
3431
|
*/
|
|
3234
3432
|
async queryCmOrder(requestParameters) {
|
|
3235
3433
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3236
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3434
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3237
3435
|
}
|
|
3238
3436
|
/**
|
|
3239
3437
|
* Query Current CM Open Conditional Order
|
|
@@ -3252,7 +3450,7 @@ var TradeApi = class {
|
|
|
3252
3450
|
*/
|
|
3253
3451
|
async queryCurrentCmOpenConditionalOrder(requestParameters) {
|
|
3254
3452
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3255
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3453
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3256
3454
|
}
|
|
3257
3455
|
/**
|
|
3258
3456
|
* Query current CM open order
|
|
@@ -3271,7 +3469,7 @@ var TradeApi = class {
|
|
|
3271
3469
|
*/
|
|
3272
3470
|
async queryCurrentCmOpenOrder(requestParameters) {
|
|
3273
3471
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3274
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3472
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3275
3473
|
}
|
|
3276
3474
|
/**
|
|
3277
3475
|
* Query Current Margin Open Order
|
|
@@ -3287,7 +3485,7 @@ var TradeApi = class {
|
|
|
3287
3485
|
*/
|
|
3288
3486
|
async queryCurrentMarginOpenOrder(requestParameters) {
|
|
3289
3487
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentMarginOpenOrder(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3290
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3488
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3291
3489
|
}
|
|
3292
3490
|
/**
|
|
3293
3491
|
* Query Current UM Open Conditional Order
|
|
@@ -3306,7 +3504,7 @@ var TradeApi = class {
|
|
|
3306
3504
|
*/
|
|
3307
3505
|
async queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
3308
3506
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3309
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3507
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3310
3508
|
}
|
|
3311
3509
|
/**
|
|
3312
3510
|
* Query current UM open order
|
|
@@ -3326,7 +3524,7 @@ var TradeApi = class {
|
|
|
3326
3524
|
*/
|
|
3327
3525
|
async queryCurrentUmOpenOrder(requestParameters) {
|
|
3328
3526
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3329
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3527
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3330
3528
|
}
|
|
3331
3529
|
/**
|
|
3332
3530
|
* Query Margin Account Order
|
|
@@ -3342,7 +3540,7 @@ var TradeApi = class {
|
|
|
3342
3540
|
*/
|
|
3343
3541
|
async queryMarginAccountOrder(requestParameters) {
|
|
3344
3542
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3345
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3543
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3346
3544
|
}
|
|
3347
3545
|
/**
|
|
3348
3546
|
* Query all OCO for a specific margin account based on provided optional parameters
|
|
@@ -3358,7 +3556,7 @@ var TradeApi = class {
|
|
|
3358
3556
|
*/
|
|
3359
3557
|
async queryMarginAccountsAllOco(requestParameters = {}) {
|
|
3360
3558
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOco(requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3361
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3559
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3362
3560
|
}
|
|
3363
3561
|
/**
|
|
3364
3562
|
* Retrieves a specific OCO based on provided optional parameters
|
|
@@ -3374,7 +3572,7 @@ var TradeApi = class {
|
|
|
3374
3572
|
*/
|
|
3375
3573
|
async queryMarginAccountsOco(requestParameters = {}) {
|
|
3376
3574
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOco(requestParameters?.orderListId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3377
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3575
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3378
3576
|
}
|
|
3379
3577
|
/**
|
|
3380
3578
|
* Query Margin Account's Open OCO
|
|
@@ -3390,7 +3588,7 @@ var TradeApi = class {
|
|
|
3390
3588
|
*/
|
|
3391
3589
|
async queryMarginAccountsOpenOco(requestParameters = {}) {
|
|
3392
3590
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOco(requestParameters?.recvWindow);
|
|
3393
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3591
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3394
3592
|
}
|
|
3395
3593
|
/**
|
|
3396
3594
|
* Query UM Conditional Order History
|
|
@@ -3413,7 +3611,7 @@ var TradeApi = class {
|
|
|
3413
3611
|
*/
|
|
3414
3612
|
async queryUmConditionalOrderHistory(requestParameters) {
|
|
3415
3613
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3416
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3614
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3417
3615
|
}
|
|
3418
3616
|
/**
|
|
3419
3617
|
* Get order modification history
|
|
@@ -3431,7 +3629,7 @@ var TradeApi = class {
|
|
|
3431
3629
|
*/
|
|
3432
3630
|
async queryUmModifyOrderHistory(requestParameters) {
|
|
3433
3631
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmModifyOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3434
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3632
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3435
3633
|
}
|
|
3436
3634
|
/**
|
|
3437
3635
|
* Check an UM order's status.
|
|
@@ -3453,7 +3651,7 @@ var TradeApi = class {
|
|
|
3453
3651
|
*/
|
|
3454
3652
|
async queryUmOrder(requestParameters) {
|
|
3455
3653
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3456
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3654
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3457
3655
|
}
|
|
3458
3656
|
/**
|
|
3459
3657
|
* Query User's CM Force Orders
|
|
@@ -3472,7 +3670,7 @@ var TradeApi = class {
|
|
|
3472
3670
|
*/
|
|
3473
3671
|
async queryUsersCmForceOrders(requestParameters = {}) {
|
|
3474
3672
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersCmForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3475
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3673
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3476
3674
|
}
|
|
3477
3675
|
/**
|
|
3478
3676
|
* Query user's margin force orders
|
|
@@ -3488,7 +3686,7 @@ var TradeApi = class {
|
|
|
3488
3686
|
*/
|
|
3489
3687
|
async queryUsersMarginForceOrders(requestParameters = {}) {
|
|
3490
3688
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersMarginForceOrders(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
3491
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3689
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3492
3690
|
}
|
|
3493
3691
|
/**
|
|
3494
3692
|
* Query User's UM Force Orders
|
|
@@ -3507,7 +3705,7 @@ var TradeApi = class {
|
|
|
3507
3705
|
*/
|
|
3508
3706
|
async queryUsersUmForceOrders(requestParameters = {}) {
|
|
3509
3707
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersUmForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3510
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3708
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3511
3709
|
}
|
|
3512
3710
|
/**
|
|
3513
3711
|
* Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
|
|
@@ -3526,7 +3724,7 @@ var TradeApi = class {
|
|
|
3526
3724
|
*/
|
|
3527
3725
|
async toggleBnbBurnOnUmFuturesTrade(requestParameters) {
|
|
3528
3726
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnUmFuturesTrade(requestParameters?.feeBurn, requestParameters?.recvWindow);
|
|
3529
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3727
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3530
3728
|
}
|
|
3531
3729
|
/**
|
|
3532
3730
|
* Get trades for a specific account and UM symbol.
|
|
@@ -3547,7 +3745,7 @@ var TradeApi = class {
|
|
|
3547
3745
|
*/
|
|
3548
3746
|
async umAccountTradeList(requestParameters) {
|
|
3549
3747
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umAccountTradeList(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3550
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3748
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3551
3749
|
}
|
|
3552
3750
|
/**
|
|
3553
3751
|
* Query UM Position ADL Quantile Estimation
|
|
@@ -3570,7 +3768,7 @@ var TradeApi = class {
|
|
|
3570
3768
|
*/
|
|
3571
3769
|
async umPositionAdlQuantileEstimation(requestParameters = {}) {
|
|
3572
3770
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umPositionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3573
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
3771
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3574
3772
|
}
|
|
3575
3773
|
};
|
|
3576
3774
|
let MarginAccountNewOcoSideEnum = /* @__PURE__ */ function(MarginAccountNewOcoSideEnum$1) {
|
|
@@ -3862,34 +4060,40 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
3862
4060
|
return {
|
|
3863
4061
|
closeUserDataStream: async () => {
|
|
3864
4062
|
const localVarQueryParameter = {};
|
|
4063
|
+
const localVarBodyParameter = {};
|
|
3865
4064
|
let _timeUnit;
|
|
3866
4065
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3867
4066
|
return {
|
|
3868
4067
|
endpoint: "/papi/v1/listenKey",
|
|
3869
4068
|
method: "DELETE",
|
|
3870
|
-
|
|
4069
|
+
queryParams: localVarQueryParameter,
|
|
4070
|
+
bodyParams: localVarBodyParameter,
|
|
3871
4071
|
timeUnit: _timeUnit
|
|
3872
4072
|
};
|
|
3873
4073
|
},
|
|
3874
4074
|
keepaliveUserDataStream: async () => {
|
|
3875
4075
|
const localVarQueryParameter = {};
|
|
4076
|
+
const localVarBodyParameter = {};
|
|
3876
4077
|
let _timeUnit;
|
|
3877
4078
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3878
4079
|
return {
|
|
3879
4080
|
endpoint: "/papi/v1/listenKey",
|
|
3880
4081
|
method: "PUT",
|
|
3881
|
-
|
|
4082
|
+
queryParams: localVarQueryParameter,
|
|
4083
|
+
bodyParams: localVarBodyParameter,
|
|
3882
4084
|
timeUnit: _timeUnit
|
|
3883
4085
|
};
|
|
3884
4086
|
},
|
|
3885
4087
|
startUserDataStream: async () => {
|
|
3886
4088
|
const localVarQueryParameter = {};
|
|
4089
|
+
const localVarBodyParameter = {};
|
|
3887
4090
|
let _timeUnit;
|
|
3888
4091
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3889
4092
|
return {
|
|
3890
4093
|
endpoint: "/papi/v1/listenKey",
|
|
3891
4094
|
method: "POST",
|
|
3892
|
-
|
|
4095
|
+
queryParams: localVarQueryParameter,
|
|
4096
|
+
bodyParams: localVarBodyParameter,
|
|
3893
4097
|
timeUnit: _timeUnit
|
|
3894
4098
|
};
|
|
3895
4099
|
}
|
|
@@ -3917,7 +4121,7 @@ var UserDataStreamsApi = class {
|
|
|
3917
4121
|
*/
|
|
3918
4122
|
async closeUserDataStream() {
|
|
3919
4123
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
3920
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
4124
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
3921
4125
|
}
|
|
3922
4126
|
/**
|
|
3923
4127
|
* 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.
|
|
@@ -3932,7 +4136,7 @@ var UserDataStreamsApi = class {
|
|
|
3932
4136
|
*/
|
|
3933
4137
|
async keepaliveUserDataStream() {
|
|
3934
4138
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
3935
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
4139
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
3936
4140
|
}
|
|
3937
4141
|
/**
|
|
3938
4142
|
* 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.
|
|
@@ -3947,7 +4151,7 @@ var UserDataStreamsApi = class {
|
|
|
3947
4151
|
*/
|
|
3948
4152
|
async startUserDataStream() {
|
|
3949
4153
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
3950
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
4154
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
3951
4155
|
}
|
|
3952
4156
|
};
|
|
3953
4157
|
|
|
@@ -3977,23 +4181,25 @@ var RestAPI = class {
|
|
|
3977
4181
|
* Generic function to send a request.
|
|
3978
4182
|
* @param endpoint - The API endpoint to call.
|
|
3979
4183
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
3980
|
-
* @param
|
|
4184
|
+
* @param queryParams - Query parameters for the request.
|
|
4185
|
+
* @param bodyParams - Body parameters for the request.
|
|
3981
4186
|
*
|
|
3982
4187
|
* @returns A promise resolving to the response data object.
|
|
3983
4188
|
*/
|
|
3984
|
-
sendRequest(endpoint, method,
|
|
3985
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method,
|
|
4189
|
+
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4190
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
3986
4191
|
}
|
|
3987
4192
|
/**
|
|
3988
4193
|
* Generic function to send a signed request.
|
|
3989
4194
|
* @param endpoint - The API endpoint to call.
|
|
3990
4195
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
3991
|
-
* @param
|
|
4196
|
+
* @param queryParams - Query parameters for the request.
|
|
4197
|
+
* @param bodyParams - Body parameters for the request.
|
|
3992
4198
|
*
|
|
3993
4199
|
* @returns A promise resolving to the response data object.
|
|
3994
4200
|
*/
|
|
3995
|
-
sendSignedRequest(endpoint, method,
|
|
3996
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method,
|
|
4201
|
+
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4202
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
3997
4203
|
}
|
|
3998
4204
|
/**
|
|
3999
4205
|
* Query account balance
|
|
@@ -6047,12 +6253,6 @@ Object.defineProperty(exports, 'BadRequestError', {
|
|
|
6047
6253
|
return __binance_common.BadRequestError;
|
|
6048
6254
|
}
|
|
6049
6255
|
});
|
|
6050
|
-
Object.defineProperty(exports, 'ConfigurationDerivativesTradingPortfolioMargin', {
|
|
6051
|
-
enumerable: true,
|
|
6052
|
-
get: function () {
|
|
6053
|
-
return ConfigurationDerivativesTradingPortfolioMargin;
|
|
6054
|
-
}
|
|
6055
|
-
});
|
|
6056
6256
|
Object.defineProperty(exports, 'ConnectorClientError', {
|
|
6057
6257
|
enumerable: true,
|
|
6058
6258
|
get: function () {
|