@binance/derivatives-trading-portfolio-margin-pro 14.0.1 → 14.0.3
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 +75 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/derivatives-trading-portfolio-margin-pro";
|
|
17
|
-
var version = "14.0.
|
|
17
|
+
var version = "14.0.3";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -40,6 +40,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
40
40
|
(0, __binance_common.assertParamExists)("bnbTransfer", "transferSide", transferSide);
|
|
41
41
|
const localVarQueryParameter = {};
|
|
42
42
|
const localVarBodyParameter = {};
|
|
43
|
+
const localVarHeaderParameter = {};
|
|
43
44
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
44
45
|
if (transferSide !== void 0 && transferSide !== null) localVarQueryParameter["transferSide"] = transferSide;
|
|
45
46
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -50,6 +51,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
50
51
|
method: "POST",
|
|
51
52
|
queryParams: localVarQueryParameter,
|
|
52
53
|
bodyParams: localVarBodyParameter,
|
|
54
|
+
headerParams: localVarHeaderParameter,
|
|
53
55
|
timeUnit: _timeUnit
|
|
54
56
|
};
|
|
55
57
|
},
|
|
@@ -57,6 +59,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
57
59
|
(0, __binance_common.assertParamExists)("changeAutoRepayFuturesStatus", "autoRepay", autoRepay);
|
|
58
60
|
const localVarQueryParameter = {};
|
|
59
61
|
const localVarBodyParameter = {};
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
60
63
|
if (autoRepay !== void 0 && autoRepay !== null) localVarQueryParameter["autoRepay"] = autoRepay;
|
|
61
64
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
62
65
|
let _timeUnit;
|
|
@@ -66,12 +69,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
66
69
|
method: "POST",
|
|
67
70
|
queryParams: localVarQueryParameter,
|
|
68
71
|
bodyParams: localVarBodyParameter,
|
|
72
|
+
headerParams: localVarHeaderParameter,
|
|
69
73
|
timeUnit: _timeUnit
|
|
70
74
|
};
|
|
71
75
|
},
|
|
72
76
|
deleteMarginCallLevel: async (recvWindow) => {
|
|
73
77
|
const localVarQueryParameter = {};
|
|
74
78
|
const localVarBodyParameter = {};
|
|
79
|
+
const localVarHeaderParameter = {};
|
|
75
80
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
76
81
|
let _timeUnit;
|
|
77
82
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -80,12 +85,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
80
85
|
method: "DELETE",
|
|
81
86
|
queryParams: localVarQueryParameter,
|
|
82
87
|
bodyParams: localVarBodyParameter,
|
|
88
|
+
headerParams: localVarHeaderParameter,
|
|
83
89
|
timeUnit: _timeUnit
|
|
84
90
|
};
|
|
85
91
|
},
|
|
86
92
|
fundAutoCollection: async (recvWindow) => {
|
|
87
93
|
const localVarQueryParameter = {};
|
|
88
94
|
const localVarBodyParameter = {};
|
|
95
|
+
const localVarHeaderParameter = {};
|
|
89
96
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
90
97
|
let _timeUnit;
|
|
91
98
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -94,6 +101,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
94
101
|
method: "POST",
|
|
95
102
|
queryParams: localVarQueryParameter,
|
|
96
103
|
bodyParams: localVarBodyParameter,
|
|
104
|
+
headerParams: localVarHeaderParameter,
|
|
97
105
|
timeUnit: _timeUnit
|
|
98
106
|
};
|
|
99
107
|
},
|
|
@@ -101,6 +109,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
101
109
|
(0, __binance_common.assertParamExists)("fundCollectionByAsset", "asset", asset);
|
|
102
110
|
const localVarQueryParameter = {};
|
|
103
111
|
const localVarBodyParameter = {};
|
|
112
|
+
const localVarHeaderParameter = {};
|
|
104
113
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
105
114
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
106
115
|
let _timeUnit;
|
|
@@ -110,12 +119,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
110
119
|
method: "POST",
|
|
111
120
|
queryParams: localVarQueryParameter,
|
|
112
121
|
bodyParams: localVarBodyParameter,
|
|
122
|
+
headerParams: localVarHeaderParameter,
|
|
113
123
|
timeUnit: _timeUnit
|
|
114
124
|
};
|
|
115
125
|
},
|
|
116
126
|
getAutoRepayFuturesStatus: async (recvWindow) => {
|
|
117
127
|
const localVarQueryParameter = {};
|
|
118
128
|
const localVarBodyParameter = {};
|
|
129
|
+
const localVarHeaderParameter = {};
|
|
119
130
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
120
131
|
let _timeUnit;
|
|
121
132
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -124,12 +135,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
124
135
|
method: "GET",
|
|
125
136
|
queryParams: localVarQueryParameter,
|
|
126
137
|
bodyParams: localVarBodyParameter,
|
|
138
|
+
headerParams: localVarHeaderParameter,
|
|
127
139
|
timeUnit: _timeUnit
|
|
128
140
|
};
|
|
129
141
|
},
|
|
130
142
|
getDeltaModeStatus: async (recvWindow) => {
|
|
131
143
|
const localVarQueryParameter = {};
|
|
132
144
|
const localVarBodyParameter = {};
|
|
145
|
+
const localVarHeaderParameter = {};
|
|
133
146
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
134
147
|
let _timeUnit;
|
|
135
148
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -138,12 +151,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
138
151
|
method: "GET",
|
|
139
152
|
queryParams: localVarQueryParameter,
|
|
140
153
|
bodyParams: localVarBodyParameter,
|
|
154
|
+
headerParams: localVarHeaderParameter,
|
|
141
155
|
timeUnit: _timeUnit
|
|
142
156
|
};
|
|
143
157
|
},
|
|
144
158
|
getMarginCallLevel: async (recvWindow) => {
|
|
145
159
|
const localVarQueryParameter = {};
|
|
146
160
|
const localVarBodyParameter = {};
|
|
161
|
+
const localVarHeaderParameter = {};
|
|
147
162
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
148
163
|
let _timeUnit;
|
|
149
164
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -152,12 +167,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
152
167
|
method: "GET",
|
|
153
168
|
queryParams: localVarQueryParameter,
|
|
154
169
|
bodyParams: localVarBodyParameter,
|
|
170
|
+
headerParams: localVarHeaderParameter,
|
|
155
171
|
timeUnit: _timeUnit
|
|
156
172
|
};
|
|
157
173
|
},
|
|
158
174
|
getPortfolioMarginProAccountBalance: async (asset, recvWindow) => {
|
|
159
175
|
const localVarQueryParameter = {};
|
|
160
176
|
const localVarBodyParameter = {};
|
|
177
|
+
const localVarHeaderParameter = {};
|
|
161
178
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
162
179
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
163
180
|
let _timeUnit;
|
|
@@ -167,12 +184,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
167
184
|
method: "GET",
|
|
168
185
|
queryParams: localVarQueryParameter,
|
|
169
186
|
bodyParams: localVarBodyParameter,
|
|
187
|
+
headerParams: localVarHeaderParameter,
|
|
170
188
|
timeUnit: _timeUnit
|
|
171
189
|
};
|
|
172
190
|
},
|
|
173
191
|
getPortfolioMarginProAccountInfo: async (recvWindow) => {
|
|
174
192
|
const localVarQueryParameter = {};
|
|
175
193
|
const localVarBodyParameter = {};
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
176
195
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
177
196
|
let _timeUnit;
|
|
178
197
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -181,12 +200,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
181
200
|
method: "GET",
|
|
182
201
|
queryParams: localVarQueryParameter,
|
|
183
202
|
bodyParams: localVarBodyParameter,
|
|
203
|
+
headerParams: localVarHeaderParameter,
|
|
184
204
|
timeUnit: _timeUnit
|
|
185
205
|
};
|
|
186
206
|
},
|
|
187
207
|
getPortfolioMarginProSpanAccountInfo: async (recvWindow) => {
|
|
188
208
|
const localVarQueryParameter = {};
|
|
189
209
|
const localVarBodyParameter = {};
|
|
210
|
+
const localVarHeaderParameter = {};
|
|
190
211
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
191
212
|
let _timeUnit;
|
|
192
213
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -195,6 +216,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
195
216
|
method: "GET",
|
|
196
217
|
queryParams: localVarQueryParameter,
|
|
197
218
|
bodyParams: localVarBodyParameter,
|
|
219
|
+
headerParams: localVarHeaderParameter,
|
|
198
220
|
timeUnit: _timeUnit
|
|
199
221
|
};
|
|
200
222
|
},
|
|
@@ -203,6 +225,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
203
225
|
(0, __binance_common.assertParamExists)("getTransferableEarnAssetBalanceForPortfolioMargin", "transferType", transferType);
|
|
204
226
|
const localVarQueryParameter = {};
|
|
205
227
|
const localVarBodyParameter = {};
|
|
228
|
+
const localVarHeaderParameter = {};
|
|
206
229
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
207
230
|
if (transferType !== void 0 && transferType !== null) localVarQueryParameter["transferType"] = transferType;
|
|
208
231
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -213,12 +236,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
213
236
|
method: "GET",
|
|
214
237
|
queryParams: localVarQueryParameter,
|
|
215
238
|
bodyParams: localVarBodyParameter,
|
|
239
|
+
headerParams: localVarHeaderParameter,
|
|
216
240
|
timeUnit: _timeUnit
|
|
217
241
|
};
|
|
218
242
|
},
|
|
219
243
|
portfolioMarginProBankruptcyLoanRepay: async (from, recvWindow) => {
|
|
220
244
|
const localVarQueryParameter = {};
|
|
221
245
|
const localVarBodyParameter = {};
|
|
246
|
+
const localVarHeaderParameter = {};
|
|
222
247
|
if (from !== void 0 && from !== null) localVarQueryParameter["from"] = from;
|
|
223
248
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
224
249
|
let _timeUnit;
|
|
@@ -228,12 +253,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
228
253
|
method: "POST",
|
|
229
254
|
queryParams: localVarQueryParameter,
|
|
230
255
|
bodyParams: localVarBodyParameter,
|
|
256
|
+
headerParams: localVarHeaderParameter,
|
|
231
257
|
timeUnit: _timeUnit
|
|
232
258
|
};
|
|
233
259
|
},
|
|
234
260
|
queryPortfolioMarginProBankruptcyLoanAmount: async (recvWindow) => {
|
|
235
261
|
const localVarQueryParameter = {};
|
|
236
262
|
const localVarBodyParameter = {};
|
|
263
|
+
const localVarHeaderParameter = {};
|
|
237
264
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
238
265
|
let _timeUnit;
|
|
239
266
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -242,12 +269,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
242
269
|
method: "GET",
|
|
243
270
|
queryParams: localVarQueryParameter,
|
|
244
271
|
bodyParams: localVarBodyParameter,
|
|
272
|
+
headerParams: localVarHeaderParameter,
|
|
245
273
|
timeUnit: _timeUnit
|
|
246
274
|
};
|
|
247
275
|
},
|
|
248
276
|
queryPortfolioMarginProBankruptcyLoanRepayHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
249
277
|
const localVarQueryParameter = {};
|
|
250
278
|
const localVarBodyParameter = {};
|
|
279
|
+
const localVarHeaderParameter = {};
|
|
251
280
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
252
281
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
253
282
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -260,12 +289,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
260
289
|
method: "GET",
|
|
261
290
|
queryParams: localVarQueryParameter,
|
|
262
291
|
bodyParams: localVarBodyParameter,
|
|
292
|
+
headerParams: localVarHeaderParameter,
|
|
263
293
|
timeUnit: _timeUnit
|
|
264
294
|
};
|
|
265
295
|
},
|
|
266
296
|
queryPortfolioMarginProNegativeBalanceInterestHistory: async (asset, startTime, endTime, size, recvWindow) => {
|
|
267
297
|
const localVarQueryParameter = {};
|
|
268
298
|
const localVarBodyParameter = {};
|
|
299
|
+
const localVarHeaderParameter = {};
|
|
269
300
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
270
301
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
271
302
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -278,12 +309,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
278
309
|
method: "GET",
|
|
279
310
|
queryParams: localVarQueryParameter,
|
|
280
311
|
bodyParams: localVarBodyParameter,
|
|
312
|
+
headerParams: localVarHeaderParameter,
|
|
281
313
|
timeUnit: _timeUnit
|
|
282
314
|
};
|
|
283
315
|
},
|
|
284
316
|
repayFuturesNegativeBalance: async (from, recvWindow) => {
|
|
285
317
|
const localVarQueryParameter = {};
|
|
286
318
|
const localVarBodyParameter = {};
|
|
319
|
+
const localVarHeaderParameter = {};
|
|
287
320
|
if (from !== void 0 && from !== null) localVarQueryParameter["from"] = from;
|
|
288
321
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
289
322
|
let _timeUnit;
|
|
@@ -293,6 +326,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
293
326
|
method: "POST",
|
|
294
327
|
queryParams: localVarQueryParameter,
|
|
295
328
|
bodyParams: localVarBodyParameter,
|
|
329
|
+
headerParams: localVarHeaderParameter,
|
|
296
330
|
timeUnit: _timeUnit
|
|
297
331
|
};
|
|
298
332
|
},
|
|
@@ -300,6 +334,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
300
334
|
(0, __binance_common.assertParamExists)("setMarginCallLevel", "marginCallLevel", marginCallLevel);
|
|
301
335
|
const localVarQueryParameter = {};
|
|
302
336
|
const localVarBodyParameter = {};
|
|
337
|
+
const localVarHeaderParameter = {};
|
|
303
338
|
if (marginCallLevel !== void 0 && marginCallLevel !== null) localVarQueryParameter["marginCallLevel"] = marginCallLevel;
|
|
304
339
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
305
340
|
let _timeUnit;
|
|
@@ -309,6 +344,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
309
344
|
method: "POST",
|
|
310
345
|
queryParams: localVarQueryParameter,
|
|
311
346
|
bodyParams: localVarBodyParameter,
|
|
347
|
+
headerParams: localVarHeaderParameter,
|
|
312
348
|
timeUnit: _timeUnit
|
|
313
349
|
};
|
|
314
350
|
},
|
|
@@ -316,6 +352,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
316
352
|
(0, __binance_common.assertParamExists)("switchDeltaMode", "deltaEnabled", deltaEnabled);
|
|
317
353
|
const localVarQueryParameter = {};
|
|
318
354
|
const localVarBodyParameter = {};
|
|
355
|
+
const localVarHeaderParameter = {};
|
|
319
356
|
if (deltaEnabled !== void 0 && deltaEnabled !== null) localVarQueryParameter["deltaEnabled"] = deltaEnabled;
|
|
320
357
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
321
358
|
let _timeUnit;
|
|
@@ -325,6 +362,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
325
362
|
method: "POST",
|
|
326
363
|
queryParams: localVarQueryParameter,
|
|
327
364
|
bodyParams: localVarBodyParameter,
|
|
365
|
+
headerParams: localVarHeaderParameter,
|
|
328
366
|
timeUnit: _timeUnit
|
|
329
367
|
};
|
|
330
368
|
},
|
|
@@ -334,6 +372,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
334
372
|
(0, __binance_common.assertParamExists)("transferLdusdtRwusdForPortfolioMargin", "amount", amount);
|
|
335
373
|
const localVarQueryParameter = {};
|
|
336
374
|
const localVarBodyParameter = {};
|
|
375
|
+
const localVarHeaderParameter = {};
|
|
337
376
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
338
377
|
if (transferType !== void 0 && transferType !== null) localVarQueryParameter["transferType"] = transferType;
|
|
339
378
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -345,6 +384,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
345
384
|
method: "POST",
|
|
346
385
|
queryParams: localVarQueryParameter,
|
|
347
386
|
bodyParams: localVarBodyParameter,
|
|
387
|
+
headerParams: localVarHeaderParameter,
|
|
348
388
|
timeUnit: _timeUnit
|
|
349
389
|
};
|
|
350
390
|
}
|
|
@@ -376,7 +416,7 @@ var AccountApi = class {
|
|
|
376
416
|
*/
|
|
377
417
|
async bnbTransfer(requestParameters) {
|
|
378
418
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.bnbTransfer(requestParameters?.amount, requestParameters?.transferSide, requestParameters?.recvWindow);
|
|
379
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
419
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
380
420
|
}
|
|
381
421
|
/**
|
|
382
422
|
* Change Auto-repay-futures Status
|
|
@@ -392,7 +432,7 @@ var AccountApi = class {
|
|
|
392
432
|
*/
|
|
393
433
|
async changeAutoRepayFuturesStatus(requestParameters) {
|
|
394
434
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.changeAutoRepayFuturesStatus(requestParameters?.autoRepay, requestParameters?.recvWindow);
|
|
395
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
435
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
396
436
|
}
|
|
397
437
|
/**
|
|
398
438
|
* Delete the margin call level for a Portfolio Margin account.
|
|
@@ -408,7 +448,7 @@ var AccountApi = class {
|
|
|
408
448
|
*/
|
|
409
449
|
async deleteMarginCallLevel(requestParameters = {}) {
|
|
410
450
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.deleteMarginCallLevel(requestParameters?.recvWindow);
|
|
411
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
451
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
412
452
|
}
|
|
413
453
|
/**
|
|
414
454
|
* Transfers all assets from Futures Account to Margin account
|
|
@@ -427,7 +467,7 @@ var AccountApi = class {
|
|
|
427
467
|
*/
|
|
428
468
|
async fundAutoCollection(requestParameters = {}) {
|
|
429
469
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundAutoCollection(requestParameters?.recvWindow);
|
|
430
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
470
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
431
471
|
}
|
|
432
472
|
/**
|
|
433
473
|
* Transfers specific asset from Futures Account to Margin account
|
|
@@ -445,7 +485,7 @@ var AccountApi = class {
|
|
|
445
485
|
*/
|
|
446
486
|
async fundCollectionByAsset(requestParameters) {
|
|
447
487
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundCollectionByAsset(requestParameters?.asset, requestParameters?.recvWindow);
|
|
448
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
488
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
449
489
|
}
|
|
450
490
|
/**
|
|
451
491
|
* Query Auto-repay-futures Status
|
|
@@ -461,7 +501,7 @@ var AccountApi = class {
|
|
|
461
501
|
*/
|
|
462
502
|
async getAutoRepayFuturesStatus(requestParameters = {}) {
|
|
463
503
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoRepayFuturesStatus(requestParameters?.recvWindow);
|
|
464
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
504
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
465
505
|
}
|
|
466
506
|
/**
|
|
467
507
|
* Query the Delta mode status of current account.
|
|
@@ -477,7 +517,7 @@ var AccountApi = class {
|
|
|
477
517
|
*/
|
|
478
518
|
async getDeltaModeStatus(requestParameters = {}) {
|
|
479
519
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDeltaModeStatus(requestParameters?.recvWindow);
|
|
480
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
520
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
481
521
|
}
|
|
482
522
|
/**
|
|
483
523
|
* Get the margin call level for a Portfolio Margin account.
|
|
@@ -493,7 +533,7 @@ var AccountApi = class {
|
|
|
493
533
|
*/
|
|
494
534
|
async getMarginCallLevel(requestParameters = {}) {
|
|
495
535
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginCallLevel(requestParameters?.recvWindow);
|
|
496
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
536
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
497
537
|
}
|
|
498
538
|
/**
|
|
499
539
|
* Query Portfolio Margin Pro account balance
|
|
@@ -509,7 +549,7 @@ var AccountApi = class {
|
|
|
509
549
|
*/
|
|
510
550
|
async getPortfolioMarginProAccountBalance(requestParameters = {}) {
|
|
511
551
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPortfolioMarginProAccountBalance(requestParameters?.asset, requestParameters?.recvWindow);
|
|
512
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
552
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
513
553
|
}
|
|
514
554
|
/**
|
|
515
555
|
* Get Portfolio Margin Pro Account Info
|
|
@@ -525,7 +565,7 @@ var AccountApi = class {
|
|
|
525
565
|
*/
|
|
526
566
|
async getPortfolioMarginProAccountInfo(requestParameters = {}) {
|
|
527
567
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPortfolioMarginProAccountInfo(requestParameters?.recvWindow);
|
|
528
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
568
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
529
569
|
}
|
|
530
570
|
/**
|
|
531
571
|
* Get Portfolio Margin Pro SPAN Account Info (For Portfolio Margin Pro SPAN users only)
|
|
@@ -541,7 +581,7 @@ var AccountApi = class {
|
|
|
541
581
|
*/
|
|
542
582
|
async getPortfolioMarginProSpanAccountInfo(requestParameters = {}) {
|
|
543
583
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPortfolioMarginProSpanAccountInfo(requestParameters?.recvWindow);
|
|
544
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
584
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
545
585
|
}
|
|
546
586
|
/**
|
|
547
587
|
* Get transferable earn asset balance for all types of Portfolio Margin account
|
|
@@ -557,7 +597,7 @@ var AccountApi = class {
|
|
|
557
597
|
*/
|
|
558
598
|
async getTransferableEarnAssetBalanceForPortfolioMargin(requestParameters) {
|
|
559
599
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getTransferableEarnAssetBalanceForPortfolioMargin(requestParameters?.asset, requestParameters?.transferType, requestParameters?.recvWindow);
|
|
560
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
600
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
561
601
|
}
|
|
562
602
|
/**
|
|
563
603
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
@@ -575,7 +615,7 @@ var AccountApi = class {
|
|
|
575
615
|
*/
|
|
576
616
|
async portfolioMarginProBankruptcyLoanRepay(requestParameters = {}) {
|
|
577
617
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.portfolioMarginProBankruptcyLoanRepay(requestParameters?.from, requestParameters?.recvWindow);
|
|
578
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
618
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
579
619
|
}
|
|
580
620
|
/**
|
|
581
621
|
* Query Portfolio Margin Pro Bankruptcy Loan Amount
|
|
@@ -593,7 +633,7 @@ var AccountApi = class {
|
|
|
593
633
|
*/
|
|
594
634
|
async queryPortfolioMarginProBankruptcyLoanAmount(requestParameters = {}) {
|
|
595
635
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginProBankruptcyLoanAmount(requestParameters?.recvWindow);
|
|
596
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
636
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
597
637
|
}
|
|
598
638
|
/**
|
|
599
639
|
* Query repay history of pmloan for portfolio margin pro.
|
|
@@ -614,7 +654,7 @@ var AccountApi = class {
|
|
|
614
654
|
*/
|
|
615
655
|
async queryPortfolioMarginProBankruptcyLoanRepayHistory(requestParameters = {}) {
|
|
616
656
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginProBankruptcyLoanRepayHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
617
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
657
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
618
658
|
}
|
|
619
659
|
/**
|
|
620
660
|
* Query interest history of negative balance for portfolio margin.
|
|
@@ -630,7 +670,7 @@ var AccountApi = class {
|
|
|
630
670
|
*/
|
|
631
671
|
async queryPortfolioMarginProNegativeBalanceInterestHistory(requestParameters = {}) {
|
|
632
672
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginProNegativeBalanceInterestHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.size, requestParameters?.recvWindow);
|
|
633
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
673
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
634
674
|
}
|
|
635
675
|
/**
|
|
636
676
|
* Repay futures Negative Balance
|
|
@@ -646,7 +686,7 @@ var AccountApi = class {
|
|
|
646
686
|
*/
|
|
647
687
|
async repayFuturesNegativeBalance(requestParameters = {}) {
|
|
648
688
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.repayFuturesNegativeBalance(requestParameters?.from, requestParameters?.recvWindow);
|
|
649
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
689
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
650
690
|
}
|
|
651
691
|
/**
|
|
652
692
|
* Set the margin call level for a Portfolio Margin account. When the account's uniMMR drops to the specified level, a notification will be sent via email and SMS.
|
|
@@ -662,7 +702,7 @@ var AccountApi = class {
|
|
|
662
702
|
*/
|
|
663
703
|
async setMarginCallLevel(requestParameters) {
|
|
664
704
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setMarginCallLevel(requestParameters?.marginCallLevel, requestParameters?.recvWindow);
|
|
665
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
705
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
666
706
|
}
|
|
667
707
|
/**
|
|
668
708
|
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
@@ -678,7 +718,7 @@ var AccountApi = class {
|
|
|
678
718
|
*/
|
|
679
719
|
async switchDeltaMode(requestParameters) {
|
|
680
720
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.switchDeltaMode(requestParameters?.deltaEnabled, requestParameters?.recvWindow);
|
|
681
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
721
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
682
722
|
}
|
|
683
723
|
/**
|
|
684
724
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
@@ -694,7 +734,7 @@ var AccountApi = class {
|
|
|
694
734
|
*/
|
|
695
735
|
async transferLdusdtRwusdForPortfolioMargin(requestParameters) {
|
|
696
736
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.transferLdusdtRwusdForPortfolioMargin(requestParameters?.asset, requestParameters?.transferType, requestParameters?.amount, requestParameters?.recvWindow);
|
|
697
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
737
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
698
738
|
}
|
|
699
739
|
};
|
|
700
740
|
|
|
@@ -720,6 +760,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
720
760
|
getPortfolioMarginAssetLeverage: async () => {
|
|
721
761
|
const localVarQueryParameter = {};
|
|
722
762
|
const localVarBodyParameter = {};
|
|
763
|
+
const localVarHeaderParameter = {};
|
|
723
764
|
let _timeUnit;
|
|
724
765
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
725
766
|
return {
|
|
@@ -727,12 +768,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
727
768
|
method: "GET",
|
|
728
769
|
queryParams: localVarQueryParameter,
|
|
729
770
|
bodyParams: localVarBodyParameter,
|
|
771
|
+
headerParams: localVarHeaderParameter,
|
|
730
772
|
timeUnit: _timeUnit
|
|
731
773
|
};
|
|
732
774
|
},
|
|
733
775
|
portfolioMarginCollateralRate: async () => {
|
|
734
776
|
const localVarQueryParameter = {};
|
|
735
777
|
const localVarBodyParameter = {};
|
|
778
|
+
const localVarHeaderParameter = {};
|
|
736
779
|
let _timeUnit;
|
|
737
780
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
738
781
|
return {
|
|
@@ -740,12 +783,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
740
783
|
method: "GET",
|
|
741
784
|
queryParams: localVarQueryParameter,
|
|
742
785
|
bodyParams: localVarBodyParameter,
|
|
786
|
+
headerParams: localVarHeaderParameter,
|
|
743
787
|
timeUnit: _timeUnit
|
|
744
788
|
};
|
|
745
789
|
},
|
|
746
790
|
portfolioMarginProTieredCollateralRate: async (recvWindow) => {
|
|
747
791
|
const localVarQueryParameter = {};
|
|
748
792
|
const localVarBodyParameter = {};
|
|
793
|
+
const localVarHeaderParameter = {};
|
|
749
794
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
750
795
|
let _timeUnit;
|
|
751
796
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -754,12 +799,14 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
754
799
|
method: "GET",
|
|
755
800
|
queryParams: localVarQueryParameter,
|
|
756
801
|
bodyParams: localVarBodyParameter,
|
|
802
|
+
headerParams: localVarHeaderParameter,
|
|
757
803
|
timeUnit: _timeUnit
|
|
758
804
|
};
|
|
759
805
|
},
|
|
760
806
|
queryPortfolioMarginAssetIndexPrice: async (asset) => {
|
|
761
807
|
const localVarQueryParameter = {};
|
|
762
808
|
const localVarBodyParameter = {};
|
|
809
|
+
const localVarHeaderParameter = {};
|
|
763
810
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
764
811
|
let _timeUnit;
|
|
765
812
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -768,6 +815,7 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
768
815
|
method: "GET",
|
|
769
816
|
queryParams: localVarQueryParameter,
|
|
770
817
|
bodyParams: localVarBodyParameter,
|
|
818
|
+
headerParams: localVarHeaderParameter,
|
|
771
819
|
timeUnit: _timeUnit
|
|
772
820
|
};
|
|
773
821
|
}
|
|
@@ -795,7 +843,7 @@ var MarketDataApi = class {
|
|
|
795
843
|
*/
|
|
796
844
|
async getPortfolioMarginAssetLeverage() {
|
|
797
845
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPortfolioMarginAssetLeverage();
|
|
798
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
846
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
799
847
|
}
|
|
800
848
|
/**
|
|
801
849
|
* Portfolio Margin Collateral Rate
|
|
@@ -810,7 +858,7 @@ var MarketDataApi = class {
|
|
|
810
858
|
*/
|
|
811
859
|
async portfolioMarginCollateralRate() {
|
|
812
860
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.portfolioMarginCollateralRate();
|
|
813
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
861
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
814
862
|
}
|
|
815
863
|
/**
|
|
816
864
|
* Portfolio Margin PRO Tiered Collateral Rate
|
|
@@ -826,7 +874,7 @@ var MarketDataApi = class {
|
|
|
826
874
|
*/
|
|
827
875
|
async portfolioMarginProTieredCollateralRate(requestParameters = {}) {
|
|
828
876
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.portfolioMarginProTieredCollateralRate(requestParameters?.recvWindow);
|
|
829
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
877
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
830
878
|
}
|
|
831
879
|
/**
|
|
832
880
|
* Query Portfolio Margin Asset Index Price
|
|
@@ -842,7 +890,7 @@ var MarketDataApi = class {
|
|
|
842
890
|
*/
|
|
843
891
|
async queryPortfolioMarginAssetIndexPrice(requestParameters = {}) {
|
|
844
892
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPortfolioMarginAssetIndexPrice(requestParameters?.asset);
|
|
845
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
893
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
846
894
|
}
|
|
847
895
|
};
|
|
848
896
|
|
|
@@ -876,7 +924,7 @@ var RestAPI = class {
|
|
|
876
924
|
* @returns A promise resolving to the response data object.
|
|
877
925
|
*/
|
|
878
926
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
879
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
927
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
880
928
|
}
|
|
881
929
|
/**
|
|
882
930
|
* Generic function to send a signed request.
|
|
@@ -888,7 +936,7 @@ var RestAPI = class {
|
|
|
888
936
|
* @returns A promise resolving to the response data object.
|
|
889
937
|
*/
|
|
890
938
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
891
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
939
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
892
940
|
}
|
|
893
941
|
/**
|
|
894
942
|
* BNB transfer can be between Margin Account and USDM Account
|