@binance/derivatives-trading-portfolio-margin 14.0.2 → 14.0.4
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/README.md +0 -28
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +330 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +332 -114
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __export } from "./chunk.mjs";
|
|
2
|
-
import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL as DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL$1,
|
|
2
|
+
import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL as DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL$1, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL as DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL$1, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStreamsBase, assertParamExists, buildUserAgent, createStreamHandler, sendRequest } from "@binance/common";
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
6
|
-
var version = "14.0.
|
|
6
|
+
var version = "14.0.4";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -27,6 +27,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
27
27
|
accountBalance: async (asset, recvWindow) => {
|
|
28
28
|
const localVarQueryParameter = {};
|
|
29
29
|
const localVarBodyParameter = {};
|
|
30
|
+
const localVarHeaderParameter = {};
|
|
30
31
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
31
32
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
32
33
|
let _timeUnit;
|
|
@@ -36,12 +37,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
36
37
|
method: "GET",
|
|
37
38
|
queryParams: localVarQueryParameter,
|
|
38
39
|
bodyParams: localVarBodyParameter,
|
|
40
|
+
headerParams: localVarHeaderParameter,
|
|
39
41
|
timeUnit: _timeUnit
|
|
40
42
|
};
|
|
41
43
|
},
|
|
42
44
|
accountInformation: async (recvWindow) => {
|
|
43
45
|
const localVarQueryParameter = {};
|
|
44
46
|
const localVarBodyParameter = {};
|
|
47
|
+
const localVarHeaderParameter = {};
|
|
45
48
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
46
49
|
let _timeUnit;
|
|
47
50
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -50,6 +53,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
50
53
|
method: "GET",
|
|
51
54
|
queryParams: localVarQueryParameter,
|
|
52
55
|
bodyParams: localVarBodyParameter,
|
|
56
|
+
headerParams: localVarHeaderParameter,
|
|
53
57
|
timeUnit: _timeUnit
|
|
54
58
|
};
|
|
55
59
|
},
|
|
@@ -58,6 +62,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
58
62
|
assertParamExists("bnbTransfer", "transferSide", transferSide);
|
|
59
63
|
const localVarQueryParameter = {};
|
|
60
64
|
const localVarBodyParameter = {};
|
|
65
|
+
const localVarHeaderParameter = {};
|
|
61
66
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
62
67
|
if (transferSide !== void 0 && transferSide !== null) localVarQueryParameter["transferSide"] = transferSide;
|
|
63
68
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -68,6 +73,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
68
73
|
method: "POST",
|
|
69
74
|
queryParams: localVarQueryParameter,
|
|
70
75
|
bodyParams: localVarBodyParameter,
|
|
76
|
+
headerParams: localVarHeaderParameter,
|
|
71
77
|
timeUnit: _timeUnit
|
|
72
78
|
};
|
|
73
79
|
},
|
|
@@ -75,6 +81,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
75
81
|
assertParamExists("changeAutoRepayFuturesStatus", "autoRepay", autoRepay);
|
|
76
82
|
const localVarQueryParameter = {};
|
|
77
83
|
const localVarBodyParameter = {};
|
|
84
|
+
const localVarHeaderParameter = {};
|
|
78
85
|
if (autoRepay !== void 0 && autoRepay !== null) localVarQueryParameter["autoRepay"] = autoRepay;
|
|
79
86
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
80
87
|
let _timeUnit;
|
|
@@ -84,6 +91,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
84
91
|
method: "POST",
|
|
85
92
|
queryParams: localVarQueryParameter,
|
|
86
93
|
bodyParams: localVarBodyParameter,
|
|
94
|
+
headerParams: localVarHeaderParameter,
|
|
87
95
|
timeUnit: _timeUnit
|
|
88
96
|
};
|
|
89
97
|
},
|
|
@@ -92,6 +100,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
92
100
|
assertParamExists("changeCmInitialLeverage", "leverage", leverage);
|
|
93
101
|
const localVarQueryParameter = {};
|
|
94
102
|
const localVarBodyParameter = {};
|
|
103
|
+
const localVarHeaderParameter = {};
|
|
95
104
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
96
105
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
97
106
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -102,6 +111,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
102
111
|
method: "POST",
|
|
103
112
|
queryParams: localVarQueryParameter,
|
|
104
113
|
bodyParams: localVarBodyParameter,
|
|
114
|
+
headerParams: localVarHeaderParameter,
|
|
105
115
|
timeUnit: _timeUnit
|
|
106
116
|
};
|
|
107
117
|
},
|
|
@@ -109,6 +119,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
109
119
|
assertParamExists("changeCmPositionMode", "dualSidePosition", dualSidePosition);
|
|
110
120
|
const localVarQueryParameter = {};
|
|
111
121
|
const localVarBodyParameter = {};
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
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;
|
|
@@ -118,6 +129,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
118
129
|
method: "POST",
|
|
119
130
|
queryParams: localVarQueryParameter,
|
|
120
131
|
bodyParams: localVarBodyParameter,
|
|
132
|
+
headerParams: localVarHeaderParameter,
|
|
121
133
|
timeUnit: _timeUnit
|
|
122
134
|
};
|
|
123
135
|
},
|
|
@@ -126,6 +138,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
126
138
|
assertParamExists("changeUmInitialLeverage", "leverage", leverage);
|
|
127
139
|
const localVarQueryParameter = {};
|
|
128
140
|
const localVarBodyParameter = {};
|
|
141
|
+
const localVarHeaderParameter = {};
|
|
129
142
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
130
143
|
if (leverage !== void 0 && leverage !== null) localVarQueryParameter["leverage"] = leverage;
|
|
131
144
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -136,6 +149,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
136
149
|
method: "POST",
|
|
137
150
|
queryParams: localVarQueryParameter,
|
|
138
151
|
bodyParams: localVarBodyParameter,
|
|
152
|
+
headerParams: localVarHeaderParameter,
|
|
139
153
|
timeUnit: _timeUnit
|
|
140
154
|
};
|
|
141
155
|
},
|
|
@@ -143,6 +157,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
143
157
|
assertParamExists("changeUmPositionMode", "dualSidePosition", dualSidePosition);
|
|
144
158
|
const localVarQueryParameter = {};
|
|
145
159
|
const localVarBodyParameter = {};
|
|
160
|
+
const localVarHeaderParameter = {};
|
|
146
161
|
if (dualSidePosition !== void 0 && dualSidePosition !== null) localVarQueryParameter["dualSidePosition"] = dualSidePosition;
|
|
147
162
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
148
163
|
let _timeUnit;
|
|
@@ -152,12 +167,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
152
167
|
method: "POST",
|
|
153
168
|
queryParams: localVarQueryParameter,
|
|
154
169
|
bodyParams: localVarBodyParameter,
|
|
170
|
+
headerParams: localVarHeaderParameter,
|
|
155
171
|
timeUnit: _timeUnit
|
|
156
172
|
};
|
|
157
173
|
},
|
|
158
174
|
cmNotionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
159
175
|
const localVarQueryParameter = {};
|
|
160
176
|
const localVarBodyParameter = {};
|
|
177
|
+
const localVarHeaderParameter = {};
|
|
161
178
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
162
179
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
163
180
|
let _timeUnit;
|
|
@@ -167,12 +184,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
167
184
|
method: "GET",
|
|
168
185
|
queryParams: localVarQueryParameter,
|
|
169
186
|
bodyParams: localVarBodyParameter,
|
|
187
|
+
headerParams: localVarHeaderParameter,
|
|
170
188
|
timeUnit: _timeUnit
|
|
171
189
|
};
|
|
172
190
|
},
|
|
173
191
|
fundAutoCollection: async (recvWindow) => {
|
|
174
192
|
const localVarQueryParameter = {};
|
|
175
193
|
const localVarBodyParameter = {};
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
176
195
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
177
196
|
let _timeUnit;
|
|
178
197
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -181,6 +200,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
181
200
|
method: "POST",
|
|
182
201
|
queryParams: localVarQueryParameter,
|
|
183
202
|
bodyParams: localVarBodyParameter,
|
|
203
|
+
headerParams: localVarHeaderParameter,
|
|
184
204
|
timeUnit: _timeUnit
|
|
185
205
|
};
|
|
186
206
|
},
|
|
@@ -188,6 +208,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
188
208
|
assertParamExists("fundCollectionByAsset", "asset", asset);
|
|
189
209
|
const localVarQueryParameter = {};
|
|
190
210
|
const localVarBodyParameter = {};
|
|
211
|
+
const localVarHeaderParameter = {};
|
|
191
212
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
192
213
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
193
214
|
let _timeUnit;
|
|
@@ -197,12 +218,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
197
218
|
method: "POST",
|
|
198
219
|
queryParams: localVarQueryParameter,
|
|
199
220
|
bodyParams: localVarBodyParameter,
|
|
221
|
+
headerParams: localVarHeaderParameter,
|
|
200
222
|
timeUnit: _timeUnit
|
|
201
223
|
};
|
|
202
224
|
},
|
|
203
225
|
getAutoRepayFuturesStatus: async (recvWindow) => {
|
|
204
226
|
const localVarQueryParameter = {};
|
|
205
227
|
const localVarBodyParameter = {};
|
|
228
|
+
const localVarHeaderParameter = {};
|
|
206
229
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
207
230
|
let _timeUnit;
|
|
208
231
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -211,12 +234,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
211
234
|
method: "GET",
|
|
212
235
|
queryParams: localVarQueryParameter,
|
|
213
236
|
bodyParams: localVarBodyParameter,
|
|
237
|
+
headerParams: localVarHeaderParameter,
|
|
214
238
|
timeUnit: _timeUnit
|
|
215
239
|
};
|
|
216
240
|
},
|
|
217
241
|
getCmAccountDetail: async (recvWindow) => {
|
|
218
242
|
const localVarQueryParameter = {};
|
|
219
243
|
const localVarBodyParameter = {};
|
|
244
|
+
const localVarHeaderParameter = {};
|
|
220
245
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
221
246
|
let _timeUnit;
|
|
222
247
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -225,12 +250,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
225
250
|
method: "GET",
|
|
226
251
|
queryParams: localVarQueryParameter,
|
|
227
252
|
bodyParams: localVarBodyParameter,
|
|
253
|
+
headerParams: localVarHeaderParameter,
|
|
228
254
|
timeUnit: _timeUnit
|
|
229
255
|
};
|
|
230
256
|
},
|
|
231
257
|
getCmCurrentPositionMode: async (recvWindow) => {
|
|
232
258
|
const localVarQueryParameter = {};
|
|
233
259
|
const localVarBodyParameter = {};
|
|
260
|
+
const localVarHeaderParameter = {};
|
|
234
261
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
235
262
|
let _timeUnit;
|
|
236
263
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -239,12 +266,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
239
266
|
method: "GET",
|
|
240
267
|
queryParams: localVarQueryParameter,
|
|
241
268
|
bodyParams: localVarBodyParameter,
|
|
269
|
+
headerParams: localVarHeaderParameter,
|
|
242
270
|
timeUnit: _timeUnit
|
|
243
271
|
};
|
|
244
272
|
},
|
|
245
273
|
getCmIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
246
274
|
const localVarQueryParameter = {};
|
|
247
275
|
const localVarBodyParameter = {};
|
|
276
|
+
const localVarHeaderParameter = {};
|
|
248
277
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
249
278
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
250
279
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -259,6 +288,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
259
288
|
method: "GET",
|
|
260
289
|
queryParams: localVarQueryParameter,
|
|
261
290
|
bodyParams: localVarBodyParameter,
|
|
291
|
+
headerParams: localVarHeaderParameter,
|
|
262
292
|
timeUnit: _timeUnit
|
|
263
293
|
};
|
|
264
294
|
},
|
|
@@ -267,6 +297,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
267
297
|
assertParamExists("getDownloadIdForUmFuturesOrderHistory", "endTime", endTime);
|
|
268
298
|
const localVarQueryParameter = {};
|
|
269
299
|
const localVarBodyParameter = {};
|
|
300
|
+
const localVarHeaderParameter = {};
|
|
270
301
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
271
302
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
272
303
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -277,6 +308,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
277
308
|
method: "GET",
|
|
278
309
|
queryParams: localVarQueryParameter,
|
|
279
310
|
bodyParams: localVarBodyParameter,
|
|
311
|
+
headerParams: localVarHeaderParameter,
|
|
280
312
|
timeUnit: _timeUnit
|
|
281
313
|
};
|
|
282
314
|
},
|
|
@@ -285,6 +317,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
285
317
|
assertParamExists("getDownloadIdForUmFuturesTradeHistory", "endTime", endTime);
|
|
286
318
|
const localVarQueryParameter = {};
|
|
287
319
|
const localVarBodyParameter = {};
|
|
320
|
+
const localVarHeaderParameter = {};
|
|
288
321
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
289
322
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
290
323
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -295,6 +328,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
295
328
|
method: "GET",
|
|
296
329
|
queryParams: localVarQueryParameter,
|
|
297
330
|
bodyParams: localVarBodyParameter,
|
|
331
|
+
headerParams: localVarHeaderParameter,
|
|
298
332
|
timeUnit: _timeUnit
|
|
299
333
|
};
|
|
300
334
|
},
|
|
@@ -303,6 +337,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
303
337
|
assertParamExists("getDownloadIdForUmFuturesTransactionHistory", "endTime", endTime);
|
|
304
338
|
const localVarQueryParameter = {};
|
|
305
339
|
const localVarBodyParameter = {};
|
|
340
|
+
const localVarHeaderParameter = {};
|
|
306
341
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
307
342
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
308
343
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -313,12 +348,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
313
348
|
method: "GET",
|
|
314
349
|
queryParams: localVarQueryParameter,
|
|
315
350
|
bodyParams: localVarBodyParameter,
|
|
351
|
+
headerParams: localVarHeaderParameter,
|
|
316
352
|
timeUnit: _timeUnit
|
|
317
353
|
};
|
|
318
354
|
},
|
|
319
355
|
getMarginBorrowLoanInterestHistory: async (asset, startTime, endTime, current, size, archived, recvWindow) => {
|
|
320
356
|
const localVarQueryParameter = {};
|
|
321
357
|
const localVarBodyParameter = {};
|
|
358
|
+
const localVarHeaderParameter = {};
|
|
322
359
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
323
360
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
324
361
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -333,12 +370,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
333
370
|
method: "GET",
|
|
334
371
|
queryParams: localVarQueryParameter,
|
|
335
372
|
bodyParams: localVarBodyParameter,
|
|
373
|
+
headerParams: localVarHeaderParameter,
|
|
336
374
|
timeUnit: _timeUnit
|
|
337
375
|
};
|
|
338
376
|
},
|
|
339
377
|
getUmAccountDetail: async (recvWindow) => {
|
|
340
378
|
const localVarQueryParameter = {};
|
|
341
379
|
const localVarBodyParameter = {};
|
|
380
|
+
const localVarHeaderParameter = {};
|
|
342
381
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
343
382
|
let _timeUnit;
|
|
344
383
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -347,12 +386,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
347
386
|
method: "GET",
|
|
348
387
|
queryParams: localVarQueryParameter,
|
|
349
388
|
bodyParams: localVarBodyParameter,
|
|
389
|
+
headerParams: localVarHeaderParameter,
|
|
350
390
|
timeUnit: _timeUnit
|
|
351
391
|
};
|
|
352
392
|
},
|
|
353
393
|
getUmAccountDetailV2: async (recvWindow) => {
|
|
354
394
|
const localVarQueryParameter = {};
|
|
355
395
|
const localVarBodyParameter = {};
|
|
396
|
+
const localVarHeaderParameter = {};
|
|
356
397
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
357
398
|
let _timeUnit;
|
|
358
399
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -361,12 +402,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
361
402
|
method: "GET",
|
|
362
403
|
queryParams: localVarQueryParameter,
|
|
363
404
|
bodyParams: localVarBodyParameter,
|
|
405
|
+
headerParams: localVarHeaderParameter,
|
|
364
406
|
timeUnit: _timeUnit
|
|
365
407
|
};
|
|
366
408
|
},
|
|
367
409
|
getUmCurrentPositionMode: async (recvWindow) => {
|
|
368
410
|
const localVarQueryParameter = {};
|
|
369
411
|
const localVarBodyParameter = {};
|
|
412
|
+
const localVarHeaderParameter = {};
|
|
370
413
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
371
414
|
let _timeUnit;
|
|
372
415
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -375,6 +418,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
375
418
|
method: "GET",
|
|
376
419
|
queryParams: localVarQueryParameter,
|
|
377
420
|
bodyParams: localVarBodyParameter,
|
|
421
|
+
headerParams: localVarHeaderParameter,
|
|
378
422
|
timeUnit: _timeUnit
|
|
379
423
|
};
|
|
380
424
|
},
|
|
@@ -382,6 +426,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
382
426
|
assertParamExists("getUmFuturesOrderDownloadLinkById", "downloadId", downloadId);
|
|
383
427
|
const localVarQueryParameter = {};
|
|
384
428
|
const localVarBodyParameter = {};
|
|
429
|
+
const localVarHeaderParameter = {};
|
|
385
430
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
386
431
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
387
432
|
let _timeUnit;
|
|
@@ -391,6 +436,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
391
436
|
method: "GET",
|
|
392
437
|
queryParams: localVarQueryParameter,
|
|
393
438
|
bodyParams: localVarBodyParameter,
|
|
439
|
+
headerParams: localVarHeaderParameter,
|
|
394
440
|
timeUnit: _timeUnit
|
|
395
441
|
};
|
|
396
442
|
},
|
|
@@ -398,6 +444,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
398
444
|
assertParamExists("getUmFuturesTradeDownloadLinkById", "downloadId", downloadId);
|
|
399
445
|
const localVarQueryParameter = {};
|
|
400
446
|
const localVarBodyParameter = {};
|
|
447
|
+
const localVarHeaderParameter = {};
|
|
401
448
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
402
449
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
403
450
|
let _timeUnit;
|
|
@@ -407,6 +454,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
407
454
|
method: "GET",
|
|
408
455
|
queryParams: localVarQueryParameter,
|
|
409
456
|
bodyParams: localVarBodyParameter,
|
|
457
|
+
headerParams: localVarHeaderParameter,
|
|
410
458
|
timeUnit: _timeUnit
|
|
411
459
|
};
|
|
412
460
|
},
|
|
@@ -414,6 +462,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
414
462
|
assertParamExists("getUmFuturesTransactionDownloadLinkById", "downloadId", downloadId);
|
|
415
463
|
const localVarQueryParameter = {};
|
|
416
464
|
const localVarBodyParameter = {};
|
|
465
|
+
const localVarHeaderParameter = {};
|
|
417
466
|
if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
|
|
418
467
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
419
468
|
let _timeUnit;
|
|
@@ -423,12 +472,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
423
472
|
method: "GET",
|
|
424
473
|
queryParams: localVarQueryParameter,
|
|
425
474
|
bodyParams: localVarBodyParameter,
|
|
475
|
+
headerParams: localVarHeaderParameter,
|
|
426
476
|
timeUnit: _timeUnit
|
|
427
477
|
};
|
|
428
478
|
},
|
|
429
479
|
getUmIncomeHistory: async (symbol, incomeType, startTime, endTime, page, limit, recvWindow) => {
|
|
430
480
|
const localVarQueryParameter = {};
|
|
431
481
|
const localVarBodyParameter = {};
|
|
482
|
+
const localVarHeaderParameter = {};
|
|
432
483
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
433
484
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
434
485
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -443,6 +494,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
443
494
|
method: "GET",
|
|
444
495
|
queryParams: localVarQueryParameter,
|
|
445
496
|
bodyParams: localVarBodyParameter,
|
|
497
|
+
headerParams: localVarHeaderParameter,
|
|
446
498
|
timeUnit: _timeUnit
|
|
447
499
|
};
|
|
448
500
|
},
|
|
@@ -450,6 +502,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
450
502
|
assertParamExists("getUserCommissionRateForCm", "symbol", symbol);
|
|
451
503
|
const localVarQueryParameter = {};
|
|
452
504
|
const localVarBodyParameter = {};
|
|
505
|
+
const localVarHeaderParameter = {};
|
|
453
506
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
454
507
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
455
508
|
let _timeUnit;
|
|
@@ -459,6 +512,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
459
512
|
method: "GET",
|
|
460
513
|
queryParams: localVarQueryParameter,
|
|
461
514
|
bodyParams: localVarBodyParameter,
|
|
515
|
+
headerParams: localVarHeaderParameter,
|
|
462
516
|
timeUnit: _timeUnit
|
|
463
517
|
};
|
|
464
518
|
},
|
|
@@ -466,6 +520,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
466
520
|
assertParamExists("getUserCommissionRateForUm", "symbol", symbol);
|
|
467
521
|
const localVarQueryParameter = {};
|
|
468
522
|
const localVarBodyParameter = {};
|
|
523
|
+
const localVarHeaderParameter = {};
|
|
469
524
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
470
525
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
471
526
|
let _timeUnit;
|
|
@@ -475,6 +530,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
475
530
|
method: "GET",
|
|
476
531
|
queryParams: localVarQueryParameter,
|
|
477
532
|
bodyParams: localVarBodyParameter,
|
|
533
|
+
headerParams: localVarHeaderParameter,
|
|
478
534
|
timeUnit: _timeUnit
|
|
479
535
|
};
|
|
480
536
|
},
|
|
@@ -482,6 +538,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
482
538
|
assertParamExists("marginMaxBorrow", "asset", asset);
|
|
483
539
|
const localVarQueryParameter = {};
|
|
484
540
|
const localVarBodyParameter = {};
|
|
541
|
+
const localVarHeaderParameter = {};
|
|
485
542
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
486
543
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
487
544
|
let _timeUnit;
|
|
@@ -491,12 +548,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
491
548
|
method: "GET",
|
|
492
549
|
queryParams: localVarQueryParameter,
|
|
493
550
|
bodyParams: localVarBodyParameter,
|
|
551
|
+
headerParams: localVarHeaderParameter,
|
|
494
552
|
timeUnit: _timeUnit
|
|
495
553
|
};
|
|
496
554
|
},
|
|
497
555
|
portfolioMarginUmTradingQuantitativeRulesIndicators: async (symbol, recvWindow) => {
|
|
498
556
|
const localVarQueryParameter = {};
|
|
499
557
|
const localVarBodyParameter = {};
|
|
558
|
+
const localVarHeaderParameter = {};
|
|
500
559
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
501
560
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
502
561
|
let _timeUnit;
|
|
@@ -506,12 +565,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
506
565
|
method: "GET",
|
|
507
566
|
queryParams: localVarQueryParameter,
|
|
508
567
|
bodyParams: localVarBodyParameter,
|
|
568
|
+
headerParams: localVarHeaderParameter,
|
|
509
569
|
timeUnit: _timeUnit
|
|
510
570
|
};
|
|
511
571
|
},
|
|
512
572
|
queryCmPositionInformation: async (marginAsset, pair, recvWindow) => {
|
|
513
573
|
const localVarQueryParameter = {};
|
|
514
574
|
const localVarBodyParameter = {};
|
|
575
|
+
const localVarHeaderParameter = {};
|
|
515
576
|
if (marginAsset !== void 0 && marginAsset !== null) localVarQueryParameter["marginAsset"] = marginAsset;
|
|
516
577
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
517
578
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -522,6 +583,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
522
583
|
method: "GET",
|
|
523
584
|
queryParams: localVarQueryParameter,
|
|
524
585
|
bodyParams: localVarBodyParameter,
|
|
586
|
+
headerParams: localVarHeaderParameter,
|
|
525
587
|
timeUnit: _timeUnit
|
|
526
588
|
};
|
|
527
589
|
},
|
|
@@ -529,6 +591,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
529
591
|
assertParamExists("queryMarginLoanRecord", "asset", asset);
|
|
530
592
|
const localVarQueryParameter = {};
|
|
531
593
|
const localVarBodyParameter = {};
|
|
594
|
+
const localVarHeaderParameter = {};
|
|
532
595
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
533
596
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
534
597
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -544,6 +607,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
544
607
|
method: "GET",
|
|
545
608
|
queryParams: localVarQueryParameter,
|
|
546
609
|
bodyParams: localVarBodyParameter,
|
|
610
|
+
headerParams: localVarHeaderParameter,
|
|
547
611
|
timeUnit: _timeUnit
|
|
548
612
|
};
|
|
549
613
|
},
|
|
@@ -551,6 +615,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
551
615
|
assertParamExists("queryMarginMaxWithdraw", "asset", asset);
|
|
552
616
|
const localVarQueryParameter = {};
|
|
553
617
|
const localVarBodyParameter = {};
|
|
618
|
+
const localVarHeaderParameter = {};
|
|
554
619
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
555
620
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
556
621
|
let _timeUnit;
|
|
@@ -560,6 +625,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
560
625
|
method: "GET",
|
|
561
626
|
queryParams: localVarQueryParameter,
|
|
562
627
|
bodyParams: localVarBodyParameter,
|
|
628
|
+
headerParams: localVarHeaderParameter,
|
|
563
629
|
timeUnit: _timeUnit
|
|
564
630
|
};
|
|
565
631
|
},
|
|
@@ -567,6 +633,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
567
633
|
assertParamExists("queryMarginRepayRecord", "asset", asset);
|
|
568
634
|
const localVarQueryParameter = {};
|
|
569
635
|
const localVarBodyParameter = {};
|
|
636
|
+
const localVarHeaderParameter = {};
|
|
570
637
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
571
638
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
572
639
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -582,12 +649,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
582
649
|
method: "GET",
|
|
583
650
|
queryParams: localVarQueryParameter,
|
|
584
651
|
bodyParams: localVarBodyParameter,
|
|
652
|
+
headerParams: localVarHeaderParameter,
|
|
585
653
|
timeUnit: _timeUnit
|
|
586
654
|
};
|
|
587
655
|
},
|
|
588
656
|
queryPortfolioMarginNegativeBalanceInterestHistory: async (asset, startTime, endTime, size, recvWindow) => {
|
|
589
657
|
const localVarQueryParameter = {};
|
|
590
658
|
const localVarBodyParameter = {};
|
|
659
|
+
const localVarHeaderParameter = {};
|
|
591
660
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
592
661
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
593
662
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -600,12 +669,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
600
669
|
method: "GET",
|
|
601
670
|
queryParams: localVarQueryParameter,
|
|
602
671
|
bodyParams: localVarBodyParameter,
|
|
672
|
+
headerParams: localVarHeaderParameter,
|
|
603
673
|
timeUnit: _timeUnit
|
|
604
674
|
};
|
|
605
675
|
},
|
|
606
676
|
queryUmPositionInformation: async (symbol, recvWindow) => {
|
|
607
677
|
const localVarQueryParameter = {};
|
|
608
678
|
const localVarBodyParameter = {};
|
|
679
|
+
const localVarHeaderParameter = {};
|
|
609
680
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
610
681
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
611
682
|
let _timeUnit;
|
|
@@ -615,6 +686,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
615
686
|
method: "GET",
|
|
616
687
|
queryParams: localVarQueryParameter,
|
|
617
688
|
bodyParams: localVarBodyParameter,
|
|
689
|
+
headerParams: localVarHeaderParameter,
|
|
618
690
|
timeUnit: _timeUnit
|
|
619
691
|
};
|
|
620
692
|
},
|
|
@@ -623,6 +695,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
623
695
|
assertParamExists("queryUserNegativeBalanceAutoExchangeRecord", "endTime", endTime);
|
|
624
696
|
const localVarQueryParameter = {};
|
|
625
697
|
const localVarBodyParameter = {};
|
|
698
|
+
const localVarHeaderParameter = {};
|
|
626
699
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
627
700
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
628
701
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -633,12 +706,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
633
706
|
method: "GET",
|
|
634
707
|
queryParams: localVarQueryParameter,
|
|
635
708
|
bodyParams: localVarBodyParameter,
|
|
709
|
+
headerParams: localVarHeaderParameter,
|
|
636
710
|
timeUnit: _timeUnit
|
|
637
711
|
};
|
|
638
712
|
},
|
|
639
713
|
queryUserRateLimit: async (recvWindow) => {
|
|
640
714
|
const localVarQueryParameter = {};
|
|
641
715
|
const localVarBodyParameter = {};
|
|
716
|
+
const localVarHeaderParameter = {};
|
|
642
717
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
643
718
|
let _timeUnit;
|
|
644
719
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -647,12 +722,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
647
722
|
method: "GET",
|
|
648
723
|
queryParams: localVarQueryParameter,
|
|
649
724
|
bodyParams: localVarBodyParameter,
|
|
725
|
+
headerParams: localVarHeaderParameter,
|
|
650
726
|
timeUnit: _timeUnit
|
|
651
727
|
};
|
|
652
728
|
},
|
|
653
729
|
repayFuturesNegativeBalance: async (recvWindow) => {
|
|
654
730
|
const localVarQueryParameter = {};
|
|
655
731
|
const localVarBodyParameter = {};
|
|
732
|
+
const localVarHeaderParameter = {};
|
|
656
733
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
657
734
|
let _timeUnit;
|
|
658
735
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -661,12 +738,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
661
738
|
method: "POST",
|
|
662
739
|
queryParams: localVarQueryParameter,
|
|
663
740
|
bodyParams: localVarBodyParameter,
|
|
741
|
+
headerParams: localVarHeaderParameter,
|
|
664
742
|
timeUnit: _timeUnit
|
|
665
743
|
};
|
|
666
744
|
},
|
|
667
745
|
umFuturesAccountConfiguration: async (recvWindow) => {
|
|
668
746
|
const localVarQueryParameter = {};
|
|
669
747
|
const localVarBodyParameter = {};
|
|
748
|
+
const localVarHeaderParameter = {};
|
|
670
749
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
671
750
|
let _timeUnit;
|
|
672
751
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -675,12 +754,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
675
754
|
method: "GET",
|
|
676
755
|
queryParams: localVarQueryParameter,
|
|
677
756
|
bodyParams: localVarBodyParameter,
|
|
757
|
+
headerParams: localVarHeaderParameter,
|
|
678
758
|
timeUnit: _timeUnit
|
|
679
759
|
};
|
|
680
760
|
},
|
|
681
761
|
umFuturesSymbolConfiguration: async (symbol, recvWindow) => {
|
|
682
762
|
const localVarQueryParameter = {};
|
|
683
763
|
const localVarBodyParameter = {};
|
|
764
|
+
const localVarHeaderParameter = {};
|
|
684
765
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
685
766
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
686
767
|
let _timeUnit;
|
|
@@ -690,12 +771,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
690
771
|
method: "GET",
|
|
691
772
|
queryParams: localVarQueryParameter,
|
|
692
773
|
bodyParams: localVarBodyParameter,
|
|
774
|
+
headerParams: localVarHeaderParameter,
|
|
693
775
|
timeUnit: _timeUnit
|
|
694
776
|
};
|
|
695
777
|
},
|
|
696
778
|
umNotionalAndLeverageBrackets: async (symbol, recvWindow) => {
|
|
697
779
|
const localVarQueryParameter = {};
|
|
698
780
|
const localVarBodyParameter = {};
|
|
781
|
+
const localVarHeaderParameter = {};
|
|
699
782
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
700
783
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
701
784
|
let _timeUnit;
|
|
@@ -705,6 +788,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
705
788
|
method: "GET",
|
|
706
789
|
queryParams: localVarQueryParameter,
|
|
707
790
|
bodyParams: localVarBodyParameter,
|
|
791
|
+
headerParams: localVarHeaderParameter,
|
|
708
792
|
timeUnit: _timeUnit
|
|
709
793
|
};
|
|
710
794
|
}
|
|
@@ -733,7 +817,7 @@ var AccountApi = class {
|
|
|
733
817
|
*/
|
|
734
818
|
async accountBalance(requestParameters = {}) {
|
|
735
819
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBalance(requestParameters?.asset, requestParameters?.recvWindow);
|
|
736
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
820
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
737
821
|
}
|
|
738
822
|
/**
|
|
739
823
|
* Query account information
|
|
@@ -749,7 +833,7 @@ var AccountApi = class {
|
|
|
749
833
|
*/
|
|
750
834
|
async accountInformation(requestParameters = {}) {
|
|
751
835
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInformation(requestParameters?.recvWindow);
|
|
752
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
836
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
753
837
|
}
|
|
754
838
|
/**
|
|
755
839
|
* Transfer BNB in and out of UM
|
|
@@ -767,7 +851,7 @@ var AccountApi = class {
|
|
|
767
851
|
*/
|
|
768
852
|
async bnbTransfer(requestParameters) {
|
|
769
853
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.bnbTransfer(requestParameters?.amount, requestParameters?.transferSide, requestParameters?.recvWindow);
|
|
770
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
854
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
771
855
|
}
|
|
772
856
|
/**
|
|
773
857
|
* Change Auto-repay-futures Status
|
|
@@ -783,7 +867,7 @@ var AccountApi = class {
|
|
|
783
867
|
*/
|
|
784
868
|
async changeAutoRepayFuturesStatus(requestParameters) {
|
|
785
869
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeAutoRepayFuturesStatus(requestParameters?.autoRepay, requestParameters?.recvWindow);
|
|
786
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
870
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
787
871
|
}
|
|
788
872
|
/**
|
|
789
873
|
* Change user's initial leverage of specific symbol in CM.
|
|
@@ -799,7 +883,7 @@ var AccountApi = class {
|
|
|
799
883
|
*/
|
|
800
884
|
async changeCmInitialLeverage(requestParameters) {
|
|
801
885
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeCmInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
802
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
886
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
803
887
|
}
|
|
804
888
|
/**
|
|
805
889
|
* Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
|
|
@@ -815,7 +899,7 @@ var AccountApi = class {
|
|
|
815
899
|
*/
|
|
816
900
|
async changeCmPositionMode(requestParameters) {
|
|
817
901
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeCmPositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
818
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
902
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
819
903
|
}
|
|
820
904
|
/**
|
|
821
905
|
* Change user's initial leverage of specific symbol in UM.
|
|
@@ -831,7 +915,7 @@ var AccountApi = class {
|
|
|
831
915
|
*/
|
|
832
916
|
async changeUmInitialLeverage(requestParameters) {
|
|
833
917
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeUmInitialLeverage(requestParameters?.symbol, requestParameters?.leverage, requestParameters?.recvWindow);
|
|
834
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
918
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
835
919
|
}
|
|
836
920
|
/**
|
|
837
921
|
* Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
|
|
@@ -847,7 +931,7 @@ var AccountApi = class {
|
|
|
847
931
|
*/
|
|
848
932
|
async changeUmPositionMode(requestParameters) {
|
|
849
933
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeUmPositionMode(requestParameters?.dualSidePosition, requestParameters?.recvWindow);
|
|
850
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
934
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
851
935
|
}
|
|
852
936
|
/**
|
|
853
937
|
* Query CM notional and leverage brackets
|
|
@@ -863,7 +947,7 @@ var AccountApi = class {
|
|
|
863
947
|
*/
|
|
864
948
|
async cmNotionalAndLeverageBrackets(requestParameters = {}) {
|
|
865
949
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmNotionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
866
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
950
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
867
951
|
}
|
|
868
952
|
/**
|
|
869
953
|
* Fund collection for Portfolio Margin
|
|
@@ -882,7 +966,7 @@ var AccountApi = class {
|
|
|
882
966
|
*/
|
|
883
967
|
async fundAutoCollection(requestParameters = {}) {
|
|
884
968
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundAutoCollection(requestParameters?.recvWindow);
|
|
885
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
969
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
886
970
|
}
|
|
887
971
|
/**
|
|
888
972
|
* Transfers specific asset from Futures Account to Margin account
|
|
@@ -900,7 +984,7 @@ var AccountApi = class {
|
|
|
900
984
|
*/
|
|
901
985
|
async fundCollectionByAsset(requestParameters) {
|
|
902
986
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundCollectionByAsset(requestParameters?.asset, requestParameters?.recvWindow);
|
|
903
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
987
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
904
988
|
}
|
|
905
989
|
/**
|
|
906
990
|
* Query Auto-repay-futures Status
|
|
@@ -916,7 +1000,7 @@ var AccountApi = class {
|
|
|
916
1000
|
*/
|
|
917
1001
|
async getAutoRepayFuturesStatus(requestParameters = {}) {
|
|
918
1002
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoRepayFuturesStatus(requestParameters?.recvWindow);
|
|
919
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1003
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
920
1004
|
}
|
|
921
1005
|
/**
|
|
922
1006
|
* Get current CM account asset and position information.
|
|
@@ -932,7 +1016,7 @@ var AccountApi = class {
|
|
|
932
1016
|
*/
|
|
933
1017
|
async getCmAccountDetail(requestParameters = {}) {
|
|
934
1018
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmAccountDetail(requestParameters?.recvWindow);
|
|
935
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1019
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
936
1020
|
}
|
|
937
1021
|
/**
|
|
938
1022
|
* Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
|
|
@@ -948,7 +1032,7 @@ var AccountApi = class {
|
|
|
948
1032
|
*/
|
|
949
1033
|
async getCmCurrentPositionMode(requestParameters = {}) {
|
|
950
1034
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmCurrentPositionMode(requestParameters?.recvWindow);
|
|
951
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1035
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
952
1036
|
}
|
|
953
1037
|
/**
|
|
954
1038
|
* Get CM Income History
|
|
@@ -970,7 +1054,7 @@ var AccountApi = class {
|
|
|
970
1054
|
*/
|
|
971
1055
|
async getCmIncomeHistory(requestParameters = {}) {
|
|
972
1056
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
973
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1057
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
974
1058
|
}
|
|
975
1059
|
/**
|
|
976
1060
|
* Get download id for UM futures order history
|
|
@@ -989,7 +1073,7 @@ var AccountApi = class {
|
|
|
989
1073
|
*/
|
|
990
1074
|
async getDownloadIdForUmFuturesOrderHistory(requestParameters) {
|
|
991
1075
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesOrderHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
992
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1076
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
993
1077
|
}
|
|
994
1078
|
/**
|
|
995
1079
|
* Get download id for UM futures trade history
|
|
@@ -1008,7 +1092,7 @@ var AccountApi = class {
|
|
|
1008
1092
|
*/
|
|
1009
1093
|
async getDownloadIdForUmFuturesTradeHistory(requestParameters) {
|
|
1010
1094
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1011
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1095
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1012
1096
|
}
|
|
1013
1097
|
/**
|
|
1014
1098
|
* Get download id for UM futures transaction history
|
|
@@ -1027,7 +1111,7 @@ var AccountApi = class {
|
|
|
1027
1111
|
*/
|
|
1028
1112
|
async getDownloadIdForUmFuturesTransactionHistory(requestParameters) {
|
|
1029
1113
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForUmFuturesTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1030
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1114
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1031
1115
|
}
|
|
1032
1116
|
/**
|
|
1033
1117
|
* Get Margin Borrow/Loan Interest History
|
|
@@ -1056,7 +1140,7 @@ var AccountApi = class {
|
|
|
1056
1140
|
*/
|
|
1057
1141
|
async getMarginBorrowLoanInterestHistory(requestParameters = {}) {
|
|
1058
1142
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginBorrowLoanInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1059
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1143
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1060
1144
|
}
|
|
1061
1145
|
/**
|
|
1062
1146
|
* Get current UM account asset and position information.
|
|
@@ -1072,7 +1156,7 @@ var AccountApi = class {
|
|
|
1072
1156
|
*/
|
|
1073
1157
|
async getUmAccountDetail(requestParameters = {}) {
|
|
1074
1158
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmAccountDetail(requestParameters?.recvWindow);
|
|
1075
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1159
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1076
1160
|
}
|
|
1077
1161
|
/**
|
|
1078
1162
|
* Get current UM account asset and position information.
|
|
@@ -1088,7 +1172,7 @@ var AccountApi = class {
|
|
|
1088
1172
|
*/
|
|
1089
1173
|
async getUmAccountDetailV2(requestParameters = {}) {
|
|
1090
1174
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmAccountDetailV2(requestParameters?.recvWindow);
|
|
1091
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1175
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1092
1176
|
}
|
|
1093
1177
|
/**
|
|
1094
1178
|
* Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
|
|
@@ -1104,7 +1188,7 @@ var AccountApi = class {
|
|
|
1104
1188
|
*/
|
|
1105
1189
|
async getUmCurrentPositionMode(requestParameters = {}) {
|
|
1106
1190
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmCurrentPositionMode(requestParameters?.recvWindow);
|
|
1107
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1191
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1108
1192
|
}
|
|
1109
1193
|
/**
|
|
1110
1194
|
* Get UM futures order download link by Id
|
|
@@ -1122,7 +1206,7 @@ var AccountApi = class {
|
|
|
1122
1206
|
*/
|
|
1123
1207
|
async getUmFuturesOrderDownloadLinkById(requestParameters) {
|
|
1124
1208
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesOrderDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1125
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1209
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1126
1210
|
}
|
|
1127
1211
|
/**
|
|
1128
1212
|
* Get UM futures trade download link by Id
|
|
@@ -1140,7 +1224,7 @@ var AccountApi = class {
|
|
|
1140
1224
|
*/
|
|
1141
1225
|
async getUmFuturesTradeDownloadLinkById(requestParameters) {
|
|
1142
1226
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesTradeDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1143
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1227
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1144
1228
|
}
|
|
1145
1229
|
/**
|
|
1146
1230
|
* Get UM futures Transaction download link by Id
|
|
@@ -1158,7 +1242,7 @@ var AccountApi = class {
|
|
|
1158
1242
|
*/
|
|
1159
1243
|
async getUmFuturesTransactionDownloadLinkById(requestParameters) {
|
|
1160
1244
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesTransactionDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
|
|
1161
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1245
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1162
1246
|
}
|
|
1163
1247
|
/**
|
|
1164
1248
|
* Get UM Income History
|
|
@@ -1179,7 +1263,7 @@ var AccountApi = class {
|
|
|
1179
1263
|
*/
|
|
1180
1264
|
async getUmIncomeHistory(requestParameters = {}) {
|
|
1181
1265
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.page, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1182
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1266
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1183
1267
|
}
|
|
1184
1268
|
/**
|
|
1185
1269
|
* Get User Commission Rate for CM
|
|
@@ -1195,7 +1279,7 @@ var AccountApi = class {
|
|
|
1195
1279
|
*/
|
|
1196
1280
|
async getUserCommissionRateForCm(requestParameters) {
|
|
1197
1281
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUserCommissionRateForCm(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1198
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1282
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1199
1283
|
}
|
|
1200
1284
|
/**
|
|
1201
1285
|
* Get User Commission Rate for UM
|
|
@@ -1211,7 +1295,7 @@ var AccountApi = class {
|
|
|
1211
1295
|
*/
|
|
1212
1296
|
async getUserCommissionRateForUm(requestParameters) {
|
|
1213
1297
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUserCommissionRateForUm(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1214
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1298
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1215
1299
|
}
|
|
1216
1300
|
/**
|
|
1217
1301
|
* Query margin max borrow
|
|
@@ -1227,7 +1311,7 @@ var AccountApi = class {
|
|
|
1227
1311
|
*/
|
|
1228
1312
|
async marginMaxBorrow(requestParameters) {
|
|
1229
1313
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginMaxBorrow(requestParameters?.asset, requestParameters?.recvWindow);
|
|
1230
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1314
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1231
1315
|
}
|
|
1232
1316
|
/**
|
|
1233
1317
|
* Portfolio Margin UM Trading Quantitative Rules Indicators
|
|
@@ -1244,7 +1328,7 @@ var AccountApi = class {
|
|
|
1244
1328
|
*/
|
|
1245
1329
|
async portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters = {}) {
|
|
1246
1330
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.portfolioMarginUmTradingQuantitativeRulesIndicators(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1247
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1331
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1248
1332
|
}
|
|
1249
1333
|
/**
|
|
1250
1334
|
* Get current CM position information.
|
|
@@ -1265,7 +1349,7 @@ var AccountApi = class {
|
|
|
1265
1349
|
*/
|
|
1266
1350
|
async queryCmPositionInformation(requestParameters = {}) {
|
|
1267
1351
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmPositionInformation(requestParameters?.marginAsset, requestParameters?.pair, requestParameters?.recvWindow);
|
|
1268
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1352
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1269
1353
|
}
|
|
1270
1354
|
/**
|
|
1271
1355
|
* Query margin loan record
|
|
@@ -1287,7 +1371,7 @@ var AccountApi = class {
|
|
|
1287
1371
|
*/
|
|
1288
1372
|
async queryMarginLoanRecord(requestParameters) {
|
|
1289
1373
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginLoanRecord(requestParameters?.asset, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1290
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1374
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1291
1375
|
}
|
|
1292
1376
|
/**
|
|
1293
1377
|
* Query Margin Max Withdraw
|
|
@@ -1303,7 +1387,7 @@ var AccountApi = class {
|
|
|
1303
1387
|
*/
|
|
1304
1388
|
async queryMarginMaxWithdraw(requestParameters) {
|
|
1305
1389
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginMaxWithdraw(requestParameters?.asset, requestParameters?.recvWindow);
|
|
1306
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1390
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1307
1391
|
}
|
|
1308
1392
|
/**
|
|
1309
1393
|
* Query margin repay record.
|
|
@@ -1325,7 +1409,7 @@ var AccountApi = class {
|
|
|
1325
1409
|
*/
|
|
1326
1410
|
async queryMarginRepayRecord(requestParameters) {
|
|
1327
1411
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginRepayRecord(requestParameters?.asset, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.archived, requestParameters?.recvWindow);
|
|
1328
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1412
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1329
1413
|
}
|
|
1330
1414
|
/**
|
|
1331
1415
|
* Query interest history of negative balance for portfolio margin.
|
|
@@ -1347,7 +1431,7 @@ var AccountApi = class {
|
|
|
1347
1431
|
*/
|
|
1348
1432
|
async queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters = {}) {
|
|
1349
1433
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginNegativeBalanceInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.size, requestParameters?.recvWindow);
|
|
1350
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1434
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1351
1435
|
}
|
|
1352
1436
|
/**
|
|
1353
1437
|
* Get current UM position information.
|
|
@@ -1367,7 +1451,7 @@ var AccountApi = class {
|
|
|
1367
1451
|
*/
|
|
1368
1452
|
async queryUmPositionInformation(requestParameters = {}) {
|
|
1369
1453
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1370
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1454
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1371
1455
|
}
|
|
1372
1456
|
/**
|
|
1373
1457
|
* Query user negative balance auto exchange record
|
|
@@ -1386,7 +1470,7 @@ var AccountApi = class {
|
|
|
1386
1470
|
*/
|
|
1387
1471
|
async queryUserNegativeBalanceAutoExchangeRecord(requestParameters) {
|
|
1388
1472
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserNegativeBalanceAutoExchangeRecord(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1389
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1473
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1390
1474
|
}
|
|
1391
1475
|
/**
|
|
1392
1476
|
* Query User Rate Limit
|
|
@@ -1402,7 +1486,7 @@ var AccountApi = class {
|
|
|
1402
1486
|
*/
|
|
1403
1487
|
async queryUserRateLimit(requestParameters = {}) {
|
|
1404
1488
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserRateLimit(requestParameters?.recvWindow);
|
|
1405
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1489
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1406
1490
|
}
|
|
1407
1491
|
/**
|
|
1408
1492
|
* Repay futures Negative Balance
|
|
@@ -1418,7 +1502,7 @@ var AccountApi = class {
|
|
|
1418
1502
|
*/
|
|
1419
1503
|
async repayFuturesNegativeBalance(requestParameters = {}) {
|
|
1420
1504
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.repayFuturesNegativeBalance(requestParameters?.recvWindow);
|
|
1421
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1505
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1422
1506
|
}
|
|
1423
1507
|
/**
|
|
1424
1508
|
* Query UM Futures account configuration
|
|
@@ -1434,7 +1518,7 @@ var AccountApi = class {
|
|
|
1434
1518
|
*/
|
|
1435
1519
|
async umFuturesAccountConfiguration(requestParameters = {}) {
|
|
1436
1520
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umFuturesAccountConfiguration(requestParameters?.recvWindow);
|
|
1437
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1521
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1438
1522
|
}
|
|
1439
1523
|
/**
|
|
1440
1524
|
* Get current UM account symbol configuration.
|
|
@@ -1450,7 +1534,7 @@ var AccountApi = class {
|
|
|
1450
1534
|
*/
|
|
1451
1535
|
async umFuturesSymbolConfiguration(requestParameters = {}) {
|
|
1452
1536
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umFuturesSymbolConfiguration(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1453
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1537
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1454
1538
|
}
|
|
1455
1539
|
/**
|
|
1456
1540
|
* Query UM notional and leverage brackets
|
|
@@ -1466,7 +1550,7 @@ var AccountApi = class {
|
|
|
1466
1550
|
*/
|
|
1467
1551
|
async umNotionalAndLeverageBrackets(requestParameters = {}) {
|
|
1468
1552
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umNotionalAndLeverageBrackets(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1469
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1553
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1470
1554
|
}
|
|
1471
1555
|
};
|
|
1472
1556
|
|
|
@@ -1491,6 +1575,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1491
1575
|
return { testConnectivity: async () => {
|
|
1492
1576
|
const localVarQueryParameter = {};
|
|
1493
1577
|
const localVarBodyParameter = {};
|
|
1578
|
+
const localVarHeaderParameter = {};
|
|
1494
1579
|
let _timeUnit;
|
|
1495
1580
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1496
1581
|
return {
|
|
@@ -1498,6 +1583,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
1498
1583
|
method: "GET",
|
|
1499
1584
|
queryParams: localVarQueryParameter,
|
|
1500
1585
|
bodyParams: localVarBodyParameter,
|
|
1586
|
+
headerParams: localVarHeaderParameter,
|
|
1501
1587
|
timeUnit: _timeUnit
|
|
1502
1588
|
};
|
|
1503
1589
|
} };
|
|
@@ -1524,7 +1610,7 @@ var MarketDataApi = class {
|
|
|
1524
1610
|
*/
|
|
1525
1611
|
async testConnectivity() {
|
|
1526
1612
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
1527
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1613
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1528
1614
|
}
|
|
1529
1615
|
};
|
|
1530
1616
|
|
|
@@ -1551,6 +1637,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1551
1637
|
assertParamExists("cancelAllCmOpenConditionalOrders", "symbol", symbol);
|
|
1552
1638
|
const localVarQueryParameter = {};
|
|
1553
1639
|
const localVarBodyParameter = {};
|
|
1640
|
+
const localVarHeaderParameter = {};
|
|
1554
1641
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1555
1642
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1556
1643
|
let _timeUnit;
|
|
@@ -1560,6 +1647,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1560
1647
|
method: "DELETE",
|
|
1561
1648
|
queryParams: localVarQueryParameter,
|
|
1562
1649
|
bodyParams: localVarBodyParameter,
|
|
1650
|
+
headerParams: localVarHeaderParameter,
|
|
1563
1651
|
timeUnit: _timeUnit
|
|
1564
1652
|
};
|
|
1565
1653
|
},
|
|
@@ -1567,6 +1655,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1567
1655
|
assertParamExists("cancelAllCmOpenOrders", "symbol", symbol);
|
|
1568
1656
|
const localVarQueryParameter = {};
|
|
1569
1657
|
const localVarBodyParameter = {};
|
|
1658
|
+
const localVarHeaderParameter = {};
|
|
1570
1659
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1571
1660
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1572
1661
|
let _timeUnit;
|
|
@@ -1576,6 +1665,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1576
1665
|
method: "DELETE",
|
|
1577
1666
|
queryParams: localVarQueryParameter,
|
|
1578
1667
|
bodyParams: localVarBodyParameter,
|
|
1668
|
+
headerParams: localVarHeaderParameter,
|
|
1579
1669
|
timeUnit: _timeUnit
|
|
1580
1670
|
};
|
|
1581
1671
|
},
|
|
@@ -1583,6 +1673,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1583
1673
|
assertParamExists("cancelAllUmAlgoOpenOrders", "symbol", symbol);
|
|
1584
1674
|
const localVarQueryParameter = {};
|
|
1585
1675
|
const localVarBodyParameter = {};
|
|
1676
|
+
const localVarHeaderParameter = {};
|
|
1586
1677
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1587
1678
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1588
1679
|
let _timeUnit;
|
|
@@ -1592,6 +1683,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1592
1683
|
method: "DELETE",
|
|
1593
1684
|
queryParams: localVarQueryParameter,
|
|
1594
1685
|
bodyParams: localVarBodyParameter,
|
|
1686
|
+
headerParams: localVarHeaderParameter,
|
|
1595
1687
|
timeUnit: _timeUnit
|
|
1596
1688
|
};
|
|
1597
1689
|
},
|
|
@@ -1599,6 +1691,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1599
1691
|
assertParamExists("cancelAllUmOpenConditionalOrders", "symbol", symbol);
|
|
1600
1692
|
const localVarQueryParameter = {};
|
|
1601
1693
|
const localVarBodyParameter = {};
|
|
1694
|
+
const localVarHeaderParameter = {};
|
|
1602
1695
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1603
1696
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1604
1697
|
let _timeUnit;
|
|
@@ -1608,6 +1701,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1608
1701
|
method: "DELETE",
|
|
1609
1702
|
queryParams: localVarQueryParameter,
|
|
1610
1703
|
bodyParams: localVarBodyParameter,
|
|
1704
|
+
headerParams: localVarHeaderParameter,
|
|
1611
1705
|
timeUnit: _timeUnit
|
|
1612
1706
|
};
|
|
1613
1707
|
},
|
|
@@ -1615,6 +1709,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1615
1709
|
assertParamExists("cancelAllUmOpenOrders", "symbol", symbol);
|
|
1616
1710
|
const localVarQueryParameter = {};
|
|
1617
1711
|
const localVarBodyParameter = {};
|
|
1712
|
+
const localVarHeaderParameter = {};
|
|
1618
1713
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1619
1714
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1620
1715
|
let _timeUnit;
|
|
@@ -1624,6 +1719,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1624
1719
|
method: "DELETE",
|
|
1625
1720
|
queryParams: localVarQueryParameter,
|
|
1626
1721
|
bodyParams: localVarBodyParameter,
|
|
1722
|
+
headerParams: localVarHeaderParameter,
|
|
1627
1723
|
timeUnit: _timeUnit
|
|
1628
1724
|
};
|
|
1629
1725
|
},
|
|
@@ -1631,6 +1727,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1631
1727
|
assertParamExists("cancelCmConditionalOrder", "symbol", symbol);
|
|
1632
1728
|
const localVarQueryParameter = {};
|
|
1633
1729
|
const localVarBodyParameter = {};
|
|
1730
|
+
const localVarHeaderParameter = {};
|
|
1634
1731
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1635
1732
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1636
1733
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -1642,6 +1739,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1642
1739
|
method: "DELETE",
|
|
1643
1740
|
queryParams: localVarQueryParameter,
|
|
1644
1741
|
bodyParams: localVarBodyParameter,
|
|
1742
|
+
headerParams: localVarHeaderParameter,
|
|
1645
1743
|
timeUnit: _timeUnit
|
|
1646
1744
|
};
|
|
1647
1745
|
},
|
|
@@ -1649,6 +1747,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1649
1747
|
assertParamExists("cancelCmOrder", "symbol", symbol);
|
|
1650
1748
|
const localVarQueryParameter = {};
|
|
1651
1749
|
const localVarBodyParameter = {};
|
|
1750
|
+
const localVarHeaderParameter = {};
|
|
1652
1751
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1653
1752
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1654
1753
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1660,6 +1759,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1660
1759
|
method: "DELETE",
|
|
1661
1760
|
queryParams: localVarQueryParameter,
|
|
1662
1761
|
bodyParams: localVarBodyParameter,
|
|
1762
|
+
headerParams: localVarHeaderParameter,
|
|
1663
1763
|
timeUnit: _timeUnit
|
|
1664
1764
|
};
|
|
1665
1765
|
},
|
|
@@ -1667,6 +1767,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1667
1767
|
assertParamExists("cancelMarginAccountAllOpenOrdersOnASymbol", "symbol", symbol);
|
|
1668
1768
|
const localVarQueryParameter = {};
|
|
1669
1769
|
const localVarBodyParameter = {};
|
|
1770
|
+
const localVarHeaderParameter = {};
|
|
1670
1771
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1671
1772
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1672
1773
|
let _timeUnit;
|
|
@@ -1676,6 +1777,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1676
1777
|
method: "DELETE",
|
|
1677
1778
|
queryParams: localVarQueryParameter,
|
|
1678
1779
|
bodyParams: localVarBodyParameter,
|
|
1780
|
+
headerParams: localVarHeaderParameter,
|
|
1679
1781
|
timeUnit: _timeUnit
|
|
1680
1782
|
};
|
|
1681
1783
|
},
|
|
@@ -1683,6 +1785,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1683
1785
|
assertParamExists("cancelMarginAccountOcoOrders", "symbol", symbol);
|
|
1684
1786
|
const localVarQueryParameter = {};
|
|
1685
1787
|
const localVarBodyParameter = {};
|
|
1788
|
+
const localVarHeaderParameter = {};
|
|
1686
1789
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1687
1790
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
1688
1791
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1695,6 +1798,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1695
1798
|
method: "DELETE",
|
|
1696
1799
|
queryParams: localVarQueryParameter,
|
|
1697
1800
|
bodyParams: localVarBodyParameter,
|
|
1801
|
+
headerParams: localVarHeaderParameter,
|
|
1698
1802
|
timeUnit: _timeUnit
|
|
1699
1803
|
};
|
|
1700
1804
|
},
|
|
@@ -1702,6 +1806,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1702
1806
|
assertParamExists("cancelMarginAccountOrder", "symbol", symbol);
|
|
1703
1807
|
const localVarQueryParameter = {};
|
|
1704
1808
|
const localVarBodyParameter = {};
|
|
1809
|
+
const localVarHeaderParameter = {};
|
|
1705
1810
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1706
1811
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1707
1812
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1714,12 +1819,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1714
1819
|
method: "DELETE",
|
|
1715
1820
|
queryParams: localVarQueryParameter,
|
|
1716
1821
|
bodyParams: localVarBodyParameter,
|
|
1822
|
+
headerParams: localVarHeaderParameter,
|
|
1717
1823
|
timeUnit: _timeUnit
|
|
1718
1824
|
};
|
|
1719
1825
|
},
|
|
1720
1826
|
cancelUmAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
|
|
1721
1827
|
const localVarQueryParameter = {};
|
|
1722
1828
|
const localVarBodyParameter = {};
|
|
1829
|
+
const localVarHeaderParameter = {};
|
|
1723
1830
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
1724
1831
|
if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
|
|
1725
1832
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1730,6 +1837,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1730
1837
|
method: "DELETE",
|
|
1731
1838
|
queryParams: localVarQueryParameter,
|
|
1732
1839
|
bodyParams: localVarBodyParameter,
|
|
1840
|
+
headerParams: localVarHeaderParameter,
|
|
1733
1841
|
timeUnit: _timeUnit
|
|
1734
1842
|
};
|
|
1735
1843
|
},
|
|
@@ -1737,6 +1845,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1737
1845
|
assertParamExists("cancelUmConditionalOrder", "symbol", symbol);
|
|
1738
1846
|
const localVarQueryParameter = {};
|
|
1739
1847
|
const localVarBodyParameter = {};
|
|
1848
|
+
const localVarHeaderParameter = {};
|
|
1740
1849
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1741
1850
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
1742
1851
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -1748,6 +1857,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1748
1857
|
method: "DELETE",
|
|
1749
1858
|
queryParams: localVarQueryParameter,
|
|
1750
1859
|
bodyParams: localVarBodyParameter,
|
|
1860
|
+
headerParams: localVarHeaderParameter,
|
|
1751
1861
|
timeUnit: _timeUnit
|
|
1752
1862
|
};
|
|
1753
1863
|
},
|
|
@@ -1755,6 +1865,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1755
1865
|
assertParamExists("cancelUmOrder", "symbol", symbol);
|
|
1756
1866
|
const localVarQueryParameter = {};
|
|
1757
1867
|
const localVarBodyParameter = {};
|
|
1868
|
+
const localVarHeaderParameter = {};
|
|
1758
1869
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1759
1870
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1760
1871
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -1766,12 +1877,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1766
1877
|
method: "DELETE",
|
|
1767
1878
|
queryParams: localVarQueryParameter,
|
|
1768
1879
|
bodyParams: localVarBodyParameter,
|
|
1880
|
+
headerParams: localVarHeaderParameter,
|
|
1769
1881
|
timeUnit: _timeUnit
|
|
1770
1882
|
};
|
|
1771
1883
|
},
|
|
1772
1884
|
cmAccountTradeList: async (symbol, pair, startTime, endTime, fromId, limit, recvWindow) => {
|
|
1773
1885
|
const localVarQueryParameter = {};
|
|
1774
1886
|
const localVarBodyParameter = {};
|
|
1887
|
+
const localVarHeaderParameter = {};
|
|
1775
1888
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1776
1889
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
1777
1890
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1786,12 +1899,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1786
1899
|
method: "GET",
|
|
1787
1900
|
queryParams: localVarQueryParameter,
|
|
1788
1901
|
bodyParams: localVarBodyParameter,
|
|
1902
|
+
headerParams: localVarHeaderParameter,
|
|
1789
1903
|
timeUnit: _timeUnit
|
|
1790
1904
|
};
|
|
1791
1905
|
},
|
|
1792
1906
|
cmPositionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
1793
1907
|
const localVarQueryParameter = {};
|
|
1794
1908
|
const localVarBodyParameter = {};
|
|
1909
|
+
const localVarHeaderParameter = {};
|
|
1795
1910
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1796
1911
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1797
1912
|
let _timeUnit;
|
|
@@ -1801,12 +1916,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1801
1916
|
method: "GET",
|
|
1802
1917
|
queryParams: localVarQueryParameter,
|
|
1803
1918
|
bodyParams: localVarBodyParameter,
|
|
1919
|
+
headerParams: localVarHeaderParameter,
|
|
1804
1920
|
timeUnit: _timeUnit
|
|
1805
1921
|
};
|
|
1806
1922
|
},
|
|
1807
1923
|
futuresTradfiPerpsContract: async (recvWindow) => {
|
|
1808
1924
|
const localVarQueryParameter = {};
|
|
1809
1925
|
const localVarBodyParameter = {};
|
|
1926
|
+
const localVarHeaderParameter = {};
|
|
1810
1927
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1811
1928
|
let _timeUnit;
|
|
1812
1929
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1815,12 +1932,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1815
1932
|
method: "POST",
|
|
1816
1933
|
queryParams: localVarQueryParameter,
|
|
1817
1934
|
bodyParams: localVarBodyParameter,
|
|
1935
|
+
headerParams: localVarHeaderParameter,
|
|
1818
1936
|
timeUnit: _timeUnit
|
|
1819
1937
|
};
|
|
1820
1938
|
},
|
|
1821
1939
|
getUmFuturesBnbBurnStatus: async (recvWindow) => {
|
|
1822
1940
|
const localVarQueryParameter = {};
|
|
1823
1941
|
const localVarBodyParameter = {};
|
|
1942
|
+
const localVarHeaderParameter = {};
|
|
1824
1943
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1825
1944
|
let _timeUnit;
|
|
1826
1945
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1829,6 +1948,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1829
1948
|
method: "GET",
|
|
1830
1949
|
queryParams: localVarQueryParameter,
|
|
1831
1950
|
bodyParams: localVarBodyParameter,
|
|
1951
|
+
headerParams: localVarHeaderParameter,
|
|
1832
1952
|
timeUnit: _timeUnit
|
|
1833
1953
|
};
|
|
1834
1954
|
},
|
|
@@ -1837,6 +1957,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1837
1957
|
assertParamExists("marginAccountBorrow", "amount", amount);
|
|
1838
1958
|
const localVarQueryParameter = {};
|
|
1839
1959
|
const localVarBodyParameter = {};
|
|
1960
|
+
const localVarHeaderParameter = {};
|
|
1840
1961
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1841
1962
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1842
1963
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1847,6 +1968,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1847
1968
|
method: "POST",
|
|
1848
1969
|
queryParams: localVarQueryParameter,
|
|
1849
1970
|
bodyParams: localVarBodyParameter,
|
|
1971
|
+
headerParams: localVarHeaderParameter,
|
|
1850
1972
|
timeUnit: _timeUnit
|
|
1851
1973
|
};
|
|
1852
1974
|
},
|
|
@@ -1858,6 +1980,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1858
1980
|
assertParamExists("marginAccountNewOco", "stopPrice", stopPrice);
|
|
1859
1981
|
const localVarQueryParameter = {};
|
|
1860
1982
|
const localVarBodyParameter = {};
|
|
1983
|
+
const localVarHeaderParameter = {};
|
|
1861
1984
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1862
1985
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
1863
1986
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -1880,6 +2003,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1880
2003
|
method: "POST",
|
|
1881
2004
|
queryParams: localVarQueryParameter,
|
|
1882
2005
|
bodyParams: localVarBodyParameter,
|
|
2006
|
+
headerParams: localVarHeaderParameter,
|
|
1883
2007
|
timeUnit: _timeUnit
|
|
1884
2008
|
};
|
|
1885
2009
|
},
|
|
@@ -1888,6 +2012,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1888
2012
|
assertParamExists("marginAccountRepay", "amount", amount);
|
|
1889
2013
|
const localVarQueryParameter = {};
|
|
1890
2014
|
const localVarBodyParameter = {};
|
|
2015
|
+
const localVarHeaderParameter = {};
|
|
1891
2016
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1892
2017
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1893
2018
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1898,6 +2023,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1898
2023
|
method: "POST",
|
|
1899
2024
|
queryParams: localVarQueryParameter,
|
|
1900
2025
|
bodyParams: localVarBodyParameter,
|
|
2026
|
+
headerParams: localVarHeaderParameter,
|
|
1901
2027
|
timeUnit: _timeUnit
|
|
1902
2028
|
};
|
|
1903
2029
|
},
|
|
@@ -1905,6 +2031,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1905
2031
|
assertParamExists("marginAccountRepayDebt", "asset", asset);
|
|
1906
2032
|
const localVarQueryParameter = {};
|
|
1907
2033
|
const localVarBodyParameter = {};
|
|
2034
|
+
const localVarHeaderParameter = {};
|
|
1908
2035
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1909
2036
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1910
2037
|
if (specifyRepayAssets !== void 0 && specifyRepayAssets !== null) localVarQueryParameter["specifyRepayAssets"] = specifyRepayAssets;
|
|
@@ -1916,6 +2043,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1916
2043
|
method: "POST",
|
|
1917
2044
|
queryParams: localVarQueryParameter,
|
|
1918
2045
|
bodyParams: localVarBodyParameter,
|
|
2046
|
+
headerParams: localVarHeaderParameter,
|
|
1919
2047
|
timeUnit: _timeUnit
|
|
1920
2048
|
};
|
|
1921
2049
|
},
|
|
@@ -1923,6 +2051,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1923
2051
|
assertParamExists("marginAccountTradeList", "symbol", symbol);
|
|
1924
2052
|
const localVarQueryParameter = {};
|
|
1925
2053
|
const localVarBodyParameter = {};
|
|
2054
|
+
const localVarHeaderParameter = {};
|
|
1926
2055
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1927
2056
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1928
2057
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1937,6 +2066,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1937
2066
|
method: "GET",
|
|
1938
2067
|
queryParams: localVarQueryParameter,
|
|
1939
2068
|
bodyParams: localVarBodyParameter,
|
|
2069
|
+
headerParams: localVarHeaderParameter,
|
|
1940
2070
|
timeUnit: _timeUnit
|
|
1941
2071
|
};
|
|
1942
2072
|
},
|
|
@@ -1947,6 +2077,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1947
2077
|
assertParamExists("modifyCmOrder", "price", price);
|
|
1948
2078
|
const localVarQueryParameter = {};
|
|
1949
2079
|
const localVarBodyParameter = {};
|
|
2080
|
+
const localVarHeaderParameter = {};
|
|
1950
2081
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1951
2082
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
1952
2083
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -1962,6 +2093,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1962
2093
|
method: "PUT",
|
|
1963
2094
|
queryParams: localVarQueryParameter,
|
|
1964
2095
|
bodyParams: localVarBodyParameter,
|
|
2096
|
+
headerParams: localVarHeaderParameter,
|
|
1965
2097
|
timeUnit: _timeUnit
|
|
1966
2098
|
};
|
|
1967
2099
|
},
|
|
@@ -1972,6 +2104,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1972
2104
|
assertParamExists("modifyUmOrder", "price", price);
|
|
1973
2105
|
const localVarQueryParameter = {};
|
|
1974
2106
|
const localVarBodyParameter = {};
|
|
2107
|
+
const localVarHeaderParameter = {};
|
|
1975
2108
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1976
2109
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
1977
2110
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -1987,6 +2120,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1987
2120
|
method: "PUT",
|
|
1988
2121
|
queryParams: localVarQueryParameter,
|
|
1989
2122
|
bodyParams: localVarBodyParameter,
|
|
2123
|
+
headerParams: localVarHeaderParameter,
|
|
1990
2124
|
timeUnit: _timeUnit
|
|
1991
2125
|
};
|
|
1992
2126
|
},
|
|
@@ -1996,6 +2130,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1996
2130
|
assertParamExists("newCmConditionalOrder", "strategyType", strategyType);
|
|
1997
2131
|
const localVarQueryParameter = {};
|
|
1998
2132
|
const localVarBodyParameter = {};
|
|
2133
|
+
const localVarHeaderParameter = {};
|
|
1999
2134
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2000
2135
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2001
2136
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2018,6 +2153,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2018
2153
|
method: "POST",
|
|
2019
2154
|
queryParams: localVarQueryParameter,
|
|
2020
2155
|
bodyParams: localVarBodyParameter,
|
|
2156
|
+
headerParams: localVarHeaderParameter,
|
|
2021
2157
|
timeUnit: _timeUnit
|
|
2022
2158
|
};
|
|
2023
2159
|
},
|
|
@@ -2027,6 +2163,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2027
2163
|
assertParamExists("newCmOrder", "type", type);
|
|
2028
2164
|
const localVarQueryParameter = {};
|
|
2029
2165
|
const localVarBodyParameter = {};
|
|
2166
|
+
const localVarHeaderParameter = {};
|
|
2030
2167
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2031
2168
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2032
2169
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2046,6 +2183,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2046
2183
|
method: "POST",
|
|
2047
2184
|
queryParams: localVarQueryParameter,
|
|
2048
2185
|
bodyParams: localVarBodyParameter,
|
|
2186
|
+
headerParams: localVarHeaderParameter,
|
|
2049
2187
|
timeUnit: _timeUnit
|
|
2050
2188
|
};
|
|
2051
2189
|
},
|
|
@@ -2055,6 +2193,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2055
2193
|
assertParamExists("newMarginOrder", "type", type);
|
|
2056
2194
|
const localVarQueryParameter = {};
|
|
2057
2195
|
const localVarBodyParameter = {};
|
|
2196
|
+
const localVarHeaderParameter = {};
|
|
2058
2197
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2059
2198
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2060
2199
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -2077,6 +2216,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2077
2216
|
method: "POST",
|
|
2078
2217
|
queryParams: localVarQueryParameter,
|
|
2079
2218
|
bodyParams: localVarBodyParameter,
|
|
2219
|
+
headerParams: localVarHeaderParameter,
|
|
2080
2220
|
timeUnit: _timeUnit
|
|
2081
2221
|
};
|
|
2082
2222
|
},
|
|
@@ -2088,6 +2228,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2088
2228
|
assertParamExists("newUmAlgoOrder", "quantity", quantity);
|
|
2089
2229
|
const localVarQueryParameter = {};
|
|
2090
2230
|
const localVarBodyParameter = {};
|
|
2231
|
+
const localVarHeaderParameter = {};
|
|
2091
2232
|
if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
|
|
2092
2233
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2093
2234
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -2115,6 +2256,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2115
2256
|
method: "POST",
|
|
2116
2257
|
queryParams: localVarQueryParameter,
|
|
2117
2258
|
bodyParams: localVarBodyParameter,
|
|
2259
|
+
headerParams: localVarHeaderParameter,
|
|
2118
2260
|
timeUnit: _timeUnit
|
|
2119
2261
|
};
|
|
2120
2262
|
},
|
|
@@ -2124,6 +2266,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2124
2266
|
assertParamExists("newUmConditionalOrder", "strategyType", strategyType);
|
|
2125
2267
|
const localVarQueryParameter = {};
|
|
2126
2268
|
const localVarBodyParameter = {};
|
|
2269
|
+
const localVarHeaderParameter = {};
|
|
2127
2270
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2128
2271
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2129
2272
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2149,6 +2292,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2149
2292
|
method: "POST",
|
|
2150
2293
|
queryParams: localVarQueryParameter,
|
|
2151
2294
|
bodyParams: localVarBodyParameter,
|
|
2295
|
+
headerParams: localVarHeaderParameter,
|
|
2152
2296
|
timeUnit: _timeUnit
|
|
2153
2297
|
};
|
|
2154
2298
|
},
|
|
@@ -2158,6 +2302,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2158
2302
|
assertParamExists("newUmOrder", "type", type);
|
|
2159
2303
|
const localVarQueryParameter = {};
|
|
2160
2304
|
const localVarBodyParameter = {};
|
|
2305
|
+
const localVarHeaderParameter = {};
|
|
2161
2306
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2162
2307
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2163
2308
|
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
@@ -2179,12 +2324,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2179
2324
|
method: "POST",
|
|
2180
2325
|
queryParams: localVarQueryParameter,
|
|
2181
2326
|
bodyParams: localVarBodyParameter,
|
|
2327
|
+
headerParams: localVarHeaderParameter,
|
|
2182
2328
|
timeUnit: _timeUnit
|
|
2183
2329
|
};
|
|
2184
2330
|
},
|
|
2185
2331
|
queryAllCmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2186
2332
|
const localVarQueryParameter = {};
|
|
2187
2333
|
const localVarBodyParameter = {};
|
|
2334
|
+
const localVarHeaderParameter = {};
|
|
2188
2335
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2189
2336
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2190
2337
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2198,6 +2345,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2198
2345
|
method: "GET",
|
|
2199
2346
|
queryParams: localVarQueryParameter,
|
|
2200
2347
|
bodyParams: localVarBodyParameter,
|
|
2348
|
+
headerParams: localVarHeaderParameter,
|
|
2201
2349
|
timeUnit: _timeUnit
|
|
2202
2350
|
};
|
|
2203
2351
|
},
|
|
@@ -2205,6 +2353,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2205
2353
|
assertParamExists("queryAllCmOrders", "symbol", symbol);
|
|
2206
2354
|
const localVarQueryParameter = {};
|
|
2207
2355
|
const localVarBodyParameter = {};
|
|
2356
|
+
const localVarHeaderParameter = {};
|
|
2208
2357
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2209
2358
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
2210
2359
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -2219,12 +2368,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2219
2368
|
method: "GET",
|
|
2220
2369
|
queryParams: localVarQueryParameter,
|
|
2221
2370
|
bodyParams: localVarBodyParameter,
|
|
2371
|
+
headerParams: localVarHeaderParameter,
|
|
2222
2372
|
timeUnit: _timeUnit
|
|
2223
2373
|
};
|
|
2224
2374
|
},
|
|
2225
2375
|
queryAllCurrentCmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2226
2376
|
const localVarQueryParameter = {};
|
|
2227
2377
|
const localVarBodyParameter = {};
|
|
2378
|
+
const localVarHeaderParameter = {};
|
|
2228
2379
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2229
2380
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2230
2381
|
let _timeUnit;
|
|
@@ -2234,12 +2385,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2234
2385
|
method: "GET",
|
|
2235
2386
|
queryParams: localVarQueryParameter,
|
|
2236
2387
|
bodyParams: localVarBodyParameter,
|
|
2388
|
+
headerParams: localVarHeaderParameter,
|
|
2237
2389
|
timeUnit: _timeUnit
|
|
2238
2390
|
};
|
|
2239
2391
|
},
|
|
2240
2392
|
queryAllCurrentCmOpenOrders: async (symbol, pair, recvWindow) => {
|
|
2241
2393
|
const localVarQueryParameter = {};
|
|
2242
2394
|
const localVarBodyParameter = {};
|
|
2395
|
+
const localVarHeaderParameter = {};
|
|
2243
2396
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2244
2397
|
if (pair !== void 0 && pair !== null) localVarQueryParameter["pair"] = pair;
|
|
2245
2398
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2250,12 +2403,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2250
2403
|
method: "GET",
|
|
2251
2404
|
queryParams: localVarQueryParameter,
|
|
2252
2405
|
bodyParams: localVarBodyParameter,
|
|
2406
|
+
headerParams: localVarHeaderParameter,
|
|
2253
2407
|
timeUnit: _timeUnit
|
|
2254
2408
|
};
|
|
2255
2409
|
},
|
|
2256
2410
|
queryAllCurrentUmOpenAlgoOrders: async (algoType, symbol, algoId, recvWindow) => {
|
|
2257
2411
|
const localVarQueryParameter = {};
|
|
2258
2412
|
const localVarBodyParameter = {};
|
|
2413
|
+
const localVarHeaderParameter = {};
|
|
2259
2414
|
if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
|
|
2260
2415
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2261
2416
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
@@ -2267,12 +2422,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2267
2422
|
method: "GET",
|
|
2268
2423
|
queryParams: localVarQueryParameter,
|
|
2269
2424
|
bodyParams: localVarBodyParameter,
|
|
2425
|
+
headerParams: localVarHeaderParameter,
|
|
2270
2426
|
timeUnit: _timeUnit
|
|
2271
2427
|
};
|
|
2272
2428
|
},
|
|
2273
2429
|
queryAllCurrentUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2274
2430
|
const localVarQueryParameter = {};
|
|
2275
2431
|
const localVarBodyParameter = {};
|
|
2432
|
+
const localVarHeaderParameter = {};
|
|
2276
2433
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2277
2434
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2278
2435
|
let _timeUnit;
|
|
@@ -2282,12 +2439,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2282
2439
|
method: "GET",
|
|
2283
2440
|
queryParams: localVarQueryParameter,
|
|
2284
2441
|
bodyParams: localVarBodyParameter,
|
|
2442
|
+
headerParams: localVarHeaderParameter,
|
|
2285
2443
|
timeUnit: _timeUnit
|
|
2286
2444
|
};
|
|
2287
2445
|
},
|
|
2288
2446
|
queryAllCurrentUmOpenOrders: async (symbol, recvWindow) => {
|
|
2289
2447
|
const localVarQueryParameter = {};
|
|
2290
2448
|
const localVarBodyParameter = {};
|
|
2449
|
+
const localVarHeaderParameter = {};
|
|
2291
2450
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2292
2451
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2293
2452
|
let _timeUnit;
|
|
@@ -2297,6 +2456,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2297
2456
|
method: "GET",
|
|
2298
2457
|
queryParams: localVarQueryParameter,
|
|
2299
2458
|
bodyParams: localVarBodyParameter,
|
|
2459
|
+
headerParams: localVarHeaderParameter,
|
|
2300
2460
|
timeUnit: _timeUnit
|
|
2301
2461
|
};
|
|
2302
2462
|
},
|
|
@@ -2304,6 +2464,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2304
2464
|
assertParamExists("queryAllMarginAccountOrders", "symbol", symbol);
|
|
2305
2465
|
const localVarQueryParameter = {};
|
|
2306
2466
|
const localVarBodyParameter = {};
|
|
2467
|
+
const localVarHeaderParameter = {};
|
|
2307
2468
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2308
2469
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2309
2470
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2317,12 +2478,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2317
2478
|
method: "GET",
|
|
2318
2479
|
queryParams: localVarQueryParameter,
|
|
2319
2480
|
bodyParams: localVarBodyParameter,
|
|
2481
|
+
headerParams: localVarHeaderParameter,
|
|
2320
2482
|
timeUnit: _timeUnit
|
|
2321
2483
|
};
|
|
2322
2484
|
},
|
|
2323
2485
|
queryAllUmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2324
2486
|
const localVarQueryParameter = {};
|
|
2325
2487
|
const localVarBodyParameter = {};
|
|
2488
|
+
const localVarHeaderParameter = {};
|
|
2326
2489
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2327
2490
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2328
2491
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2336,6 +2499,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2336
2499
|
method: "GET",
|
|
2337
2500
|
queryParams: localVarQueryParameter,
|
|
2338
2501
|
bodyParams: localVarBodyParameter,
|
|
2502
|
+
headerParams: localVarHeaderParameter,
|
|
2339
2503
|
timeUnit: _timeUnit
|
|
2340
2504
|
};
|
|
2341
2505
|
},
|
|
@@ -2343,6 +2507,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2343
2507
|
assertParamExists("queryAllUmOrders", "symbol", symbol);
|
|
2344
2508
|
const localVarQueryParameter = {};
|
|
2345
2509
|
const localVarBodyParameter = {};
|
|
2510
|
+
const localVarHeaderParameter = {};
|
|
2346
2511
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2347
2512
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2348
2513
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2356,6 +2521,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2356
2521
|
method: "GET",
|
|
2357
2522
|
queryParams: localVarQueryParameter,
|
|
2358
2523
|
bodyParams: localVarBodyParameter,
|
|
2524
|
+
headerParams: localVarHeaderParameter,
|
|
2359
2525
|
timeUnit: _timeUnit
|
|
2360
2526
|
};
|
|
2361
2527
|
},
|
|
@@ -2363,6 +2529,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2363
2529
|
assertParamExists("queryCmConditionalOrderHistory", "symbol", symbol);
|
|
2364
2530
|
const localVarQueryParameter = {};
|
|
2365
2531
|
const localVarBodyParameter = {};
|
|
2532
|
+
const localVarHeaderParameter = {};
|
|
2366
2533
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2367
2534
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2368
2535
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2374,6 +2541,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2374
2541
|
method: "GET",
|
|
2375
2542
|
queryParams: localVarQueryParameter,
|
|
2376
2543
|
bodyParams: localVarBodyParameter,
|
|
2544
|
+
headerParams: localVarHeaderParameter,
|
|
2377
2545
|
timeUnit: _timeUnit
|
|
2378
2546
|
};
|
|
2379
2547
|
},
|
|
@@ -2381,6 +2549,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2381
2549
|
assertParamExists("queryCmModifyOrderHistory", "symbol", symbol);
|
|
2382
2550
|
const localVarQueryParameter = {};
|
|
2383
2551
|
const localVarBodyParameter = {};
|
|
2552
|
+
const localVarHeaderParameter = {};
|
|
2384
2553
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2385
2554
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2386
2555
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2395,6 +2564,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2395
2564
|
method: "GET",
|
|
2396
2565
|
queryParams: localVarQueryParameter,
|
|
2397
2566
|
bodyParams: localVarBodyParameter,
|
|
2567
|
+
headerParams: localVarHeaderParameter,
|
|
2398
2568
|
timeUnit: _timeUnit
|
|
2399
2569
|
};
|
|
2400
2570
|
},
|
|
@@ -2402,6 +2572,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2402
2572
|
assertParamExists("queryCmOrder", "symbol", symbol);
|
|
2403
2573
|
const localVarQueryParameter = {};
|
|
2404
2574
|
const localVarBodyParameter = {};
|
|
2575
|
+
const localVarHeaderParameter = {};
|
|
2405
2576
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2406
2577
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2407
2578
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2413,6 +2584,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2413
2584
|
method: "GET",
|
|
2414
2585
|
queryParams: localVarQueryParameter,
|
|
2415
2586
|
bodyParams: localVarBodyParameter,
|
|
2587
|
+
headerParams: localVarHeaderParameter,
|
|
2416
2588
|
timeUnit: _timeUnit
|
|
2417
2589
|
};
|
|
2418
2590
|
},
|
|
@@ -2420,6 +2592,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2420
2592
|
assertParamExists("queryCurrentCmOpenConditionalOrder", "symbol", symbol);
|
|
2421
2593
|
const localVarQueryParameter = {};
|
|
2422
2594
|
const localVarBodyParameter = {};
|
|
2595
|
+
const localVarHeaderParameter = {};
|
|
2423
2596
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2424
2597
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2425
2598
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2431,6 +2604,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2431
2604
|
method: "GET",
|
|
2432
2605
|
queryParams: localVarQueryParameter,
|
|
2433
2606
|
bodyParams: localVarBodyParameter,
|
|
2607
|
+
headerParams: localVarHeaderParameter,
|
|
2434
2608
|
timeUnit: _timeUnit
|
|
2435
2609
|
};
|
|
2436
2610
|
},
|
|
@@ -2438,6 +2612,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2438
2612
|
assertParamExists("queryCurrentCmOpenOrder", "symbol", symbol);
|
|
2439
2613
|
const localVarQueryParameter = {};
|
|
2440
2614
|
const localVarBodyParameter = {};
|
|
2615
|
+
const localVarHeaderParameter = {};
|
|
2441
2616
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2442
2617
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2443
2618
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2449,6 +2624,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2449
2624
|
method: "GET",
|
|
2450
2625
|
queryParams: localVarQueryParameter,
|
|
2451
2626
|
bodyParams: localVarBodyParameter,
|
|
2627
|
+
headerParams: localVarHeaderParameter,
|
|
2452
2628
|
timeUnit: _timeUnit
|
|
2453
2629
|
};
|
|
2454
2630
|
},
|
|
@@ -2456,6 +2632,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2456
2632
|
assertParamExists("queryCurrentMarginOpenOrder", "symbol", symbol);
|
|
2457
2633
|
const localVarQueryParameter = {};
|
|
2458
2634
|
const localVarBodyParameter = {};
|
|
2635
|
+
const localVarHeaderParameter = {};
|
|
2459
2636
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2460
2637
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2461
2638
|
let _timeUnit;
|
|
@@ -2465,12 +2642,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2465
2642
|
method: "GET",
|
|
2466
2643
|
queryParams: localVarQueryParameter,
|
|
2467
2644
|
bodyParams: localVarBodyParameter,
|
|
2645
|
+
headerParams: localVarHeaderParameter,
|
|
2468
2646
|
timeUnit: _timeUnit
|
|
2469
2647
|
};
|
|
2470
2648
|
},
|
|
2471
2649
|
queryCurrentUmOpenAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
|
|
2472
2650
|
const localVarQueryParameter = {};
|
|
2473
2651
|
const localVarBodyParameter = {};
|
|
2652
|
+
const localVarHeaderParameter = {};
|
|
2474
2653
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
2475
2654
|
if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
|
|
2476
2655
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2481,6 +2660,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2481
2660
|
method: "GET",
|
|
2482
2661
|
queryParams: localVarQueryParameter,
|
|
2483
2662
|
bodyParams: localVarBodyParameter,
|
|
2663
|
+
headerParams: localVarHeaderParameter,
|
|
2484
2664
|
timeUnit: _timeUnit
|
|
2485
2665
|
};
|
|
2486
2666
|
},
|
|
@@ -2488,6 +2668,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2488
2668
|
assertParamExists("queryCurrentUmOpenConditionalOrder", "symbol", symbol);
|
|
2489
2669
|
const localVarQueryParameter = {};
|
|
2490
2670
|
const localVarBodyParameter = {};
|
|
2671
|
+
const localVarHeaderParameter = {};
|
|
2491
2672
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2492
2673
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2493
2674
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2499,6 +2680,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2499
2680
|
method: "GET",
|
|
2500
2681
|
queryParams: localVarQueryParameter,
|
|
2501
2682
|
bodyParams: localVarBodyParameter,
|
|
2683
|
+
headerParams: localVarHeaderParameter,
|
|
2502
2684
|
timeUnit: _timeUnit
|
|
2503
2685
|
};
|
|
2504
2686
|
},
|
|
@@ -2506,6 +2688,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2506
2688
|
assertParamExists("queryCurrentUmOpenOrder", "symbol", symbol);
|
|
2507
2689
|
const localVarQueryParameter = {};
|
|
2508
2690
|
const localVarBodyParameter = {};
|
|
2691
|
+
const localVarHeaderParameter = {};
|
|
2509
2692
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2510
2693
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2511
2694
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2517,6 +2700,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2517
2700
|
method: "GET",
|
|
2518
2701
|
queryParams: localVarQueryParameter,
|
|
2519
2702
|
bodyParams: localVarBodyParameter,
|
|
2703
|
+
headerParams: localVarHeaderParameter,
|
|
2520
2704
|
timeUnit: _timeUnit
|
|
2521
2705
|
};
|
|
2522
2706
|
},
|
|
@@ -2524,6 +2708,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2524
2708
|
assertParamExists("queryMarginAccountOrder", "symbol", symbol);
|
|
2525
2709
|
const localVarQueryParameter = {};
|
|
2526
2710
|
const localVarBodyParameter = {};
|
|
2711
|
+
const localVarHeaderParameter = {};
|
|
2527
2712
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2528
2713
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2529
2714
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2535,12 +2720,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2535
2720
|
method: "GET",
|
|
2536
2721
|
queryParams: localVarQueryParameter,
|
|
2537
2722
|
bodyParams: localVarBodyParameter,
|
|
2723
|
+
headerParams: localVarHeaderParameter,
|
|
2538
2724
|
timeUnit: _timeUnit
|
|
2539
2725
|
};
|
|
2540
2726
|
},
|
|
2541
2727
|
queryMarginAccountsAllOco: async (fromId, startTime, endTime, limit, recvWindow) => {
|
|
2542
2728
|
const localVarQueryParameter = {};
|
|
2543
2729
|
const localVarBodyParameter = {};
|
|
2730
|
+
const localVarHeaderParameter = {};
|
|
2544
2731
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
2545
2732
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2546
2733
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -2553,12 +2740,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2553
2740
|
method: "GET",
|
|
2554
2741
|
queryParams: localVarQueryParameter,
|
|
2555
2742
|
bodyParams: localVarBodyParameter,
|
|
2743
|
+
headerParams: localVarHeaderParameter,
|
|
2556
2744
|
timeUnit: _timeUnit
|
|
2557
2745
|
};
|
|
2558
2746
|
},
|
|
2559
2747
|
queryMarginAccountsOco: async (orderListId, origClientOrderId, recvWindow) => {
|
|
2560
2748
|
const localVarQueryParameter = {};
|
|
2561
2749
|
const localVarBodyParameter = {};
|
|
2750
|
+
const localVarHeaderParameter = {};
|
|
2562
2751
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
2563
2752
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
2564
2753
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2569,12 +2758,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2569
2758
|
method: "GET",
|
|
2570
2759
|
queryParams: localVarQueryParameter,
|
|
2571
2760
|
bodyParams: localVarBodyParameter,
|
|
2761
|
+
headerParams: localVarHeaderParameter,
|
|
2572
2762
|
timeUnit: _timeUnit
|
|
2573
2763
|
};
|
|
2574
2764
|
},
|
|
2575
2765
|
queryMarginAccountsOpenOco: async (recvWindow) => {
|
|
2576
2766
|
const localVarQueryParameter = {};
|
|
2577
2767
|
const localVarBodyParameter = {};
|
|
2768
|
+
const localVarHeaderParameter = {};
|
|
2578
2769
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2579
2770
|
let _timeUnit;
|
|
2580
2771
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -2583,6 +2774,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2583
2774
|
method: "GET",
|
|
2584
2775
|
queryParams: localVarQueryParameter,
|
|
2585
2776
|
bodyParams: localVarBodyParameter,
|
|
2777
|
+
headerParams: localVarHeaderParameter,
|
|
2586
2778
|
timeUnit: _timeUnit
|
|
2587
2779
|
};
|
|
2588
2780
|
},
|
|
@@ -2590,6 +2782,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2590
2782
|
assertParamExists("queryUmAlgoOrderHistory", "symbol", symbol);
|
|
2591
2783
|
const localVarQueryParameter = {};
|
|
2592
2784
|
const localVarBodyParameter = {};
|
|
2785
|
+
const localVarHeaderParameter = {};
|
|
2593
2786
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2594
2787
|
if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
|
|
2595
2788
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2603,6 +2796,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2603
2796
|
method: "GET",
|
|
2604
2797
|
queryParams: localVarQueryParameter,
|
|
2605
2798
|
bodyParams: localVarBodyParameter,
|
|
2799
|
+
headerParams: localVarHeaderParameter,
|
|
2606
2800
|
timeUnit: _timeUnit
|
|
2607
2801
|
};
|
|
2608
2802
|
},
|
|
@@ -2610,6 +2804,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2610
2804
|
assertParamExists("queryUmConditionalOrderHistory", "symbol", symbol);
|
|
2611
2805
|
const localVarQueryParameter = {};
|
|
2612
2806
|
const localVarBodyParameter = {};
|
|
2807
|
+
const localVarHeaderParameter = {};
|
|
2613
2808
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2614
2809
|
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2615
2810
|
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
@@ -2621,6 +2816,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2621
2816
|
method: "GET",
|
|
2622
2817
|
queryParams: localVarQueryParameter,
|
|
2623
2818
|
bodyParams: localVarBodyParameter,
|
|
2819
|
+
headerParams: localVarHeaderParameter,
|
|
2624
2820
|
timeUnit: _timeUnit
|
|
2625
2821
|
};
|
|
2626
2822
|
},
|
|
@@ -2628,6 +2824,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2628
2824
|
assertParamExists("queryUmModifyOrderHistory", "symbol", symbol);
|
|
2629
2825
|
const localVarQueryParameter = {};
|
|
2630
2826
|
const localVarBodyParameter = {};
|
|
2827
|
+
const localVarHeaderParameter = {};
|
|
2631
2828
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2632
2829
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2633
2830
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2642,6 +2839,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2642
2839
|
method: "GET",
|
|
2643
2840
|
queryParams: localVarQueryParameter,
|
|
2644
2841
|
bodyParams: localVarBodyParameter,
|
|
2842
|
+
headerParams: localVarHeaderParameter,
|
|
2645
2843
|
timeUnit: _timeUnit
|
|
2646
2844
|
};
|
|
2647
2845
|
},
|
|
@@ -2649,6 +2847,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2649
2847
|
assertParamExists("queryUmOrder", "symbol", symbol);
|
|
2650
2848
|
const localVarQueryParameter = {};
|
|
2651
2849
|
const localVarBodyParameter = {};
|
|
2850
|
+
const localVarHeaderParameter = {};
|
|
2652
2851
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2653
2852
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
2654
2853
|
if (origClientOrderId !== void 0 && origClientOrderId !== null) localVarQueryParameter["origClientOrderId"] = origClientOrderId;
|
|
@@ -2660,12 +2859,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2660
2859
|
method: "GET",
|
|
2661
2860
|
queryParams: localVarQueryParameter,
|
|
2662
2861
|
bodyParams: localVarBodyParameter,
|
|
2862
|
+
headerParams: localVarHeaderParameter,
|
|
2663
2863
|
timeUnit: _timeUnit
|
|
2664
2864
|
};
|
|
2665
2865
|
},
|
|
2666
2866
|
queryUsersCmForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
2667
2867
|
const localVarQueryParameter = {};
|
|
2668
2868
|
const localVarBodyParameter = {};
|
|
2869
|
+
const localVarHeaderParameter = {};
|
|
2669
2870
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2670
2871
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
2671
2872
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2679,12 +2880,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2679
2880
|
method: "GET",
|
|
2680
2881
|
queryParams: localVarQueryParameter,
|
|
2681
2882
|
bodyParams: localVarBodyParameter,
|
|
2883
|
+
headerParams: localVarHeaderParameter,
|
|
2682
2884
|
timeUnit: _timeUnit
|
|
2683
2885
|
};
|
|
2684
2886
|
},
|
|
2685
2887
|
queryUsersMarginForceOrders: async (startTime, endTime, current, size, recvWindow) => {
|
|
2686
2888
|
const localVarQueryParameter = {};
|
|
2687
2889
|
const localVarBodyParameter = {};
|
|
2890
|
+
const localVarHeaderParameter = {};
|
|
2688
2891
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2689
2892
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
2690
2893
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -2697,12 +2900,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2697
2900
|
method: "GET",
|
|
2698
2901
|
queryParams: localVarQueryParameter,
|
|
2699
2902
|
bodyParams: localVarBodyParameter,
|
|
2903
|
+
headerParams: localVarHeaderParameter,
|
|
2700
2904
|
timeUnit: _timeUnit
|
|
2701
2905
|
};
|
|
2702
2906
|
},
|
|
2703
2907
|
queryUsersUmForceOrders: async (symbol, autoCloseType, startTime, endTime, limit, recvWindow) => {
|
|
2704
2908
|
const localVarQueryParameter = {};
|
|
2705
2909
|
const localVarBodyParameter = {};
|
|
2910
|
+
const localVarHeaderParameter = {};
|
|
2706
2911
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2707
2912
|
if (autoCloseType !== void 0 && autoCloseType !== null) localVarQueryParameter["autoCloseType"] = autoCloseType;
|
|
2708
2913
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2716,6 +2921,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2716
2921
|
method: "GET",
|
|
2717
2922
|
queryParams: localVarQueryParameter,
|
|
2718
2923
|
bodyParams: localVarBodyParameter,
|
|
2924
|
+
headerParams: localVarHeaderParameter,
|
|
2719
2925
|
timeUnit: _timeUnit
|
|
2720
2926
|
};
|
|
2721
2927
|
},
|
|
@@ -2723,6 +2929,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2723
2929
|
assertParamExists("toggleBnbBurnOnUmFuturesTrade", "feeBurn", feeBurn);
|
|
2724
2930
|
const localVarQueryParameter = {};
|
|
2725
2931
|
const localVarBodyParameter = {};
|
|
2932
|
+
const localVarHeaderParameter = {};
|
|
2726
2933
|
if (feeBurn !== void 0 && feeBurn !== null) localVarQueryParameter["feeBurn"] = feeBurn;
|
|
2727
2934
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2728
2935
|
let _timeUnit;
|
|
@@ -2732,6 +2939,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2732
2939
|
method: "POST",
|
|
2733
2940
|
queryParams: localVarQueryParameter,
|
|
2734
2941
|
bodyParams: localVarBodyParameter,
|
|
2942
|
+
headerParams: localVarHeaderParameter,
|
|
2735
2943
|
timeUnit: _timeUnit
|
|
2736
2944
|
};
|
|
2737
2945
|
},
|
|
@@ -2739,6 +2947,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2739
2947
|
assertParamExists("umAccountTradeList", "symbol", symbol);
|
|
2740
2948
|
const localVarQueryParameter = {};
|
|
2741
2949
|
const localVarBodyParameter = {};
|
|
2950
|
+
const localVarHeaderParameter = {};
|
|
2742
2951
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2743
2952
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2744
2953
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -2752,12 +2961,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2752
2961
|
method: "GET",
|
|
2753
2962
|
queryParams: localVarQueryParameter,
|
|
2754
2963
|
bodyParams: localVarBodyParameter,
|
|
2964
|
+
headerParams: localVarHeaderParameter,
|
|
2755
2965
|
timeUnit: _timeUnit
|
|
2756
2966
|
};
|
|
2757
2967
|
},
|
|
2758
2968
|
umPositionAdlQuantileEstimation: async (symbol, recvWindow) => {
|
|
2759
2969
|
const localVarQueryParameter = {};
|
|
2760
2970
|
const localVarBodyParameter = {};
|
|
2971
|
+
const localVarHeaderParameter = {};
|
|
2761
2972
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2762
2973
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2763
2974
|
let _timeUnit;
|
|
@@ -2767,6 +2978,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2767
2978
|
method: "GET",
|
|
2768
2979
|
queryParams: localVarQueryParameter,
|
|
2769
2980
|
bodyParams: localVarBodyParameter,
|
|
2981
|
+
headerParams: localVarHeaderParameter,
|
|
2770
2982
|
timeUnit: _timeUnit
|
|
2771
2983
|
};
|
|
2772
2984
|
}
|
|
@@ -2795,7 +3007,7 @@ var TradeApi = class {
|
|
|
2795
3007
|
*/
|
|
2796
3008
|
async cancelAllCmOpenConditionalOrders(requestParameters) {
|
|
2797
3009
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2798
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3010
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2799
3011
|
}
|
|
2800
3012
|
/**
|
|
2801
3013
|
* Cancel all active LIMIT orders on specific symbol
|
|
@@ -2811,7 +3023,7 @@ var TradeApi = class {
|
|
|
2811
3023
|
*/
|
|
2812
3024
|
async cancelAllCmOpenOrders(requestParameters) {
|
|
2813
3025
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2814
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3026
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2815
3027
|
}
|
|
2816
3028
|
/**
|
|
2817
3029
|
* Cancel All UM Algo Open Orders
|
|
@@ -2827,7 +3039,7 @@ var TradeApi = class {
|
|
|
2827
3039
|
*/
|
|
2828
3040
|
async cancelAllUmAlgoOpenOrders(requestParameters) {
|
|
2829
3041
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmAlgoOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2830
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3042
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2831
3043
|
}
|
|
2832
3044
|
/**
|
|
2833
3045
|
* Cancel All UM Open Conditional Orders
|
|
@@ -2843,7 +3055,7 @@ var TradeApi = class {
|
|
|
2843
3055
|
*/
|
|
2844
3056
|
async cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
2845
3057
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2846
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3058
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2847
3059
|
}
|
|
2848
3060
|
/**
|
|
2849
3061
|
* Cancel all active LIMIT orders on specific symbol
|
|
@@ -2859,7 +3071,7 @@ var TradeApi = class {
|
|
|
2859
3071
|
*/
|
|
2860
3072
|
async cancelAllUmOpenOrders(requestParameters) {
|
|
2861
3073
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2862
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3074
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2863
3075
|
}
|
|
2864
3076
|
/**
|
|
2865
3077
|
* Cancel CM Conditional Order
|
|
@@ -2877,7 +3089,7 @@ var TradeApi = class {
|
|
|
2877
3089
|
*/
|
|
2878
3090
|
async cancelCmConditionalOrder(requestParameters) {
|
|
2879
3091
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
2880
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3092
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2881
3093
|
}
|
|
2882
3094
|
/**
|
|
2883
3095
|
* Cancel an active LIMIT order
|
|
@@ -2895,7 +3107,7 @@ var TradeApi = class {
|
|
|
2895
3107
|
*/
|
|
2896
3108
|
async cancelCmOrder(requestParameters) {
|
|
2897
3109
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2898
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3110
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2899
3111
|
}
|
|
2900
3112
|
/**
|
|
2901
3113
|
* Cancel Margin Account All Open Orders on a Symbol
|
|
@@ -2911,7 +3123,7 @@ var TradeApi = class {
|
|
|
2911
3123
|
*/
|
|
2912
3124
|
async cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters) {
|
|
2913
3125
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountAllOpenOrdersOnASymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2914
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3126
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2915
3127
|
}
|
|
2916
3128
|
/**
|
|
2917
3129
|
* Cancel Margin Account OCO Orders
|
|
@@ -2929,7 +3141,7 @@ var TradeApi = class {
|
|
|
2929
3141
|
*/
|
|
2930
3142
|
async cancelMarginAccountOcoOrders(requestParameters) {
|
|
2931
3143
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountOcoOrders(requestParameters?.symbol, requestParameters?.orderListId, requestParameters?.listClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
2932
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3144
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2933
3145
|
}
|
|
2934
3146
|
/**
|
|
2935
3147
|
* Cancel Margin Account Order
|
|
@@ -2947,7 +3159,7 @@ var TradeApi = class {
|
|
|
2947
3159
|
*/
|
|
2948
3160
|
async cancelMarginAccountOrder(requestParameters) {
|
|
2949
3161
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMarginAccountOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
2950
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3162
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2951
3163
|
}
|
|
2952
3164
|
/**
|
|
2953
3165
|
* Cancel an active UM algo order.
|
|
@@ -2965,7 +3177,7 @@ var TradeApi = class {
|
|
|
2965
3177
|
*/
|
|
2966
3178
|
async cancelUmAlgoOrder(requestParameters = {}) {
|
|
2967
3179
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
|
|
2968
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3180
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2969
3181
|
}
|
|
2970
3182
|
/**
|
|
2971
3183
|
* Cancel UM Conditional Order
|
|
@@ -2983,7 +3195,7 @@ var TradeApi = class {
|
|
|
2983
3195
|
*/
|
|
2984
3196
|
async cancelUmConditionalOrder(requestParameters) {
|
|
2985
3197
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
2986
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3198
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2987
3199
|
}
|
|
2988
3200
|
/**
|
|
2989
3201
|
* Cancel an active UM LIMIT order
|
|
@@ -3001,7 +3213,7 @@ var TradeApi = class {
|
|
|
3001
3213
|
*/
|
|
3002
3214
|
async cancelUmOrder(requestParameters) {
|
|
3003
3215
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3004
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3216
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3005
3217
|
}
|
|
3006
3218
|
/**
|
|
3007
3219
|
* Get trades for a specific account and CM symbol.
|
|
@@ -3026,7 +3238,7 @@ var TradeApi = class {
|
|
|
3026
3238
|
*/
|
|
3027
3239
|
async cmAccountTradeList(requestParameters = {}) {
|
|
3028
3240
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmAccountTradeList(requestParameters?.symbol, requestParameters?.pair, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3029
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3241
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3030
3242
|
}
|
|
3031
3243
|
/**
|
|
3032
3244
|
* Query CM Position ADL Quantile Estimation
|
|
@@ -3048,7 +3260,7 @@ var TradeApi = class {
|
|
|
3048
3260
|
*/
|
|
3049
3261
|
async cmPositionAdlQuantileEstimation(requestParameters = {}) {
|
|
3050
3262
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cmPositionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3051
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3263
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3052
3264
|
}
|
|
3053
3265
|
/**
|
|
3054
3266
|
* Sign TradFi-Perps agreement contract
|
|
@@ -3064,7 +3276,7 @@ var TradeApi = class {
|
|
|
3064
3276
|
*/
|
|
3065
3277
|
async futuresTradfiPerpsContract(requestParameters = {}) {
|
|
3066
3278
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.futuresTradfiPerpsContract(requestParameters?.recvWindow);
|
|
3067
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3279
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3068
3280
|
}
|
|
3069
3281
|
/**
|
|
3070
3282
|
* Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
|
|
@@ -3080,7 +3292,7 @@ var TradeApi = class {
|
|
|
3080
3292
|
*/
|
|
3081
3293
|
async getUmFuturesBnbBurnStatus(requestParameters = {}) {
|
|
3082
3294
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmFuturesBnbBurnStatus(requestParameters?.recvWindow);
|
|
3083
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3295
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3084
3296
|
}
|
|
3085
3297
|
/**
|
|
3086
3298
|
* Apply for a margin loan.
|
|
@@ -3096,7 +3308,7 @@ var TradeApi = class {
|
|
|
3096
3308
|
*/
|
|
3097
3309
|
async marginAccountBorrow(requestParameters) {
|
|
3098
3310
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountBorrow(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
3099
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3311
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3100
3312
|
}
|
|
3101
3313
|
/**
|
|
3102
3314
|
* Send in a new OCO for a margin account
|
|
@@ -3121,7 +3333,7 @@ var TradeApi = class {
|
|
|
3121
3333
|
*/
|
|
3122
3334
|
async marginAccountNewOco(requestParameters) {
|
|
3123
3335
|
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);
|
|
3124
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3336
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3125
3337
|
}
|
|
3126
3338
|
/**
|
|
3127
3339
|
* Repay for a margin loan.
|
|
@@ -3137,7 +3349,7 @@ var TradeApi = class {
|
|
|
3137
3349
|
*/
|
|
3138
3350
|
async marginAccountRepay(requestParameters) {
|
|
3139
3351
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountRepay(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
3140
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3352
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3141
3353
|
}
|
|
3142
3354
|
/**
|
|
3143
3355
|
* Repay debt for a margin loan.
|
|
@@ -3158,7 +3370,7 @@ var TradeApi = class {
|
|
|
3158
3370
|
*/
|
|
3159
3371
|
async marginAccountRepayDebt(requestParameters) {
|
|
3160
3372
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountRepayDebt(requestParameters?.asset, requestParameters?.amount, requestParameters?.specifyRepayAssets, requestParameters?.recvWindow);
|
|
3161
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3373
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3162
3374
|
}
|
|
3163
3375
|
/**
|
|
3164
3376
|
* Margin Account Trade List
|
|
@@ -3174,7 +3386,7 @@ var TradeApi = class {
|
|
|
3174
3386
|
*/
|
|
3175
3387
|
async marginAccountTradeList(requestParameters) {
|
|
3176
3388
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountTradeList(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3177
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3389
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3178
3390
|
}
|
|
3179
3391
|
/**
|
|
3180
3392
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -3197,7 +3409,7 @@ var TradeApi = class {
|
|
|
3197
3409
|
*/
|
|
3198
3410
|
async modifyCmOrder(requestParameters) {
|
|
3199
3411
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyCmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3200
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3412
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3201
3413
|
}
|
|
3202
3414
|
/**
|
|
3203
3415
|
* Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
|
|
@@ -3220,7 +3432,7 @@ var TradeApi = class {
|
|
|
3220
3432
|
*/
|
|
3221
3433
|
async modifyUmOrder(requestParameters) {
|
|
3222
3434
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyUmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3223
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3435
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3224
3436
|
}
|
|
3225
3437
|
/**
|
|
3226
3438
|
* New CM Conditional Order
|
|
@@ -3261,7 +3473,7 @@ var TradeApi = class {
|
|
|
3261
3473
|
*/
|
|
3262
3474
|
async newCmConditionalOrder(requestParameters) {
|
|
3263
3475
|
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);
|
|
3264
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3476
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3265
3477
|
}
|
|
3266
3478
|
/**
|
|
3267
3479
|
* Place new CM order
|
|
@@ -3281,7 +3493,7 @@ var TradeApi = class {
|
|
|
3281
3493
|
*/
|
|
3282
3494
|
async newCmOrder(requestParameters) {
|
|
3283
3495
|
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);
|
|
3284
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3496
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3285
3497
|
}
|
|
3286
3498
|
/**
|
|
3287
3499
|
* New Margin Order
|
|
@@ -3297,7 +3509,7 @@ var TradeApi = class {
|
|
|
3297
3509
|
*/
|
|
3298
3510
|
async newMarginOrder(requestParameters) {
|
|
3299
3511
|
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);
|
|
3300
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3512
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3301
3513
|
}
|
|
3302
3514
|
/**
|
|
3303
3515
|
* Place new UM conditional order
|
|
@@ -3339,7 +3551,7 @@ var TradeApi = class {
|
|
|
3339
3551
|
*/
|
|
3340
3552
|
async newUmAlgoOrder(requestParameters) {
|
|
3341
3553
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newUmAlgoOrder(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.price, requestParameters?.triggerPrice, requestParameters?.workingType, requestParameters?.priceMatch, requestParameters?.priceProtect, requestParameters?.reduceOnly, requestParameters?.activatePrice, requestParameters?.callbackRate, requestParameters?.clientAlgoId, requestParameters?.newOrderRespType, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3342
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3554
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3343
3555
|
}
|
|
3344
3556
|
/**
|
|
3345
3557
|
* Place new UM conditional order
|
|
@@ -3382,7 +3594,7 @@ var TradeApi = class {
|
|
|
3382
3594
|
*/
|
|
3383
3595
|
async newUmConditionalOrder(requestParameters) {
|
|
3384
3596
|
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);
|
|
3385
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3597
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3386
3598
|
}
|
|
3387
3599
|
/**
|
|
3388
3600
|
* Place new UM order
|
|
@@ -3404,7 +3616,7 @@ var TradeApi = class {
|
|
|
3404
3616
|
*/
|
|
3405
3617
|
async newUmOrder(requestParameters) {
|
|
3406
3618
|
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);
|
|
3407
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3619
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3408
3620
|
}
|
|
3409
3621
|
/**
|
|
3410
3622
|
* Query All CM Conditional Orders
|
|
@@ -3426,7 +3638,7 @@ var TradeApi = class {
|
|
|
3426
3638
|
*/
|
|
3427
3639
|
async queryAllCmConditionalOrders(requestParameters = {}) {
|
|
3428
3640
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3429
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3641
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3430
3642
|
}
|
|
3431
3643
|
/**
|
|
3432
3644
|
* Get all account CM orders; active, canceled, or filled.
|
|
@@ -3449,7 +3661,7 @@ var TradeApi = class {
|
|
|
3449
3661
|
*/
|
|
3450
3662
|
async queryAllCmOrders(requestParameters) {
|
|
3451
3663
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCmOrders(requestParameters?.symbol, requestParameters?.pair, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3452
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3664
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3453
3665
|
}
|
|
3454
3666
|
/**
|
|
3455
3667
|
* Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
|
|
@@ -3467,7 +3679,7 @@ var TradeApi = class {
|
|
|
3467
3679
|
*/
|
|
3468
3680
|
async queryAllCurrentCmOpenConditionalOrders(requestParameters = {}) {
|
|
3469
3681
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3470
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3682
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3471
3683
|
}
|
|
3472
3684
|
/**
|
|
3473
3685
|
* Get all open orders on a symbol.
|
|
@@ -3486,7 +3698,7 @@ var TradeApi = class {
|
|
|
3486
3698
|
*/
|
|
3487
3699
|
async queryAllCurrentCmOpenOrders(requestParameters = {}) {
|
|
3488
3700
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenOrders(requestParameters?.symbol, requestParameters?.pair, requestParameters?.recvWindow);
|
|
3489
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3701
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3490
3702
|
}
|
|
3491
3703
|
/**
|
|
3492
3704
|
* Get all UM open algo orders on a symbol.
|
|
@@ -3505,7 +3717,7 @@ var TradeApi = class {
|
|
|
3505
3717
|
*/
|
|
3506
3718
|
async queryAllCurrentUmOpenAlgoOrders(requestParameters = {}) {
|
|
3507
3719
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenAlgoOrders(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.algoId, requestParameters?.recvWindow);
|
|
3508
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3720
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3509
3721
|
}
|
|
3510
3722
|
/**
|
|
3511
3723
|
* Get all open conditional orders on a symbol.
|
|
@@ -3524,7 +3736,7 @@ var TradeApi = class {
|
|
|
3524
3736
|
*/
|
|
3525
3737
|
async queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
3526
3738
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3527
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3739
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3528
3740
|
}
|
|
3529
3741
|
/**
|
|
3530
3742
|
* Get all open orders on a symbol.
|
|
@@ -3543,7 +3755,7 @@ var TradeApi = class {
|
|
|
3543
3755
|
*/
|
|
3544
3756
|
async queryAllCurrentUmOpenOrders(requestParameters = {}) {
|
|
3545
3757
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3546
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3758
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3547
3759
|
}
|
|
3548
3760
|
/**
|
|
3549
3761
|
* Query All Margin Account Orders
|
|
@@ -3559,7 +3771,7 @@ var TradeApi = class {
|
|
|
3559
3771
|
*/
|
|
3560
3772
|
async queryAllMarginAccountOrders(requestParameters) {
|
|
3561
3773
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllMarginAccountOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3562
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3774
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3563
3775
|
}
|
|
3564
3776
|
/**
|
|
3565
3777
|
* Query All UM Conditional Orders
|
|
@@ -3581,7 +3793,7 @@ var TradeApi = class {
|
|
|
3581
3793
|
*/
|
|
3582
3794
|
async queryAllUmConditionalOrders(requestParameters = {}) {
|
|
3583
3795
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3584
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3796
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3585
3797
|
}
|
|
3586
3798
|
/**
|
|
3587
3799
|
* Get all account UM orders; active, canceled, or filled.
|
|
@@ -3604,7 +3816,7 @@ var TradeApi = class {
|
|
|
3604
3816
|
*/
|
|
3605
3817
|
async queryAllUmOrders(requestParameters) {
|
|
3606
3818
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3607
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3819
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3608
3820
|
}
|
|
3609
3821
|
/**
|
|
3610
3822
|
* Query CM Conditional Order History
|
|
@@ -3628,7 +3840,7 @@ var TradeApi = class {
|
|
|
3628
3840
|
*/
|
|
3629
3841
|
async queryCmConditionalOrderHistory(requestParameters) {
|
|
3630
3842
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3631
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3843
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3632
3844
|
}
|
|
3633
3845
|
/**
|
|
3634
3846
|
* Get order modification history
|
|
@@ -3646,7 +3858,7 @@ var TradeApi = class {
|
|
|
3646
3858
|
*/
|
|
3647
3859
|
async queryCmModifyOrderHistory(requestParameters) {
|
|
3648
3860
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmModifyOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3649
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3861
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3650
3862
|
}
|
|
3651
3863
|
/**
|
|
3652
3864
|
* Check an CM order's status.
|
|
@@ -3668,7 +3880,7 @@ var TradeApi = class {
|
|
|
3668
3880
|
*/
|
|
3669
3881
|
async queryCmOrder(requestParameters) {
|
|
3670
3882
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3671
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3883
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3672
3884
|
}
|
|
3673
3885
|
/**
|
|
3674
3886
|
* Query Current CM Open Conditional Order
|
|
@@ -3687,7 +3899,7 @@ var TradeApi = class {
|
|
|
3687
3899
|
*/
|
|
3688
3900
|
async queryCurrentCmOpenConditionalOrder(requestParameters) {
|
|
3689
3901
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3690
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3902
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3691
3903
|
}
|
|
3692
3904
|
/**
|
|
3693
3905
|
* Query current CM open order
|
|
@@ -3706,7 +3918,7 @@ var TradeApi = class {
|
|
|
3706
3918
|
*/
|
|
3707
3919
|
async queryCurrentCmOpenOrder(requestParameters) {
|
|
3708
3920
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3709
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3921
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3710
3922
|
}
|
|
3711
3923
|
/**
|
|
3712
3924
|
* Query Current Margin Open Order
|
|
@@ -3722,7 +3934,7 @@ var TradeApi = class {
|
|
|
3722
3934
|
*/
|
|
3723
3935
|
async queryCurrentMarginOpenOrder(requestParameters) {
|
|
3724
3936
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentMarginOpenOrder(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3725
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3937
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3726
3938
|
}
|
|
3727
3939
|
/**
|
|
3728
3940
|
* Check an UM algo order's status.
|
|
@@ -3745,7 +3957,7 @@ var TradeApi = class {
|
|
|
3745
3957
|
*/
|
|
3746
3958
|
async queryCurrentUmOpenAlgoOrder(requestParameters = {}) {
|
|
3747
3959
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
|
|
3748
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3960
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3749
3961
|
}
|
|
3750
3962
|
/**
|
|
3751
3963
|
* Query Current UM Open Conditional Order
|
|
@@ -3764,7 +3976,7 @@ var TradeApi = class {
|
|
|
3764
3976
|
*/
|
|
3765
3977
|
async queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
3766
3978
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3767
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3979
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3768
3980
|
}
|
|
3769
3981
|
/**
|
|
3770
3982
|
* Query current UM open order
|
|
@@ -3784,7 +3996,7 @@ var TradeApi = class {
|
|
|
3784
3996
|
*/
|
|
3785
3997
|
async queryCurrentUmOpenOrder(requestParameters) {
|
|
3786
3998
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3787
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3999
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3788
4000
|
}
|
|
3789
4001
|
/**
|
|
3790
4002
|
* Query Margin Account Order
|
|
@@ -3800,7 +4012,7 @@ var TradeApi = class {
|
|
|
3800
4012
|
*/
|
|
3801
4013
|
async queryMarginAccountOrder(requestParameters) {
|
|
3802
4014
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3803
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4015
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3804
4016
|
}
|
|
3805
4017
|
/**
|
|
3806
4018
|
* Query all OCO for a specific margin account based on provided optional parameters
|
|
@@ -3816,7 +4028,7 @@ var TradeApi = class {
|
|
|
3816
4028
|
*/
|
|
3817
4029
|
async queryMarginAccountsAllOco(requestParameters = {}) {
|
|
3818
4030
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOco(requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3819
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4031
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3820
4032
|
}
|
|
3821
4033
|
/**
|
|
3822
4034
|
* Retrieves a specific OCO based on provided optional parameters
|
|
@@ -3832,7 +4044,7 @@ var TradeApi = class {
|
|
|
3832
4044
|
*/
|
|
3833
4045
|
async queryMarginAccountsOco(requestParameters = {}) {
|
|
3834
4046
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOco(requestParameters?.orderListId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3835
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4047
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3836
4048
|
}
|
|
3837
4049
|
/**
|
|
3838
4050
|
* Query Margin Account's Open OCO
|
|
@@ -3848,7 +4060,7 @@ var TradeApi = class {
|
|
|
3848
4060
|
*/
|
|
3849
4061
|
async queryMarginAccountsOpenOco(requestParameters = {}) {
|
|
3850
4062
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOco(requestParameters?.recvWindow);
|
|
3851
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4063
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3852
4064
|
}
|
|
3853
4065
|
/**
|
|
3854
4066
|
* Get all algo orders; ACTIVE, CANCELED, TRIGGERED or FINISHED .
|
|
@@ -3867,7 +4079,7 @@ var TradeApi = class {
|
|
|
3867
4079
|
*/
|
|
3868
4080
|
async queryUmAlgoOrderHistory(requestParameters) {
|
|
3869
4081
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmAlgoOrderHistory(requestParameters?.symbol, requestParameters?.algoId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3870
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4082
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3871
4083
|
}
|
|
3872
4084
|
/**
|
|
3873
4085
|
* Query UM Conditional Order History
|
|
@@ -3890,7 +4102,7 @@ var TradeApi = class {
|
|
|
3890
4102
|
*/
|
|
3891
4103
|
async queryUmConditionalOrderHistory(requestParameters) {
|
|
3892
4104
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3893
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4105
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3894
4106
|
}
|
|
3895
4107
|
/**
|
|
3896
4108
|
* Get order modification history
|
|
@@ -3908,7 +4120,7 @@ var TradeApi = class {
|
|
|
3908
4120
|
*/
|
|
3909
4121
|
async queryUmModifyOrderHistory(requestParameters) {
|
|
3910
4122
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmModifyOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3911
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4123
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3912
4124
|
}
|
|
3913
4125
|
/**
|
|
3914
4126
|
* Check an UM order's status.
|
|
@@ -3930,7 +4142,7 @@ var TradeApi = class {
|
|
|
3930
4142
|
*/
|
|
3931
4143
|
async queryUmOrder(requestParameters) {
|
|
3932
4144
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
3933
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4145
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3934
4146
|
}
|
|
3935
4147
|
/**
|
|
3936
4148
|
* Query User's CM Force Orders
|
|
@@ -3950,7 +4162,7 @@ var TradeApi = class {
|
|
|
3950
4162
|
*/
|
|
3951
4163
|
async queryUsersCmForceOrders(requestParameters = {}) {
|
|
3952
4164
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersCmForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3953
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4165
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3954
4166
|
}
|
|
3955
4167
|
/**
|
|
3956
4168
|
* Query user's margin force orders
|
|
@@ -3966,7 +4178,7 @@ var TradeApi = class {
|
|
|
3966
4178
|
*/
|
|
3967
4179
|
async queryUsersMarginForceOrders(requestParameters = {}) {
|
|
3968
4180
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersMarginForceOrders(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
3969
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4181
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3970
4182
|
}
|
|
3971
4183
|
/**
|
|
3972
4184
|
* Query User's UM Force Orders
|
|
@@ -3986,7 +4198,7 @@ var TradeApi = class {
|
|
|
3986
4198
|
*/
|
|
3987
4199
|
async queryUsersUmForceOrders(requestParameters = {}) {
|
|
3988
4200
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUsersUmForceOrders(requestParameters?.symbol, requestParameters?.autoCloseType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
3989
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4201
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3990
4202
|
}
|
|
3991
4203
|
/**
|
|
3992
4204
|
* Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on ***EVERY symbol***
|
|
@@ -4005,7 +4217,7 @@ var TradeApi = class {
|
|
|
4005
4217
|
*/
|
|
4006
4218
|
async toggleBnbBurnOnUmFuturesTrade(requestParameters) {
|
|
4007
4219
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnUmFuturesTrade(requestParameters?.feeBurn, requestParameters?.recvWindow);
|
|
4008
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4220
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4009
4221
|
}
|
|
4010
4222
|
/**
|
|
4011
4223
|
* Get trades for a specific account and UM symbol.
|
|
@@ -4026,7 +4238,7 @@ var TradeApi = class {
|
|
|
4026
4238
|
*/
|
|
4027
4239
|
async umAccountTradeList(requestParameters) {
|
|
4028
4240
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umAccountTradeList(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
4029
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4241
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4030
4242
|
}
|
|
4031
4243
|
/**
|
|
4032
4244
|
* Query UM Position ADL Quantile Estimation
|
|
@@ -4049,7 +4261,7 @@ var TradeApi = class {
|
|
|
4049
4261
|
*/
|
|
4050
4262
|
async umPositionAdlQuantileEstimation(requestParameters = {}) {
|
|
4051
4263
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.umPositionAdlQuantileEstimation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
4052
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4264
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4053
4265
|
}
|
|
4054
4266
|
};
|
|
4055
4267
|
let MarginAccountNewOcoSideEnum = /* @__PURE__ */ function(MarginAccountNewOcoSideEnum$1) {
|
|
@@ -4395,6 +4607,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4395
4607
|
closeUserDataStream: async () => {
|
|
4396
4608
|
const localVarQueryParameter = {};
|
|
4397
4609
|
const localVarBodyParameter = {};
|
|
4610
|
+
const localVarHeaderParameter = {};
|
|
4398
4611
|
let _timeUnit;
|
|
4399
4612
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4400
4613
|
return {
|
|
@@ -4402,12 +4615,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4402
4615
|
method: "DELETE",
|
|
4403
4616
|
queryParams: localVarQueryParameter,
|
|
4404
4617
|
bodyParams: localVarBodyParameter,
|
|
4618
|
+
headerParams: localVarHeaderParameter,
|
|
4405
4619
|
timeUnit: _timeUnit
|
|
4406
4620
|
};
|
|
4407
4621
|
},
|
|
4408
4622
|
keepaliveUserDataStream: async () => {
|
|
4409
4623
|
const localVarQueryParameter = {};
|
|
4410
4624
|
const localVarBodyParameter = {};
|
|
4625
|
+
const localVarHeaderParameter = {};
|
|
4411
4626
|
let _timeUnit;
|
|
4412
4627
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4413
4628
|
return {
|
|
@@ -4415,12 +4630,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4415
4630
|
method: "PUT",
|
|
4416
4631
|
queryParams: localVarQueryParameter,
|
|
4417
4632
|
bodyParams: localVarBodyParameter,
|
|
4633
|
+
headerParams: localVarHeaderParameter,
|
|
4418
4634
|
timeUnit: _timeUnit
|
|
4419
4635
|
};
|
|
4420
4636
|
},
|
|
4421
4637
|
startUserDataStream: async () => {
|
|
4422
4638
|
const localVarQueryParameter = {};
|
|
4423
4639
|
const localVarBodyParameter = {};
|
|
4640
|
+
const localVarHeaderParameter = {};
|
|
4424
4641
|
let _timeUnit;
|
|
4425
4642
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4426
4643
|
return {
|
|
@@ -4428,6 +4645,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
4428
4645
|
method: "POST",
|
|
4429
4646
|
queryParams: localVarQueryParameter,
|
|
4430
4647
|
bodyParams: localVarBodyParameter,
|
|
4648
|
+
headerParams: localVarHeaderParameter,
|
|
4431
4649
|
timeUnit: _timeUnit
|
|
4432
4650
|
};
|
|
4433
4651
|
}
|
|
@@ -4455,7 +4673,7 @@ var UserDataStreamsApi = class {
|
|
|
4455
4673
|
*/
|
|
4456
4674
|
async closeUserDataStream() {
|
|
4457
4675
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
4458
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4676
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4459
4677
|
}
|
|
4460
4678
|
/**
|
|
4461
4679
|
* 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.
|
|
@@ -4470,7 +4688,7 @@ var UserDataStreamsApi = class {
|
|
|
4470
4688
|
*/
|
|
4471
4689
|
async keepaliveUserDataStream() {
|
|
4472
4690
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
4473
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4691
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4474
4692
|
}
|
|
4475
4693
|
/**
|
|
4476
4694
|
* 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.
|
|
@@ -4485,7 +4703,7 @@ var UserDataStreamsApi = class {
|
|
|
4485
4703
|
*/
|
|
4486
4704
|
async startUserDataStream() {
|
|
4487
4705
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
4488
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4706
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
4489
4707
|
}
|
|
4490
4708
|
};
|
|
4491
4709
|
|
|
@@ -4521,7 +4739,7 @@ var RestAPI = class {
|
|
|
4521
4739
|
* @returns A promise resolving to the response data object.
|
|
4522
4740
|
*/
|
|
4523
4741
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4524
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
4742
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
4525
4743
|
}
|
|
4526
4744
|
/**
|
|
4527
4745
|
* Generic function to send a signed request.
|
|
@@ -4533,7 +4751,7 @@ var RestAPI = class {
|
|
|
4533
4751
|
* @returns A promise resolving to the response data object.
|
|
4534
4752
|
*/
|
|
4535
4753
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
4536
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
4754
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
4537
4755
|
}
|
|
4538
4756
|
/**
|
|
4539
4757
|
* Query account balance
|
|
@@ -6737,5 +6955,5 @@ var DerivativesTradingPortfolioMargin = class {
|
|
|
6737
6955
|
};
|
|
6738
6956
|
|
|
6739
6957
|
//#endregion
|
|
6740
|
-
export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL,
|
|
6958
|
+
export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DerivativesTradingPortfolioMargin, rest_api_exports as DerivativesTradingPortfolioMarginRestAPI, websocket_streams_exports as DerivativesTradingPortfolioMarginWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
6741
6959
|
//# sourceMappingURL=index.mjs.map
|