@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.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/margin-trading";
|
|
17
|
-
var version = "12.0.
|
|
17
|
+
var version = "12.0.12";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -39,6 +39,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
39
39
|
(0, __binance_common.assertParamExists)("adjustCrossMarginMaxLeverage", "maxLeverage", maxLeverage);
|
|
40
40
|
const localVarQueryParameter = {};
|
|
41
41
|
const localVarBodyParameter = {};
|
|
42
|
+
const localVarHeaderParameter = {};
|
|
42
43
|
if (maxLeverage !== void 0 && maxLeverage !== null) localVarQueryParameter["maxLeverage"] = maxLeverage;
|
|
43
44
|
let _timeUnit;
|
|
44
45
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -47,6 +48,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
47
48
|
method: "POST",
|
|
48
49
|
queryParams: localVarQueryParameter,
|
|
49
50
|
bodyParams: localVarBodyParameter,
|
|
51
|
+
headerParams: localVarHeaderParameter,
|
|
50
52
|
timeUnit: _timeUnit
|
|
51
53
|
};
|
|
52
54
|
},
|
|
@@ -54,6 +56,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
54
56
|
(0, __binance_common.assertParamExists)("disableIsolatedMarginAccount", "symbol", symbol);
|
|
55
57
|
const localVarQueryParameter = {};
|
|
56
58
|
const localVarBodyParameter = {};
|
|
59
|
+
const localVarHeaderParameter = {};
|
|
57
60
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
58
61
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
59
62
|
let _timeUnit;
|
|
@@ -63,6 +66,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
63
66
|
method: "DELETE",
|
|
64
67
|
queryParams: localVarQueryParameter,
|
|
65
68
|
bodyParams: localVarBodyParameter,
|
|
69
|
+
headerParams: localVarHeaderParameter,
|
|
66
70
|
timeUnit: _timeUnit
|
|
67
71
|
};
|
|
68
72
|
},
|
|
@@ -70,6 +74,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
70
74
|
(0, __binance_common.assertParamExists)("enableIsolatedMarginAccount", "symbol", symbol);
|
|
71
75
|
const localVarQueryParameter = {};
|
|
72
76
|
const localVarBodyParameter = {};
|
|
77
|
+
const localVarHeaderParameter = {};
|
|
73
78
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
74
79
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
75
80
|
let _timeUnit;
|
|
@@ -79,12 +84,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
79
84
|
method: "POST",
|
|
80
85
|
queryParams: localVarQueryParameter,
|
|
81
86
|
bodyParams: localVarBodyParameter,
|
|
87
|
+
headerParams: localVarHeaderParameter,
|
|
82
88
|
timeUnit: _timeUnit
|
|
83
89
|
};
|
|
84
90
|
},
|
|
85
91
|
getBnbBurnStatus: async (recvWindow) => {
|
|
86
92
|
const localVarQueryParameter = {};
|
|
87
93
|
const localVarBodyParameter = {};
|
|
94
|
+
const localVarHeaderParameter = {};
|
|
88
95
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
89
96
|
let _timeUnit;
|
|
90
97
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -93,12 +100,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
93
100
|
method: "GET",
|
|
94
101
|
queryParams: localVarQueryParameter,
|
|
95
102
|
bodyParams: localVarBodyParameter,
|
|
103
|
+
headerParams: localVarHeaderParameter,
|
|
96
104
|
timeUnit: _timeUnit
|
|
97
105
|
};
|
|
98
106
|
},
|
|
99
107
|
getSummaryOfMarginAccount: async (recvWindow) => {
|
|
100
108
|
const localVarQueryParameter = {};
|
|
101
109
|
const localVarBodyParameter = {};
|
|
110
|
+
const localVarHeaderParameter = {};
|
|
102
111
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
103
112
|
let _timeUnit;
|
|
104
113
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -107,12 +116,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
107
116
|
method: "GET",
|
|
108
117
|
queryParams: localVarQueryParameter,
|
|
109
118
|
bodyParams: localVarBodyParameter,
|
|
119
|
+
headerParams: localVarHeaderParameter,
|
|
110
120
|
timeUnit: _timeUnit
|
|
111
121
|
};
|
|
112
122
|
},
|
|
113
123
|
queryCrossIsolatedMarginCapitalFlow: async (asset, symbol, type, startTime, endTime, fromId, limit, recvWindow) => {
|
|
114
124
|
const localVarQueryParameter = {};
|
|
115
125
|
const localVarBodyParameter = {};
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
116
127
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
117
128
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
118
129
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -128,12 +139,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
128
139
|
method: "GET",
|
|
129
140
|
queryParams: localVarQueryParameter,
|
|
130
141
|
bodyParams: localVarBodyParameter,
|
|
142
|
+
headerParams: localVarHeaderParameter,
|
|
131
143
|
timeUnit: _timeUnit
|
|
132
144
|
};
|
|
133
145
|
},
|
|
134
146
|
queryCrossMarginAccountDetails: async (recvWindow) => {
|
|
135
147
|
const localVarQueryParameter = {};
|
|
136
148
|
const localVarBodyParameter = {};
|
|
149
|
+
const localVarHeaderParameter = {};
|
|
137
150
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
138
151
|
let _timeUnit;
|
|
139
152
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -142,12 +155,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
142
155
|
method: "GET",
|
|
143
156
|
queryParams: localVarQueryParameter,
|
|
144
157
|
bodyParams: localVarBodyParameter,
|
|
158
|
+
headerParams: localVarHeaderParameter,
|
|
145
159
|
timeUnit: _timeUnit
|
|
146
160
|
};
|
|
147
161
|
},
|
|
148
162
|
queryCrossMarginFeeData: async (vipLevel, coin, recvWindow) => {
|
|
149
163
|
const localVarQueryParameter = {};
|
|
150
164
|
const localVarBodyParameter = {};
|
|
165
|
+
const localVarHeaderParameter = {};
|
|
151
166
|
if (vipLevel !== void 0 && vipLevel !== null) localVarQueryParameter["vipLevel"] = vipLevel;
|
|
152
167
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
153
168
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -158,12 +173,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
158
173
|
method: "GET",
|
|
159
174
|
queryParams: localVarQueryParameter,
|
|
160
175
|
bodyParams: localVarBodyParameter,
|
|
176
|
+
headerParams: localVarHeaderParameter,
|
|
161
177
|
timeUnit: _timeUnit
|
|
162
178
|
};
|
|
163
179
|
},
|
|
164
180
|
queryEnabledIsolatedMarginAccountLimit: async (recvWindow) => {
|
|
165
181
|
const localVarQueryParameter = {};
|
|
166
182
|
const localVarBodyParameter = {};
|
|
183
|
+
const localVarHeaderParameter = {};
|
|
167
184
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
168
185
|
let _timeUnit;
|
|
169
186
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -172,12 +189,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
172
189
|
method: "GET",
|
|
173
190
|
queryParams: localVarQueryParameter,
|
|
174
191
|
bodyParams: localVarBodyParameter,
|
|
192
|
+
headerParams: localVarHeaderParameter,
|
|
175
193
|
timeUnit: _timeUnit
|
|
176
194
|
};
|
|
177
195
|
},
|
|
178
196
|
queryIsolatedMarginAccountInfo: async (symbols, recvWindow) => {
|
|
179
197
|
const localVarQueryParameter = {};
|
|
180
198
|
const localVarBodyParameter = {};
|
|
199
|
+
const localVarHeaderParameter = {};
|
|
181
200
|
if (symbols !== void 0 && symbols !== null) localVarQueryParameter["symbols"] = symbols;
|
|
182
201
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
183
202
|
let _timeUnit;
|
|
@@ -187,12 +206,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
187
206
|
method: "GET",
|
|
188
207
|
queryParams: localVarQueryParameter,
|
|
189
208
|
bodyParams: localVarBodyParameter,
|
|
209
|
+
headerParams: localVarHeaderParameter,
|
|
190
210
|
timeUnit: _timeUnit
|
|
191
211
|
};
|
|
192
212
|
},
|
|
193
213
|
queryIsolatedMarginFeeData: async (vipLevel, symbol, recvWindow) => {
|
|
194
214
|
const localVarQueryParameter = {};
|
|
195
215
|
const localVarBodyParameter = {};
|
|
216
|
+
const localVarHeaderParameter = {};
|
|
196
217
|
if (vipLevel !== void 0 && vipLevel !== null) localVarQueryParameter["vipLevel"] = vipLevel;
|
|
197
218
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
198
219
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -203,6 +224,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
203
224
|
method: "GET",
|
|
204
225
|
queryParams: localVarQueryParameter,
|
|
205
226
|
bodyParams: localVarBodyParameter,
|
|
227
|
+
headerParams: localVarHeaderParameter,
|
|
206
228
|
timeUnit: _timeUnit
|
|
207
229
|
};
|
|
208
230
|
}
|
|
@@ -233,7 +255,7 @@ var AccountApi = class {
|
|
|
233
255
|
*/
|
|
234
256
|
async adjustCrossMarginMaxLeverage(requestParameters) {
|
|
235
257
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.adjustCrossMarginMaxLeverage(requestParameters?.maxLeverage);
|
|
236
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
258
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
237
259
|
}
|
|
238
260
|
/**
|
|
239
261
|
* Disable isolated margin account for a specific symbol. Each trading pair can only be deactivated once every 24
|
|
@@ -250,7 +272,7 @@ var AccountApi = class {
|
|
|
250
272
|
*/
|
|
251
273
|
async disableIsolatedMarginAccount(requestParameters) {
|
|
252
274
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.disableIsolatedMarginAccount(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
253
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
275
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
254
276
|
}
|
|
255
277
|
/**
|
|
256
278
|
* Enable isolated margin account for a specific symbol(Only supports activation of previously disabled accounts).
|
|
@@ -266,7 +288,7 @@ var AccountApi = class {
|
|
|
266
288
|
*/
|
|
267
289
|
async enableIsolatedMarginAccount(requestParameters) {
|
|
268
290
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.enableIsolatedMarginAccount(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
269
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
291
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
270
292
|
}
|
|
271
293
|
/**
|
|
272
294
|
* Get BNB Burn Status
|
|
@@ -282,7 +304,7 @@ var AccountApi = class {
|
|
|
282
304
|
*/
|
|
283
305
|
async getBnbBurnStatus(requestParameters = {}) {
|
|
284
306
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBnbBurnStatus(requestParameters?.recvWindow);
|
|
285
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
307
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
286
308
|
}
|
|
287
309
|
/**
|
|
288
310
|
* Get personal margin level information
|
|
@@ -298,7 +320,7 @@ var AccountApi = class {
|
|
|
298
320
|
*/
|
|
299
321
|
async getSummaryOfMarginAccount(requestParameters = {}) {
|
|
300
322
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSummaryOfMarginAccount(requestParameters?.recvWindow);
|
|
301
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
323
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
302
324
|
}
|
|
303
325
|
/**
|
|
304
326
|
* Query Cross Isolated Margin Capital Flow
|
|
@@ -314,7 +336,7 @@ var AccountApi = class {
|
|
|
314
336
|
*/
|
|
315
337
|
async queryCrossIsolatedMarginCapitalFlow(requestParameters = {}) {
|
|
316
338
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCrossIsolatedMarginCapitalFlow(requestParameters?.asset, requestParameters?.symbol, requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
317
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
339
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
318
340
|
}
|
|
319
341
|
/**
|
|
320
342
|
* Query Cross Margin Account Details
|
|
@@ -330,7 +352,7 @@ var AccountApi = class {
|
|
|
330
352
|
*/
|
|
331
353
|
async queryCrossMarginAccountDetails(requestParameters = {}) {
|
|
332
354
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCrossMarginAccountDetails(requestParameters?.recvWindow);
|
|
333
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
355
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
334
356
|
}
|
|
335
357
|
/**
|
|
336
358
|
* Get cross margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee
|
|
@@ -346,7 +368,7 @@ var AccountApi = class {
|
|
|
346
368
|
*/
|
|
347
369
|
async queryCrossMarginFeeData(requestParameters = {}) {
|
|
348
370
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCrossMarginFeeData(requestParameters?.vipLevel, requestParameters?.coin, requestParameters?.recvWindow);
|
|
349
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
371
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
350
372
|
}
|
|
351
373
|
/**
|
|
352
374
|
* Query enabled isolated margin account limit.
|
|
@@ -362,7 +384,7 @@ var AccountApi = class {
|
|
|
362
384
|
*/
|
|
363
385
|
async queryEnabledIsolatedMarginAccountLimit(requestParameters = {}) {
|
|
364
386
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryEnabledIsolatedMarginAccountLimit(requestParameters?.recvWindow);
|
|
365
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
387
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
366
388
|
}
|
|
367
389
|
/**
|
|
368
390
|
* Query Isolated Margin Account Info
|
|
@@ -381,7 +403,7 @@ var AccountApi = class {
|
|
|
381
403
|
*/
|
|
382
404
|
async queryIsolatedMarginAccountInfo(requestParameters = {}) {
|
|
383
405
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIsolatedMarginAccountInfo(requestParameters?.symbols, requestParameters?.recvWindow);
|
|
384
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
406
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
385
407
|
}
|
|
386
408
|
/**
|
|
387
409
|
* Get isolated margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee
|
|
@@ -397,7 +419,7 @@ var AccountApi = class {
|
|
|
397
419
|
*/
|
|
398
420
|
async queryIsolatedMarginFeeData(requestParameters = {}) {
|
|
399
421
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIsolatedMarginFeeData(requestParameters?.vipLevel, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
400
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
422
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
401
423
|
}
|
|
402
424
|
};
|
|
403
425
|
|
|
@@ -425,6 +447,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
425
447
|
(0, __binance_common.assertParamExists)("getFutureHourlyInterestRate", "isIsolated", isIsolated);
|
|
426
448
|
const localVarQueryParameter = {};
|
|
427
449
|
const localVarBodyParameter = {};
|
|
450
|
+
const localVarHeaderParameter = {};
|
|
428
451
|
if (assets !== void 0 && assets !== null) localVarQueryParameter["assets"] = assets;
|
|
429
452
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
430
453
|
let _timeUnit;
|
|
@@ -434,12 +457,14 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
434
457
|
method: "GET",
|
|
435
458
|
queryParams: localVarQueryParameter,
|
|
436
459
|
bodyParams: localVarBodyParameter,
|
|
460
|
+
headerParams: localVarHeaderParameter,
|
|
437
461
|
timeUnit: _timeUnit
|
|
438
462
|
};
|
|
439
463
|
},
|
|
440
464
|
getInterestHistory: async (asset, isolatedSymbol, startTime, endTime, current, size, recvWindow) => {
|
|
441
465
|
const localVarQueryParameter = {};
|
|
442
466
|
const localVarBodyParameter = {};
|
|
467
|
+
const localVarHeaderParameter = {};
|
|
443
468
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
444
469
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
445
470
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -454,6 +479,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
454
479
|
method: "GET",
|
|
455
480
|
queryParams: localVarQueryParameter,
|
|
456
481
|
bodyParams: localVarBodyParameter,
|
|
482
|
+
headerParams: localVarHeaderParameter,
|
|
457
483
|
timeUnit: _timeUnit
|
|
458
484
|
};
|
|
459
485
|
},
|
|
@@ -465,6 +491,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
465
491
|
(0, __binance_common.assertParamExists)("marginAccountBorrowRepay", "type", type);
|
|
466
492
|
const localVarQueryParameter = {};
|
|
467
493
|
const localVarBodyParameter = {};
|
|
494
|
+
const localVarHeaderParameter = {};
|
|
468
495
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
469
496
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
470
497
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
@@ -478,6 +505,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
478
505
|
method: "POST",
|
|
479
506
|
queryParams: localVarQueryParameter,
|
|
480
507
|
bodyParams: localVarBodyParameter,
|
|
508
|
+
headerParams: localVarHeaderParameter,
|
|
481
509
|
timeUnit: _timeUnit
|
|
482
510
|
};
|
|
483
511
|
},
|
|
@@ -485,6 +513,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
485
513
|
(0, __binance_common.assertParamExists)("queryBorrowRepayRecordsInMarginAccount", "type", type);
|
|
486
514
|
const localVarQueryParameter = {};
|
|
487
515
|
const localVarBodyParameter = {};
|
|
516
|
+
const localVarHeaderParameter = {};
|
|
488
517
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
489
518
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
490
519
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
@@ -501,6 +530,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
501
530
|
method: "GET",
|
|
502
531
|
queryParams: localVarQueryParameter,
|
|
503
532
|
bodyParams: localVarBodyParameter,
|
|
533
|
+
headerParams: localVarHeaderParameter,
|
|
504
534
|
timeUnit: _timeUnit
|
|
505
535
|
};
|
|
506
536
|
},
|
|
@@ -508,6 +538,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
508
538
|
(0, __binance_common.assertParamExists)("queryMarginInterestRateHistory", "asset", asset);
|
|
509
539
|
const localVarQueryParameter = {};
|
|
510
540
|
const localVarBodyParameter = {};
|
|
541
|
+
const localVarHeaderParameter = {};
|
|
511
542
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
512
543
|
if (vipLevel !== void 0 && vipLevel !== null) localVarQueryParameter["vipLevel"] = vipLevel;
|
|
513
544
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -520,6 +551,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
520
551
|
method: "GET",
|
|
521
552
|
queryParams: localVarQueryParameter,
|
|
522
553
|
bodyParams: localVarBodyParameter,
|
|
554
|
+
headerParams: localVarHeaderParameter,
|
|
523
555
|
timeUnit: _timeUnit
|
|
524
556
|
};
|
|
525
557
|
},
|
|
@@ -527,6 +559,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
527
559
|
(0, __binance_common.assertParamExists)("queryMaxBorrow", "asset", asset);
|
|
528
560
|
const localVarQueryParameter = {};
|
|
529
561
|
const localVarBodyParameter = {};
|
|
562
|
+
const localVarHeaderParameter = {};
|
|
530
563
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
531
564
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
532
565
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -537,6 +570,7 @@ const BorrowRepayApiAxiosParamCreator = function(configuration) {
|
|
|
537
570
|
method: "GET",
|
|
538
571
|
queryParams: localVarQueryParameter,
|
|
539
572
|
bodyParams: localVarBodyParameter,
|
|
573
|
+
headerParams: localVarHeaderParameter,
|
|
540
574
|
timeUnit: _timeUnit
|
|
541
575
|
};
|
|
542
576
|
}
|
|
@@ -565,7 +599,7 @@ var BorrowRepayApi = class {
|
|
|
565
599
|
*/
|
|
566
600
|
async getFutureHourlyInterestRate(requestParameters) {
|
|
567
601
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFutureHourlyInterestRate(requestParameters?.assets, requestParameters?.isIsolated);
|
|
568
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
602
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
569
603
|
}
|
|
570
604
|
/**
|
|
571
605
|
* Get Interest History
|
|
@@ -594,7 +628,7 @@ var BorrowRepayApi = class {
|
|
|
594
628
|
*/
|
|
595
629
|
async getInterestHistory(requestParameters = {}) {
|
|
596
630
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getInterestHistory(requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
597
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
631
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
598
632
|
}
|
|
599
633
|
/**
|
|
600
634
|
* Margin account borrow/repay(MARGIN)
|
|
@@ -610,7 +644,7 @@ var BorrowRepayApi = class {
|
|
|
610
644
|
*/
|
|
611
645
|
async marginAccountBorrowRepay(requestParameters) {
|
|
612
646
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountBorrowRepay(requestParameters?.asset, requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.amount, requestParameters?.type, requestParameters?.recvWindow);
|
|
613
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
647
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
614
648
|
}
|
|
615
649
|
/**
|
|
616
650
|
* Query borrow/repay records in Margin account
|
|
@@ -631,7 +665,7 @@ var BorrowRepayApi = class {
|
|
|
631
665
|
*/
|
|
632
666
|
async queryBorrowRepayRecordsInMarginAccount(requestParameters) {
|
|
633
667
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBorrowRepayRecordsInMarginAccount(requestParameters?.type, requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.txId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
634
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
668
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
635
669
|
}
|
|
636
670
|
/**
|
|
637
671
|
* Query Margin Interest Rate History
|
|
@@ -647,7 +681,7 @@ var BorrowRepayApi = class {
|
|
|
647
681
|
*/
|
|
648
682
|
async queryMarginInterestRateHistory(requestParameters) {
|
|
649
683
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginInterestRateHistory(requestParameters?.asset, requestParameters?.vipLevel, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
650
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
684
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
651
685
|
}
|
|
652
686
|
/**
|
|
653
687
|
* Query Max Borrow
|
|
@@ -666,7 +700,7 @@ var BorrowRepayApi = class {
|
|
|
666
700
|
*/
|
|
667
701
|
async queryMaxBorrow(requestParameters) {
|
|
668
702
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMaxBorrow(requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.recvWindow);
|
|
669
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
703
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
670
704
|
}
|
|
671
705
|
};
|
|
672
706
|
|
|
@@ -692,6 +726,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
692
726
|
crossMarginCollateralRatio: async () => {
|
|
693
727
|
const localVarQueryParameter = {};
|
|
694
728
|
const localVarBodyParameter = {};
|
|
729
|
+
const localVarHeaderParameter = {};
|
|
695
730
|
let _timeUnit;
|
|
696
731
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
697
732
|
return {
|
|
@@ -699,12 +734,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
699
734
|
method: "GET",
|
|
700
735
|
queryParams: localVarQueryParameter,
|
|
701
736
|
bodyParams: localVarBodyParameter,
|
|
737
|
+
headerParams: localVarHeaderParameter,
|
|
702
738
|
timeUnit: _timeUnit
|
|
703
739
|
};
|
|
704
740
|
},
|
|
705
741
|
getAllCrossMarginPairs: async (symbol) => {
|
|
706
742
|
const localVarQueryParameter = {};
|
|
707
743
|
const localVarBodyParameter = {};
|
|
744
|
+
const localVarHeaderParameter = {};
|
|
708
745
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
709
746
|
let _timeUnit;
|
|
710
747
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -713,12 +750,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
713
750
|
method: "GET",
|
|
714
751
|
queryParams: localVarQueryParameter,
|
|
715
752
|
bodyParams: localVarBodyParameter,
|
|
753
|
+
headerParams: localVarHeaderParameter,
|
|
716
754
|
timeUnit: _timeUnit
|
|
717
755
|
};
|
|
718
756
|
},
|
|
719
757
|
getAllIsolatedMarginSymbol: async (symbol, recvWindow) => {
|
|
720
758
|
const localVarQueryParameter = {};
|
|
721
759
|
const localVarBodyParameter = {};
|
|
760
|
+
const localVarHeaderParameter = {};
|
|
722
761
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
723
762
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
724
763
|
let _timeUnit;
|
|
@@ -728,12 +767,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
728
767
|
method: "GET",
|
|
729
768
|
queryParams: localVarQueryParameter,
|
|
730
769
|
bodyParams: localVarBodyParameter,
|
|
770
|
+
headerParams: localVarHeaderParameter,
|
|
731
771
|
timeUnit: _timeUnit
|
|
732
772
|
};
|
|
733
773
|
},
|
|
734
774
|
getAllMarginAssets: async (asset) => {
|
|
735
775
|
const localVarQueryParameter = {};
|
|
736
776
|
const localVarBodyParameter = {};
|
|
777
|
+
const localVarHeaderParameter = {};
|
|
737
778
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
738
779
|
let _timeUnit;
|
|
739
780
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -742,12 +783,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
742
783
|
method: "GET",
|
|
743
784
|
queryParams: localVarQueryParameter,
|
|
744
785
|
bodyParams: localVarBodyParameter,
|
|
786
|
+
headerParams: localVarHeaderParameter,
|
|
745
787
|
timeUnit: _timeUnit
|
|
746
788
|
};
|
|
747
789
|
},
|
|
748
790
|
getDelistSchedule: async (recvWindow) => {
|
|
749
791
|
const localVarQueryParameter = {};
|
|
750
792
|
const localVarBodyParameter = {};
|
|
793
|
+
const localVarHeaderParameter = {};
|
|
751
794
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
752
795
|
let _timeUnit;
|
|
753
796
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -756,12 +799,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
756
799
|
method: "GET",
|
|
757
800
|
queryParams: localVarQueryParameter,
|
|
758
801
|
bodyParams: localVarBodyParameter,
|
|
802
|
+
headerParams: localVarHeaderParameter,
|
|
759
803
|
timeUnit: _timeUnit
|
|
760
804
|
};
|
|
761
805
|
},
|
|
762
806
|
getLimitPricePairs: async () => {
|
|
763
807
|
const localVarQueryParameter = {};
|
|
764
808
|
const localVarBodyParameter = {};
|
|
809
|
+
const localVarHeaderParameter = {};
|
|
765
810
|
let _timeUnit;
|
|
766
811
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
767
812
|
return {
|
|
@@ -769,12 +814,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
769
814
|
method: "GET",
|
|
770
815
|
queryParams: localVarQueryParameter,
|
|
771
816
|
bodyParams: localVarBodyParameter,
|
|
817
|
+
headerParams: localVarHeaderParameter,
|
|
772
818
|
timeUnit: _timeUnit
|
|
773
819
|
};
|
|
774
820
|
},
|
|
775
821
|
getListSchedule: async (recvWindow) => {
|
|
776
822
|
const localVarQueryParameter = {};
|
|
777
823
|
const localVarBodyParameter = {};
|
|
824
|
+
const localVarHeaderParameter = {};
|
|
778
825
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
779
826
|
let _timeUnit;
|
|
780
827
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -783,12 +830,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
783
830
|
method: "GET",
|
|
784
831
|
queryParams: localVarQueryParameter,
|
|
785
832
|
bodyParams: localVarBodyParameter,
|
|
833
|
+
headerParams: localVarHeaderParameter,
|
|
786
834
|
timeUnit: _timeUnit
|
|
787
835
|
};
|
|
788
836
|
},
|
|
789
837
|
getMarginAssetRiskBasedLiquidationRatio: async () => {
|
|
790
838
|
const localVarQueryParameter = {};
|
|
791
839
|
const localVarBodyParameter = {};
|
|
840
|
+
const localVarHeaderParameter = {};
|
|
792
841
|
let _timeUnit;
|
|
793
842
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
794
843
|
return {
|
|
@@ -796,12 +845,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
796
845
|
method: "GET",
|
|
797
846
|
queryParams: localVarQueryParameter,
|
|
798
847
|
bodyParams: localVarBodyParameter,
|
|
848
|
+
headerParams: localVarHeaderParameter,
|
|
799
849
|
timeUnit: _timeUnit
|
|
800
850
|
};
|
|
801
851
|
},
|
|
802
852
|
getMarginRestrictedAssets: async () => {
|
|
803
853
|
const localVarQueryParameter = {};
|
|
804
854
|
const localVarBodyParameter = {};
|
|
855
|
+
const localVarHeaderParameter = {};
|
|
805
856
|
let _timeUnit;
|
|
806
857
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
807
858
|
return {
|
|
@@ -809,6 +860,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
809
860
|
method: "GET",
|
|
810
861
|
queryParams: localVarQueryParameter,
|
|
811
862
|
bodyParams: localVarBodyParameter,
|
|
863
|
+
headerParams: localVarHeaderParameter,
|
|
812
864
|
timeUnit: _timeUnit
|
|
813
865
|
};
|
|
814
866
|
},
|
|
@@ -816,6 +868,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
816
868
|
(0, __binance_common.assertParamExists)("queryIsolatedMarginTierData", "symbol", symbol);
|
|
817
869
|
const localVarQueryParameter = {};
|
|
818
870
|
const localVarBodyParameter = {};
|
|
871
|
+
const localVarHeaderParameter = {};
|
|
819
872
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
820
873
|
if (tier !== void 0 && tier !== null) localVarQueryParameter["tier"] = tier;
|
|
821
874
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -826,12 +879,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
826
879
|
method: "GET",
|
|
827
880
|
queryParams: localVarQueryParameter,
|
|
828
881
|
bodyParams: localVarBodyParameter,
|
|
882
|
+
headerParams: localVarHeaderParameter,
|
|
829
883
|
timeUnit: _timeUnit
|
|
830
884
|
};
|
|
831
885
|
},
|
|
832
886
|
queryLiabilityCoinLeverageBracketInCrossMarginProMode: async () => {
|
|
833
887
|
const localVarQueryParameter = {};
|
|
834
888
|
const localVarBodyParameter = {};
|
|
889
|
+
const localVarHeaderParameter = {};
|
|
835
890
|
let _timeUnit;
|
|
836
891
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
837
892
|
return {
|
|
@@ -839,6 +894,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
839
894
|
method: "GET",
|
|
840
895
|
queryParams: localVarQueryParameter,
|
|
841
896
|
bodyParams: localVarBodyParameter,
|
|
897
|
+
headerParams: localVarHeaderParameter,
|
|
842
898
|
timeUnit: _timeUnit
|
|
843
899
|
};
|
|
844
900
|
},
|
|
@@ -846,6 +902,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
846
902
|
(0, __binance_common.assertParamExists)("queryMarginAvailableInventory", "type", type);
|
|
847
903
|
const localVarQueryParameter = {};
|
|
848
904
|
const localVarBodyParameter = {};
|
|
905
|
+
const localVarHeaderParameter = {};
|
|
849
906
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
850
907
|
let _timeUnit;
|
|
851
908
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -854,6 +911,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
854
911
|
method: "GET",
|
|
855
912
|
queryParams: localVarQueryParameter,
|
|
856
913
|
bodyParams: localVarBodyParameter,
|
|
914
|
+
headerParams: localVarHeaderParameter,
|
|
857
915
|
timeUnit: _timeUnit
|
|
858
916
|
};
|
|
859
917
|
},
|
|
@@ -861,6 +919,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
861
919
|
(0, __binance_common.assertParamExists)("queryMarginPriceindex", "symbol", symbol);
|
|
862
920
|
const localVarQueryParameter = {};
|
|
863
921
|
const localVarBodyParameter = {};
|
|
922
|
+
const localVarHeaderParameter = {};
|
|
864
923
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
865
924
|
let _timeUnit;
|
|
866
925
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -869,6 +928,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
869
928
|
method: "GET",
|
|
870
929
|
queryParams: localVarQueryParameter,
|
|
871
930
|
bodyParams: localVarBodyParameter,
|
|
931
|
+
headerParams: localVarHeaderParameter,
|
|
872
932
|
timeUnit: _timeUnit
|
|
873
933
|
};
|
|
874
934
|
}
|
|
@@ -896,7 +956,7 @@ var MarketDataApi = class {
|
|
|
896
956
|
*/
|
|
897
957
|
async crossMarginCollateralRatio() {
|
|
898
958
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.crossMarginCollateralRatio();
|
|
899
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
959
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
900
960
|
}
|
|
901
961
|
/**
|
|
902
962
|
* Get All Cross Margin Pairs
|
|
@@ -912,7 +972,7 @@ var MarketDataApi = class {
|
|
|
912
972
|
*/
|
|
913
973
|
async getAllCrossMarginPairs(requestParameters = {}) {
|
|
914
974
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAllCrossMarginPairs(requestParameters?.symbol);
|
|
915
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
975
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
916
976
|
}
|
|
917
977
|
/**
|
|
918
978
|
* Get All Isolated Margin Symbol
|
|
@@ -928,7 +988,7 @@ var MarketDataApi = class {
|
|
|
928
988
|
*/
|
|
929
989
|
async getAllIsolatedMarginSymbol(requestParameters = {}) {
|
|
930
990
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAllIsolatedMarginSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
931
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
991
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
932
992
|
}
|
|
933
993
|
/**
|
|
934
994
|
* Get All Margin Assets.
|
|
@@ -944,7 +1004,7 @@ var MarketDataApi = class {
|
|
|
944
1004
|
*/
|
|
945
1005
|
async getAllMarginAssets(requestParameters = {}) {
|
|
946
1006
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAllMarginAssets(requestParameters?.asset);
|
|
947
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1007
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
948
1008
|
}
|
|
949
1009
|
/**
|
|
950
1010
|
* Get tokens or symbols delist schedule for cross margin and isolated margin
|
|
@@ -960,7 +1020,7 @@ var MarketDataApi = class {
|
|
|
960
1020
|
*/
|
|
961
1021
|
async getDelistSchedule(requestParameters = {}) {
|
|
962
1022
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDelistSchedule(requestParameters?.recvWindow);
|
|
963
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1023
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
964
1024
|
}
|
|
965
1025
|
/**
|
|
966
1026
|
* Query trading pairs with restriction on limit price range.
|
|
@@ -980,7 +1040,7 @@ var MarketDataApi = class {
|
|
|
980
1040
|
*/
|
|
981
1041
|
async getLimitPricePairs() {
|
|
982
1042
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLimitPricePairs();
|
|
983
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1043
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
984
1044
|
}
|
|
985
1045
|
/**
|
|
986
1046
|
* Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
|
|
@@ -996,7 +1056,7 @@ var MarketDataApi = class {
|
|
|
996
1056
|
*/
|
|
997
1057
|
async getListSchedule(requestParameters = {}) {
|
|
998
1058
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getListSchedule(requestParameters?.recvWindow);
|
|
999
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1059
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1000
1060
|
}
|
|
1001
1061
|
/**
|
|
1002
1062
|
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
@@ -1011,7 +1071,7 @@ var MarketDataApi = class {
|
|
|
1011
1071
|
*/
|
|
1012
1072
|
async getMarginAssetRiskBasedLiquidationRatio() {
|
|
1013
1073
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginAssetRiskBasedLiquidationRatio();
|
|
1014
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1074
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1015
1075
|
}
|
|
1016
1076
|
/**
|
|
1017
1077
|
* Get Margin Restricted Assets
|
|
@@ -1026,7 +1086,7 @@ var MarketDataApi = class {
|
|
|
1026
1086
|
*/
|
|
1027
1087
|
async getMarginRestrictedAssets() {
|
|
1028
1088
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginRestrictedAssets();
|
|
1029
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1089
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1030
1090
|
}
|
|
1031
1091
|
/**
|
|
1032
1092
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
@@ -1042,7 +1102,7 @@ var MarketDataApi = class {
|
|
|
1042
1102
|
*/
|
|
1043
1103
|
async queryIsolatedMarginTierData(requestParameters) {
|
|
1044
1104
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryIsolatedMarginTierData(requestParameters?.symbol, requestParameters?.tier, requestParameters?.recvWindow);
|
|
1045
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1105
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1046
1106
|
}
|
|
1047
1107
|
/**
|
|
1048
1108
|
* Liability Coin Leverage Bracket in Cross Margin Pro Mode
|
|
@@ -1057,7 +1117,7 @@ var MarketDataApi = class {
|
|
|
1057
1117
|
*/
|
|
1058
1118
|
async queryLiabilityCoinLeverageBracketInCrossMarginProMode() {
|
|
1059
1119
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryLiabilityCoinLeverageBracketInCrossMarginProMode();
|
|
1060
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1120
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1061
1121
|
}
|
|
1062
1122
|
/**
|
|
1063
1123
|
* Margin available Inventory query
|
|
@@ -1073,7 +1133,7 @@ var MarketDataApi = class {
|
|
|
1073
1133
|
*/
|
|
1074
1134
|
async queryMarginAvailableInventory(requestParameters) {
|
|
1075
1135
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAvailableInventory(requestParameters?.type);
|
|
1076
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1136
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1077
1137
|
}
|
|
1078
1138
|
/**
|
|
1079
1139
|
* Query Margin PriceIndex
|
|
@@ -1089,7 +1149,7 @@ var MarketDataApi = class {
|
|
|
1089
1149
|
*/
|
|
1090
1150
|
async queryMarginPriceindex(requestParameters) {
|
|
1091
1151
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginPriceindex(requestParameters?.symbol);
|
|
1092
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1152
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1093
1153
|
}
|
|
1094
1154
|
};
|
|
1095
1155
|
|
|
@@ -1115,6 +1175,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1115
1175
|
closeUserDataStream: async () => {
|
|
1116
1176
|
const localVarQueryParameter = {};
|
|
1117
1177
|
const localVarBodyParameter = {};
|
|
1178
|
+
const localVarHeaderParameter = {};
|
|
1118
1179
|
let _timeUnit;
|
|
1119
1180
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1120
1181
|
return {
|
|
@@ -1122,6 +1183,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1122
1183
|
method: "DELETE",
|
|
1123
1184
|
queryParams: localVarQueryParameter,
|
|
1124
1185
|
bodyParams: localVarBodyParameter,
|
|
1186
|
+
headerParams: localVarHeaderParameter,
|
|
1125
1187
|
timeUnit: _timeUnit
|
|
1126
1188
|
};
|
|
1127
1189
|
},
|
|
@@ -1129,6 +1191,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1129
1191
|
(0, __binance_common.assertParamExists)("keepaliveUserDataStream", "listenKey", listenKey);
|
|
1130
1192
|
const localVarQueryParameter = {};
|
|
1131
1193
|
const localVarBodyParameter = {};
|
|
1194
|
+
const localVarHeaderParameter = {};
|
|
1132
1195
|
if (listenKey !== void 0 && listenKey !== null) localVarQueryParameter["listenKey"] = listenKey;
|
|
1133
1196
|
let _timeUnit;
|
|
1134
1197
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1137,12 +1200,14 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1137
1200
|
method: "PUT",
|
|
1138
1201
|
queryParams: localVarQueryParameter,
|
|
1139
1202
|
bodyParams: localVarBodyParameter,
|
|
1203
|
+
headerParams: localVarHeaderParameter,
|
|
1140
1204
|
timeUnit: _timeUnit
|
|
1141
1205
|
};
|
|
1142
1206
|
},
|
|
1143
1207
|
startUserDataStream: async () => {
|
|
1144
1208
|
const localVarQueryParameter = {};
|
|
1145
1209
|
const localVarBodyParameter = {};
|
|
1210
|
+
const localVarHeaderParameter = {};
|
|
1146
1211
|
let _timeUnit;
|
|
1147
1212
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1148
1213
|
return {
|
|
@@ -1150,6 +1215,7 @@ const RiskDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
1150
1215
|
method: "POST",
|
|
1151
1216
|
queryParams: localVarQueryParameter,
|
|
1152
1217
|
bodyParams: localVarBodyParameter,
|
|
1218
|
+
headerParams: localVarHeaderParameter,
|
|
1153
1219
|
timeUnit: _timeUnit
|
|
1154
1220
|
};
|
|
1155
1221
|
}
|
|
@@ -1177,7 +1243,7 @@ var RiskDataStreamApi = class {
|
|
|
1177
1243
|
*/
|
|
1178
1244
|
async closeUserDataStream() {
|
|
1179
1245
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
1180
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1246
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1181
1247
|
}
|
|
1182
1248
|
/**
|
|
1183
1249
|
* Keepalive a user data stream to prevent a time out.
|
|
@@ -1193,7 +1259,7 @@ var RiskDataStreamApi = class {
|
|
|
1193
1259
|
*/
|
|
1194
1260
|
async keepaliveUserDataStream(requestParameters) {
|
|
1195
1261
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream(requestParameters?.listenKey);
|
|
1196
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1262
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1197
1263
|
}
|
|
1198
1264
|
/**
|
|
1199
1265
|
* Start a new user data stream.
|
|
@@ -1208,7 +1274,7 @@ var RiskDataStreamApi = class {
|
|
|
1208
1274
|
*/
|
|
1209
1275
|
async startUserDataStream() {
|
|
1210
1276
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
1211
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1277
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1212
1278
|
}
|
|
1213
1279
|
};
|
|
1214
1280
|
|
|
@@ -1235,6 +1301,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1235
1301
|
(0, __binance_common.assertParamExists)("createSpecialKey", "apiName", apiName);
|
|
1236
1302
|
const localVarQueryParameter = {};
|
|
1237
1303
|
const localVarBodyParameter = {};
|
|
1304
|
+
const localVarHeaderParameter = {};
|
|
1238
1305
|
if (apiName !== void 0 && apiName !== null) localVarQueryParameter["apiName"] = apiName;
|
|
1239
1306
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1240
1307
|
if (ip !== void 0 && ip !== null) localVarQueryParameter["ip"] = ip;
|
|
@@ -1248,12 +1315,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1248
1315
|
method: "POST",
|
|
1249
1316
|
queryParams: localVarQueryParameter,
|
|
1250
1317
|
bodyParams: localVarBodyParameter,
|
|
1318
|
+
headerParams: localVarHeaderParameter,
|
|
1251
1319
|
timeUnit: _timeUnit
|
|
1252
1320
|
};
|
|
1253
1321
|
},
|
|
1254
1322
|
deleteSpecialKey: async (apiName, symbol, recvWindow) => {
|
|
1255
1323
|
const localVarQueryParameter = {};
|
|
1256
1324
|
const localVarBodyParameter = {};
|
|
1325
|
+
const localVarHeaderParameter = {};
|
|
1257
1326
|
if (apiName !== void 0 && apiName !== null) localVarQueryParameter["apiName"] = apiName;
|
|
1258
1327
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1259
1328
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1264,6 +1333,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1264
1333
|
method: "DELETE",
|
|
1265
1334
|
queryParams: localVarQueryParameter,
|
|
1266
1335
|
bodyParams: localVarBodyParameter,
|
|
1336
|
+
headerParams: localVarHeaderParameter,
|
|
1267
1337
|
timeUnit: _timeUnit
|
|
1268
1338
|
};
|
|
1269
1339
|
},
|
|
@@ -1271,6 +1341,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1271
1341
|
(0, __binance_common.assertParamExists)("editIpForSpecialKey", "ip", ip);
|
|
1272
1342
|
const localVarQueryParameter = {};
|
|
1273
1343
|
const localVarBodyParameter = {};
|
|
1344
|
+
const localVarHeaderParameter = {};
|
|
1274
1345
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1275
1346
|
if (ip !== void 0 && ip !== null) localVarQueryParameter["ip"] = ip;
|
|
1276
1347
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1281,12 +1352,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1281
1352
|
method: "PUT",
|
|
1282
1353
|
queryParams: localVarQueryParameter,
|
|
1283
1354
|
bodyParams: localVarBodyParameter,
|
|
1355
|
+
headerParams: localVarHeaderParameter,
|
|
1284
1356
|
timeUnit: _timeUnit
|
|
1285
1357
|
};
|
|
1286
1358
|
},
|
|
1287
1359
|
getForceLiquidationRecord: async (startTime, endTime, isolatedSymbol, current, size, recvWindow) => {
|
|
1288
1360
|
const localVarQueryParameter = {};
|
|
1289
1361
|
const localVarBodyParameter = {};
|
|
1362
|
+
const localVarHeaderParameter = {};
|
|
1290
1363
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1291
1364
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
1292
1365
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
@@ -1300,12 +1373,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1300
1373
|
method: "GET",
|
|
1301
1374
|
queryParams: localVarQueryParameter,
|
|
1302
1375
|
bodyParams: localVarBodyParameter,
|
|
1376
|
+
headerParams: localVarHeaderParameter,
|
|
1303
1377
|
timeUnit: _timeUnit
|
|
1304
1378
|
};
|
|
1305
1379
|
},
|
|
1306
1380
|
getSmallLiabilityExchangeCoinList: async (recvWindow) => {
|
|
1307
1381
|
const localVarQueryParameter = {};
|
|
1308
1382
|
const localVarBodyParameter = {};
|
|
1383
|
+
const localVarHeaderParameter = {};
|
|
1309
1384
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1310
1385
|
let _timeUnit;
|
|
1311
1386
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1314,6 +1389,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1314
1389
|
method: "GET",
|
|
1315
1390
|
queryParams: localVarQueryParameter,
|
|
1316
1391
|
bodyParams: localVarBodyParameter,
|
|
1392
|
+
headerParams: localVarHeaderParameter,
|
|
1317
1393
|
timeUnit: _timeUnit
|
|
1318
1394
|
};
|
|
1319
1395
|
},
|
|
@@ -1322,6 +1398,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1322
1398
|
(0, __binance_common.assertParamExists)("getSmallLiabilityExchangeHistory", "size", size);
|
|
1323
1399
|
const localVarQueryParameter = {};
|
|
1324
1400
|
const localVarBodyParameter = {};
|
|
1401
|
+
const localVarHeaderParameter = {};
|
|
1325
1402
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
1326
1403
|
if (size !== void 0 && size !== null) localVarQueryParameter["size"] = size;
|
|
1327
1404
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1334,6 +1411,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1334
1411
|
method: "GET",
|
|
1335
1412
|
queryParams: localVarQueryParameter,
|
|
1336
1413
|
bodyParams: localVarBodyParameter,
|
|
1414
|
+
headerParams: localVarHeaderParameter,
|
|
1337
1415
|
timeUnit: _timeUnit
|
|
1338
1416
|
};
|
|
1339
1417
|
},
|
|
@@ -1341,6 +1419,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1341
1419
|
(0, __binance_common.assertParamExists)("marginAccountCancelAllOpenOrdersOnASymbol", "symbol", symbol);
|
|
1342
1420
|
const localVarQueryParameter = {};
|
|
1343
1421
|
const localVarBodyParameter = {};
|
|
1422
|
+
const localVarHeaderParameter = {};
|
|
1344
1423
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1345
1424
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1346
1425
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1351,6 +1430,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1351
1430
|
method: "DELETE",
|
|
1352
1431
|
queryParams: localVarQueryParameter,
|
|
1353
1432
|
bodyParams: localVarBodyParameter,
|
|
1433
|
+
headerParams: localVarHeaderParameter,
|
|
1354
1434
|
timeUnit: _timeUnit
|
|
1355
1435
|
};
|
|
1356
1436
|
},
|
|
@@ -1358,6 +1438,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1358
1438
|
(0, __binance_common.assertParamExists)("marginAccountCancelOco", "symbol", symbol);
|
|
1359
1439
|
const localVarQueryParameter = {};
|
|
1360
1440
|
const localVarBodyParameter = {};
|
|
1441
|
+
const localVarHeaderParameter = {};
|
|
1361
1442
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1362
1443
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1363
1444
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
@@ -1371,6 +1452,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1371
1452
|
method: "DELETE",
|
|
1372
1453
|
queryParams: localVarQueryParameter,
|
|
1373
1454
|
bodyParams: localVarBodyParameter,
|
|
1455
|
+
headerParams: localVarHeaderParameter,
|
|
1374
1456
|
timeUnit: _timeUnit
|
|
1375
1457
|
};
|
|
1376
1458
|
},
|
|
@@ -1378,6 +1460,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1378
1460
|
(0, __binance_common.assertParamExists)("marginAccountCancelOrder", "symbol", symbol);
|
|
1379
1461
|
const localVarQueryParameter = {};
|
|
1380
1462
|
const localVarBodyParameter = {};
|
|
1463
|
+
const localVarHeaderParameter = {};
|
|
1381
1464
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1382
1465
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1383
1466
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1391,6 +1474,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1391
1474
|
method: "DELETE",
|
|
1392
1475
|
queryParams: localVarQueryParameter,
|
|
1393
1476
|
bodyParams: localVarBodyParameter,
|
|
1477
|
+
headerParams: localVarHeaderParameter,
|
|
1394
1478
|
timeUnit: _timeUnit
|
|
1395
1479
|
};
|
|
1396
1480
|
},
|
|
@@ -1402,6 +1486,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1402
1486
|
(0, __binance_common.assertParamExists)("marginAccountNewOco", "stopPrice", stopPrice);
|
|
1403
1487
|
const localVarQueryParameter = {};
|
|
1404
1488
|
const localVarBodyParameter = {};
|
|
1489
|
+
const localVarHeaderParameter = {};
|
|
1405
1490
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1406
1491
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1407
1492
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1427,6 +1512,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1427
1512
|
method: "POST",
|
|
1428
1513
|
queryParams: localVarQueryParameter,
|
|
1429
1514
|
bodyParams: localVarBodyParameter,
|
|
1515
|
+
headerParams: localVarHeaderParameter,
|
|
1430
1516
|
timeUnit: _timeUnit
|
|
1431
1517
|
};
|
|
1432
1518
|
},
|
|
@@ -1436,6 +1522,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1436
1522
|
(0, __binance_common.assertParamExists)("marginAccountNewOrder", "type", type);
|
|
1437
1523
|
const localVarQueryParameter = {};
|
|
1438
1524
|
const localVarBodyParameter = {};
|
|
1525
|
+
const localVarHeaderParameter = {};
|
|
1439
1526
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1440
1527
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1441
1528
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
@@ -1459,6 +1546,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1459
1546
|
method: "POST",
|
|
1460
1547
|
queryParams: localVarQueryParameter,
|
|
1461
1548
|
bodyParams: localVarBodyParameter,
|
|
1549
|
+
headerParams: localVarHeaderParameter,
|
|
1462
1550
|
timeUnit: _timeUnit
|
|
1463
1551
|
};
|
|
1464
1552
|
},
|
|
@@ -1474,6 +1562,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1474
1562
|
(0, __binance_common.assertParamExists)("marginAccountNewOto", "pendingQuantity", pendingQuantity);
|
|
1475
1563
|
const localVarQueryParameter = {};
|
|
1476
1564
|
const localVarBodyParameter = {};
|
|
1565
|
+
const localVarHeaderParameter = {};
|
|
1477
1566
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1478
1567
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1479
1568
|
if (listClientOrderId !== void 0 && listClientOrderId !== null) localVarQueryParameter["listClientOrderId"] = listClientOrderId;
|
|
@@ -1504,6 +1593,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1504
1593
|
method: "POST",
|
|
1505
1594
|
queryParams: localVarQueryParameter,
|
|
1506
1595
|
bodyParams: localVarBodyParameter,
|
|
1596
|
+
headerParams: localVarHeaderParameter,
|
|
1507
1597
|
timeUnit: _timeUnit
|
|
1508
1598
|
};
|
|
1509
1599
|
},
|
|
@@ -1518,6 +1608,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1518
1608
|
(0, __binance_common.assertParamExists)("marginAccountNewOtoco", "pendingAboveType", pendingAboveType);
|
|
1519
1609
|
const localVarQueryParameter = {};
|
|
1520
1610
|
const localVarBodyParameter = {};
|
|
1611
|
+
const localVarHeaderParameter = {};
|
|
1521
1612
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1522
1613
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1523
1614
|
if (sideEffectType !== void 0 && sideEffectType !== null) localVarQueryParameter["sideEffectType"] = sideEffectType;
|
|
@@ -1555,6 +1646,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1555
1646
|
method: "POST",
|
|
1556
1647
|
queryParams: localVarQueryParameter,
|
|
1557
1648
|
bodyParams: localVarBodyParameter,
|
|
1649
|
+
headerParams: localVarHeaderParameter,
|
|
1558
1650
|
timeUnit: _timeUnit
|
|
1559
1651
|
};
|
|
1560
1652
|
},
|
|
@@ -1562,6 +1654,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1562
1654
|
(0, __binance_common.assertParamExists)("marginManualLiquidation", "type", type);
|
|
1563
1655
|
const localVarQueryParameter = {};
|
|
1564
1656
|
const localVarBodyParameter = {};
|
|
1657
|
+
const localVarHeaderParameter = {};
|
|
1565
1658
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
1566
1659
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1567
1660
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1572,12 +1665,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1572
1665
|
method: "POST",
|
|
1573
1666
|
queryParams: localVarQueryParameter,
|
|
1574
1667
|
bodyParams: localVarBodyParameter,
|
|
1668
|
+
headerParams: localVarHeaderParameter,
|
|
1575
1669
|
timeUnit: _timeUnit
|
|
1576
1670
|
};
|
|
1577
1671
|
},
|
|
1578
1672
|
queryCurrentMarginOrderCountUsage: async (isIsolated, symbol, recvWindow) => {
|
|
1579
1673
|
const localVarQueryParameter = {};
|
|
1580
1674
|
const localVarBodyParameter = {};
|
|
1675
|
+
const localVarHeaderParameter = {};
|
|
1581
1676
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1582
1677
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1583
1678
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1588,12 +1683,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1588
1683
|
method: "GET",
|
|
1589
1684
|
queryParams: localVarQueryParameter,
|
|
1590
1685
|
bodyParams: localVarBodyParameter,
|
|
1686
|
+
headerParams: localVarHeaderParameter,
|
|
1591
1687
|
timeUnit: _timeUnit
|
|
1592
1688
|
};
|
|
1593
1689
|
},
|
|
1594
1690
|
queryMarginAccountsAllOco: async (isIsolated, symbol, fromId, startTime, endTime, limit, recvWindow) => {
|
|
1595
1691
|
const localVarQueryParameter = {};
|
|
1596
1692
|
const localVarBodyParameter = {};
|
|
1693
|
+
const localVarHeaderParameter = {};
|
|
1597
1694
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1598
1695
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1599
1696
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
@@ -1608,6 +1705,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1608
1705
|
method: "GET",
|
|
1609
1706
|
queryParams: localVarQueryParameter,
|
|
1610
1707
|
bodyParams: localVarBodyParameter,
|
|
1708
|
+
headerParams: localVarHeaderParameter,
|
|
1611
1709
|
timeUnit: _timeUnit
|
|
1612
1710
|
};
|
|
1613
1711
|
},
|
|
@@ -1615,6 +1713,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1615
1713
|
(0, __binance_common.assertParamExists)("queryMarginAccountsAllOrders", "symbol", symbol);
|
|
1616
1714
|
const localVarQueryParameter = {};
|
|
1617
1715
|
const localVarBodyParameter = {};
|
|
1716
|
+
const localVarHeaderParameter = {};
|
|
1618
1717
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1619
1718
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1620
1719
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1629,12 +1728,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1629
1728
|
method: "GET",
|
|
1630
1729
|
queryParams: localVarQueryParameter,
|
|
1631
1730
|
bodyParams: localVarBodyParameter,
|
|
1731
|
+
headerParams: localVarHeaderParameter,
|
|
1632
1732
|
timeUnit: _timeUnit
|
|
1633
1733
|
};
|
|
1634
1734
|
},
|
|
1635
1735
|
queryMarginAccountsOco: async (isIsolated, symbol, orderListId, origClientOrderId, recvWindow) => {
|
|
1636
1736
|
const localVarQueryParameter = {};
|
|
1637
1737
|
const localVarBodyParameter = {};
|
|
1738
|
+
const localVarHeaderParameter = {};
|
|
1638
1739
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1639
1740
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1640
1741
|
if (orderListId !== void 0 && orderListId !== null) localVarQueryParameter["orderListId"] = orderListId;
|
|
@@ -1647,12 +1748,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1647
1748
|
method: "GET",
|
|
1648
1749
|
queryParams: localVarQueryParameter,
|
|
1649
1750
|
bodyParams: localVarBodyParameter,
|
|
1751
|
+
headerParams: localVarHeaderParameter,
|
|
1650
1752
|
timeUnit: _timeUnit
|
|
1651
1753
|
};
|
|
1652
1754
|
},
|
|
1653
1755
|
queryMarginAccountsOpenOco: async (isIsolated, symbol, recvWindow) => {
|
|
1654
1756
|
const localVarQueryParameter = {};
|
|
1655
1757
|
const localVarBodyParameter = {};
|
|
1758
|
+
const localVarHeaderParameter = {};
|
|
1656
1759
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1657
1760
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1658
1761
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1663,12 +1766,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1663
1766
|
method: "GET",
|
|
1664
1767
|
queryParams: localVarQueryParameter,
|
|
1665
1768
|
bodyParams: localVarBodyParameter,
|
|
1769
|
+
headerParams: localVarHeaderParameter,
|
|
1666
1770
|
timeUnit: _timeUnit
|
|
1667
1771
|
};
|
|
1668
1772
|
},
|
|
1669
1773
|
queryMarginAccountsOpenOrders: async (symbol, isIsolated, recvWindow) => {
|
|
1670
1774
|
const localVarQueryParameter = {};
|
|
1671
1775
|
const localVarBodyParameter = {};
|
|
1776
|
+
const localVarHeaderParameter = {};
|
|
1672
1777
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1673
1778
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1674
1779
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1679,6 +1784,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1679
1784
|
method: "GET",
|
|
1680
1785
|
queryParams: localVarQueryParameter,
|
|
1681
1786
|
bodyParams: localVarBodyParameter,
|
|
1787
|
+
headerParams: localVarHeaderParameter,
|
|
1682
1788
|
timeUnit: _timeUnit
|
|
1683
1789
|
};
|
|
1684
1790
|
},
|
|
@@ -1686,6 +1792,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1686
1792
|
(0, __binance_common.assertParamExists)("queryMarginAccountsOrder", "symbol", symbol);
|
|
1687
1793
|
const localVarQueryParameter = {};
|
|
1688
1794
|
const localVarBodyParameter = {};
|
|
1795
|
+
const localVarHeaderParameter = {};
|
|
1689
1796
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1690
1797
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1691
1798
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1698,6 +1805,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1698
1805
|
method: "GET",
|
|
1699
1806
|
queryParams: localVarQueryParameter,
|
|
1700
1807
|
bodyParams: localVarBodyParameter,
|
|
1808
|
+
headerParams: localVarHeaderParameter,
|
|
1701
1809
|
timeUnit: _timeUnit
|
|
1702
1810
|
};
|
|
1703
1811
|
},
|
|
@@ -1705,6 +1813,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1705
1813
|
(0, __binance_common.assertParamExists)("queryMarginAccountsTradeList", "symbol", symbol);
|
|
1706
1814
|
const localVarQueryParameter = {};
|
|
1707
1815
|
const localVarBodyParameter = {};
|
|
1816
|
+
const localVarHeaderParameter = {};
|
|
1708
1817
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1709
1818
|
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1710
1819
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1720,6 +1829,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1720
1829
|
method: "GET",
|
|
1721
1830
|
queryParams: localVarQueryParameter,
|
|
1722
1831
|
bodyParams: localVarBodyParameter,
|
|
1832
|
+
headerParams: localVarHeaderParameter,
|
|
1723
1833
|
timeUnit: _timeUnit
|
|
1724
1834
|
};
|
|
1725
1835
|
},
|
|
@@ -1727,6 +1837,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1727
1837
|
(0, __binance_common.assertParamExists)("queryPreventedMatches", "symbol", symbol);
|
|
1728
1838
|
const localVarQueryParameter = {};
|
|
1729
1839
|
const localVarBodyParameter = {};
|
|
1840
|
+
const localVarHeaderParameter = {};
|
|
1730
1841
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1731
1842
|
if (preventedMatchId !== void 0 && preventedMatchId !== null) localVarQueryParameter["preventedMatchId"] = preventedMatchId;
|
|
1732
1843
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
@@ -1740,12 +1851,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1740
1851
|
method: "GET",
|
|
1741
1852
|
queryParams: localVarQueryParameter,
|
|
1742
1853
|
bodyParams: localVarBodyParameter,
|
|
1854
|
+
headerParams: localVarHeaderParameter,
|
|
1743
1855
|
timeUnit: _timeUnit
|
|
1744
1856
|
};
|
|
1745
1857
|
},
|
|
1746
1858
|
querySpecialKey: async (symbol, recvWindow) => {
|
|
1747
1859
|
const localVarQueryParameter = {};
|
|
1748
1860
|
const localVarBodyParameter = {};
|
|
1861
|
+
const localVarHeaderParameter = {};
|
|
1749
1862
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1750
1863
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1751
1864
|
let _timeUnit;
|
|
@@ -1755,12 +1868,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1755
1868
|
method: "GET",
|
|
1756
1869
|
queryParams: localVarQueryParameter,
|
|
1757
1870
|
bodyParams: localVarBodyParameter,
|
|
1871
|
+
headerParams: localVarHeaderParameter,
|
|
1758
1872
|
timeUnit: _timeUnit
|
|
1759
1873
|
};
|
|
1760
1874
|
},
|
|
1761
1875
|
querySpecialKeyList: async (symbol, recvWindow) => {
|
|
1762
1876
|
const localVarQueryParameter = {};
|
|
1763
1877
|
const localVarBodyParameter = {};
|
|
1878
|
+
const localVarHeaderParameter = {};
|
|
1764
1879
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1765
1880
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1766
1881
|
let _timeUnit;
|
|
@@ -1770,6 +1885,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1770
1885
|
method: "GET",
|
|
1771
1886
|
queryParams: localVarQueryParameter,
|
|
1772
1887
|
bodyParams: localVarBodyParameter,
|
|
1888
|
+
headerParams: localVarHeaderParameter,
|
|
1773
1889
|
timeUnit: _timeUnit
|
|
1774
1890
|
};
|
|
1775
1891
|
},
|
|
@@ -1777,6 +1893,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1777
1893
|
(0, __binance_common.assertParamExists)("smallLiabilityExchange", "assetNames", assetNames);
|
|
1778
1894
|
const localVarQueryParameter = {};
|
|
1779
1895
|
const localVarBodyParameter = {};
|
|
1896
|
+
const localVarHeaderParameter = {};
|
|
1780
1897
|
if (assetNames) localVarQueryParameter["assetNames"] = assetNames;
|
|
1781
1898
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1782
1899
|
let _timeUnit;
|
|
@@ -1786,6 +1903,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1786
1903
|
method: "POST",
|
|
1787
1904
|
queryParams: localVarQueryParameter,
|
|
1788
1905
|
bodyParams: localVarBodyParameter,
|
|
1906
|
+
headerParams: localVarHeaderParameter,
|
|
1789
1907
|
timeUnit: _timeUnit
|
|
1790
1908
|
};
|
|
1791
1909
|
}
|
|
@@ -1833,7 +1951,7 @@ var TradeApi = class {
|
|
|
1833
1951
|
*/
|
|
1834
1952
|
async createSpecialKey(requestParameters) {
|
|
1835
1953
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.createSpecialKey(requestParameters?.apiName, requestParameters?.symbol, requestParameters?.ip, requestParameters?.publicKey, requestParameters?.permissionMode, requestParameters?.recvWindow);
|
|
1836
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1954
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1837
1955
|
}
|
|
1838
1956
|
/**
|
|
1839
1957
|
* This only applies to Special Key for Low Latency Trading.
|
|
@@ -1853,7 +1971,7 @@ var TradeApi = class {
|
|
|
1853
1971
|
*/
|
|
1854
1972
|
async deleteSpecialKey(requestParameters = {}) {
|
|
1855
1973
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.deleteSpecialKey(requestParameters?.apiName, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1856
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1974
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1857
1975
|
}
|
|
1858
1976
|
/**
|
|
1859
1977
|
* Edit ip restriction. This only applies to Special Key for Low Latency Trading.
|
|
@@ -1871,7 +1989,7 @@ var TradeApi = class {
|
|
|
1871
1989
|
*/
|
|
1872
1990
|
async editIpForSpecialKey(requestParameters) {
|
|
1873
1991
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.editIpForSpecialKey(requestParameters?.ip, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1874
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1992
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1875
1993
|
}
|
|
1876
1994
|
/**
|
|
1877
1995
|
* Get Force Liquidation Record
|
|
@@ -1889,7 +2007,7 @@ var TradeApi = class {
|
|
|
1889
2007
|
*/
|
|
1890
2008
|
async getForceLiquidationRecord(requestParameters = {}) {
|
|
1891
2009
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getForceLiquidationRecord(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.isolatedSymbol, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1892
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2010
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1893
2011
|
}
|
|
1894
2012
|
/**
|
|
1895
2013
|
* Query the coins which can be small liability exchange
|
|
@@ -1905,7 +2023,7 @@ var TradeApi = class {
|
|
|
1905
2023
|
*/
|
|
1906
2024
|
async getSmallLiabilityExchangeCoinList(requestParameters = {}) {
|
|
1907
2025
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSmallLiabilityExchangeCoinList(requestParameters?.recvWindow);
|
|
1908
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2026
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1909
2027
|
}
|
|
1910
2028
|
/**
|
|
1911
2029
|
* Get Small liability Exchange History
|
|
@@ -1921,7 +2039,7 @@ var TradeApi = class {
|
|
|
1921
2039
|
*/
|
|
1922
2040
|
async getSmallLiabilityExchangeHistory(requestParameters) {
|
|
1923
2041
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSmallLiabilityExchangeHistory(requestParameters?.current, requestParameters?.size, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1924
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2042
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1925
2043
|
}
|
|
1926
2044
|
/**
|
|
1927
2045
|
* Cancels all active orders on a symbol for margin account.<br></br>
|
|
@@ -1938,7 +2056,7 @@ var TradeApi = class {
|
|
|
1938
2056
|
*/
|
|
1939
2057
|
async marginAccountCancelAllOpenOrdersOnASymbol(requestParameters) {
|
|
1940
2058
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountCancelAllOpenOrdersOnASymbol(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.recvWindow);
|
|
1941
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2059
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1942
2060
|
}
|
|
1943
2061
|
/**
|
|
1944
2062
|
* Cancel an entire Order List for a margin account.
|
|
@@ -1956,7 +2074,7 @@ var TradeApi = class {
|
|
|
1956
2074
|
*/
|
|
1957
2075
|
async marginAccountCancelOco(requestParameters) {
|
|
1958
2076
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountCancelOco(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderListId, requestParameters?.listClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
1959
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2077
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1960
2078
|
}
|
|
1961
2079
|
/**
|
|
1962
2080
|
* Cancel an active order for margin account.
|
|
@@ -1974,7 +2092,7 @@ var TradeApi = class {
|
|
|
1974
2092
|
*/
|
|
1975
2093
|
async marginAccountCancelOrder(requestParameters) {
|
|
1976
2094
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginAccountCancelOrder(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.newClientOrderId, requestParameters?.recvWindow);
|
|
1977
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2095
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1978
2096
|
}
|
|
1979
2097
|
/**
|
|
1980
2098
|
* Send in a new OCO for a margin account
|
|
@@ -1992,7 +2110,7 @@ var TradeApi = class {
|
|
|
1992
2110
|
*/
|
|
1993
2111
|
async marginAccountNewOco(requestParameters) {
|
|
1994
2112
|
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);
|
|
1995
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2113
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1996
2114
|
}
|
|
1997
2115
|
/**
|
|
1998
2116
|
* Post a new order for margin account.
|
|
@@ -2010,7 +2128,7 @@ var TradeApi = class {
|
|
|
2010
2128
|
*/
|
|
2011
2129
|
async marginAccountNewOrder(requestParameters) {
|
|
2012
2130
|
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);
|
|
2013
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2131
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2014
2132
|
}
|
|
2015
2133
|
/**
|
|
2016
2134
|
* Post a new OTO order for margin account:
|
|
@@ -2036,7 +2154,7 @@ var TradeApi = class {
|
|
|
2036
2154
|
*/
|
|
2037
2155
|
async marginAccountNewOto(requestParameters) {
|
|
2038
2156
|
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);
|
|
2039
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2157
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2040
2158
|
}
|
|
2041
2159
|
/**
|
|
2042
2160
|
* Post a new OTOCO order for margin account:
|
|
@@ -2062,7 +2180,7 @@ var TradeApi = class {
|
|
|
2062
2180
|
*/
|
|
2063
2181
|
async marginAccountNewOtoco(requestParameters) {
|
|
2064
2182
|
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);
|
|
2065
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2183
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2066
2184
|
}
|
|
2067
2185
|
/**
|
|
2068
2186
|
* Margin Manual Liquidation
|
|
@@ -2081,7 +2199,7 @@ var TradeApi = class {
|
|
|
2081
2199
|
*/
|
|
2082
2200
|
async marginManualLiquidation(requestParameters) {
|
|
2083
2201
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marginManualLiquidation(requestParameters?.type, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2084
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2202
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2085
2203
|
}
|
|
2086
2204
|
/**
|
|
2087
2205
|
* Displays the user's current margin order count usage for all intervals.
|
|
@@ -2097,7 +2215,7 @@ var TradeApi = class {
|
|
|
2097
2215
|
*/
|
|
2098
2216
|
async queryCurrentMarginOrderCountUsage(requestParameters = {}) {
|
|
2099
2217
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentMarginOrderCountUsage(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2100
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2218
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2101
2219
|
}
|
|
2102
2220
|
/**
|
|
2103
2221
|
* Retrieves all OCO for a specific margin account based on provided optional parameters
|
|
@@ -2113,7 +2231,7 @@ var TradeApi = class {
|
|
|
2113
2231
|
*/
|
|
2114
2232
|
async queryMarginAccountsAllOco(requestParameters = {}) {
|
|
2115
2233
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOco(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2116
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2234
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2117
2235
|
}
|
|
2118
2236
|
/**
|
|
2119
2237
|
* Query Margin Account's All Orders
|
|
@@ -2133,7 +2251,7 @@ var TradeApi = class {
|
|
|
2133
2251
|
*/
|
|
2134
2252
|
async queryMarginAccountsAllOrders(requestParameters) {
|
|
2135
2253
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsAllOrders(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2136
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2254
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2137
2255
|
}
|
|
2138
2256
|
/**
|
|
2139
2257
|
* Retrieves a specific OCO based on provided optional parameters
|
|
@@ -2149,7 +2267,7 @@ var TradeApi = class {
|
|
|
2149
2267
|
*/
|
|
2150
2268
|
async queryMarginAccountsOco(requestParameters = {}) {
|
|
2151
2269
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOco(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.orderListId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2152
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2270
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2153
2271
|
}
|
|
2154
2272
|
/**
|
|
2155
2273
|
* Query Margin Account's Open OCO
|
|
@@ -2165,7 +2283,7 @@ var TradeApi = class {
|
|
|
2165
2283
|
*/
|
|
2166
2284
|
async queryMarginAccountsOpenOco(requestParameters = {}) {
|
|
2167
2285
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOco(requestParameters?.isIsolated, requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2168
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2286
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2169
2287
|
}
|
|
2170
2288
|
/**
|
|
2171
2289
|
* Query Margin Account's Open Orders
|
|
@@ -2185,7 +2303,7 @@ var TradeApi = class {
|
|
|
2185
2303
|
*/
|
|
2186
2304
|
async queryMarginAccountsOpenOrders(requestParameters = {}) {
|
|
2187
2305
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOpenOrders(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.recvWindow);
|
|
2188
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2306
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2189
2307
|
}
|
|
2190
2308
|
/**
|
|
2191
2309
|
* Query Margin Account's Order
|
|
@@ -2204,7 +2322,7 @@ var TradeApi = class {
|
|
|
2204
2322
|
*/
|
|
2205
2323
|
async queryMarginAccountsOrder(requestParameters) {
|
|
2206
2324
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsOrder(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.recvWindow);
|
|
2207
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2325
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2208
2326
|
}
|
|
2209
2327
|
/**
|
|
2210
2328
|
* Query Margin Account's Trade List
|
|
@@ -2223,7 +2341,7 @@ var TradeApi = class {
|
|
|
2223
2341
|
*/
|
|
2224
2342
|
async queryMarginAccountsTradeList(requestParameters) {
|
|
2225
2343
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMarginAccountsTradeList(requestParameters?.symbol, requestParameters?.isIsolated, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.fromId, requestParameters?.limit, requestParameters?.recvWindow);
|
|
2226
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2344
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2227
2345
|
}
|
|
2228
2346
|
/**
|
|
2229
2347
|
*
|
|
@@ -2238,7 +2356,7 @@ var TradeApi = class {
|
|
|
2238
2356
|
*/
|
|
2239
2357
|
async queryPreventedMatches(requestParameters) {
|
|
2240
2358
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPreventedMatches(requestParameters?.symbol, requestParameters?.preventedMatchId, requestParameters?.orderId, requestParameters?.fromPreventedMatchId, requestParameters?.recvWindow, requestParameters?.isIsolated);
|
|
2241
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2359
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2242
2360
|
}
|
|
2243
2361
|
/**
|
|
2244
2362
|
* Query Special Key Information.
|
|
@@ -2256,7 +2374,7 @@ var TradeApi = class {
|
|
|
2256
2374
|
*/
|
|
2257
2375
|
async querySpecialKey(requestParameters = {}) {
|
|
2258
2376
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySpecialKey(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2259
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2377
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2260
2378
|
}
|
|
2261
2379
|
/**
|
|
2262
2380
|
* This only applies to Special Key for Low Latency Trading.
|
|
@@ -2272,7 +2390,7 @@ var TradeApi = class {
|
|
|
2272
2390
|
*/
|
|
2273
2391
|
async querySpecialKeyList(requestParameters = {}) {
|
|
2274
2392
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySpecialKeyList(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
2275
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2393
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2276
2394
|
}
|
|
2277
2395
|
/**
|
|
2278
2396
|
* Small Liability Exchange
|
|
@@ -2292,7 +2410,7 @@ var TradeApi = class {
|
|
|
2292
2410
|
*/
|
|
2293
2411
|
async smallLiabilityExchange(requestParameters) {
|
|
2294
2412
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.smallLiabilityExchange(requestParameters?.assetNames, requestParameters?.recvWindow);
|
|
2295
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2413
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2296
2414
|
}
|
|
2297
2415
|
};
|
|
2298
2416
|
let MarginAccountNewOcoSideEnum = /* @__PURE__ */ function(MarginAccountNewOcoSideEnum$1) {
|
|
@@ -2358,6 +2476,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2358
2476
|
getCrossMarginTransferHistory: async (asset, type, startTime, endTime, current, size, isolatedSymbol, recvWindow) => {
|
|
2359
2477
|
const localVarQueryParameter = {};
|
|
2360
2478
|
const localVarBodyParameter = {};
|
|
2479
|
+
const localVarHeaderParameter = {};
|
|
2361
2480
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
2362
2481
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
2363
2482
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -2373,6 +2492,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2373
2492
|
method: "GET",
|
|
2374
2493
|
queryParams: localVarQueryParameter,
|
|
2375
2494
|
bodyParams: localVarBodyParameter,
|
|
2495
|
+
headerParams: localVarHeaderParameter,
|
|
2376
2496
|
timeUnit: _timeUnit
|
|
2377
2497
|
};
|
|
2378
2498
|
},
|
|
@@ -2380,6 +2500,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2380
2500
|
(0, __binance_common.assertParamExists)("queryMaxTransferOutAmount", "asset", asset);
|
|
2381
2501
|
const localVarQueryParameter = {};
|
|
2382
2502
|
const localVarBodyParameter = {};
|
|
2503
|
+
const localVarHeaderParameter = {};
|
|
2383
2504
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
2384
2505
|
if (isolatedSymbol !== void 0 && isolatedSymbol !== null) localVarQueryParameter["isolatedSymbol"] = isolatedSymbol;
|
|
2385
2506
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -2390,6 +2511,7 @@ const TransferApiAxiosParamCreator = function(configuration) {
|
|
|
2390
2511
|
method: "GET",
|
|
2391
2512
|
queryParams: localVarQueryParameter,
|
|
2392
2513
|
bodyParams: localVarBodyParameter,
|
|
2514
|
+
headerParams: localVarHeaderParameter,
|
|
2393
2515
|
timeUnit: _timeUnit
|
|
2394
2516
|
};
|
|
2395
2517
|
}
|
|
@@ -2422,7 +2544,7 @@ var TransferApi = class {
|
|
|
2422
2544
|
*/
|
|
2423
2545
|
async getCrossMarginTransferHistory(requestParameters = {}) {
|
|
2424
2546
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCrossMarginTransferHistory(requestParameters?.asset, requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.isolatedSymbol, requestParameters?.recvWindow);
|
|
2425
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2547
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2426
2548
|
}
|
|
2427
2549
|
/**
|
|
2428
2550
|
* Query Max Transfer-Out Amount
|
|
@@ -2440,7 +2562,7 @@ var TransferApi = class {
|
|
|
2440
2562
|
*/
|
|
2441
2563
|
async queryMaxTransferOutAmount(requestParameters) {
|
|
2442
2564
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryMaxTransferOutAmount(requestParameters?.asset, requestParameters?.isolatedSymbol, requestParameters?.recvWindow);
|
|
2443
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2565
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2444
2566
|
}
|
|
2445
2567
|
};
|
|
2446
2568
|
|
|
@@ -2478,7 +2600,7 @@ var RestAPI = class {
|
|
|
2478
2600
|
* @returns A promise resolving to the response data object.
|
|
2479
2601
|
*/
|
|
2480
2602
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
2481
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
2603
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
2482
2604
|
}
|
|
2483
2605
|
/**
|
|
2484
2606
|
* Generic function to send a signed request.
|
|
@@ -2490,7 +2612,7 @@ var RestAPI = class {
|
|
|
2490
2612
|
* @returns A promise resolving to the response data object.
|
|
2491
2613
|
*/
|
|
2492
2614
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
2493
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
2615
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
2494
2616
|
}
|
|
2495
2617
|
/**
|
|
2496
2618
|
* Adjust cross margin max leverage
|