@binance/margin-trading 12.0.11 → 12.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +186 -64
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -64
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, C
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/margin-trading";
|
|
6
|
-
var version = "12.0.
|
|
6
|
+
var version = "12.0.12";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -28,6 +28,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
28
28
|
assertParamExists("adjustCrossMarginMaxLeverage", "maxLeverage", maxLeverage);
|
|
29
29
|
const localVarQueryParameter = {};
|
|
30
30
|
const localVarBodyParameter = {};
|
|
31
|
+
const localVarHeaderParameter = {};
|
|
31
32
|
if (maxLeverage !== void 0 && maxLeverage !== null) localVarQueryParameter["maxLeverage"] = maxLeverage;
|
|
32
33
|
let _timeUnit;
|
|
33
34
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -36,6 +37,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
36
37
|
method: "POST",
|
|
37
38
|
queryParams: localVarQueryParameter,
|
|
38
39
|
bodyParams: localVarBodyParameter,
|
|
40
|
+
headerParams: localVarHeaderParameter,
|
|
39
41
|
timeUnit: _timeUnit
|
|
40
42
|
};
|
|
41
43
|
},
|
|
@@ -43,6 +45,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
43
45
|
assertParamExists("disableIsolatedMarginAccount", "symbol", symbol);
|
|
44
46
|
const localVarQueryParameter = {};
|
|
45
47
|
const localVarBodyParameter = {};
|
|
48
|
+
const localVarHeaderParameter = {};
|
|
46
49
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
47
50
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
48
51
|
let _timeUnit;
|
|
@@ -52,6 +55,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
52
55
|
method: "DELETE",
|
|
53
56
|
queryParams: localVarQueryParameter,
|
|
54
57
|
bodyParams: localVarBodyParameter,
|
|
58
|
+
headerParams: localVarHeaderParameter,
|
|
55
59
|
timeUnit: _timeUnit
|
|
56
60
|
};
|
|
57
61
|
},
|
|
@@ -59,6 +63,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
59
63
|
assertParamExists("enableIsolatedMarginAccount", "symbol", symbol);
|
|
60
64
|
const localVarQueryParameter = {};
|
|
61
65
|
const localVarBodyParameter = {};
|
|
66
|
+
const localVarHeaderParameter = {};
|
|
62
67
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
63
68
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
64
69
|
let _timeUnit;
|
|
@@ -68,12 +73,14 @@ 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
|
},
|
|
74
80
|
getBnbBurnStatus: async (recvWindow) => {
|
|
75
81
|
const localVarQueryParameter = {};
|
|
76
82
|
const localVarBodyParameter = {};
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
77
84
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
78
85
|
let _timeUnit;
|
|
79
86
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -82,12 +89,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
82
89
|
method: "GET",
|
|
83
90
|
queryParams: localVarQueryParameter,
|
|
84
91
|
bodyParams: localVarBodyParameter,
|
|
92
|
+
headerParams: localVarHeaderParameter,
|
|
85
93
|
timeUnit: _timeUnit
|
|
86
94
|
};
|
|
87
95
|
},
|
|
88
96
|
getSummaryOfMarginAccount: async (recvWindow) => {
|
|
89
97
|
const localVarQueryParameter = {};
|
|
90
98
|
const localVarBodyParameter = {};
|
|
99
|
+
const localVarHeaderParameter = {};
|
|
91
100
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
92
101
|
let _timeUnit;
|
|
93
102
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -96,12 +105,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
96
105
|
method: "GET",
|
|
97
106
|
queryParams: localVarQueryParameter,
|
|
98
107
|
bodyParams: localVarBodyParameter,
|
|
108
|
+
headerParams: localVarHeaderParameter,
|
|
99
109
|
timeUnit: _timeUnit
|
|
100
110
|
};
|
|
101
111
|
},
|
|
102
112
|
queryCrossIsolatedMarginCapitalFlow: async (asset, symbol, type, startTime, endTime, fromId, limit, recvWindow) => {
|
|
103
113
|
const localVarQueryParameter = {};
|
|
104
114
|
const localVarBodyParameter = {};
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
105
116
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
106
117
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
107
118
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -117,12 +128,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
117
128
|
method: "GET",
|
|
118
129
|
queryParams: localVarQueryParameter,
|
|
119
130
|
bodyParams: localVarBodyParameter,
|
|
131
|
+
headerParams: localVarHeaderParameter,
|
|
120
132
|
timeUnit: _timeUnit
|
|
121
133
|
};
|
|
122
134
|
},
|
|
123
135
|
queryCrossMarginAccountDetails: async (recvWindow) => {
|
|
124
136
|
const localVarQueryParameter = {};
|
|
125
137
|
const localVarBodyParameter = {};
|
|
138
|
+
const localVarHeaderParameter = {};
|
|
126
139
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
127
140
|
let _timeUnit;
|
|
128
141
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -131,12 +144,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
131
144
|
method: "GET",
|
|
132
145
|
queryParams: localVarQueryParameter,
|
|
133
146
|
bodyParams: localVarBodyParameter,
|
|
147
|
+
headerParams: localVarHeaderParameter,
|
|
134
148
|
timeUnit: _timeUnit
|
|
135
149
|
};
|
|
136
150
|
},
|
|
137
151
|
queryCrossMarginFeeData: async (vipLevel, coin, recvWindow) => {
|
|
138
152
|
const localVarQueryParameter = {};
|
|
139
153
|
const localVarBodyParameter = {};
|
|
154
|
+
const localVarHeaderParameter = {};
|
|
140
155
|
if (vipLevel !== void 0 && vipLevel !== null) localVarQueryParameter["vipLevel"] = vipLevel;
|
|
141
156
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
142
157
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -147,12 +162,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
147
162
|
method: "GET",
|
|
148
163
|
queryParams: localVarQueryParameter,
|
|
149
164
|
bodyParams: localVarBodyParameter,
|
|
165
|
+
headerParams: localVarHeaderParameter,
|
|
150
166
|
timeUnit: _timeUnit
|
|
151
167
|
};
|
|
152
168
|
},
|
|
153
169
|
queryEnabledIsolatedMarginAccountLimit: async (recvWindow) => {
|
|
154
170
|
const localVarQueryParameter = {};
|
|
155
171
|
const localVarBodyParameter = {};
|
|
172
|
+
const localVarHeaderParameter = {};
|
|
156
173
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
157
174
|
let _timeUnit;
|
|
158
175
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -161,12 +178,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
161
178
|
method: "GET",
|
|
162
179
|
queryParams: localVarQueryParameter,
|
|
163
180
|
bodyParams: localVarBodyParameter,
|
|
181
|
+
headerParams: localVarHeaderParameter,
|
|
164
182
|
timeUnit: _timeUnit
|
|
165
183
|
};
|
|
166
184
|
},
|
|
167
185
|
queryIsolatedMarginAccountInfo: async (symbols, recvWindow) => {
|
|
168
186
|
const localVarQueryParameter = {};
|
|
169
187
|
const localVarBodyParameter = {};
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
170
189
|
if (symbols !== void 0 && symbols !== null) localVarQueryParameter["symbols"] = symbols;
|
|
171
190
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
172
191
|
let _timeUnit;
|
|
@@ -176,12 +195,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
176
195
|
method: "GET",
|
|
177
196
|
queryParams: localVarQueryParameter,
|
|
178
197
|
bodyParams: localVarBodyParameter,
|
|
198
|
+
headerParams: localVarHeaderParameter,
|
|
179
199
|
timeUnit: _timeUnit
|
|
180
200
|
};
|
|
181
201
|
},
|
|
182
202
|
queryIsolatedMarginFeeData: async (vipLevel, symbol, recvWindow) => {
|
|
183
203
|
const localVarQueryParameter = {};
|
|
184
204
|
const localVarBodyParameter = {};
|
|
205
|
+
const localVarHeaderParameter = {};
|
|
185
206
|
if (vipLevel !== void 0 && vipLevel !== null) localVarQueryParameter["vipLevel"] = vipLevel;
|
|
186
207
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
187
208
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -192,6 +213,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
192
213
|
method: "GET",
|
|
193
214
|
queryParams: localVarQueryParameter,
|
|
194
215
|
bodyParams: localVarBodyParameter,
|
|
216
|
+
headerParams: localVarHeaderParameter,
|
|
195
217
|
timeUnit: _timeUnit
|
|
196
218
|
};
|
|
197
219
|
}
|
|
@@ -222,7 +244,7 @@ var AccountApi = class {
|
|
|
222
244
|
*/
|
|
223
245
|
async adjustCrossMarginMaxLeverage(requestParameters) {
|
|
224
246
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.adjustCrossMarginMaxLeverage(requestParameters?.maxLeverage);
|
|
225
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
247
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
226
248
|
}
|
|
227
249
|
/**
|
|
228
250
|
* Disable isolated margin account for a specific symbol. Each trading pair can only be deactivated once every 24
|
|
@@ -239,7 +261,7 @@ var AccountApi = class {
|
|
|
239
261
|
*/
|
|
240
262
|
async disableIsolatedMarginAccount(requestParameters) {
|
|
241
263
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.disableIsolatedMarginAccount(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
242
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
264
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
243
265
|
}
|
|
244
266
|
/**
|
|
245
267
|
* Enable isolated margin account for a specific symbol(Only supports activation of previously disabled accounts).
|
|
@@ -255,7 +277,7 @@ var AccountApi = class {
|
|
|
255
277
|
*/
|
|
256
278
|
async enableIsolatedMarginAccount(requestParameters) {
|
|
257
279
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.enableIsolatedMarginAccount(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
258
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
280
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
259
281
|
}
|
|
260
282
|
/**
|
|
261
283
|
* Get BNB Burn Status
|
|
@@ -271,7 +293,7 @@ var AccountApi = class {
|
|
|
271
293
|
*/
|
|
272
294
|
async getBnbBurnStatus(requestParameters = {}) {
|
|
273
295
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBnbBurnStatus(requestParameters?.recvWindow);
|
|
274
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
296
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
275
297
|
}
|
|
276
298
|
/**
|
|
277
299
|
* Get personal margin level information
|
|
@@ -287,7 +309,7 @@ var AccountApi = class {
|
|
|
287
309
|
*/
|
|
288
310
|
async getSummaryOfMarginAccount(requestParameters = {}) {
|
|
289
311
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSummaryOfMarginAccount(requestParameters?.recvWindow);
|
|
290
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
312
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
291
313
|
}
|
|
292
314
|
/**
|
|
293
315
|
* Query Cross Isolated Margin Capital Flow
|
|
@@ -303,7 +325,7 @@ var AccountApi = class {
|
|
|
303
325
|
*/
|
|
304
326
|
async queryCrossIsolatedMarginCapitalFlow(requestParameters = {}) {
|
|
305
327
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCrossIsolatedMarginCapitalFlow(requestParameters?.asset, requestParameters?.symbol, requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
306
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
328
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
307
329
|
}
|
|
308
330
|
/**
|
|
309
331
|
* Query Cross Margin Account Details
|
|
@@ -319,7 +341,7 @@ var AccountApi = class {
|
|
|
319
341
|
*/
|
|
320
342
|
async queryCrossMarginAccountDetails(requestParameters = {}) {
|
|
321
343
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCrossMarginAccountDetails(requestParameters?.recvWindow);
|
|
322
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
344
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
323
345
|
}
|
|
324
346
|
/**
|
|
325
347
|
* Get cross margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee
|
|
@@ -335,7 +357,7 @@ var AccountApi = class {
|
|
|
335
357
|
*/
|
|
336
358
|
async queryCrossMarginFeeData(requestParameters = {}) {
|
|
337
359
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCrossMarginFeeData(requestParameters?.vipLevel, requestParameters?.coin, requestParameters?.recvWindow);
|
|
338
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
360
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
339
361
|
}
|
|
340
362
|
/**
|
|
341
363
|
* Query enabled isolated margin account limit.
|
|
@@ -351,7 +373,7 @@ var AccountApi = class {
|
|
|
351
373
|
*/
|
|
352
374
|
async queryEnabledIsolatedMarginAccountLimit(requestParameters = {}) {
|
|
353
375
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryEnabledIsolatedMarginAccountLimit(requestParameters?.recvWindow);
|
|
354
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
376
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
355
377
|
}
|
|
356
378
|
/**
|
|
357
379
|
* Query Isolated Margin Account Info
|
|
@@ -370,7 +392,7 @@ var AccountApi = class {
|
|
|
370
392
|
*/
|
|
371
393
|
async queryIsolatedMarginAccountInfo(requestParameters = {}) {
|
|
372
394
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIsolatedMarginAccountInfo(requestParameters?.symbols, requestParameters?.recvWindow);
|
|
373
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
395
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
374
396
|
}
|
|
375
397
|
/**
|
|
376
398
|
* Get isolated margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee
|
|
@@ -386,7 +408,7 @@ var AccountApi = class {
|
|
|
386
408
|
*/
|
|
387
409
|
async queryIsolatedMarginFeeData(requestParameters = {}) {
|
|
388
410
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIsolatedMarginFeeData(requestParameters?.vipLevel, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
389
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
411
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
390
412
|
}
|
|
391
413
|
};
|
|
392
414
|
|
|
@@ -414,6 +436,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
414
436
|
assertParamExists("getFutureHourlyInterestRate", "isIsolated", isIsolated);
|
|
415
437
|
const localVarQueryParameter = {};
|
|
416
438
|
const localVarBodyParameter = {};
|
|
439
|
+
const localVarHeaderParameter = {};
|
|
417
440
|
if (assets !== void 0 && assets !== null) localVarQueryParameter["assets"] = assets;
|
|
418
441
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
419
442
|
let _timeUnit;
|
|
@@ -423,12 +446,14 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
423
446
|
method: "GET",
|
|
424
447
|
queryParams: localVarQueryParameter,
|
|
425
448
|
bodyParams: localVarBodyParameter,
|
|
449
|
+
headerParams: localVarHeaderParameter,
|
|
426
450
|
timeUnit: _timeUnit
|
|
427
451
|
};
|
|
428
452
|
},
|
|
429
453
|
getInterestHistory: async (asset, isolatedSymbol, startTime, endTime, current, size, recvWindow) => {
|
|
430
454
|
const localVarQueryParameter = {};
|
|
431
455
|
const localVarBodyParameter = {};
|
|
456
|
+
const localVarHeaderParameter = {};
|
|
432
457
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
433
458
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
434
459
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -443,6 +468,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
443
468
|
method: "GET",
|
|
444
469
|
queryParams: localVarQueryParameter,
|
|
445
470
|
bodyParams: localVarBodyParameter,
|
|
471
|
+
headerParams: localVarHeaderParameter,
|
|
446
472
|
timeUnit: _timeUnit
|
|
447
473
|
};
|
|
448
474
|
},
|
|
@@ -454,6 +480,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
454
480
|
assertParamExists("marginAccountBorrowRepay", "type", type);
|
|
455
481
|
const localVarQueryParameter = {};
|
|
456
482
|
const localVarBodyParameter = {};
|
|
483
|
+
const localVarHeaderParameter = {};
|
|
457
484
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
458
485
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
459
486
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -467,6 +494,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
467
494
|
method: "POST",
|
|
468
495
|
queryParams: localVarQueryParameter,
|
|
469
496
|
bodyParams: localVarBodyParameter,
|
|
497
|
+
headerParams: localVarHeaderParameter,
|
|
470
498
|
timeUnit: _timeUnit
|
|
471
499
|
};
|
|
472
500
|
},
|
|
@@ -474,6 +502,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
474
502
|
assertParamExists("queryBorrowRepayRecordsInMarginAccount", "type", type);
|
|
475
503
|
const localVarQueryParameter = {};
|
|
476
504
|
const localVarBodyParameter = {};
|
|
505
|
+
const localVarHeaderParameter = {};
|
|
477
506
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
478
507
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
479
508
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
@@ -490,6 +519,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
490
519
|
method: "GET",
|
|
491
520
|
queryParams: localVarQueryParameter,
|
|
492
521
|
bodyParams: localVarBodyParameter,
|
|
522
|
+
headerParams: localVarHeaderParameter,
|
|
493
523
|
timeUnit: _timeUnit
|
|
494
524
|
};
|
|
495
525
|
},
|
|
@@ -497,6 +527,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
497
527
|
assertParamExists("queryMarginInterestRateHistory", "asset", asset);
|
|
498
528
|
const localVarQueryParameter = {};
|
|
499
529
|
const localVarBodyParameter = {};
|
|
530
|
+
const localVarHeaderParameter = {};
|
|
500
531
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
501
532
|
if (vipLevel !== void 0 && vipLevel !== null) localVarQueryParameter["vipLevel"] = vipLevel;
|
|
502
533
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -509,6 +540,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
509
540
|
method: "GET",
|
|
510
541
|
queryParams: localVarQueryParameter,
|
|
511
542
|
bodyParams: localVarBodyParameter,
|
|
543
|
+
headerParams: localVarHeaderParameter,
|
|
512
544
|
timeUnit: _timeUnit
|
|
513
545
|
};
|
|
514
546
|
},
|
|
@@ -516,6 +548,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
516
548
|
assertParamExists("queryMaxBorrow", "asset", asset);
|
|
517
549
|
const localVarQueryParameter = {};
|
|
518
550
|
const localVarBodyParameter = {};
|
|
551
|
+
const localVarHeaderParameter = {};
|
|
519
552
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
520
553
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
521
554
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -526,6 +559,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
526
559
|
method: "GET",
|
|
527
560
|
queryParams: localVarQueryParameter,
|
|
528
561
|
bodyParams: localVarBodyParameter,
|
|
562
|
+
headerParams: localVarHeaderParameter,
|
|
529
563
|
timeUnit: _timeUnit
|
|
530
564
|
};
|
|
531
565
|
}
|
|
@@ -554,7 +588,7 @@ var BorrowRepayApi = class {
|
|
|
554
588
|
*/
|
|
555
589
|
async getFutureHourlyInterestRate(requestParameters) {
|
|
556
590
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFutureHourlyInterestRate(requestParameters?.assets, requestParameters?.isIsolated);
|
|
557
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
591
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
558
592
|
}
|
|
559
593
|
/**
|
|
560
594
|
* Get Interest History
|
|
@@ -583,7 +617,7 @@ var BorrowRepayApi = class {
|
|
|
583
617
|
*/
|
|
584
618
|
async getInterestHistory(requestParameters = {}) {
|
|
585
619
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getInterestHistory(requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
586
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
620
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
587
621
|
}
|
|
588
622
|
/**
|
|
589
623
|
* Margin account borrow/repay(MARGIN)
|
|
@@ -599,7 +633,7 @@ var BorrowRepayApi = class {
|
|
|
599
633
|
*/
|
|
600
634
|
async marginAccountBorrowRepay(requestParameters) {
|
|
601
635
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountBorrowRepay(requestParameters?.asset, requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.amount, requestParameters?.type, requestParameters?.recvWindow);
|
|
602
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
636
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
603
637
|
}
|
|
604
638
|
/**
|
|
605
639
|
* Query borrow/repay records in Margin account
|
|
@@ -620,7 +654,7 @@ var BorrowRepayApi = class {
|
|
|
620
654
|
*/
|
|
621
655
|
async queryBorrowRepayRecordsInMarginAccount(requestParameters) {
|
|
622
656
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBorrowRepayRecordsInMarginAccount(requestParameters?.type, requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
623
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
657
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
624
658
|
}
|
|
625
659
|
/**
|
|
626
660
|
* Query Margin Interest Rate History
|
|
@@ -636,7 +670,7 @@ var BorrowRepayApi = class {
|
|
|
636
670
|
*/
|
|
637
671
|
async queryMarginInterestRateHistory(requestParameters) {
|
|
638
672
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginInterestRateHistory(requestParameters?.asset, requestParameters?.vipLevel, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
639
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
673
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
640
674
|
}
|
|
641
675
|
/**
|
|
642
676
|
* Query Max Borrow
|
|
@@ -655,7 +689,7 @@ var BorrowRepayApi = class {
|
|
|
655
689
|
*/
|
|
656
690
|
async queryMaxBorrow(requestParameters) {
|
|
657
691
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMaxBorrow(requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.recvWindow);
|
|
658
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
692
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
659
693
|
}
|
|
660
694
|
};
|
|
661
695
|
|
|
@@ -681,6 +715,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
681
715
|
crossMarginCollateralRatio: async () => {
|
|
682
716
|
const localVarQueryParameter = {};
|
|
683
717
|
const localVarBodyParameter = {};
|
|
718
|
+
const localVarHeaderParameter = {};
|
|
684
719
|
let _timeUnit;
|
|
685
720
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
686
721
|
return {
|
|
@@ -688,12 +723,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
688
723
|
method: "GET",
|
|
689
724
|
queryParams: localVarQueryParameter,
|
|
690
725
|
bodyParams: localVarBodyParameter,
|
|
726
|
+
headerParams: localVarHeaderParameter,
|
|
691
727
|
timeUnit: _timeUnit
|
|
692
728
|
};
|
|
693
729
|
},
|
|
694
730
|
getAllCrossMarginPairs: async (symbol) => {
|
|
695
731
|
const localVarQueryParameter = {};
|
|
696
732
|
const localVarBodyParameter = {};
|
|
733
|
+
const localVarHeaderParameter = {};
|
|
697
734
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
698
735
|
let _timeUnit;
|
|
699
736
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -702,12 +739,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
702
739
|
method: "GET",
|
|
703
740
|
queryParams: localVarQueryParameter,
|
|
704
741
|
bodyParams: localVarBodyParameter,
|
|
742
|
+
headerParams: localVarHeaderParameter,
|
|
705
743
|
timeUnit: _timeUnit
|
|
706
744
|
};
|
|
707
745
|
},
|
|
708
746
|
getAllIsolatedMarginSymbol: async (symbol, recvWindow) => {
|
|
709
747
|
const localVarQueryParameter = {};
|
|
710
748
|
const localVarBodyParameter = {};
|
|
749
|
+
const localVarHeaderParameter = {};
|
|
711
750
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
712
751
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
713
752
|
let _timeUnit;
|
|
@@ -717,12 +756,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
717
756
|
method: "GET",
|
|
718
757
|
queryParams: localVarQueryParameter,
|
|
719
758
|
bodyParams: localVarBodyParameter,
|
|
759
|
+
headerParams: localVarHeaderParameter,
|
|
720
760
|
timeUnit: _timeUnit
|
|
721
761
|
};
|
|
722
762
|
},
|
|
723
763
|
getAllMarginAssets: async (asset) => {
|
|
724
764
|
const localVarQueryParameter = {};
|
|
725
765
|
const localVarBodyParameter = {};
|
|
766
|
+
const localVarHeaderParameter = {};
|
|
726
767
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
727
768
|
let _timeUnit;
|
|
728
769
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -731,12 +772,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
731
772
|
method: "GET",
|
|
732
773
|
queryParams: localVarQueryParameter,
|
|
733
774
|
bodyParams: localVarBodyParameter,
|
|
775
|
+
headerParams: localVarHeaderParameter,
|
|
734
776
|
timeUnit: _timeUnit
|
|
735
777
|
};
|
|
736
778
|
},
|
|
737
779
|
getDelistSchedule: async (recvWindow) => {
|
|
738
780
|
const localVarQueryParameter = {};
|
|
739
781
|
const localVarBodyParameter = {};
|
|
782
|
+
const localVarHeaderParameter = {};
|
|
740
783
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
741
784
|
let _timeUnit;
|
|
742
785
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -745,12 +788,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
745
788
|
method: "GET",
|
|
746
789
|
queryParams: localVarQueryParameter,
|
|
747
790
|
bodyParams: localVarBodyParameter,
|
|
791
|
+
headerParams: localVarHeaderParameter,
|
|
748
792
|
timeUnit: _timeUnit
|
|
749
793
|
};
|
|
750
794
|
},
|
|
751
795
|
getLimitPricePairs: async () => {
|
|
752
796
|
const localVarQueryParameter = {};
|
|
753
797
|
const localVarBodyParameter = {};
|
|
798
|
+
const localVarHeaderParameter = {};
|
|
754
799
|
let _timeUnit;
|
|
755
800
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
756
801
|
return {
|
|
@@ -758,12 +803,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
758
803
|
method: "GET",
|
|
759
804
|
queryParams: localVarQueryParameter,
|
|
760
805
|
bodyParams: localVarBodyParameter,
|
|
806
|
+
headerParams: localVarHeaderParameter,
|
|
761
807
|
timeUnit: _timeUnit
|
|
762
808
|
};
|
|
763
809
|
},
|
|
764
810
|
getListSchedule: async (recvWindow) => {
|
|
765
811
|
const localVarQueryParameter = {};
|
|
766
812
|
const localVarBodyParameter = {};
|
|
813
|
+
const localVarHeaderParameter = {};
|
|
767
814
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
768
815
|
let _timeUnit;
|
|
769
816
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -772,12 +819,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
772
819
|
method: "GET",
|
|
773
820
|
queryParams: localVarQueryParameter,
|
|
774
821
|
bodyParams: localVarBodyParameter,
|
|
822
|
+
headerParams: localVarHeaderParameter,
|
|
775
823
|
timeUnit: _timeUnit
|
|
776
824
|
};
|
|
777
825
|
},
|
|
778
826
|
getMarginAssetRiskBasedLiquidationRatio: async () => {
|
|
779
827
|
const localVarQueryParameter = {};
|
|
780
828
|
const localVarBodyParameter = {};
|
|
829
|
+
const localVarHeaderParameter = {};
|
|
781
830
|
let _timeUnit;
|
|
782
831
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
783
832
|
return {
|
|
@@ -785,12 +834,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
785
834
|
method: "GET",
|
|
786
835
|
queryParams: localVarQueryParameter,
|
|
787
836
|
bodyParams: localVarBodyParameter,
|
|
837
|
+
headerParams: localVarHeaderParameter,
|
|
788
838
|
timeUnit: _timeUnit
|
|
789
839
|
};
|
|
790
840
|
},
|
|
791
841
|
getMarginRestrictedAssets: async () => {
|
|
792
842
|
const localVarQueryParameter = {};
|
|
793
843
|
const localVarBodyParameter = {};
|
|
844
|
+
const localVarHeaderParameter = {};
|
|
794
845
|
let _timeUnit;
|
|
795
846
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
796
847
|
return {
|
|
@@ -798,6 +849,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
798
849
|
method: "GET",
|
|
799
850
|
queryParams: localVarQueryParameter,
|
|
800
851
|
bodyParams: localVarBodyParameter,
|
|
852
|
+
headerParams: localVarHeaderParameter,
|
|
801
853
|
timeUnit: _timeUnit
|
|
802
854
|
};
|
|
803
855
|
},
|
|
@@ -805,6 +857,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
805
857
|
assertParamExists("queryIsolatedMarginTierData", "symbol", symbol);
|
|
806
858
|
const localVarQueryParameter = {};
|
|
807
859
|
const localVarBodyParameter = {};
|
|
860
|
+
const localVarHeaderParameter = {};
|
|
808
861
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
809
862
|
if (tier !== void 0 && tier !== null) localVarQueryParameter["tier"] = tier;
|
|
810
863
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -815,12 +868,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
815
868
|
method: "GET",
|
|
816
869
|
queryParams: localVarQueryParameter,
|
|
817
870
|
bodyParams: localVarBodyParameter,
|
|
871
|
+
headerParams: localVarHeaderParameter,
|
|
818
872
|
timeUnit: _timeUnit
|
|
819
873
|
};
|
|
820
874
|
},
|
|
821
875
|
queryLiabilityCoinLeverageBracketInCrossMarginProMode: async () => {
|
|
822
876
|
const localVarQueryParameter = {};
|
|
823
877
|
const localVarBodyParameter = {};
|
|
878
|
+
const localVarHeaderParameter = {};
|
|
824
879
|
let _timeUnit;
|
|
825
880
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
826
881
|
return {
|
|
@@ -828,6 +883,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
828
883
|
method: "GET",
|
|
829
884
|
queryParams: localVarQueryParameter,
|
|
830
885
|
bodyParams: localVarBodyParameter,
|
|
886
|
+
headerParams: localVarHeaderParameter,
|
|
831
887
|
timeUnit: _timeUnit
|
|
832
888
|
};
|
|
833
889
|
},
|
|
@@ -835,6 +891,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
835
891
|
assertParamExists("queryMarginAvailableInventory", "type", type);
|
|
836
892
|
const localVarQueryParameter = {};
|
|
837
893
|
const localVarBodyParameter = {};
|
|
894
|
+
const localVarHeaderParameter = {};
|
|
838
895
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
839
896
|
let _timeUnit;
|
|
840
897
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -843,6 +900,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
843
900
|
method: "GET",
|
|
844
901
|
queryParams: localVarQueryParameter,
|
|
845
902
|
bodyParams: localVarBodyParameter,
|
|
903
|
+
headerParams: localVarHeaderParameter,
|
|
846
904
|
timeUnit: _timeUnit
|
|
847
905
|
};
|
|
848
906
|
},
|
|
@@ -850,6 +908,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
850
908
|
assertParamExists("queryMarginPriceindex", "symbol", symbol);
|
|
851
909
|
const localVarQueryParameter = {};
|
|
852
910
|
const localVarBodyParameter = {};
|
|
911
|
+
const localVarHeaderParameter = {};
|
|
853
912
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
854
913
|
let _timeUnit;
|
|
855
914
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -858,6 +917,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
858
917
|
method: "GET",
|
|
859
918
|
queryParams: localVarQueryParameter,
|
|
860
919
|
bodyParams: localVarBodyParameter,
|
|
920
|
+
headerParams: localVarHeaderParameter,
|
|
861
921
|
timeUnit: _timeUnit
|
|
862
922
|
};
|
|
863
923
|
}
|
|
@@ -885,7 +945,7 @@ var MarketDataApi = class {
|
|
|
885
945
|
*/
|
|
886
946
|
async crossMarginCollateralRatio() {
|
|
887
947
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.crossMarginCollateralRatio();
|
|
888
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
948
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
889
949
|
}
|
|
890
950
|
/**
|
|
891
951
|
* Get All Cross Margin Pairs
|
|
@@ -901,7 +961,7 @@ var MarketDataApi = class {
|
|
|
901
961
|
*/
|
|
902
962
|
async getAllCrossMarginPairs(requestParameters = {}) {
|
|
903
963
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAllCrossMarginPairs(requestParameters?.symbol);
|
|
904
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
964
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
905
965
|
}
|
|
906
966
|
/**
|
|
907
967
|
* Get All Isolated Margin Symbol
|
|
@@ -917,7 +977,7 @@ var MarketDataApi = class {
|
|
|
917
977
|
*/
|
|
918
978
|
async getAllIsolatedMarginSymbol(requestParameters = {}) {
|
|
919
979
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAllIsolatedMarginSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
920
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
980
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
921
981
|
}
|
|
922
982
|
/**
|
|
923
983
|
* Get All Margin Assets.
|
|
@@ -933,7 +993,7 @@ var MarketDataApi = class {
|
|
|
933
993
|
*/
|
|
934
994
|
async getAllMarginAssets(requestParameters = {}) {
|
|
935
995
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAllMarginAssets(requestParameters?.asset);
|
|
936
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
996
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
937
997
|
}
|
|
938
998
|
/**
|
|
939
999
|
* Get tokens or symbols delist schedule for cross margin and isolated margin
|
|
@@ -949,7 +1009,7 @@ var MarketDataApi = class {
|
|
|
949
1009
|
*/
|
|
950
1010
|
async getDelistSchedule(requestParameters = {}) {
|
|
951
1011
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDelistSchedule(requestParameters?.recvWindow);
|
|
952
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1012
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
953
1013
|
}
|
|
954
1014
|
/**
|
|
955
1015
|
* Query trading pairs with restriction on limit price range.
|
|
@@ -969,7 +1029,7 @@ var MarketDataApi = class {
|
|
|
969
1029
|
*/
|
|
970
1030
|
async getLimitPricePairs() {
|
|
971
1031
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLimitPricePairs();
|
|
972
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1032
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
973
1033
|
}
|
|
974
1034
|
/**
|
|
975
1035
|
* Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
|
|
@@ -985,7 +1045,7 @@ var MarketDataApi = class {
|
|
|
985
1045
|
*/
|
|
986
1046
|
async getListSchedule(requestParameters = {}) {
|
|
987
1047
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getListSchedule(requestParameters?.recvWindow);
|
|
988
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1048
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
989
1049
|
}
|
|
990
1050
|
/**
|
|
991
1051
|
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
@@ -1000,7 +1060,7 @@ var MarketDataApi = class {
|
|
|
1000
1060
|
*/
|
|
1001
1061
|
async getMarginAssetRiskBasedLiquidationRatio() {
|
|
1002
1062
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginAssetRiskBasedLiquidationRatio();
|
|
1003
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1063
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1004
1064
|
}
|
|
1005
1065
|
/**
|
|
1006
1066
|
* Get Margin Restricted Assets
|
|
@@ -1015,7 +1075,7 @@ var MarketDataApi = class {
|
|
|
1015
1075
|
*/
|
|
1016
1076
|
async getMarginRestrictedAssets() {
|
|
1017
1077
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginRestrictedAssets();
|
|
1018
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1078
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1019
1079
|
}
|
|
1020
1080
|
/**
|
|
1021
1081
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
@@ -1031,7 +1091,7 @@ var MarketDataApi = class {
|
|
|
1031
1091
|
*/
|
|
1032
1092
|
async queryIsolatedMarginTierData(requestParameters) {
|
|
1033
1093
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIsolatedMarginTierData(requestParameters?.symbol, requestParameters?.tier, requestParameters?.recvWindow);
|
|
1034
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1094
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1035
1095
|
}
|
|
1036
1096
|
/**
|
|
1037
1097
|
* Liability Coin Leverage Bracket in Cross Margin Pro Mode
|
|
@@ -1046,7 +1106,7 @@ var MarketDataApi = class {
|
|
|
1046
1106
|
*/
|
|
1047
1107
|
async queryLiabilityCoinLeverageBracketInCrossMarginProMode() {
|
|
1048
1108
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryLiabilityCoinLeverageBracketInCrossMarginProMode();
|
|
1049
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1109
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1050
1110
|
}
|
|
1051
1111
|
/**
|
|
1052
1112
|
* Margin available Inventory query
|
|
@@ -1062,7 +1122,7 @@ var MarketDataApi = class {
|
|
|
1062
1122
|
*/
|
|
1063
1123
|
async queryMarginAvailableInventory(requestParameters) {
|
|
1064
1124
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAvailableInventory(requestParameters?.type);
|
|
1065
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1125
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1066
1126
|
}
|
|
1067
1127
|
/**
|
|
1068
1128
|
* Query Margin PriceIndex
|
|
@@ -1078,7 +1138,7 @@ var MarketDataApi = class {
|
|
|
1078
1138
|
*/
|
|
1079
1139
|
async queryMarginPriceindex(requestParameters) {
|
|
1080
1140
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginPriceindex(requestParameters?.symbol);
|
|
1081
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1141
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1082
1142
|
}
|
|
1083
1143
|
};
|
|
1084
1144
|
|
|
@@ -1104,6 +1164,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1104
1164
|
closeUserDataStream: async () => {
|
|
1105
1165
|
const localVarQueryParameter = {};
|
|
1106
1166
|
const localVarBodyParameter = {};
|
|
1167
|
+
const localVarHeaderParameter = {};
|
|
1107
1168
|
let _timeUnit;
|
|
1108
1169
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1109
1170
|
return {
|
|
@@ -1111,6 +1172,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1111
1172
|
method: "DELETE",
|
|
1112
1173
|
queryParams: localVarQueryParameter,
|
|
1113
1174
|
bodyParams: localVarBodyParameter,
|
|
1175
|
+
headerParams: localVarHeaderParameter,
|
|
1114
1176
|
timeUnit: _timeUnit
|
|
1115
1177
|
};
|
|
1116
1178
|
},
|
|
@@ -1118,6 +1180,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1118
1180
|
assertParamExists("keepaliveUserDataStream", "listenKey", listenKey);
|
|
1119
1181
|
const localVarQueryParameter = {};
|
|
1120
1182
|
const localVarBodyParameter = {};
|
|
1183
|
+
const localVarHeaderParameter = {};
|
|
1121
1184
|
if (listenKey !== void 0 && listenKey !== null) localVarQueryParameter["listenKey"] = listenKey;
|
|
1122
1185
|
let _timeUnit;
|
|
1123
1186
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1126,12 +1189,14 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1126
1189
|
method: "PUT",
|
|
1127
1190
|
queryParams: localVarQueryParameter,
|
|
1128
1191
|
bodyParams: localVarBodyParameter,
|
|
1192
|
+
headerParams: localVarHeaderParameter,
|
|
1129
1193
|
timeUnit: _timeUnit
|
|
1130
1194
|
};
|
|
1131
1195
|
},
|
|
1132
1196
|
startUserDataStream: async () => {
|
|
1133
1197
|
const localVarQueryParameter = {};
|
|
1134
1198
|
const localVarBodyParameter = {};
|
|
1199
|
+
const localVarHeaderParameter = {};
|
|
1135
1200
|
let _timeUnit;
|
|
1136
1201
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1137
1202
|
return {
|
|
@@ -1139,6 +1204,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1139
1204
|
method: "POST",
|
|
1140
1205
|
queryParams: localVarQueryParameter,
|
|
1141
1206
|
bodyParams: localVarBodyParameter,
|
|
1207
|
+
headerParams: localVarHeaderParameter,
|
|
1142
1208
|
timeUnit: _timeUnit
|
|
1143
1209
|
};
|
|
1144
1210
|
}
|
|
@@ -1166,7 +1232,7 @@ var RiskDataStreamApi = class {
|
|
|
1166
1232
|
*/
|
|
1167
1233
|
async closeUserDataStream() {
|
|
1168
1234
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
1169
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1235
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1170
1236
|
}
|
|
1171
1237
|
/**
|
|
1172
1238
|
* Keepalive a user data stream to prevent a time out.
|
|
@@ -1182,7 +1248,7 @@ var RiskDataStreamApi = class {
|
|
|
1182
1248
|
*/
|
|
1183
1249
|
async keepaliveUserDataStream(requestParameters) {
|
|
1184
1250
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream(requestParameters?.listenKey);
|
|
1185
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1251
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1186
1252
|
}
|
|
1187
1253
|
/**
|
|
1188
1254
|
* Start a new user data stream.
|
|
@@ -1197,7 +1263,7 @@ var RiskDataStreamApi = class {
|
|
|
1197
1263
|
*/
|
|
1198
1264
|
async startUserDataStream() {
|
|
1199
1265
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
1200
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1266
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1201
1267
|
}
|
|
1202
1268
|
};
|
|
1203
1269
|
|
|
@@ -1224,6 +1290,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1224
1290
|
assertParamExists("createSpecialKey", "apiName", apiName);
|
|
1225
1291
|
const localVarQueryParameter = {};
|
|
1226
1292
|
const localVarBodyParameter = {};
|
|
1293
|
+
const localVarHeaderParameter = {};
|
|
1227
1294
|
if (apiName !== void 0 && apiName !== null) localVarQueryParameter["apiName"] = apiName;
|
|
1228
1295
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1229
1296
|
if (ip !== void 0 && ip !== null) localVarQueryParameter["ip"] = ip;
|
|
@@ -1237,12 +1304,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1237
1304
|
method: "POST",
|
|
1238
1305
|
queryParams: localVarQueryParameter,
|
|
1239
1306
|
bodyParams: localVarBodyParameter,
|
|
1307
|
+
headerParams: localVarHeaderParameter,
|
|
1240
1308
|
timeUnit: _timeUnit
|
|
1241
1309
|
};
|
|
1242
1310
|
},
|
|
1243
1311
|
deleteSpecialKey: async (apiName, symbol, recvWindow) => {
|
|
1244
1312
|
const localVarQueryParameter = {};
|
|
1245
1313
|
const localVarBodyParameter = {};
|
|
1314
|
+
const localVarHeaderParameter = {};
|
|
1246
1315
|
if (apiName !== void 0 && apiName !== null) localVarQueryParameter["apiName"] = apiName;
|
|
1247
1316
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1248
1317
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1253,6 +1322,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1253
1322
|
method: "DELETE",
|
|
1254
1323
|
queryParams: localVarQueryParameter,
|
|
1255
1324
|
bodyParams: localVarBodyParameter,
|
|
1325
|
+
headerParams: localVarHeaderParameter,
|
|
1256
1326
|
timeUnit: _timeUnit
|
|
1257
1327
|
};
|
|
1258
1328
|
},
|
|
@@ -1260,6 +1330,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1260
1330
|
assertParamExists("editIpForSpecialKey", "ip", ip);
|
|
1261
1331
|
const localVarQueryParameter = {};
|
|
1262
1332
|
const localVarBodyParameter = {};
|
|
1333
|
+
const localVarHeaderParameter = {};
|
|
1263
1334
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1264
1335
|
if (ip !== void 0 && ip !== null) localVarQueryParameter["ip"] = ip;
|
|
1265
1336
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1270,12 +1341,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1270
1341
|
method: "PUT",
|
|
1271
1342
|
queryParams: localVarQueryParameter,
|
|
1272
1343
|
bodyParams: localVarBodyParameter,
|
|
1344
|
+
headerParams: localVarHeaderParameter,
|
|
1273
1345
|
timeUnit: _timeUnit
|
|
1274
1346
|
};
|
|
1275
1347
|
},
|
|
1276
1348
|
getForceLiquidationRecord: async (startTime, endTime, isolatedSymbol, current, size, recvWindow) => {
|
|
1277
1349
|
const localVarQueryParameter = {};
|
|
1278
1350
|
const localVarBodyParameter = {};
|
|
1351
|
+
const localVarHeaderParameter = {};
|
|
1279
1352
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1280
1353
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
1281
1354
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
@@ -1289,12 +1362,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1289
1362
|
method: "GET",
|
|
1290
1363
|
queryParams: localVarQueryParameter,
|
|
1291
1364
|
bodyParams: localVarBodyParameter,
|
|
1365
|
+
headerParams: localVarHeaderParameter,
|
|
1292
1366
|
timeUnit: _timeUnit
|
|
1293
1367
|
};
|
|
1294
1368
|
},
|
|
1295
1369
|
getSmallLiabilityExchangeCoinList: async (recvWindow) => {
|
|
1296
1370
|
const localVarQueryParameter = {};
|
|
1297
1371
|
const localVarBodyParameter = {};
|
|
1372
|
+
const localVarHeaderParameter = {};
|
|
1298
1373
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1299
1374
|
let _timeUnit;
|
|
1300
1375
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1303,6 +1378,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1303
1378
|
method: "GET",
|
|
1304
1379
|
queryParams: localVarQueryParameter,
|
|
1305
1380
|
bodyParams: localVarBodyParameter,
|
|
1381
|
+
headerParams: localVarHeaderParameter,
|
|
1306
1382
|
timeUnit: _timeUnit
|
|
1307
1383
|
};
|
|
1308
1384
|
},
|
|
@@ -1311,6 +1387,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1311
1387
|
assertParamExists("getSmallLiabilityExchangeHistory", "size", size);
|
|
1312
1388
|
const localVarQueryParameter = {};
|
|
1313
1389
|
const localVarBodyParameter = {};
|
|
1390
|
+
const localVarHeaderParameter = {};
|
|
1314
1391
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
1315
1392
|
if (size !== void 0 && size !== null) localVarQueryParameter["size"] = size;
|
|
1316
1393
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1323,6 +1400,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1323
1400
|
method: "GET",
|
|
1324
1401
|
queryParams: localVarQueryParameter,
|
|
1325
1402
|
bodyParams: localVarBodyParameter,
|
|
1403
|
+
headerParams: localVarHeaderParameter,
|
|
1326
1404
|
timeUnit: _timeUnit
|
|
1327
1405
|
};
|
|
1328
1406
|
},
|
|
@@ -1330,6 +1408,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1330
1408
|
assertParamExists("marginAccountCancelAllOpenOrdersOnASymbol", "symbol", symbol);
|
|
1331
1409
|
const localVarQueryParameter = {};
|
|
1332
1410
|
const localVarBodyParameter = {};
|
|
1411
|
+
const localVarHeaderParameter = {};
|
|
1333
1412
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1334
1413
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1335
1414
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1340,6 +1419,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1340
1419
|
method: "DELETE",
|
|
1341
1420
|
queryParams: localVarQueryParameter,
|
|
1342
1421
|
bodyParams: localVarBodyParameter,
|
|
1422
|
+
headerParams: localVarHeaderParameter,
|
|
1343
1423
|
timeUnit: _timeUnit
|
|
1344
1424
|
};
|
|
1345
1425
|
},
|
|
@@ -1347,6 +1427,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1347
1427
|
assertParamExists("marginAccountCancelOco", "symbol", symbol);
|
|
1348
1428
|
const localVarQueryParameter = {};
|
|
1349
1429
|
const localVarBodyParameter = {};
|
|
1430
|
+
const localVarHeaderParameter = {};
|
|
1350
1431
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1351
1432
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1352
1433
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
@@ -1360,6 +1441,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1360
1441
|
method: "DELETE",
|
|
1361
1442
|
queryParams: localVarQueryParameter,
|
|
1362
1443
|
bodyParams: localVarBodyParameter,
|
|
1444
|
+
headerParams: localVarHeaderParameter,
|
|
1363
1445
|
timeUnit: _timeUnit
|
|
1364
1446
|
};
|
|
1365
1447
|
},
|
|
@@ -1367,6 +1449,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1367
1449
|
assertParamExists("marginAccountCancelOrder", "symbol", symbol);
|
|
1368
1450
|
const localVarQueryParameter = {};
|
|
1369
1451
|
const localVarBodyParameter = {};
|
|
1452
|
+
const localVarHeaderParameter = {};
|
|
1370
1453
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1371
1454
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1372
1455
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1380,6 +1463,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1380
1463
|
method: "DELETE",
|
|
1381
1464
|
queryParams: localVarQueryParameter,
|
|
1382
1465
|
bodyParams: localVarBodyParameter,
|
|
1466
|
+
headerParams: localVarHeaderParameter,
|
|
1383
1467
|
timeUnit: _timeUnit
|
|
1384
1468
|
};
|
|
1385
1469
|
},
|
|
@@ -1391,6 +1475,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1391
1475
|
assertParamExists("marginAccountNewOco", "stopPrice", stopPrice);
|
|
1392
1476
|
const localVarQueryParameter = {};
|
|
1393
1477
|
const localVarBodyParameter = {};
|
|
1478
|
+
const localVarHeaderParameter = {};
|
|
1394
1479
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1395
1480
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1396
1481
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1416,6 +1501,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1416
1501
|
method: "POST",
|
|
1417
1502
|
queryParams: localVarQueryParameter,
|
|
1418
1503
|
bodyParams: localVarBodyParameter,
|
|
1504
|
+
headerParams: localVarHeaderParameter,
|
|
1419
1505
|
timeUnit: _timeUnit
|
|
1420
1506
|
};
|
|
1421
1507
|
},
|
|
@@ -1425,6 +1511,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1425
1511
|
assertParamExists("marginAccountNewOrder", "type", type);
|
|
1426
1512
|
const localVarQueryParameter = {};
|
|
1427
1513
|
const localVarBodyParameter = {};
|
|
1514
|
+
const localVarHeaderParameter = {};
|
|
1428
1515
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1429
1516
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1430
1517
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -1448,6 +1535,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1448
1535
|
method: "POST",
|
|
1449
1536
|
queryParams: localVarQueryParameter,
|
|
1450
1537
|
bodyParams: localVarBodyParameter,
|
|
1538
|
+
headerParams: localVarHeaderParameter,
|
|
1451
1539
|
timeUnit: _timeUnit
|
|
1452
1540
|
};
|
|
1453
1541
|
},
|
|
@@ -1463,6 +1551,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1463
1551
|
assertParamExists("marginAccountNewOto", "pendingQuantity", pendingQuantity);
|
|
1464
1552
|
const localVarQueryParameter = {};
|
|
1465
1553
|
const localVarBodyParameter = {};
|
|
1554
|
+
const localVarHeaderParameter = {};
|
|
1466
1555
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1467
1556
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1468
1557
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1493,6 +1582,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1493
1582
|
method: "POST",
|
|
1494
1583
|
queryParams: localVarQueryParameter,
|
|
1495
1584
|
bodyParams: localVarBodyParameter,
|
|
1585
|
+
headerParams: localVarHeaderParameter,
|
|
1496
1586
|
timeUnit: _timeUnit
|
|
1497
1587
|
};
|
|
1498
1588
|
},
|
|
@@ -1507,6 +1597,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1507
1597
|
assertParamExists("marginAccountNewOtoco", "pendingAboveType", pendingAboveType);
|
|
1508
1598
|
const localVarQueryParameter = {};
|
|
1509
1599
|
const localVarBodyParameter = {};
|
|
1600
|
+
const localVarHeaderParameter = {};
|
|
1510
1601
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1511
1602
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1512
1603
|
if (sideEffectType !== void 0 && sideEffectType !== null) localVarQueryParameter["sideEffectType"] = sideEffectType;
|
|
@@ -1544,6 +1635,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1544
1635
|
method: "POST",
|
|
1545
1636
|
queryParams: localVarQueryParameter,
|
|
1546
1637
|
bodyParams: localVarBodyParameter,
|
|
1638
|
+
headerParams: localVarHeaderParameter,
|
|
1547
1639
|
timeUnit: _timeUnit
|
|
1548
1640
|
};
|
|
1549
1641
|
},
|
|
@@ -1551,6 +1643,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1551
1643
|
assertParamExists("marginManualLiquidation", "type", type);
|
|
1552
1644
|
const localVarQueryParameter = {};
|
|
1553
1645
|
const localVarBodyParameter = {};
|
|
1646
|
+
const localVarHeaderParameter = {};
|
|
1554
1647
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
1555
1648
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1556
1649
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1561,12 +1654,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1561
1654
|
method: "POST",
|
|
1562
1655
|
queryParams: localVarQueryParameter,
|
|
1563
1656
|
bodyParams: localVarBodyParameter,
|
|
1657
|
+
headerParams: localVarHeaderParameter,
|
|
1564
1658
|
timeUnit: _timeUnit
|
|
1565
1659
|
};
|
|
1566
1660
|
},
|
|
1567
1661
|
queryCurrentMarginOrderCountUsage: async (isIsolated, symbol, recvWindow) => {
|
|
1568
1662
|
const localVarQueryParameter = {};
|
|
1569
1663
|
const localVarBodyParameter = {};
|
|
1664
|
+
const localVarHeaderParameter = {};
|
|
1570
1665
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1571
1666
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1572
1667
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1577,12 +1672,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1577
1672
|
method: "GET",
|
|
1578
1673
|
queryParams: localVarQueryParameter,
|
|
1579
1674
|
bodyParams: localVarBodyParameter,
|
|
1675
|
+
headerParams: localVarHeaderParameter,
|
|
1580
1676
|
timeUnit: _timeUnit
|
|
1581
1677
|
};
|
|
1582
1678
|
},
|
|
1583
1679
|
queryMarginAccountsAllOco: async (isIsolated, symbol, fromId, startTime, endTime, limit, recvWindow) => {
|
|
1584
1680
|
const localVarQueryParameter = {};
|
|
1585
1681
|
const localVarBodyParameter = {};
|
|
1682
|
+
const localVarHeaderParameter = {};
|
|
1586
1683
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1587
1684
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1588
1685
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
@@ -1597,6 +1694,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1597
1694
|
method: "GET",
|
|
1598
1695
|
queryParams: localVarQueryParameter,
|
|
1599
1696
|
bodyParams: localVarBodyParameter,
|
|
1697
|
+
headerParams: localVarHeaderParameter,
|
|
1600
1698
|
timeUnit: _timeUnit
|
|
1601
1699
|
};
|
|
1602
1700
|
},
|
|
@@ -1604,6 +1702,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1604
1702
|
assertParamExists("queryMarginAccountsAllOrders", "symbol", symbol);
|
|
1605
1703
|
const localVarQueryParameter = {};
|
|
1606
1704
|
const localVarBodyParameter = {};
|
|
1705
|
+
const localVarHeaderParameter = {};
|
|
1607
1706
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1608
1707
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1609
1708
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1618,12 +1717,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1618
1717
|
method: "GET",
|
|
1619
1718
|
queryParams: localVarQueryParameter,
|
|
1620
1719
|
bodyParams: localVarBodyParameter,
|
|
1720
|
+
headerParams: localVarHeaderParameter,
|
|
1621
1721
|
timeUnit: _timeUnit
|
|
1622
1722
|
};
|
|
1623
1723
|
},
|
|
1624
1724
|
queryMarginAccountsOco: async (isIsolated, symbol, orderListId, origClientOrderId, recvWindow) => {
|
|
1625
1725
|
const localVarQueryParameter = {};
|
|
1626
1726
|
const localVarBodyParameter = {};
|
|
1727
|
+
const localVarHeaderParameter = {};
|
|
1627
1728
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1628
1729
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1629
1730
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
@@ -1636,12 +1737,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1636
1737
|
method: "GET",
|
|
1637
1738
|
queryParams: localVarQueryParameter,
|
|
1638
1739
|
bodyParams: localVarBodyParameter,
|
|
1740
|
+
headerParams: localVarHeaderParameter,
|
|
1639
1741
|
timeUnit: _timeUnit
|
|
1640
1742
|
};
|
|
1641
1743
|
},
|
|
1642
1744
|
queryMarginAccountsOpenOco: async (isIsolated, symbol, recvWindow) => {
|
|
1643
1745
|
const localVarQueryParameter = {};
|
|
1644
1746
|
const localVarBodyParameter = {};
|
|
1747
|
+
const localVarHeaderParameter = {};
|
|
1645
1748
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1646
1749
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1647
1750
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1652,12 +1755,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1652
1755
|
method: "GET",
|
|
1653
1756
|
queryParams: localVarQueryParameter,
|
|
1654
1757
|
bodyParams: localVarBodyParameter,
|
|
1758
|
+
headerParams: localVarHeaderParameter,
|
|
1655
1759
|
timeUnit: _timeUnit
|
|
1656
1760
|
};
|
|
1657
1761
|
},
|
|
1658
1762
|
queryMarginAccountsOpenOrders: async (symbol, isIsolated, recvWindow) => {
|
|
1659
1763
|
const localVarQueryParameter = {};
|
|
1660
1764
|
const localVarBodyParameter = {};
|
|
1765
|
+
const localVarHeaderParameter = {};
|
|
1661
1766
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1662
1767
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1663
1768
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1668,6 +1773,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1668
1773
|
method: "GET",
|
|
1669
1774
|
queryParams: localVarQueryParameter,
|
|
1670
1775
|
bodyParams: localVarBodyParameter,
|
|
1776
|
+
headerParams: localVarHeaderParameter,
|
|
1671
1777
|
timeUnit: _timeUnit
|
|
1672
1778
|
};
|
|
1673
1779
|
},
|
|
@@ -1675,6 +1781,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1675
1781
|
assertParamExists("queryMarginAccountsOrder", "symbol", symbol);
|
|
1676
1782
|
const localVarQueryParameter = {};
|
|
1677
1783
|
const localVarBodyParameter = {};
|
|
1784
|
+
const localVarHeaderParameter = {};
|
|
1678
1785
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1679
1786
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1680
1787
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1687,6 +1794,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1687
1794
|
method: "GET",
|
|
1688
1795
|
queryParams: localVarQueryParameter,
|
|
1689
1796
|
bodyParams: localVarBodyParameter,
|
|
1797
|
+
headerParams: localVarHeaderParameter,
|
|
1690
1798
|
timeUnit: _timeUnit
|
|
1691
1799
|
};
|
|
1692
1800
|
},
|
|
@@ -1694,6 +1802,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1694
1802
|
assertParamExists("queryMarginAccountsTradeList", "symbol", symbol);
|
|
1695
1803
|
const localVarQueryParameter = {};
|
|
1696
1804
|
const localVarBodyParameter = {};
|
|
1805
|
+
const localVarHeaderParameter = {};
|
|
1697
1806
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1698
1807
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1699
1808
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1709,6 +1818,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1709
1818
|
method: "GET",
|
|
1710
1819
|
queryParams: localVarQueryParameter,
|
|
1711
1820
|
bodyParams: localVarBodyParameter,
|
|
1821
|
+
headerParams: localVarHeaderParameter,
|
|
1712
1822
|
timeUnit: _timeUnit
|
|
1713
1823
|
};
|
|
1714
1824
|
},
|
|
@@ -1716,6 +1826,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1716
1826
|
assertParamExists("queryPreventedMatches", "symbol", symbol);
|
|
1717
1827
|
const localVarQueryParameter = {};
|
|
1718
1828
|
const localVarBodyParameter = {};
|
|
1829
|
+
const localVarHeaderParameter = {};
|
|
1719
1830
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1720
1831
|
if (preventedMatchId !== void 0 && preventedMatchId !== null) localVarQueryParameter["preventedMatchId"] = preventedMatchId;
|
|
1721
1832
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1729,12 +1840,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1729
1840
|
method: "GET",
|
|
1730
1841
|
queryParams: localVarQueryParameter,
|
|
1731
1842
|
bodyParams: localVarBodyParameter,
|
|
1843
|
+
headerParams: localVarHeaderParameter,
|
|
1732
1844
|
timeUnit: _timeUnit
|
|
1733
1845
|
};
|
|
1734
1846
|
},
|
|
1735
1847
|
querySpecialKey: async (symbol, recvWindow) => {
|
|
1736
1848
|
const localVarQueryParameter = {};
|
|
1737
1849
|
const localVarBodyParameter = {};
|
|
1850
|
+
const localVarHeaderParameter = {};
|
|
1738
1851
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1739
1852
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1740
1853
|
let _timeUnit;
|
|
@@ -1744,12 +1857,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1744
1857
|
method: "GET",
|
|
1745
1858
|
queryParams: localVarQueryParameter,
|
|
1746
1859
|
bodyParams: localVarBodyParameter,
|
|
1860
|
+
headerParams: localVarHeaderParameter,
|
|
1747
1861
|
timeUnit: _timeUnit
|
|
1748
1862
|
};
|
|
1749
1863
|
},
|
|
1750
1864
|
querySpecialKeyList: async (symbol, recvWindow) => {
|
|
1751
1865
|
const localVarQueryParameter = {};
|
|
1752
1866
|
const localVarBodyParameter = {};
|
|
1867
|
+
const localVarHeaderParameter = {};
|
|
1753
1868
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1754
1869
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1755
1870
|
let _timeUnit;
|
|
@@ -1759,6 +1874,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1759
1874
|
method: "GET",
|
|
1760
1875
|
queryParams: localVarQueryParameter,
|
|
1761
1876
|
bodyParams: localVarBodyParameter,
|
|
1877
|
+
headerParams: localVarHeaderParameter,
|
|
1762
1878
|
timeUnit: _timeUnit
|
|
1763
1879
|
};
|
|
1764
1880
|
},
|
|
@@ -1766,6 +1882,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1766
1882
|
assertParamExists("smallLiabilityExchange", "assetNames", assetNames);
|
|
1767
1883
|
const localVarQueryParameter = {};
|
|
1768
1884
|
const localVarBodyParameter = {};
|
|
1885
|
+
const localVarHeaderParameter = {};
|
|
1769
1886
|
if (assetNames) localVarQueryParameter["assetNames"] = assetNames;
|
|
1770
1887
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1771
1888
|
let _timeUnit;
|
|
@@ -1775,6 +1892,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1775
1892
|
method: "POST",
|
|
1776
1893
|
queryParams: localVarQueryParameter,
|
|
1777
1894
|
bodyParams: localVarBodyParameter,
|
|
1895
|
+
headerParams: localVarHeaderParameter,
|
|
1778
1896
|
timeUnit: _timeUnit
|
|
1779
1897
|
};
|
|
1780
1898
|
}
|
|
@@ -1822,7 +1940,7 @@ var TradeApi = class {
|
|
|
1822
1940
|
*/
|
|
1823
1941
|
async createSpecialKey(requestParameters) {
|
|
1824
1942
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.createSpecialKey(requestParameters?.apiName, requestParameters?.symbol, requestParameters?.ip, requestParameters?.publicKey, requestParameters?.permissionMode, requestParameters?.recvWindow);
|
|
1825
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1943
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1826
1944
|
}
|
|
1827
1945
|
/**
|
|
1828
1946
|
* This only applies to Special Key for Low Latency Trading.
|
|
@@ -1842,7 +1960,7 @@ var TradeApi = class {
|
|
|
1842
1960
|
*/
|
|
1843
1961
|
async deleteSpecialKey(requestParameters = {}) {
|
|
1844
1962
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.deleteSpecialKey(requestParameters?.apiName, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1845
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1963
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1846
1964
|
}
|
|
1847
1965
|
/**
|
|
1848
1966
|
* Edit ip restriction. This only applies to Special Key for Low Latency Trading.
|
|
@@ -1860,7 +1978,7 @@ var TradeApi = class {
|
|
|
1860
1978
|
*/
|
|
1861
1979
|
async editIpForSpecialKey(requestParameters) {
|
|
1862
1980
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.editIpForSpecialKey(requestParameters?.ip, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1863
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1981
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1864
1982
|
}
|
|
1865
1983
|
/**
|
|
1866
1984
|
* Get Force Liquidation Record
|
|
@@ -1878,7 +1996,7 @@ var TradeApi = class {
|
|
|
1878
1996
|
*/
|
|
1879
1997
|
async getForceLiquidationRecord(requestParameters = {}) {
|
|
1880
1998
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getForceLiquidationRecord(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.isolatedSymbol, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1881
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1999
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1882
2000
|
}
|
|
1883
2001
|
/**
|
|
1884
2002
|
* Query the coins which can be small liability exchange
|
|
@@ -1894,7 +2012,7 @@ var TradeApi = class {
|
|
|
1894
2012
|
*/
|
|
1895
2013
|
async getSmallLiabilityExchangeCoinList(requestParameters = {}) {
|
|
1896
2014
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSmallLiabilityExchangeCoinList(requestParameters?.recvWindow);
|
|
1897
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2015
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1898
2016
|
}
|
|
1899
2017
|
/**
|
|
1900
2018
|
* Get Small liability Exchange History
|
|
@@ -1910,7 +2028,7 @@ var TradeApi = class {
|
|
|
1910
2028
|
*/
|
|
1911
2029
|
async getSmallLiabilityExchangeHistory(requestParameters) {
|
|
1912
2030
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSmallLiabilityExchangeHistory(requestParameters?.current, requestParameters?.size, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1913
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2031
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1914
2032
|
}
|
|
1915
2033
|
/**
|
|
1916
2034
|
* Cancels all active orders on a symbol for margin account.<br></br>
|
|
@@ -1927,7 +2045,7 @@ var TradeApi = class {
|
|
|
1927
2045
|
*/
|
|
1928
2046
|
async marginAccountCancelAllOpenOrdersOnASymbol(requestParameters) {
|
|
1929
2047
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountCancelAllOpenOrdersOnASymbol(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.recvWindow);
|
|
1930
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2048
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1931
2049
|
}
|
|
1932
2050
|
/**
|
|
1933
2051
|
* Cancel an entire Order List for a margin account.
|
|
@@ -1945,7 +2063,7 @@ var TradeApi = class {
|
|
|
1945
2063
|
*/
|
|
1946
2064
|
async marginAccountCancelOco(requestParameters) {
|
|
1947
2065
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountCancelOco(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderListId, requestParameters?.listClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
1948
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2066
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1949
2067
|
}
|
|
1950
2068
|
/**
|
|
1951
2069
|
* Cancel an active order for margin account.
|
|
@@ -1963,7 +2081,7 @@ var TradeApi = class {
|
|
|
1963
2081
|
*/
|
|
1964
2082
|
async marginAccountCancelOrder(requestParameters) {
|
|
1965
2083
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountCancelOrder(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
1966
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2084
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1967
2085
|
}
|
|
1968
2086
|
/**
|
|
1969
2087
|
* Send in a new OCO for a margin account
|
|
@@ -1981,7 +2099,7 @@ var TradeApi = class {
|
|
|
1981
2099
|
*/
|
|
1982
2100
|
async marginAccountNewOco(requestParameters) {
|
|
1983
2101
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountNewOco(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.stopPrice, requestParameters?.isIsolated, requestParameters?.listClientOrderId, requestParameters?.limitClientOrderId, requestParameters?.limitIcebergQty, requestParameters?.stopClientOrderId, requestParameters?.stopLimitPrice, requestParameters?.stopIcebergQty, requestParameters?.stopLimitTimeInForce, requestParameters?.newOrderRespType, requestParameters?.sideEffectType, requestParameters?.selfTradePreventionMode, requestParameters?.autoRepayAtCancel, requestParameters?.recvWindow);
|
|
1984
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2102
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1985
2103
|
}
|
|
1986
2104
|
/**
|
|
1987
2105
|
* Post a new order for margin account.
|
|
@@ -1999,7 +2117,7 @@ var TradeApi = class {
|
|
|
1999
2117
|
*/
|
|
2000
2118
|
async marginAccountNewOrder(requestParameters) {
|
|
2001
2119
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountNewOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.isIsolated, requestParameters?.quantity, requestParameters?.quoteOrderQty, requestParameters?.price, requestParameters?.stopPrice, requestParameters?.newClientOrderId, requestParameters?.icebergQty, requestParameters?.newOrderRespType, requestParameters?.sideEffectType, requestParameters?.timeInForce, requestParameters?.selfTradePreventionMode, requestParameters?.autoRepayAtCancel, requestParameters?.recvWindow);
|
|
2002
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2120
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2003
2121
|
}
|
|
2004
2122
|
/**
|
|
2005
2123
|
* Post a new OTO order for margin account:
|
|
@@ -2025,7 +2143,7 @@ var TradeApi = class {
|
|
|
2025
2143
|
*/
|
|
2026
2144
|
async marginAccountNewOto(requestParameters) {
|
|
2027
2145
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountNewOto(requestParameters?.symbol, requestParameters?.workingType, requestParameters?.workingSide, requestParameters?.workingPrice, requestParameters?.workingQuantity, requestParameters?.workingIcebergQty, requestParameters?.pendingType, requestParameters?.pendingSide, requestParameters?.pendingQuantity, requestParameters?.isIsolated, requestParameters?.listClientOrderId, requestParameters?.newOrderRespType, requestParameters?.sideEffectType, requestParameters?.selfTradePreventionMode, requestParameters?.autoRepayAtCancel, requestParameters?.workingClientOrderId, requestParameters?.workingTimeInForce, requestParameters?.pendingClientOrderId, requestParameters?.pendingPrice, requestParameters?.pendingStopPrice, requestParameters?.pendingTrailingDelta, requestParameters?.pendingIcebergQty, requestParameters?.pendingTimeInForce);
|
|
2028
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2146
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2029
2147
|
}
|
|
2030
2148
|
/**
|
|
2031
2149
|
* Post a new OTOCO order for margin account:
|
|
@@ -2051,7 +2169,7 @@ var TradeApi = class {
|
|
|
2051
2169
|
*/
|
|
2052
2170
|
async marginAccountNewOtoco(requestParameters) {
|
|
2053
2171
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountNewOtoco(requestParameters?.symbol, requestParameters?.workingType, requestParameters?.workingSide, requestParameters?.workingPrice, requestParameters?.workingQuantity, requestParameters?.pendingSide, requestParameters?.pendingQuantity, requestParameters?.pendingAboveType, requestParameters?.isIsolated, requestParameters?.sideEffectType, requestParameters?.autoRepayAtCancel, requestParameters?.listClientOrderId, requestParameters?.newOrderRespType, requestParameters?.selfTradePreventionMode, requestParameters?.workingClientOrderId, requestParameters?.workingIcebergQty, requestParameters?.workingTimeInForce, requestParameters?.pendingAboveClientOrderId, requestParameters?.pendingAbovePrice, requestParameters?.pendingAboveStopPrice, requestParameters?.pendingAboveTrailingDelta, requestParameters?.pendingAboveIcebergQty, requestParameters?.pendingAboveTimeInForce, requestParameters?.pendingBelowType, requestParameters?.pendingBelowClientOrderId, requestParameters?.pendingBelowPrice, requestParameters?.pendingBelowStopPrice, requestParameters?.pendingBelowTrailingDelta, requestParameters?.pendingBelowIcebergQty, requestParameters?.pendingBelowTimeInForce);
|
|
2054
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2172
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2055
2173
|
}
|
|
2056
2174
|
/**
|
|
2057
2175
|
* Margin Manual Liquidation
|
|
@@ -2070,7 +2188,7 @@ var TradeApi = class {
|
|
|
2070
2188
|
*/
|
|
2071
2189
|
async marginManualLiquidation(requestParameters) {
|
|
2072
2190
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginManualLiquidation(requestParameters?.type, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2073
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2191
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2074
2192
|
}
|
|
2075
2193
|
/**
|
|
2076
2194
|
* Displays the user's current margin order count usage for all intervals.
|
|
@@ -2086,7 +2204,7 @@ var TradeApi = class {
|
|
|
2086
2204
|
*/
|
|
2087
2205
|
async queryCurrentMarginOrderCountUsage(requestParameters = {}) {
|
|
2088
2206
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentMarginOrderCountUsage(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2089
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2207
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2090
2208
|
}
|
|
2091
2209
|
/**
|
|
2092
2210
|
* Retrieves all OCO for a specific margin account based on provided optional parameters
|
|
@@ -2102,7 +2220,7 @@ var TradeApi = class {
|
|
|
2102
2220
|
*/
|
|
2103
2221
|
async queryMarginAccountsAllOco(requestParameters = {}) {
|
|
2104
2222
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOco(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2105
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2223
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2106
2224
|
}
|
|
2107
2225
|
/**
|
|
2108
2226
|
* Query Margin Account's All Orders
|
|
@@ -2122,7 +2240,7 @@ var TradeApi = class {
|
|
|
2122
2240
|
*/
|
|
2123
2241
|
async queryMarginAccountsAllOrders(requestParameters) {
|
|
2124
2242
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOrders(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2125
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2243
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2126
2244
|
}
|
|
2127
2245
|
/**
|
|
2128
2246
|
* Retrieves a specific OCO based on provided optional parameters
|
|
@@ -2138,7 +2256,7 @@ var TradeApi = class {
|
|
|
2138
2256
|
*/
|
|
2139
2257
|
async queryMarginAccountsOco(requestParameters = {}) {
|
|
2140
2258
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOco(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.orderListId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2141
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2259
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2142
2260
|
}
|
|
2143
2261
|
/**
|
|
2144
2262
|
* Query Margin Account's Open OCO
|
|
@@ -2154,7 +2272,7 @@ var TradeApi = class {
|
|
|
2154
2272
|
*/
|
|
2155
2273
|
async queryMarginAccountsOpenOco(requestParameters = {}) {
|
|
2156
2274
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOco(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2157
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2275
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2158
2276
|
}
|
|
2159
2277
|
/**
|
|
2160
2278
|
* Query Margin Account's Open Orders
|
|
@@ -2174,7 +2292,7 @@ var TradeApi = class {
|
|
|
2174
2292
|
*/
|
|
2175
2293
|
async queryMarginAccountsOpenOrders(requestParameters = {}) {
|
|
2176
2294
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOrders(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.recvWindow);
|
|
2177
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2295
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2178
2296
|
}
|
|
2179
2297
|
/**
|
|
2180
2298
|
* Query Margin Account's Order
|
|
@@ -2193,7 +2311,7 @@ var TradeApi = class {
|
|
|
2193
2311
|
*/
|
|
2194
2312
|
async queryMarginAccountsOrder(requestParameters) {
|
|
2195
2313
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOrder(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2196
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2314
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2197
2315
|
}
|
|
2198
2316
|
/**
|
|
2199
2317
|
* Query Margin Account's Trade List
|
|
@@ -2212,7 +2330,7 @@ var TradeApi = class {
|
|
|
2212
2330
|
*/
|
|
2213
2331
|
async queryMarginAccountsTradeList(requestParameters) {
|
|
2214
2332
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsTradeList(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2215
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2333
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2216
2334
|
}
|
|
2217
2335
|
/**
|
|
2218
2336
|
*
|
|
@@ -2227,7 +2345,7 @@ var TradeApi = class {
|
|
|
2227
2345
|
*/
|
|
2228
2346
|
async queryPreventedMatches(requestParameters) {
|
|
2229
2347
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPreventedMatches(requestParameters?.symbol, requestParameters?.preventedMatchId, requestParameters?.orderId, requestParameters?.fromPreventedMatchId, requestParameters?.recvWindow, requestParameters?.isIsolated);
|
|
2230
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2348
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2231
2349
|
}
|
|
2232
2350
|
/**
|
|
2233
2351
|
* Query Special Key Information.
|
|
@@ -2245,7 +2363,7 @@ var TradeApi = class {
|
|
|
2245
2363
|
*/
|
|
2246
2364
|
async querySpecialKey(requestParameters = {}) {
|
|
2247
2365
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySpecialKey(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2248
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2366
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2249
2367
|
}
|
|
2250
2368
|
/**
|
|
2251
2369
|
* This only applies to Special Key for Low Latency Trading.
|
|
@@ -2261,7 +2379,7 @@ var TradeApi = class {
|
|
|
2261
2379
|
*/
|
|
2262
2380
|
async querySpecialKeyList(requestParameters = {}) {
|
|
2263
2381
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySpecialKeyList(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2264
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2382
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2265
2383
|
}
|
|
2266
2384
|
/**
|
|
2267
2385
|
* Small Liability Exchange
|
|
@@ -2281,7 +2399,7 @@ var TradeApi = class {
|
|
|
2281
2399
|
*/
|
|
2282
2400
|
async smallLiabilityExchange(requestParameters) {
|
|
2283
2401
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.smallLiabilityExchange(requestParameters?.assetNames, requestParameters?.recvWindow);
|
|
2284
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2402
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2285
2403
|
}
|
|
2286
2404
|
};
|
|
2287
2405
|
let MarginAccountNewOcoSideEnum = /* @__PURE__ */ function(MarginAccountNewOcoSideEnum$1) {
|
|
@@ -2347,6 +2465,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2347
2465
|
getCrossMarginTransferHistory: async (asset, type, startTime, endTime, current, size, isolatedSymbol, recvWindow) => {
|
|
2348
2466
|
const localVarQueryParameter = {};
|
|
2349
2467
|
const localVarBodyParameter = {};
|
|
2468
|
+
const localVarHeaderParameter = {};
|
|
2350
2469
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
2351
2470
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
2352
2471
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2362,6 +2481,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2362
2481
|
method: "GET",
|
|
2363
2482
|
queryParams: localVarQueryParameter,
|
|
2364
2483
|
bodyParams: localVarBodyParameter,
|
|
2484
|
+
headerParams: localVarHeaderParameter,
|
|
2365
2485
|
timeUnit: _timeUnit
|
|
2366
2486
|
};
|
|
2367
2487
|
},
|
|
@@ -2369,6 +2489,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2369
2489
|
assertParamExists("queryMaxTransferOutAmount", "asset", asset);
|
|
2370
2490
|
const localVarQueryParameter = {};
|
|
2371
2491
|
const localVarBodyParameter = {};
|
|
2492
|
+
const localVarHeaderParameter = {};
|
|
2372
2493
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
2373
2494
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
2374
2495
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2379,6 +2500,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2379
2500
|
method: "GET",
|
|
2380
2501
|
queryParams: localVarQueryParameter,
|
|
2381
2502
|
bodyParams: localVarBodyParameter,
|
|
2503
|
+
headerParams: localVarHeaderParameter,
|
|
2382
2504
|
timeUnit: _timeUnit
|
|
2383
2505
|
};
|
|
2384
2506
|
}
|
|
@@ -2411,7 +2533,7 @@ var TransferApi = class {
|
|
|
2411
2533
|
*/
|
|
2412
2534
|
async getCrossMarginTransferHistory(requestParameters = {}) {
|
|
2413
2535
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCrossMarginTransferHistory(requestParameters?.asset, requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.isolatedSymbol, requestParameters?.recvWindow);
|
|
2414
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2536
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2415
2537
|
}
|
|
2416
2538
|
/**
|
|
2417
2539
|
* Query Max Transfer-Out Amount
|
|
@@ -2429,7 +2551,7 @@ var TransferApi = class {
|
|
|
2429
2551
|
*/
|
|
2430
2552
|
async queryMaxTransferOutAmount(requestParameters) {
|
|
2431
2553
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMaxTransferOutAmount(requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.recvWindow);
|
|
2432
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2554
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2433
2555
|
}
|
|
2434
2556
|
};
|
|
2435
2557
|
|
|
@@ -2467,7 +2589,7 @@ var RestAPI = class {
|
|
|
2467
2589
|
* @returns A promise resolving to the response data object.
|
|
2468
2590
|
*/
|
|
2469
2591
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
2470
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
2592
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
2471
2593
|
}
|
|
2472
2594
|
/**
|
|
2473
2595
|
* Generic function to send a signed request.
|
|
@@ -2479,7 +2601,7 @@ var RestAPI = class {
|
|
|
2479
2601
|
* @returns A promise resolving to the response data object.
|
|
2480
2602
|
*/
|
|
2481
2603
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
2482
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
2604
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
2483
2605
|
}
|
|
2484
2606
|
/**
|
|
2485
2607
|
* Adjust cross margin max leverage
|