@binance/derivatives-trading-options 15.0.7 → 15.0.8
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 +132 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, C
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/derivatives-trading-options";
|
|
6
|
-
var version = "15.0.
|
|
6
|
+
var version = "15.0.8";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/types/place-multiple-orders-orders-parameter-inner.ts
|
|
@@ -51,6 +51,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
51
51
|
assertParamExists("accountFundingFlow", "currency", currency);
|
|
52
52
|
const localVarQueryParameter = {};
|
|
53
53
|
const localVarBodyParameter = {};
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
54
55
|
if (currency !== void 0 && currency !== null) localVarQueryParameter["currency"] = currency;
|
|
55
56
|
if (recordId !== void 0 && recordId !== null) localVarQueryParameter["recordId"] = recordId;
|
|
56
57
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -64,12 +65,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
64
65
|
method: "GET",
|
|
65
66
|
queryParams: localVarQueryParameter,
|
|
66
67
|
bodyParams: localVarBodyParameter,
|
|
68
|
+
headerParams: localVarHeaderParameter,
|
|
67
69
|
timeUnit: _timeUnit
|
|
68
70
|
};
|
|
69
71
|
},
|
|
70
72
|
optionMarginAccountInformation: async (recvWindow) => {
|
|
71
73
|
const localVarQueryParameter = {};
|
|
72
74
|
const localVarBodyParameter = {};
|
|
75
|
+
const localVarHeaderParameter = {};
|
|
73
76
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
74
77
|
let _timeUnit;
|
|
75
78
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -78,6 +81,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
78
81
|
method: "GET",
|
|
79
82
|
queryParams: localVarQueryParameter,
|
|
80
83
|
bodyParams: localVarBodyParameter,
|
|
84
|
+
headerParams: localVarHeaderParameter,
|
|
81
85
|
timeUnit: _timeUnit
|
|
82
86
|
};
|
|
83
87
|
}
|
|
@@ -109,7 +113,7 @@ var AccountApi = class {
|
|
|
109
113
|
*/
|
|
110
114
|
async accountFundingFlow(requestParameters) {
|
|
111
115
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountFundingFlow(requestParameters?.currency, requestParameters?.recordId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
112
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
116
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
119
|
* Get current account information.
|
|
@@ -125,7 +129,7 @@ var AccountApi = class {
|
|
|
125
129
|
*/
|
|
126
130
|
async optionMarginAccountInformation(requestParameters = {}) {
|
|
127
131
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(requestParameters?.recvWindow);
|
|
128
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
132
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
129
133
|
}
|
|
130
134
|
};
|
|
131
135
|
|
|
@@ -151,6 +155,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
151
155
|
checkServerTime: async () => {
|
|
152
156
|
const localVarQueryParameter = {};
|
|
153
157
|
const localVarBodyParameter = {};
|
|
158
|
+
const localVarHeaderParameter = {};
|
|
154
159
|
let _timeUnit;
|
|
155
160
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
156
161
|
return {
|
|
@@ -158,12 +163,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
158
163
|
method: "GET",
|
|
159
164
|
queryParams: localVarQueryParameter,
|
|
160
165
|
bodyParams: localVarBodyParameter,
|
|
166
|
+
headerParams: localVarHeaderParameter,
|
|
161
167
|
timeUnit: _timeUnit
|
|
162
168
|
};
|
|
163
169
|
},
|
|
164
170
|
exchangeInformation: async () => {
|
|
165
171
|
const localVarQueryParameter = {};
|
|
166
172
|
const localVarBodyParameter = {};
|
|
173
|
+
const localVarHeaderParameter = {};
|
|
167
174
|
let _timeUnit;
|
|
168
175
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
169
176
|
return {
|
|
@@ -171,12 +178,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
171
178
|
method: "GET",
|
|
172
179
|
queryParams: localVarQueryParameter,
|
|
173
180
|
bodyParams: localVarBodyParameter,
|
|
181
|
+
headerParams: localVarHeaderParameter,
|
|
174
182
|
timeUnit: _timeUnit
|
|
175
183
|
};
|
|
176
184
|
},
|
|
177
185
|
historicalExerciseRecords: async (underlying, startTime, endTime, limit) => {
|
|
178
186
|
const localVarQueryParameter = {};
|
|
179
187
|
const localVarBodyParameter = {};
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
180
189
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
181
190
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
182
191
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -188,6 +197,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
188
197
|
method: "GET",
|
|
189
198
|
queryParams: localVarQueryParameter,
|
|
190
199
|
bodyParams: localVarBodyParameter,
|
|
200
|
+
headerParams: localVarHeaderParameter,
|
|
191
201
|
timeUnit: _timeUnit
|
|
192
202
|
};
|
|
193
203
|
},
|
|
@@ -195,6 +205,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
195
205
|
assertParamExists("indexPrice", "underlying", underlying);
|
|
196
206
|
const localVarQueryParameter = {};
|
|
197
207
|
const localVarBodyParameter = {};
|
|
208
|
+
const localVarHeaderParameter = {};
|
|
198
209
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
199
210
|
let _timeUnit;
|
|
200
211
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -203,6 +214,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
203
214
|
method: "GET",
|
|
204
215
|
queryParams: localVarQueryParameter,
|
|
205
216
|
bodyParams: localVarBodyParameter,
|
|
217
|
+
headerParams: localVarHeaderParameter,
|
|
206
218
|
timeUnit: _timeUnit
|
|
207
219
|
};
|
|
208
220
|
},
|
|
@@ -211,6 +223,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
211
223
|
assertParamExists("klineCandlestickData", "interval", interval);
|
|
212
224
|
const localVarQueryParameter = {};
|
|
213
225
|
const localVarBodyParameter = {};
|
|
226
|
+
const localVarHeaderParameter = {};
|
|
214
227
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
215
228
|
if (interval !== void 0 && interval !== null) localVarQueryParameter["interval"] = interval;
|
|
216
229
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -223,6 +236,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
223
236
|
method: "GET",
|
|
224
237
|
queryParams: localVarQueryParameter,
|
|
225
238
|
bodyParams: localVarBodyParameter,
|
|
239
|
+
headerParams: localVarHeaderParameter,
|
|
226
240
|
timeUnit: _timeUnit
|
|
227
241
|
};
|
|
228
242
|
},
|
|
@@ -231,6 +245,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
231
245
|
assertParamExists("openInterest", "expiration", expiration);
|
|
232
246
|
const localVarQueryParameter = {};
|
|
233
247
|
const localVarBodyParameter = {};
|
|
248
|
+
const localVarHeaderParameter = {};
|
|
234
249
|
if (underlyingAsset !== void 0 && underlyingAsset !== null) localVarQueryParameter["underlyingAsset"] = underlyingAsset;
|
|
235
250
|
if (expiration !== void 0 && expiration !== null) localVarQueryParameter["expiration"] = expiration;
|
|
236
251
|
let _timeUnit;
|
|
@@ -240,12 +255,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
240
255
|
method: "GET",
|
|
241
256
|
queryParams: localVarQueryParameter,
|
|
242
257
|
bodyParams: localVarBodyParameter,
|
|
258
|
+
headerParams: localVarHeaderParameter,
|
|
243
259
|
timeUnit: _timeUnit
|
|
244
260
|
};
|
|
245
261
|
},
|
|
246
262
|
optionMarkPrice: async (symbol) => {
|
|
247
263
|
const localVarQueryParameter = {};
|
|
248
264
|
const localVarBodyParameter = {};
|
|
265
|
+
const localVarHeaderParameter = {};
|
|
249
266
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
250
267
|
let _timeUnit;
|
|
251
268
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -254,6 +271,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
254
271
|
method: "GET",
|
|
255
272
|
queryParams: localVarQueryParameter,
|
|
256
273
|
bodyParams: localVarBodyParameter,
|
|
274
|
+
headerParams: localVarHeaderParameter,
|
|
257
275
|
timeUnit: _timeUnit
|
|
258
276
|
};
|
|
259
277
|
},
|
|
@@ -261,6 +279,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
261
279
|
assertParamExists("orderBook", "symbol", symbol);
|
|
262
280
|
const localVarQueryParameter = {};
|
|
263
281
|
const localVarBodyParameter = {};
|
|
282
|
+
const localVarHeaderParameter = {};
|
|
264
283
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
265
284
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
266
285
|
let _timeUnit;
|
|
@@ -270,12 +289,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
270
289
|
method: "GET",
|
|
271
290
|
queryParams: localVarQueryParameter,
|
|
272
291
|
bodyParams: localVarBodyParameter,
|
|
292
|
+
headerParams: localVarHeaderParameter,
|
|
273
293
|
timeUnit: _timeUnit
|
|
274
294
|
};
|
|
275
295
|
},
|
|
276
296
|
recentBlockTradesList: async (symbol, limit) => {
|
|
277
297
|
const localVarQueryParameter = {};
|
|
278
298
|
const localVarBodyParameter = {};
|
|
299
|
+
const localVarHeaderParameter = {};
|
|
279
300
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
280
301
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
281
302
|
let _timeUnit;
|
|
@@ -285,6 +306,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
285
306
|
method: "GET",
|
|
286
307
|
queryParams: localVarQueryParameter,
|
|
287
308
|
bodyParams: localVarBodyParameter,
|
|
309
|
+
headerParams: localVarHeaderParameter,
|
|
288
310
|
timeUnit: _timeUnit
|
|
289
311
|
};
|
|
290
312
|
},
|
|
@@ -292,6 +314,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
292
314
|
assertParamExists("recentTradesList", "symbol", symbol);
|
|
293
315
|
const localVarQueryParameter = {};
|
|
294
316
|
const localVarBodyParameter = {};
|
|
317
|
+
const localVarHeaderParameter = {};
|
|
295
318
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
296
319
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
297
320
|
let _timeUnit;
|
|
@@ -301,12 +324,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
301
324
|
method: "GET",
|
|
302
325
|
queryParams: localVarQueryParameter,
|
|
303
326
|
bodyParams: localVarBodyParameter,
|
|
327
|
+
headerParams: localVarHeaderParameter,
|
|
304
328
|
timeUnit: _timeUnit
|
|
305
329
|
};
|
|
306
330
|
},
|
|
307
331
|
testConnectivity: async () => {
|
|
308
332
|
const localVarQueryParameter = {};
|
|
309
333
|
const localVarBodyParameter = {};
|
|
334
|
+
const localVarHeaderParameter = {};
|
|
310
335
|
let _timeUnit;
|
|
311
336
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
312
337
|
return {
|
|
@@ -314,12 +339,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
314
339
|
method: "GET",
|
|
315
340
|
queryParams: localVarQueryParameter,
|
|
316
341
|
bodyParams: localVarBodyParameter,
|
|
342
|
+
headerParams: localVarHeaderParameter,
|
|
317
343
|
timeUnit: _timeUnit
|
|
318
344
|
};
|
|
319
345
|
},
|
|
320
346
|
ticker24hrPriceChangeStatistics: async (symbol) => {
|
|
321
347
|
const localVarQueryParameter = {};
|
|
322
348
|
const localVarBodyParameter = {};
|
|
349
|
+
const localVarHeaderParameter = {};
|
|
323
350
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
324
351
|
let _timeUnit;
|
|
325
352
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -328,6 +355,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
328
355
|
method: "GET",
|
|
329
356
|
queryParams: localVarQueryParameter,
|
|
330
357
|
bodyParams: localVarBodyParameter,
|
|
358
|
+
headerParams: localVarHeaderParameter,
|
|
331
359
|
timeUnit: _timeUnit
|
|
332
360
|
};
|
|
333
361
|
}
|
|
@@ -355,7 +383,7 @@ var MarketDataApi = class {
|
|
|
355
383
|
*/
|
|
356
384
|
async checkServerTime() {
|
|
357
385
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkServerTime();
|
|
358
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
386
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
359
387
|
}
|
|
360
388
|
/**
|
|
361
389
|
* Current exchange trading rules and symbol information
|
|
@@ -370,7 +398,7 @@ var MarketDataApi = class {
|
|
|
370
398
|
*/
|
|
371
399
|
async exchangeInformation() {
|
|
372
400
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.exchangeInformation();
|
|
373
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
401
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
374
402
|
}
|
|
375
403
|
/**
|
|
376
404
|
* Get historical exercise records.
|
|
@@ -388,7 +416,7 @@ var MarketDataApi = class {
|
|
|
388
416
|
*/
|
|
389
417
|
async historicalExerciseRecords(requestParameters = {}) {
|
|
390
418
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.historicalExerciseRecords(requestParameters?.underlying, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
391
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
419
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
392
420
|
}
|
|
393
421
|
/**
|
|
394
422
|
* Get spot index price for option underlying.
|
|
@@ -404,7 +432,7 @@ var MarketDataApi = class {
|
|
|
404
432
|
*/
|
|
405
433
|
async indexPrice(requestParameters) {
|
|
406
434
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPrice(requestParameters?.underlying);
|
|
407
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
435
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
408
436
|
}
|
|
409
437
|
/**
|
|
410
438
|
* Kline/candlestick bars for an option symbol.
|
|
@@ -423,7 +451,7 @@ var MarketDataApi = class {
|
|
|
423
451
|
*/
|
|
424
452
|
async klineCandlestickData(requestParameters) {
|
|
425
453
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.klineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
|
|
426
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
454
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
427
455
|
}
|
|
428
456
|
/**
|
|
429
457
|
* Get open interest for specific underlying asset on specific expiration date.
|
|
@@ -439,7 +467,7 @@ var MarketDataApi = class {
|
|
|
439
467
|
*/
|
|
440
468
|
async openInterest(requestParameters) {
|
|
441
469
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterest(requestParameters?.underlyingAsset, requestParameters?.expiration);
|
|
442
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
470
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
443
471
|
}
|
|
444
472
|
/**
|
|
445
473
|
* Option mark price and greek info.
|
|
@@ -455,7 +483,7 @@ var MarketDataApi = class {
|
|
|
455
483
|
*/
|
|
456
484
|
async optionMarkPrice(requestParameters = {}) {
|
|
457
485
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarkPrice(requestParameters?.symbol);
|
|
458
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
486
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
459
487
|
}
|
|
460
488
|
/**
|
|
461
489
|
* Check orderbook depth on specific symbol
|
|
@@ -476,7 +504,7 @@ var MarketDataApi = class {
|
|
|
476
504
|
*/
|
|
477
505
|
async orderBook(requestParameters) {
|
|
478
506
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderBook(requestParameters?.symbol, requestParameters?.limit);
|
|
479
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
507
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
480
508
|
}
|
|
481
509
|
/**
|
|
482
510
|
* Get recent block trades
|
|
@@ -492,7 +520,7 @@ var MarketDataApi = class {
|
|
|
492
520
|
*/
|
|
493
521
|
async recentBlockTradesList(requestParameters = {}) {
|
|
494
522
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentBlockTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
495
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
523
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
496
524
|
}
|
|
497
525
|
/**
|
|
498
526
|
* Get recent market trades
|
|
@@ -508,7 +536,7 @@ var MarketDataApi = class {
|
|
|
508
536
|
*/
|
|
509
537
|
async recentTradesList(requestParameters) {
|
|
510
538
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentTradesList(requestParameters?.symbol, requestParameters?.limit);
|
|
511
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
539
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
512
540
|
}
|
|
513
541
|
/**
|
|
514
542
|
* Test connectivity to the Rest API.
|
|
@@ -523,7 +551,7 @@ var MarketDataApi = class {
|
|
|
523
551
|
*/
|
|
524
552
|
async testConnectivity() {
|
|
525
553
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
|
|
526
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
554
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
527
555
|
}
|
|
528
556
|
/**
|
|
529
557
|
* 24 hour rolling window price change statistics.
|
|
@@ -539,7 +567,7 @@ var MarketDataApi = class {
|
|
|
539
567
|
*/
|
|
540
568
|
async ticker24hrPriceChangeStatistics(requestParameters = {}) {
|
|
541
569
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.ticker24hrPriceChangeStatistics(requestParameters?.symbol);
|
|
542
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
570
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
543
571
|
}
|
|
544
572
|
};
|
|
545
573
|
|
|
@@ -566,6 +594,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
566
594
|
assertParamExists("acceptBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
567
595
|
const localVarQueryParameter = {};
|
|
568
596
|
const localVarBodyParameter = {};
|
|
597
|
+
const localVarHeaderParameter = {};
|
|
569
598
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
570
599
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
571
600
|
let _timeUnit;
|
|
@@ -575,12 +604,14 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
575
604
|
method: "POST",
|
|
576
605
|
queryParams: localVarQueryParameter,
|
|
577
606
|
bodyParams: localVarBodyParameter,
|
|
607
|
+
headerParams: localVarHeaderParameter,
|
|
578
608
|
timeUnit: _timeUnit
|
|
579
609
|
};
|
|
580
610
|
},
|
|
581
611
|
accountBlockTradeList: async (endTime, startTime, underlying, recvWindow) => {
|
|
582
612
|
const localVarQueryParameter = {};
|
|
583
613
|
const localVarBodyParameter = {};
|
|
614
|
+
const localVarHeaderParameter = {};
|
|
584
615
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
585
616
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
586
617
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
@@ -592,6 +623,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
592
623
|
method: "GET",
|
|
593
624
|
queryParams: localVarQueryParameter,
|
|
594
625
|
bodyParams: localVarBodyParameter,
|
|
626
|
+
headerParams: localVarHeaderParameter,
|
|
595
627
|
timeUnit: _timeUnit
|
|
596
628
|
};
|
|
597
629
|
},
|
|
@@ -599,6 +631,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
599
631
|
assertParamExists("cancelBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
600
632
|
const localVarQueryParameter = {};
|
|
601
633
|
const localVarBodyParameter = {};
|
|
634
|
+
const localVarHeaderParameter = {};
|
|
602
635
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
603
636
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
604
637
|
let _timeUnit;
|
|
@@ -608,6 +641,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
608
641
|
method: "DELETE",
|
|
609
642
|
queryParams: localVarQueryParameter,
|
|
610
643
|
bodyParams: localVarBodyParameter,
|
|
644
|
+
headerParams: localVarHeaderParameter,
|
|
611
645
|
timeUnit: _timeUnit
|
|
612
646
|
};
|
|
613
647
|
},
|
|
@@ -615,6 +649,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
615
649
|
assertParamExists("extendBlockTradeOrder", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
616
650
|
const localVarQueryParameter = {};
|
|
617
651
|
const localVarBodyParameter = {};
|
|
652
|
+
const localVarHeaderParameter = {};
|
|
618
653
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
619
654
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
620
655
|
let _timeUnit;
|
|
@@ -624,6 +659,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
624
659
|
method: "PUT",
|
|
625
660
|
queryParams: localVarQueryParameter,
|
|
626
661
|
bodyParams: localVarBodyParameter,
|
|
662
|
+
headerParams: localVarHeaderParameter,
|
|
627
663
|
timeUnit: _timeUnit
|
|
628
664
|
};
|
|
629
665
|
},
|
|
@@ -632,6 +668,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
632
668
|
assertParamExists("newBlockTradeOrder", "legs", legs);
|
|
633
669
|
const localVarQueryParameter = {};
|
|
634
670
|
const localVarBodyParameter = {};
|
|
671
|
+
const localVarHeaderParameter = {};
|
|
635
672
|
if (liquidity !== void 0 && liquidity !== null) localVarQueryParameter["liquidity"] = liquidity;
|
|
636
673
|
if (legs) localVarQueryParameter["legs"] = legs;
|
|
637
674
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -642,6 +679,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
642
679
|
method: "POST",
|
|
643
680
|
queryParams: localVarQueryParameter,
|
|
644
681
|
bodyParams: localVarBodyParameter,
|
|
682
|
+
headerParams: localVarHeaderParameter,
|
|
645
683
|
timeUnit: _timeUnit
|
|
646
684
|
};
|
|
647
685
|
},
|
|
@@ -649,6 +687,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
649
687
|
assertParamExists("queryBlockTradeDetails", "blockOrderMatchingKey", blockOrderMatchingKey);
|
|
650
688
|
const localVarQueryParameter = {};
|
|
651
689
|
const localVarBodyParameter = {};
|
|
690
|
+
const localVarHeaderParameter = {};
|
|
652
691
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
653
692
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
654
693
|
let _timeUnit;
|
|
@@ -658,12 +697,14 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
658
697
|
method: "GET",
|
|
659
698
|
queryParams: localVarQueryParameter,
|
|
660
699
|
bodyParams: localVarBodyParameter,
|
|
700
|
+
headerParams: localVarHeaderParameter,
|
|
661
701
|
timeUnit: _timeUnit
|
|
662
702
|
};
|
|
663
703
|
},
|
|
664
704
|
queryBlockTradeOrder: async (blockOrderMatchingKey, endTime, startTime, underlying, recvWindow) => {
|
|
665
705
|
const localVarQueryParameter = {};
|
|
666
706
|
const localVarBodyParameter = {};
|
|
707
|
+
const localVarHeaderParameter = {};
|
|
667
708
|
if (blockOrderMatchingKey !== void 0 && blockOrderMatchingKey !== null) localVarQueryParameter["blockOrderMatchingKey"] = blockOrderMatchingKey;
|
|
668
709
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
669
710
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -676,6 +717,7 @@ const MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
|
|
|
676
717
|
method: "GET",
|
|
677
718
|
queryParams: localVarQueryParameter,
|
|
678
719
|
bodyParams: localVarBodyParameter,
|
|
720
|
+
headerParams: localVarHeaderParameter,
|
|
679
721
|
timeUnit: _timeUnit
|
|
680
722
|
};
|
|
681
723
|
}
|
|
@@ -704,7 +746,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
704
746
|
*/
|
|
705
747
|
async acceptBlockTradeOrder(requestParameters) {
|
|
706
748
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
707
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
749
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
708
750
|
}
|
|
709
751
|
/**
|
|
710
752
|
* Gets block trades for a specific account.
|
|
@@ -720,7 +762,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
720
762
|
*/
|
|
721
763
|
async accountBlockTradeList(requestParameters = {}) {
|
|
722
764
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBlockTradeList(requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
|
|
723
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
765
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
724
766
|
}
|
|
725
767
|
/**
|
|
726
768
|
* Cancel a block trade order.
|
|
@@ -736,7 +778,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
736
778
|
*/
|
|
737
779
|
async cancelBlockTradeOrder(requestParameters) {
|
|
738
780
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
739
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
781
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
740
782
|
}
|
|
741
783
|
/**
|
|
742
784
|
* Extends a block trade expire time by 30 mins from the current time.
|
|
@@ -752,7 +794,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
752
794
|
*/
|
|
753
795
|
async extendBlockTradeOrder(requestParameters) {
|
|
754
796
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.extendBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
755
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
797
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
756
798
|
}
|
|
757
799
|
/**
|
|
758
800
|
* Send in a new block trade order.
|
|
@@ -768,7 +810,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
768
810
|
*/
|
|
769
811
|
async newBlockTradeOrder(requestParameters) {
|
|
770
812
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newBlockTradeOrder(requestParameters?.liquidity, requestParameters?.legs, requestParameters?.recvWindow);
|
|
771
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
813
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
772
814
|
}
|
|
773
815
|
/**
|
|
774
816
|
* Query block trade details; returns block trade details from counterparty's perspective.
|
|
@@ -784,7 +826,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
784
826
|
*/
|
|
785
827
|
async queryBlockTradeDetails(requestParameters) {
|
|
786
828
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeDetails(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
|
|
787
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
829
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
788
830
|
}
|
|
789
831
|
/**
|
|
790
832
|
* Check block trade order status.
|
|
@@ -800,7 +842,7 @@ var MarketMakerBlockTradeApi = class {
|
|
|
800
842
|
*/
|
|
801
843
|
async queryBlockTradeOrder(requestParameters = {}) {
|
|
802
844
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
|
|
803
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
845
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
804
846
|
}
|
|
805
847
|
};
|
|
806
848
|
|
|
@@ -827,6 +869,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
827
869
|
assertParamExists("autoCancelAllOpenOrders", "underlyings", underlyings);
|
|
828
870
|
const localVarQueryParameter = {};
|
|
829
871
|
const localVarBodyParameter = {};
|
|
872
|
+
const localVarHeaderParameter = {};
|
|
830
873
|
if (underlyings !== void 0 && underlyings !== null) localVarQueryParameter["underlyings"] = underlyings;
|
|
831
874
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
832
875
|
let _timeUnit;
|
|
@@ -836,12 +879,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
836
879
|
method: "POST",
|
|
837
880
|
queryParams: localVarQueryParameter,
|
|
838
881
|
bodyParams: localVarBodyParameter,
|
|
882
|
+
headerParams: localVarHeaderParameter,
|
|
839
883
|
timeUnit: _timeUnit
|
|
840
884
|
};
|
|
841
885
|
},
|
|
842
886
|
getAutoCancelAllOpenOrders: async (underlying, recvWindow) => {
|
|
843
887
|
const localVarQueryParameter = {};
|
|
844
888
|
const localVarBodyParameter = {};
|
|
889
|
+
const localVarHeaderParameter = {};
|
|
845
890
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
846
891
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
847
892
|
let _timeUnit;
|
|
@@ -851,12 +896,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
851
896
|
method: "GET",
|
|
852
897
|
queryParams: localVarQueryParameter,
|
|
853
898
|
bodyParams: localVarBodyParameter,
|
|
899
|
+
headerParams: localVarHeaderParameter,
|
|
854
900
|
timeUnit: _timeUnit
|
|
855
901
|
};
|
|
856
902
|
},
|
|
857
903
|
getMarketMakerProtectionConfig: async (underlying, recvWindow) => {
|
|
858
904
|
const localVarQueryParameter = {};
|
|
859
905
|
const localVarBodyParameter = {};
|
|
906
|
+
const localVarHeaderParameter = {};
|
|
860
907
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
861
908
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
862
909
|
let _timeUnit;
|
|
@@ -866,12 +913,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
866
913
|
method: "GET",
|
|
867
914
|
queryParams: localVarQueryParameter,
|
|
868
915
|
bodyParams: localVarBodyParameter,
|
|
916
|
+
headerParams: localVarHeaderParameter,
|
|
869
917
|
timeUnit: _timeUnit
|
|
870
918
|
};
|
|
871
919
|
},
|
|
872
920
|
resetMarketMakerProtectionConfig: async (underlying, recvWindow) => {
|
|
873
921
|
const localVarQueryParameter = {};
|
|
874
922
|
const localVarBodyParameter = {};
|
|
923
|
+
const localVarHeaderParameter = {};
|
|
875
924
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
876
925
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
877
926
|
let _timeUnit;
|
|
@@ -881,6 +930,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
881
930
|
method: "POST",
|
|
882
931
|
queryParams: localVarQueryParameter,
|
|
883
932
|
bodyParams: localVarBodyParameter,
|
|
933
|
+
headerParams: localVarHeaderParameter,
|
|
884
934
|
timeUnit: _timeUnit
|
|
885
935
|
};
|
|
886
936
|
},
|
|
@@ -889,6 +939,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
889
939
|
assertParamExists("setAutoCancelAllOpenOrders", "countdownTime", countdownTime);
|
|
890
940
|
const localVarQueryParameter = {};
|
|
891
941
|
const localVarBodyParameter = {};
|
|
942
|
+
const localVarHeaderParameter = {};
|
|
892
943
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
893
944
|
if (countdownTime !== void 0 && countdownTime !== null) localVarQueryParameter["countdownTime"] = countdownTime;
|
|
894
945
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -899,12 +950,14 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
899
950
|
method: "POST",
|
|
900
951
|
queryParams: localVarQueryParameter,
|
|
901
952
|
bodyParams: localVarBodyParameter,
|
|
953
|
+
headerParams: localVarHeaderParameter,
|
|
902
954
|
timeUnit: _timeUnit
|
|
903
955
|
};
|
|
904
956
|
},
|
|
905
957
|
setMarketMakerProtectionConfig: async (underlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindow) => {
|
|
906
958
|
const localVarQueryParameter = {};
|
|
907
959
|
const localVarBodyParameter = {};
|
|
960
|
+
const localVarHeaderParameter = {};
|
|
908
961
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
909
962
|
if (windowTimeInMilliseconds !== void 0 && windowTimeInMilliseconds !== null) localVarQueryParameter["windowTimeInMilliseconds"] = windowTimeInMilliseconds;
|
|
910
963
|
if (frozenTimeInMilliseconds !== void 0 && frozenTimeInMilliseconds !== null) localVarQueryParameter["frozenTimeInMilliseconds"] = frozenTimeInMilliseconds;
|
|
@@ -918,6 +971,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
918
971
|
method: "POST",
|
|
919
972
|
queryParams: localVarQueryParameter,
|
|
920
973
|
bodyParams: localVarBodyParameter,
|
|
974
|
+
headerParams: localVarHeaderParameter,
|
|
921
975
|
timeUnit: _timeUnit
|
|
922
976
|
};
|
|
923
977
|
}
|
|
@@ -948,7 +1002,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
948
1002
|
*/
|
|
949
1003
|
async autoCancelAllOpenOrders(requestParameters) {
|
|
950
1004
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.autoCancelAllOpenOrders(requestParameters?.underlyings, requestParameters?.recvWindow);
|
|
951
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1005
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
952
1006
|
}
|
|
953
1007
|
/**
|
|
954
1008
|
* This endpoint returns the auto-cancel parameters for each underlying symbol. Note only active auto-cancel parameters will be returned, if countdownTime is set to 0 (ie. countdownTime has been turned off), the underlying symbol and corresponding countdownTime parameter will not be returned in the response.
|
|
@@ -966,7 +1020,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
966
1020
|
*/
|
|
967
1021
|
async getAutoCancelAllOpenOrders(requestParameters = {}) {
|
|
968
1022
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
969
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1023
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
970
1024
|
}
|
|
971
1025
|
/**
|
|
972
1026
|
* Get config for MMP.
|
|
@@ -982,7 +1036,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
982
1036
|
*/
|
|
983
1037
|
async getMarketMakerProtectionConfig(requestParameters = {}) {
|
|
984
1038
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
985
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1039
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
986
1040
|
}
|
|
987
1041
|
/**
|
|
988
1042
|
* Reset MMP, start MMP order again.
|
|
@@ -998,7 +1052,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
998
1052
|
*/
|
|
999
1053
|
async resetMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1000
1054
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.resetMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1001
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1055
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1002
1056
|
}
|
|
1003
1057
|
/**
|
|
1004
1058
|
* This endpoint sets the parameters of the auto-cancel feature which cancels all open orders (both market maker protection and non market maker protection order types) of the underlying symbol at the end of the specified countdown time period if no heartbeat message is sent. After the countdown time period, all open orders will be cancelled and new orders will be rejected with error code -2010 until either a heartbeat message is sent or the auto-cancel feature is turned off by setting countdownTime to 0.
|
|
@@ -1020,7 +1074,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1020
1074
|
*/
|
|
1021
1075
|
async setAutoCancelAllOpenOrders(requestParameters) {
|
|
1022
1076
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.countdownTime, requestParameters?.recvWindow);
|
|
1023
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1077
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1024
1078
|
}
|
|
1025
1079
|
/**
|
|
1026
1080
|
* Set config for MMP.
|
|
@@ -1037,7 +1091,7 @@ var MarketMakerEndpointsApi = class {
|
|
|
1037
1091
|
*/
|
|
1038
1092
|
async setMarketMakerProtectionConfig(requestParameters = {}) {
|
|
1039
1093
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.windowTimeInMilliseconds, requestParameters?.frozenTimeInMilliseconds, requestParameters?.qtyLimit, requestParameters?.deltaLimit, requestParameters?.recvWindow);
|
|
1040
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1094
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1041
1095
|
}
|
|
1042
1096
|
};
|
|
1043
1097
|
|
|
@@ -1063,6 +1117,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1063
1117
|
accountTradeList: async (symbol, fromId, startTime, endTime, limit, recvWindow) => {
|
|
1064
1118
|
const localVarQueryParameter = {};
|
|
1065
1119
|
const localVarBodyParameter = {};
|
|
1120
|
+
const localVarHeaderParameter = {};
|
|
1066
1121
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1067
1122
|
if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
|
|
1068
1123
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1076,6 +1131,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1076
1131
|
method: "GET",
|
|
1077
1132
|
queryParams: localVarQueryParameter,
|
|
1078
1133
|
bodyParams: localVarBodyParameter,
|
|
1134
|
+
headerParams: localVarHeaderParameter,
|
|
1079
1135
|
timeUnit: _timeUnit
|
|
1080
1136
|
};
|
|
1081
1137
|
},
|
|
@@ -1083,6 +1139,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1083
1139
|
assertParamExists("cancelAllOptionOrdersByUnderlying", "underlying", underlying);
|
|
1084
1140
|
const localVarQueryParameter = {};
|
|
1085
1141
|
const localVarBodyParameter = {};
|
|
1142
|
+
const localVarHeaderParameter = {};
|
|
1086
1143
|
if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
|
|
1087
1144
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1088
1145
|
let _timeUnit;
|
|
@@ -1092,6 +1149,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1092
1149
|
method: "DELETE",
|
|
1093
1150
|
queryParams: localVarQueryParameter,
|
|
1094
1151
|
bodyParams: localVarBodyParameter,
|
|
1152
|
+
headerParams: localVarHeaderParameter,
|
|
1095
1153
|
timeUnit: _timeUnit
|
|
1096
1154
|
};
|
|
1097
1155
|
},
|
|
@@ -1099,6 +1157,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1099
1157
|
assertParamExists("cancelAllOptionOrdersOnSpecificSymbol", "symbol", symbol);
|
|
1100
1158
|
const localVarQueryParameter = {};
|
|
1101
1159
|
const localVarBodyParameter = {};
|
|
1160
|
+
const localVarHeaderParameter = {};
|
|
1102
1161
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1103
1162
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1104
1163
|
let _timeUnit;
|
|
@@ -1108,6 +1167,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1108
1167
|
method: "DELETE",
|
|
1109
1168
|
queryParams: localVarQueryParameter,
|
|
1110
1169
|
bodyParams: localVarBodyParameter,
|
|
1170
|
+
headerParams: localVarHeaderParameter,
|
|
1111
1171
|
timeUnit: _timeUnit
|
|
1112
1172
|
};
|
|
1113
1173
|
},
|
|
@@ -1115,6 +1175,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1115
1175
|
assertParamExists("cancelMultipleOptionOrders", "symbol", symbol);
|
|
1116
1176
|
const localVarQueryParameter = {};
|
|
1117
1177
|
const localVarBodyParameter = {};
|
|
1178
|
+
const localVarHeaderParameter = {};
|
|
1118
1179
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1119
1180
|
if (orderIds) localVarQueryParameter["orderIds"] = orderIds;
|
|
1120
1181
|
if (clientOrderIds) localVarQueryParameter["clientOrderIds"] = clientOrderIds;
|
|
@@ -1126,6 +1187,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1126
1187
|
method: "DELETE",
|
|
1127
1188
|
queryParams: localVarQueryParameter,
|
|
1128
1189
|
bodyParams: localVarBodyParameter,
|
|
1190
|
+
headerParams: localVarHeaderParameter,
|
|
1129
1191
|
timeUnit: _timeUnit
|
|
1130
1192
|
};
|
|
1131
1193
|
},
|
|
@@ -1133,6 +1195,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1133
1195
|
assertParamExists("cancelOptionOrder", "symbol", symbol);
|
|
1134
1196
|
const localVarQueryParameter = {};
|
|
1135
1197
|
const localVarBodyParameter = {};
|
|
1198
|
+
const localVarHeaderParameter = {};
|
|
1136
1199
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1137
1200
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1138
1201
|
if (clientOrderId !== void 0 && clientOrderId !== null) localVarQueryParameter["clientOrderId"] = clientOrderId;
|
|
@@ -1144,6 +1207,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1144
1207
|
method: "DELETE",
|
|
1145
1208
|
queryParams: localVarQueryParameter,
|
|
1146
1209
|
bodyParams: localVarBodyParameter,
|
|
1210
|
+
headerParams: localVarHeaderParameter,
|
|
1147
1211
|
timeUnit: _timeUnit
|
|
1148
1212
|
};
|
|
1149
1213
|
},
|
|
@@ -1154,6 +1218,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1154
1218
|
assertParamExists("newOrder", "quantity", quantity);
|
|
1155
1219
|
const localVarQueryParameter = {};
|
|
1156
1220
|
const localVarBodyParameter = {};
|
|
1221
|
+
const localVarHeaderParameter = {};
|
|
1157
1222
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1158
1223
|
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
1159
1224
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
@@ -1174,12 +1239,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1174
1239
|
method: "POST",
|
|
1175
1240
|
queryParams: localVarQueryParameter,
|
|
1176
1241
|
bodyParams: localVarBodyParameter,
|
|
1242
|
+
headerParams: localVarHeaderParameter,
|
|
1177
1243
|
timeUnit: _timeUnit
|
|
1178
1244
|
};
|
|
1179
1245
|
},
|
|
1180
1246
|
optionPositionInformation: async (symbol, recvWindow) => {
|
|
1181
1247
|
const localVarQueryParameter = {};
|
|
1182
1248
|
const localVarBodyParameter = {};
|
|
1249
|
+
const localVarHeaderParameter = {};
|
|
1183
1250
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1184
1251
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1185
1252
|
let _timeUnit;
|
|
@@ -1189,6 +1256,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1189
1256
|
method: "GET",
|
|
1190
1257
|
queryParams: localVarQueryParameter,
|
|
1191
1258
|
bodyParams: localVarBodyParameter,
|
|
1259
|
+
headerParams: localVarHeaderParameter,
|
|
1192
1260
|
timeUnit: _timeUnit
|
|
1193
1261
|
};
|
|
1194
1262
|
},
|
|
@@ -1196,6 +1264,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1196
1264
|
assertParamExists("placeMultipleOrders", "orders", orders);
|
|
1197
1265
|
const localVarQueryParameter = {};
|
|
1198
1266
|
const localVarBodyParameter = {};
|
|
1267
|
+
const localVarHeaderParameter = {};
|
|
1199
1268
|
if (orders) localVarQueryParameter["orders"] = orders;
|
|
1200
1269
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1201
1270
|
let _timeUnit;
|
|
@@ -1205,12 +1274,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1205
1274
|
method: "POST",
|
|
1206
1275
|
queryParams: localVarQueryParameter,
|
|
1207
1276
|
bodyParams: localVarBodyParameter,
|
|
1277
|
+
headerParams: localVarHeaderParameter,
|
|
1208
1278
|
timeUnit: _timeUnit
|
|
1209
1279
|
};
|
|
1210
1280
|
},
|
|
1211
1281
|
queryCurrentOpenOptionOrders: async (symbol, orderId, startTime, endTime, recvWindow) => {
|
|
1212
1282
|
const localVarQueryParameter = {};
|
|
1213
1283
|
const localVarBodyParameter = {};
|
|
1284
|
+
const localVarHeaderParameter = {};
|
|
1214
1285
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1215
1286
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1216
1287
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1223,6 +1294,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1223
1294
|
method: "GET",
|
|
1224
1295
|
queryParams: localVarQueryParameter,
|
|
1225
1296
|
bodyParams: localVarBodyParameter,
|
|
1297
|
+
headerParams: localVarHeaderParameter,
|
|
1226
1298
|
timeUnit: _timeUnit
|
|
1227
1299
|
};
|
|
1228
1300
|
},
|
|
@@ -1230,6 +1302,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1230
1302
|
assertParamExists("queryOptionOrderHistory", "symbol", symbol);
|
|
1231
1303
|
const localVarQueryParameter = {};
|
|
1232
1304
|
const localVarBodyParameter = {};
|
|
1305
|
+
const localVarHeaderParameter = {};
|
|
1233
1306
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1234
1307
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1235
1308
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -1243,6 +1316,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1243
1316
|
method: "GET",
|
|
1244
1317
|
queryParams: localVarQueryParameter,
|
|
1245
1318
|
bodyParams: localVarBodyParameter,
|
|
1319
|
+
headerParams: localVarHeaderParameter,
|
|
1246
1320
|
timeUnit: _timeUnit
|
|
1247
1321
|
};
|
|
1248
1322
|
},
|
|
@@ -1250,6 +1324,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1250
1324
|
assertParamExists("querySingleOrder", "symbol", symbol);
|
|
1251
1325
|
const localVarQueryParameter = {};
|
|
1252
1326
|
const localVarBodyParameter = {};
|
|
1327
|
+
const localVarHeaderParameter = {};
|
|
1253
1328
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1254
1329
|
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1255
1330
|
if (clientOrderId !== void 0 && clientOrderId !== null) localVarQueryParameter["clientOrderId"] = clientOrderId;
|
|
@@ -1261,12 +1336,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1261
1336
|
method: "GET",
|
|
1262
1337
|
queryParams: localVarQueryParameter,
|
|
1263
1338
|
bodyParams: localVarBodyParameter,
|
|
1339
|
+
headerParams: localVarHeaderParameter,
|
|
1264
1340
|
timeUnit: _timeUnit
|
|
1265
1341
|
};
|
|
1266
1342
|
},
|
|
1267
1343
|
userCommission: async (recvWindow) => {
|
|
1268
1344
|
const localVarQueryParameter = {};
|
|
1269
1345
|
const localVarBodyParameter = {};
|
|
1346
|
+
const localVarHeaderParameter = {};
|
|
1270
1347
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1271
1348
|
let _timeUnit;
|
|
1272
1349
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1275,12 +1352,14 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1275
1352
|
method: "GET",
|
|
1276
1353
|
queryParams: localVarQueryParameter,
|
|
1277
1354
|
bodyParams: localVarBodyParameter,
|
|
1355
|
+
headerParams: localVarHeaderParameter,
|
|
1278
1356
|
timeUnit: _timeUnit
|
|
1279
1357
|
};
|
|
1280
1358
|
},
|
|
1281
1359
|
userExerciseRecord: async (symbol, startTime, endTime, limit, recvWindow) => {
|
|
1282
1360
|
const localVarQueryParameter = {};
|
|
1283
1361
|
const localVarBodyParameter = {};
|
|
1362
|
+
const localVarHeaderParameter = {};
|
|
1284
1363
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1285
1364
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1286
1365
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -1293,6 +1372,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1293
1372
|
method: "GET",
|
|
1294
1373
|
queryParams: localVarQueryParameter,
|
|
1295
1374
|
bodyParams: localVarBodyParameter,
|
|
1375
|
+
headerParams: localVarHeaderParameter,
|
|
1296
1376
|
timeUnit: _timeUnit
|
|
1297
1377
|
};
|
|
1298
1378
|
}
|
|
@@ -1323,7 +1403,7 @@ var TradeApi = class {
|
|
|
1323
1403
|
*/
|
|
1324
1404
|
async accountTradeList(requestParameters = {}) {
|
|
1325
1405
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountTradeList(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1326
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1406
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1327
1407
|
}
|
|
1328
1408
|
/**
|
|
1329
1409
|
* Cancel all active orders on specified underlying.
|
|
@@ -1339,7 +1419,7 @@ var TradeApi = class {
|
|
|
1339
1419
|
*/
|
|
1340
1420
|
async cancelAllOptionOrdersByUnderlying(requestParameters) {
|
|
1341
1421
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersByUnderlying(requestParameters?.underlying, requestParameters?.recvWindow);
|
|
1342
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1422
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1343
1423
|
}
|
|
1344
1424
|
/**
|
|
1345
1425
|
* Cancel all active order on a symbol.
|
|
@@ -1355,7 +1435,7 @@ var TradeApi = class {
|
|
|
1355
1435
|
*/
|
|
1356
1436
|
async cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
|
|
1357
1437
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersOnSpecificSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1358
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1438
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1359
1439
|
}
|
|
1360
1440
|
/**
|
|
1361
1441
|
* Cancel multiple orders.
|
|
@@ -1373,7 +1453,7 @@ var TradeApi = class {
|
|
|
1373
1453
|
*/
|
|
1374
1454
|
async cancelMultipleOptionOrders(requestParameters) {
|
|
1375
1455
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMultipleOptionOrders(requestParameters?.symbol, requestParameters?.orderIds, requestParameters?.clientOrderIds, requestParameters?.recvWindow);
|
|
1376
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1456
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1377
1457
|
}
|
|
1378
1458
|
/**
|
|
1379
1459
|
* Cancel an active order.
|
|
@@ -1391,7 +1471,7 @@ var TradeApi = class {
|
|
|
1391
1471
|
*/
|
|
1392
1472
|
async cancelOptionOrder(requestParameters) {
|
|
1393
1473
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelOptionOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
|
|
1394
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1474
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1395
1475
|
}
|
|
1396
1476
|
/**
|
|
1397
1477
|
* Send a new order.
|
|
@@ -1407,7 +1487,7 @@ var TradeApi = class {
|
|
|
1407
1487
|
*/
|
|
1408
1488
|
async newOrder(requestParameters) {
|
|
1409
1489
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.price, requestParameters?.timeInForce, requestParameters?.reduceOnly, requestParameters?.postOnly, requestParameters?.newOrderRespType, requestParameters?.clientOrderId, requestParameters?.isMmp, requestParameters?.selfTradePreventionMode, requestParameters?.recvWindow);
|
|
1410
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1490
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1411
1491
|
}
|
|
1412
1492
|
/**
|
|
1413
1493
|
* Get current position information.
|
|
@@ -1423,7 +1503,7 @@ var TradeApi = class {
|
|
|
1423
1503
|
*/
|
|
1424
1504
|
async optionPositionInformation(requestParameters = {}) {
|
|
1425
1505
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
1426
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1506
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1427
1507
|
}
|
|
1428
1508
|
/**
|
|
1429
1509
|
* Send multiple option orders.
|
|
@@ -1442,7 +1522,7 @@ var TradeApi = class {
|
|
|
1442
1522
|
*/
|
|
1443
1523
|
async placeMultipleOrders(requestParameters) {
|
|
1444
1524
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeMultipleOrders(requestParameters?.orders, requestParameters?.recvWindow);
|
|
1445
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1525
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1446
1526
|
}
|
|
1447
1527
|
/**
|
|
1448
1528
|
* Query current all open orders, status: ACCEPTED PARTIALLY_FILLED
|
|
@@ -1458,7 +1538,7 @@ var TradeApi = class {
|
|
|
1458
1538
|
*/
|
|
1459
1539
|
async queryCurrentOpenOptionOrders(requestParameters = {}) {
|
|
1460
1540
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentOpenOptionOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1461
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1541
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1462
1542
|
}
|
|
1463
1543
|
/**
|
|
1464
1544
|
* Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.
|
|
@@ -1474,7 +1554,7 @@ var TradeApi = class {
|
|
|
1474
1554
|
*/
|
|
1475
1555
|
async queryOptionOrderHistory(requestParameters) {
|
|
1476
1556
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOptionOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1477
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1557
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1478
1558
|
}
|
|
1479
1559
|
/**
|
|
1480
1560
|
* Check an order status.
|
|
@@ -1498,7 +1578,7 @@ var TradeApi = class {
|
|
|
1498
1578
|
*/
|
|
1499
1579
|
async querySingleOrder(requestParameters) {
|
|
1500
1580
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySingleOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
|
|
1501
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1581
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1502
1582
|
}
|
|
1503
1583
|
/**
|
|
1504
1584
|
* Get account commission.
|
|
@@ -1514,7 +1594,7 @@ var TradeApi = class {
|
|
|
1514
1594
|
*/
|
|
1515
1595
|
async userCommission(requestParameters = {}) {
|
|
1516
1596
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userCommission(requestParameters?.recvWindow);
|
|
1517
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1597
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1518
1598
|
}
|
|
1519
1599
|
/**
|
|
1520
1600
|
* Get account exercise records.
|
|
@@ -1530,7 +1610,7 @@ var TradeApi = class {
|
|
|
1530
1610
|
*/
|
|
1531
1611
|
async userExerciseRecord(requestParameters = {}) {
|
|
1532
1612
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userExerciseRecord(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1533
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1613
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1534
1614
|
}
|
|
1535
1615
|
};
|
|
1536
1616
|
let NewOrderSideEnum = /* @__PURE__ */ function(NewOrderSideEnum$1) {
|
|
@@ -1583,6 +1663,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1583
1663
|
closeUserDataStream: async () => {
|
|
1584
1664
|
const localVarQueryParameter = {};
|
|
1585
1665
|
const localVarBodyParameter = {};
|
|
1666
|
+
const localVarHeaderParameter = {};
|
|
1586
1667
|
let _timeUnit;
|
|
1587
1668
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1588
1669
|
return {
|
|
@@ -1590,12 +1671,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1590
1671
|
method: "DELETE",
|
|
1591
1672
|
queryParams: localVarQueryParameter,
|
|
1592
1673
|
bodyParams: localVarBodyParameter,
|
|
1674
|
+
headerParams: localVarHeaderParameter,
|
|
1593
1675
|
timeUnit: _timeUnit
|
|
1594
1676
|
};
|
|
1595
1677
|
},
|
|
1596
1678
|
keepaliveUserDataStream: async () => {
|
|
1597
1679
|
const localVarQueryParameter = {};
|
|
1598
1680
|
const localVarBodyParameter = {};
|
|
1681
|
+
const localVarHeaderParameter = {};
|
|
1599
1682
|
let _timeUnit;
|
|
1600
1683
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1601
1684
|
return {
|
|
@@ -1603,12 +1686,14 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1603
1686
|
method: "PUT",
|
|
1604
1687
|
queryParams: localVarQueryParameter,
|
|
1605
1688
|
bodyParams: localVarBodyParameter,
|
|
1689
|
+
headerParams: localVarHeaderParameter,
|
|
1606
1690
|
timeUnit: _timeUnit
|
|
1607
1691
|
};
|
|
1608
1692
|
},
|
|
1609
1693
|
startUserDataStream: async () => {
|
|
1610
1694
|
const localVarQueryParameter = {};
|
|
1611
1695
|
const localVarBodyParameter = {};
|
|
1696
|
+
const localVarHeaderParameter = {};
|
|
1612
1697
|
let _timeUnit;
|
|
1613
1698
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1614
1699
|
return {
|
|
@@ -1616,6 +1701,7 @@ const UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
1616
1701
|
method: "POST",
|
|
1617
1702
|
queryParams: localVarQueryParameter,
|
|
1618
1703
|
bodyParams: localVarBodyParameter,
|
|
1704
|
+
headerParams: localVarHeaderParameter,
|
|
1619
1705
|
timeUnit: _timeUnit
|
|
1620
1706
|
};
|
|
1621
1707
|
}
|
|
@@ -1643,7 +1729,7 @@ var UserDataStreamsApi = class {
|
|
|
1643
1729
|
*/
|
|
1644
1730
|
async closeUserDataStream() {
|
|
1645
1731
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
|
|
1646
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1732
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1647
1733
|
}
|
|
1648
1734
|
/**
|
|
1649
1735
|
* Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
|
|
@@ -1658,7 +1744,7 @@ var UserDataStreamsApi = class {
|
|
|
1658
1744
|
*/
|
|
1659
1745
|
async keepaliveUserDataStream() {
|
|
1660
1746
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
|
|
1661
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1747
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1662
1748
|
}
|
|
1663
1749
|
/**
|
|
1664
1750
|
* Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
|
|
@@ -1673,7 +1759,7 @@ var UserDataStreamsApi = class {
|
|
|
1673
1759
|
*/
|
|
1674
1760
|
async startUserDataStream() {
|
|
1675
1761
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
|
|
1676
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1762
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1677
1763
|
}
|
|
1678
1764
|
};
|
|
1679
1765
|
|
|
@@ -1711,7 +1797,7 @@ var RestAPI = class {
|
|
|
1711
1797
|
* @returns A promise resolving to the response data object.
|
|
1712
1798
|
*/
|
|
1713
1799
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1714
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
1800
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
1715
1801
|
}
|
|
1716
1802
|
/**
|
|
1717
1803
|
* Generic function to send a signed request.
|
|
@@ -1723,7 +1809,7 @@ var RestAPI = class {
|
|
|
1723
1809
|
* @returns A promise resolving to the response data object.
|
|
1724
1810
|
*/
|
|
1725
1811
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1726
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
1812
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
1727
1813
|
}
|
|
1728
1814
|
/**
|
|
1729
1815
|
* Query account funding flows.
|