@binance/derivatives-trading-portfolio-margin 1.0.0 → 2.0.0
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.d.mts +364 -722
- package/dist/index.d.ts +364 -722
- package/dist/index.js +106 -208
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -205
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -3
package/dist/index.js
CHANGED
|
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
BadRequestError: () => import_common7.BadRequestError,
|
|
24
24
|
ConnectorClientError: () => import_common7.ConnectorClientError,
|
|
25
25
|
DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL: () => import_common7.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL,
|
|
@@ -35,7 +35,7 @@ __export(src_exports, {
|
|
|
35
35
|
TooManyRequestsError: () => import_common7.TooManyRequestsError,
|
|
36
36
|
UnauthorizedError: () => import_common7.UnauthorizedError
|
|
37
37
|
});
|
|
38
|
-
module.exports = __toCommonJS(
|
|
38
|
+
module.exports = __toCommonJS(index_exports);
|
|
39
39
|
|
|
40
40
|
// src/derivatives-trading-portfolio-margin.ts
|
|
41
41
|
var import_os = require("os");
|
|
@@ -43,7 +43,7 @@ var import_common6 = require("@binance/common");
|
|
|
43
43
|
|
|
44
44
|
// package.json
|
|
45
45
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
46
|
-
var version = "
|
|
46
|
+
var version = "2.0.0";
|
|
47
47
|
|
|
48
48
|
// src/rest-api/index.ts
|
|
49
49
|
var rest_api_exports = {};
|
|
@@ -120,8 +120,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
120
120
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
121
121
|
}
|
|
122
122
|
let _timeUnit;
|
|
123
|
-
if ("timeUnit" in configuration)
|
|
124
|
-
_timeUnit = configuration.timeUnit;
|
|
123
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
125
124
|
return {
|
|
126
125
|
endpoint: "/papi/v1/balance",
|
|
127
126
|
method: "GET",
|
|
@@ -145,8 +144,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
145
144
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
146
145
|
}
|
|
147
146
|
let _timeUnit;
|
|
148
|
-
if ("timeUnit" in configuration)
|
|
149
|
-
_timeUnit = configuration.timeUnit;
|
|
147
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
150
148
|
return {
|
|
151
149
|
endpoint: "/papi/v1/account",
|
|
152
150
|
method: "GET",
|
|
@@ -182,8 +180,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
182
180
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
183
181
|
}
|
|
184
182
|
let _timeUnit;
|
|
185
|
-
if ("timeUnit" in configuration)
|
|
186
|
-
_timeUnit = configuration.timeUnit;
|
|
183
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
187
184
|
return {
|
|
188
185
|
endpoint: "/papi/v1/bnb-transfer",
|
|
189
186
|
method: "POST",
|
|
@@ -212,8 +209,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
212
209
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
213
210
|
}
|
|
214
211
|
let _timeUnit;
|
|
215
|
-
if ("timeUnit" in configuration)
|
|
216
|
-
_timeUnit = configuration.timeUnit;
|
|
212
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
217
213
|
return {
|
|
218
214
|
endpoint: "/papi/v1/repay-futures-switch",
|
|
219
215
|
method: "POST",
|
|
@@ -247,8 +243,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
247
243
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
248
244
|
}
|
|
249
245
|
let _timeUnit;
|
|
250
|
-
if ("timeUnit" in configuration)
|
|
251
|
-
_timeUnit = configuration.timeUnit;
|
|
246
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
252
247
|
return {
|
|
253
248
|
endpoint: "/papi/v1/cm/leverage",
|
|
254
249
|
method: "POST",
|
|
@@ -277,8 +272,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
277
272
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
278
273
|
}
|
|
279
274
|
let _timeUnit;
|
|
280
|
-
if ("timeUnit" in configuration)
|
|
281
|
-
_timeUnit = configuration.timeUnit;
|
|
275
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
282
276
|
return {
|
|
283
277
|
endpoint: "/papi/v1/cm/positionSide/dual",
|
|
284
278
|
method: "POST",
|
|
@@ -312,8 +306,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
312
306
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
313
307
|
}
|
|
314
308
|
let _timeUnit;
|
|
315
|
-
if ("timeUnit" in configuration)
|
|
316
|
-
_timeUnit = configuration.timeUnit;
|
|
309
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
317
310
|
return {
|
|
318
311
|
endpoint: "/papi/v1/um/leverage",
|
|
319
312
|
method: "POST",
|
|
@@ -342,8 +335,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
342
335
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
343
336
|
}
|
|
344
337
|
let _timeUnit;
|
|
345
|
-
if ("timeUnit" in configuration)
|
|
346
|
-
_timeUnit = configuration.timeUnit;
|
|
338
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
347
339
|
return {
|
|
348
340
|
endpoint: "/papi/v1/um/positionSide/dual",
|
|
349
341
|
method: "POST",
|
|
@@ -371,8 +363,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
371
363
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
372
364
|
}
|
|
373
365
|
let _timeUnit;
|
|
374
|
-
if ("timeUnit" in configuration)
|
|
375
|
-
_timeUnit = configuration.timeUnit;
|
|
366
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
376
367
|
return {
|
|
377
368
|
endpoint: "/papi/v1/cm/leverageBracket",
|
|
378
369
|
method: "GET",
|
|
@@ -399,8 +390,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
399
390
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
400
391
|
}
|
|
401
392
|
let _timeUnit;
|
|
402
|
-
if ("timeUnit" in configuration)
|
|
403
|
-
_timeUnit = configuration.timeUnit;
|
|
393
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
404
394
|
return {
|
|
405
395
|
endpoint: "/papi/v1/auto-collection",
|
|
406
396
|
method: "POST",
|
|
@@ -431,8 +421,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
431
421
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
432
422
|
}
|
|
433
423
|
let _timeUnit;
|
|
434
|
-
if ("timeUnit" in configuration)
|
|
435
|
-
_timeUnit = configuration.timeUnit;
|
|
424
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
436
425
|
return {
|
|
437
426
|
endpoint: "/papi/v1/asset-collection",
|
|
438
427
|
method: "POST",
|
|
@@ -456,8 +445,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
456
445
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
457
446
|
}
|
|
458
447
|
let _timeUnit;
|
|
459
|
-
if ("timeUnit" in configuration)
|
|
460
|
-
_timeUnit = configuration.timeUnit;
|
|
448
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
461
449
|
return {
|
|
462
450
|
endpoint: "/papi/v1/repay-futures-switch",
|
|
463
451
|
method: "GET",
|
|
@@ -481,8 +469,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
481
469
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
482
470
|
}
|
|
483
471
|
let _timeUnit;
|
|
484
|
-
if ("timeUnit" in configuration)
|
|
485
|
-
_timeUnit = configuration.timeUnit;
|
|
472
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
486
473
|
return {
|
|
487
474
|
endpoint: "/papi/v1/cm/account",
|
|
488
475
|
method: "GET",
|
|
@@ -506,8 +493,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
506
493
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
507
494
|
}
|
|
508
495
|
let _timeUnit;
|
|
509
|
-
if ("timeUnit" in configuration)
|
|
510
|
-
_timeUnit = configuration.timeUnit;
|
|
496
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
511
497
|
return {
|
|
512
498
|
endpoint: "/papi/v1/cm/positionSide/dual",
|
|
513
499
|
method: "GET",
|
|
@@ -561,8 +547,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
561
547
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
562
548
|
}
|
|
563
549
|
let _timeUnit;
|
|
564
|
-
if ("timeUnit" in configuration)
|
|
565
|
-
_timeUnit = configuration.timeUnit;
|
|
550
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
566
551
|
return {
|
|
567
552
|
endpoint: "/papi/v1/cm/income",
|
|
568
553
|
method: "GET",
|
|
@@ -599,8 +584,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
599
584
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
600
585
|
}
|
|
601
586
|
let _timeUnit;
|
|
602
|
-
if ("timeUnit" in configuration)
|
|
603
|
-
_timeUnit = configuration.timeUnit;
|
|
587
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
604
588
|
return {
|
|
605
589
|
endpoint: "/papi/v1/um/order/asyn",
|
|
606
590
|
method: "GET",
|
|
@@ -637,8 +621,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
637
621
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
638
622
|
}
|
|
639
623
|
let _timeUnit;
|
|
640
|
-
if ("timeUnit" in configuration)
|
|
641
|
-
_timeUnit = configuration.timeUnit;
|
|
624
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
642
625
|
return {
|
|
643
626
|
endpoint: "/papi/v1/um/trade/asyn",
|
|
644
627
|
method: "GET",
|
|
@@ -679,8 +662,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
679
662
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
680
663
|
}
|
|
681
664
|
let _timeUnit;
|
|
682
|
-
if ("timeUnit" in configuration)
|
|
683
|
-
_timeUnit = configuration.timeUnit;
|
|
665
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
684
666
|
return {
|
|
685
667
|
endpoint: "/papi/v1/um/income/asyn",
|
|
686
668
|
method: "GET",
|
|
@@ -741,8 +723,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
741
723
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
742
724
|
}
|
|
743
725
|
let _timeUnit;
|
|
744
|
-
if ("timeUnit" in configuration)
|
|
745
|
-
_timeUnit = configuration.timeUnit;
|
|
726
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
746
727
|
return {
|
|
747
728
|
endpoint: "/papi/v1/margin/marginInterestHistory",
|
|
748
729
|
method: "GET",
|
|
@@ -766,8 +747,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
766
747
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
767
748
|
}
|
|
768
749
|
let _timeUnit;
|
|
769
|
-
if ("timeUnit" in configuration)
|
|
770
|
-
_timeUnit = configuration.timeUnit;
|
|
750
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
771
751
|
return {
|
|
772
752
|
endpoint: "/papi/v1/um/account",
|
|
773
753
|
method: "GET",
|
|
@@ -791,8 +771,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
791
771
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
792
772
|
}
|
|
793
773
|
let _timeUnit;
|
|
794
|
-
if ("timeUnit" in configuration)
|
|
795
|
-
_timeUnit = configuration.timeUnit;
|
|
774
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
796
775
|
return {
|
|
797
776
|
endpoint: "/papi/v2/um/account",
|
|
798
777
|
method: "GET",
|
|
@@ -816,8 +795,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
816
795
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
817
796
|
}
|
|
818
797
|
let _timeUnit;
|
|
819
|
-
if ("timeUnit" in configuration)
|
|
820
|
-
_timeUnit = configuration.timeUnit;
|
|
798
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
821
799
|
return {
|
|
822
800
|
endpoint: "/papi/v1/um/positionSide/dual",
|
|
823
801
|
method: "GET",
|
|
@@ -848,8 +826,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
848
826
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
849
827
|
}
|
|
850
828
|
let _timeUnit;
|
|
851
|
-
if ("timeUnit" in configuration)
|
|
852
|
-
_timeUnit = configuration.timeUnit;
|
|
829
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
853
830
|
return {
|
|
854
831
|
endpoint: "/papi/v1/um/order/asyn/id",
|
|
855
832
|
method: "GET",
|
|
@@ -880,8 +857,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
880
857
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
881
858
|
}
|
|
882
859
|
let _timeUnit;
|
|
883
|
-
if ("timeUnit" in configuration)
|
|
884
|
-
_timeUnit = configuration.timeUnit;
|
|
860
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
885
861
|
return {
|
|
886
862
|
endpoint: "/papi/v1/um/trade/asyn/id",
|
|
887
863
|
method: "GET",
|
|
@@ -912,8 +888,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
912
888
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
913
889
|
}
|
|
914
890
|
let _timeUnit;
|
|
915
|
-
if ("timeUnit" in configuration)
|
|
916
|
-
_timeUnit = configuration.timeUnit;
|
|
891
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
917
892
|
return {
|
|
918
893
|
endpoint: "/papi/v1/um/income/asyn/id",
|
|
919
894
|
method: "GET",
|
|
@@ -966,8 +941,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
966
941
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
967
942
|
}
|
|
968
943
|
let _timeUnit;
|
|
969
|
-
if ("timeUnit" in configuration)
|
|
970
|
-
_timeUnit = configuration.timeUnit;
|
|
944
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
971
945
|
return {
|
|
972
946
|
endpoint: "/papi/v1/um/income",
|
|
973
947
|
method: "GET",
|
|
@@ -996,8 +970,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
996
970
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
997
971
|
}
|
|
998
972
|
let _timeUnit;
|
|
999
|
-
if ("timeUnit" in configuration)
|
|
1000
|
-
_timeUnit = configuration.timeUnit;
|
|
973
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1001
974
|
return {
|
|
1002
975
|
endpoint: "/papi/v1/cm/commissionRate",
|
|
1003
976
|
method: "GET",
|
|
@@ -1026,8 +999,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1026
999
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1027
1000
|
}
|
|
1028
1001
|
let _timeUnit;
|
|
1029
|
-
if ("timeUnit" in configuration)
|
|
1030
|
-
_timeUnit = configuration.timeUnit;
|
|
1002
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1031
1003
|
return {
|
|
1032
1004
|
endpoint: "/papi/v1/um/commissionRate",
|
|
1033
1005
|
method: "GET",
|
|
@@ -1056,8 +1028,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1056
1028
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1057
1029
|
}
|
|
1058
1030
|
let _timeUnit;
|
|
1059
|
-
if ("timeUnit" in configuration)
|
|
1060
|
-
_timeUnit = configuration.timeUnit;
|
|
1031
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1061
1032
|
return {
|
|
1062
1033
|
endpoint: "/papi/v1/margin/maxBorrowable",
|
|
1063
1034
|
method: "GET",
|
|
@@ -1086,8 +1057,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1086
1057
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1087
1058
|
}
|
|
1088
1059
|
let _timeUnit;
|
|
1089
|
-
if ("timeUnit" in configuration)
|
|
1090
|
-
_timeUnit = configuration.timeUnit;
|
|
1060
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1091
1061
|
return {
|
|
1092
1062
|
endpoint: "/papi/v1/um/apiTradingStatus",
|
|
1093
1063
|
method: "GET",
|
|
@@ -1124,8 +1094,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1124
1094
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1125
1095
|
}
|
|
1126
1096
|
let _timeUnit;
|
|
1127
|
-
if ("timeUnit" in configuration)
|
|
1128
|
-
_timeUnit = configuration.timeUnit;
|
|
1097
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1129
1098
|
return {
|
|
1130
1099
|
endpoint: "/papi/v1/cm/positionRisk",
|
|
1131
1100
|
method: "GET",
|
|
@@ -1184,8 +1153,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1184
1153
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1185
1154
|
}
|
|
1186
1155
|
let _timeUnit;
|
|
1187
|
-
if ("timeUnit" in configuration)
|
|
1188
|
-
_timeUnit = configuration.timeUnit;
|
|
1156
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1189
1157
|
return {
|
|
1190
1158
|
endpoint: "/papi/v1/margin/marginLoan",
|
|
1191
1159
|
method: "GET",
|
|
@@ -1214,8 +1182,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1214
1182
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1215
1183
|
}
|
|
1216
1184
|
let _timeUnit;
|
|
1217
|
-
if ("timeUnit" in configuration)
|
|
1218
|
-
_timeUnit = configuration.timeUnit;
|
|
1185
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1219
1186
|
return {
|
|
1220
1187
|
endpoint: "/papi/v1/margin/maxWithdraw",
|
|
1221
1188
|
method: "GET",
|
|
@@ -1274,8 +1241,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1274
1241
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1275
1242
|
}
|
|
1276
1243
|
let _timeUnit;
|
|
1277
|
-
if ("timeUnit" in configuration)
|
|
1278
|
-
_timeUnit = configuration.timeUnit;
|
|
1244
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1279
1245
|
return {
|
|
1280
1246
|
endpoint: "/papi/v1/margin/repayLoan",
|
|
1281
1247
|
method: "GET",
|
|
@@ -1321,8 +1287,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1321
1287
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1322
1288
|
}
|
|
1323
1289
|
let _timeUnit;
|
|
1324
|
-
if ("timeUnit" in configuration)
|
|
1325
|
-
_timeUnit = configuration.timeUnit;
|
|
1290
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1326
1291
|
return {
|
|
1327
1292
|
endpoint: "/papi/v1/portfolio/interest-history",
|
|
1328
1293
|
method: "GET",
|
|
@@ -1354,8 +1319,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1354
1319
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1355
1320
|
}
|
|
1356
1321
|
let _timeUnit;
|
|
1357
|
-
if ("timeUnit" in configuration)
|
|
1358
|
-
_timeUnit = configuration.timeUnit;
|
|
1322
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1359
1323
|
return {
|
|
1360
1324
|
endpoint: "/papi/v1/um/positionRisk",
|
|
1361
1325
|
method: "GET",
|
|
@@ -1392,8 +1356,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1392
1356
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1393
1357
|
}
|
|
1394
1358
|
let _timeUnit;
|
|
1395
|
-
if ("timeUnit" in configuration)
|
|
1396
|
-
_timeUnit = configuration.timeUnit;
|
|
1359
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1397
1360
|
return {
|
|
1398
1361
|
endpoint: "/papi/v1/portfolio/negative-balance-exchange-record",
|
|
1399
1362
|
method: "GET",
|
|
@@ -1417,8 +1380,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1417
1380
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1418
1381
|
}
|
|
1419
1382
|
let _timeUnit;
|
|
1420
|
-
if ("timeUnit" in configuration)
|
|
1421
|
-
_timeUnit = configuration.timeUnit;
|
|
1383
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1422
1384
|
return {
|
|
1423
1385
|
endpoint: "/papi/v1/rateLimit/order",
|
|
1424
1386
|
method: "GET",
|
|
@@ -1442,8 +1404,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1442
1404
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1443
1405
|
}
|
|
1444
1406
|
let _timeUnit;
|
|
1445
|
-
if ("timeUnit" in configuration)
|
|
1446
|
-
_timeUnit = configuration.timeUnit;
|
|
1407
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1447
1408
|
return {
|
|
1448
1409
|
endpoint: "/papi/v1/repay-futures-negative-balance",
|
|
1449
1410
|
method: "POST",
|
|
@@ -1467,8 +1428,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1467
1428
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1468
1429
|
}
|
|
1469
1430
|
let _timeUnit;
|
|
1470
|
-
if ("timeUnit" in configuration)
|
|
1471
|
-
_timeUnit = configuration.timeUnit;
|
|
1431
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1472
1432
|
return {
|
|
1473
1433
|
endpoint: "/papi/v1/um/accountConfig",
|
|
1474
1434
|
method: "GET",
|
|
@@ -1496,8 +1456,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1496
1456
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1497
1457
|
}
|
|
1498
1458
|
let _timeUnit;
|
|
1499
|
-
if ("timeUnit" in configuration)
|
|
1500
|
-
_timeUnit = configuration.timeUnit;
|
|
1459
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1501
1460
|
return {
|
|
1502
1461
|
endpoint: "/papi/v1/um/symbolConfig",
|
|
1503
1462
|
method: "GET",
|
|
@@ -1525,8 +1484,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
1525
1484
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1526
1485
|
}
|
|
1527
1486
|
let _timeUnit;
|
|
1528
|
-
if ("timeUnit" in configuration)
|
|
1529
|
-
_timeUnit = configuration.timeUnit;
|
|
1487
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1530
1488
|
return {
|
|
1531
1489
|
endpoint: "/papi/v1/um/leverageBracket",
|
|
1532
1490
|
method: "GET",
|
|
@@ -2755,8 +2713,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
2755
2713
|
testConnectivity: async () => {
|
|
2756
2714
|
const localVarQueryParameter = {};
|
|
2757
2715
|
let _timeUnit;
|
|
2758
|
-
if ("timeUnit" in configuration)
|
|
2759
|
-
_timeUnit = configuration.timeUnit;
|
|
2716
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2760
2717
|
return {
|
|
2761
2718
|
endpoint: "/papi/v1/ping",
|
|
2762
2719
|
method: "GET",
|
|
@@ -2820,8 +2777,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2820
2777
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2821
2778
|
}
|
|
2822
2779
|
let _timeUnit;
|
|
2823
|
-
if ("timeUnit" in configuration)
|
|
2824
|
-
_timeUnit = configuration.timeUnit;
|
|
2780
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2825
2781
|
return {
|
|
2826
2782
|
endpoint: "/papi/v1/cm/conditional/allOpenOrders",
|
|
2827
2783
|
method: "DELETE",
|
|
@@ -2850,8 +2806,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2850
2806
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2851
2807
|
}
|
|
2852
2808
|
let _timeUnit;
|
|
2853
|
-
if ("timeUnit" in configuration)
|
|
2854
|
-
_timeUnit = configuration.timeUnit;
|
|
2809
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2855
2810
|
return {
|
|
2856
2811
|
endpoint: "/papi/v1/cm/allOpenOrders",
|
|
2857
2812
|
method: "DELETE",
|
|
@@ -2880,8 +2835,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2880
2835
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2881
2836
|
}
|
|
2882
2837
|
let _timeUnit;
|
|
2883
|
-
if ("timeUnit" in configuration)
|
|
2884
|
-
_timeUnit = configuration.timeUnit;
|
|
2838
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2885
2839
|
return {
|
|
2886
2840
|
endpoint: "/papi/v1/um/conditional/allOpenOrders",
|
|
2887
2841
|
method: "DELETE",
|
|
@@ -2910,8 +2864,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2910
2864
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2911
2865
|
}
|
|
2912
2866
|
let _timeUnit;
|
|
2913
|
-
if ("timeUnit" in configuration)
|
|
2914
|
-
_timeUnit = configuration.timeUnit;
|
|
2867
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2915
2868
|
return {
|
|
2916
2869
|
endpoint: "/papi/v1/um/allOpenOrders",
|
|
2917
2870
|
method: "DELETE",
|
|
@@ -2950,8 +2903,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2950
2903
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2951
2904
|
}
|
|
2952
2905
|
let _timeUnit;
|
|
2953
|
-
if ("timeUnit" in configuration)
|
|
2954
|
-
_timeUnit = configuration.timeUnit;
|
|
2906
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2955
2907
|
return {
|
|
2956
2908
|
endpoint: "/papi/v1/cm/conditional/order",
|
|
2957
2909
|
method: "DELETE",
|
|
@@ -2990,8 +2942,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2990
2942
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2991
2943
|
}
|
|
2992
2944
|
let _timeUnit;
|
|
2993
|
-
if ("timeUnit" in configuration)
|
|
2994
|
-
_timeUnit = configuration.timeUnit;
|
|
2945
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2995
2946
|
return {
|
|
2996
2947
|
endpoint: "/papi/v1/cm/order",
|
|
2997
2948
|
method: "DELETE",
|
|
@@ -3020,8 +2971,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3020
2971
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3021
2972
|
}
|
|
3022
2973
|
let _timeUnit;
|
|
3023
|
-
if ("timeUnit" in configuration)
|
|
3024
|
-
_timeUnit = configuration.timeUnit;
|
|
2974
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3025
2975
|
return {
|
|
3026
2976
|
endpoint: "/papi/v1/margin/allOpenOrders",
|
|
3027
2977
|
method: "DELETE",
|
|
@@ -3064,8 +3014,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3064
3014
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3065
3015
|
}
|
|
3066
3016
|
let _timeUnit;
|
|
3067
|
-
if ("timeUnit" in configuration)
|
|
3068
|
-
_timeUnit = configuration.timeUnit;
|
|
3017
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3069
3018
|
return {
|
|
3070
3019
|
endpoint: "/papi/v1/margin/orderList",
|
|
3071
3020
|
method: "DELETE",
|
|
@@ -3108,8 +3057,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3108
3057
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3109
3058
|
}
|
|
3110
3059
|
let _timeUnit;
|
|
3111
|
-
if ("timeUnit" in configuration)
|
|
3112
|
-
_timeUnit = configuration.timeUnit;
|
|
3060
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3113
3061
|
return {
|
|
3114
3062
|
endpoint: "/papi/v1/margin/order",
|
|
3115
3063
|
method: "DELETE",
|
|
@@ -3148,8 +3096,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3148
3096
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3149
3097
|
}
|
|
3150
3098
|
let _timeUnit;
|
|
3151
|
-
if ("timeUnit" in configuration)
|
|
3152
|
-
_timeUnit = configuration.timeUnit;
|
|
3099
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3153
3100
|
return {
|
|
3154
3101
|
endpoint: "/papi/v1/um/conditional/order",
|
|
3155
3102
|
method: "DELETE",
|
|
@@ -3188,8 +3135,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3188
3135
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3189
3136
|
}
|
|
3190
3137
|
let _timeUnit;
|
|
3191
|
-
if ("timeUnit" in configuration)
|
|
3192
|
-
_timeUnit = configuration.timeUnit;
|
|
3138
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3193
3139
|
return {
|
|
3194
3140
|
endpoint: "/papi/v1/um/order",
|
|
3195
3141
|
method: "DELETE",
|
|
@@ -3244,8 +3190,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3244
3190
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3245
3191
|
}
|
|
3246
3192
|
let _timeUnit;
|
|
3247
|
-
if ("timeUnit" in configuration)
|
|
3248
|
-
_timeUnit = configuration.timeUnit;
|
|
3193
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3249
3194
|
return {
|
|
3250
3195
|
endpoint: "/papi/v1/cm/userTrades",
|
|
3251
3196
|
method: "GET",
|
|
@@ -3279,8 +3224,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3279
3224
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3280
3225
|
}
|
|
3281
3226
|
let _timeUnit;
|
|
3282
|
-
if ("timeUnit" in configuration)
|
|
3283
|
-
_timeUnit = configuration.timeUnit;
|
|
3227
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3284
3228
|
return {
|
|
3285
3229
|
endpoint: "/papi/v1/cm/adlQuantile",
|
|
3286
3230
|
method: "GET",
|
|
@@ -3304,8 +3248,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3304
3248
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3305
3249
|
}
|
|
3306
3250
|
let _timeUnit;
|
|
3307
|
-
if ("timeUnit" in configuration)
|
|
3308
|
-
_timeUnit = configuration.timeUnit;
|
|
3251
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3309
3252
|
return {
|
|
3310
3253
|
endpoint: "/papi/v1/um/feeBurn",
|
|
3311
3254
|
method: "GET",
|
|
@@ -3339,8 +3282,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3339
3282
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3340
3283
|
}
|
|
3341
3284
|
let _timeUnit;
|
|
3342
|
-
if ("timeUnit" in configuration)
|
|
3343
|
-
_timeUnit = configuration.timeUnit;
|
|
3285
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3344
3286
|
return {
|
|
3345
3287
|
endpoint: "/papi/v1/marginLoan",
|
|
3346
3288
|
method: "POST",
|
|
@@ -3434,8 +3376,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3434
3376
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3435
3377
|
}
|
|
3436
3378
|
let _timeUnit;
|
|
3437
|
-
if ("timeUnit" in configuration)
|
|
3438
|
-
_timeUnit = configuration.timeUnit;
|
|
3379
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3439
3380
|
return {
|
|
3440
3381
|
endpoint: "/papi/v1/margin/order/oco",
|
|
3441
3382
|
method: "POST",
|
|
@@ -3469,8 +3410,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3469
3410
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3470
3411
|
}
|
|
3471
3412
|
let _timeUnit;
|
|
3472
|
-
if ("timeUnit" in configuration)
|
|
3473
|
-
_timeUnit = configuration.timeUnit;
|
|
3413
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3474
3414
|
return {
|
|
3475
3415
|
endpoint: "/papi/v1/repayLoan",
|
|
3476
3416
|
method: "POST",
|
|
@@ -3512,8 +3452,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3512
3452
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3513
3453
|
}
|
|
3514
3454
|
let _timeUnit;
|
|
3515
|
-
if ("timeUnit" in configuration)
|
|
3516
|
-
_timeUnit = configuration.timeUnit;
|
|
3455
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3517
3456
|
return {
|
|
3518
3457
|
endpoint: "/papi/v1/margin/repay-debt",
|
|
3519
3458
|
method: "POST",
|
|
@@ -3562,8 +3501,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3562
3501
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3563
3502
|
}
|
|
3564
3503
|
let _timeUnit;
|
|
3565
|
-
if ("timeUnit" in configuration)
|
|
3566
|
-
_timeUnit = configuration.timeUnit;
|
|
3504
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3567
3505
|
return {
|
|
3568
3506
|
endpoint: "/papi/v1/margin/myTrades",
|
|
3569
3507
|
method: "GET",
|
|
@@ -3626,8 +3564,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3626
3564
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3627
3565
|
}
|
|
3628
3566
|
let _timeUnit;
|
|
3629
|
-
if ("timeUnit" in configuration)
|
|
3630
|
-
_timeUnit = configuration.timeUnit;
|
|
3567
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3631
3568
|
return {
|
|
3632
3569
|
endpoint: "/papi/v1/cm/order",
|
|
3633
3570
|
method: "PUT",
|
|
@@ -3690,8 +3627,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3690
3627
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3691
3628
|
}
|
|
3692
3629
|
let _timeUnit;
|
|
3693
|
-
if ("timeUnit" in configuration)
|
|
3694
|
-
_timeUnit = configuration.timeUnit;
|
|
3630
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3695
3631
|
return {
|
|
3696
3632
|
endpoint: "/papi/v1/um/order",
|
|
3697
3633
|
method: "PUT",
|
|
@@ -3799,8 +3735,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3799
3735
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3800
3736
|
}
|
|
3801
3737
|
let _timeUnit;
|
|
3802
|
-
if ("timeUnit" in configuration)
|
|
3803
|
-
_timeUnit = configuration.timeUnit;
|
|
3738
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3804
3739
|
return {
|
|
3805
3740
|
endpoint: "/papi/v1/cm/conditional/order",
|
|
3806
3741
|
method: "POST",
|
|
@@ -3875,8 +3810,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3875
3810
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3876
3811
|
}
|
|
3877
3812
|
let _timeUnit;
|
|
3878
|
-
if ("timeUnit" in configuration)
|
|
3879
|
-
_timeUnit = configuration.timeUnit;
|
|
3813
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3880
3814
|
return {
|
|
3881
3815
|
endpoint: "/papi/v1/cm/order",
|
|
3882
3816
|
method: "POST",
|
|
@@ -3959,8 +3893,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
3959
3893
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
3960
3894
|
}
|
|
3961
3895
|
let _timeUnit;
|
|
3962
|
-
if ("timeUnit" in configuration)
|
|
3963
|
-
_timeUnit = configuration.timeUnit;
|
|
3896
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
3964
3897
|
return {
|
|
3965
3898
|
endpoint: "/papi/v1/margin/order",
|
|
3966
3899
|
method: "POST",
|
|
@@ -4082,8 +4015,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4082
4015
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4083
4016
|
}
|
|
4084
4017
|
let _timeUnit;
|
|
4085
|
-
if ("timeUnit" in configuration)
|
|
4086
|
-
_timeUnit = configuration.timeUnit;
|
|
4018
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4087
4019
|
return {
|
|
4088
4020
|
endpoint: "/papi/v1/um/conditional/order",
|
|
4089
4021
|
method: "POST",
|
|
@@ -4168,8 +4100,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4168
4100
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4169
4101
|
}
|
|
4170
4102
|
let _timeUnit;
|
|
4171
|
-
if ("timeUnit" in configuration)
|
|
4172
|
-
_timeUnit = configuration.timeUnit;
|
|
4103
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4173
4104
|
return {
|
|
4174
4105
|
endpoint: "/papi/v1/um/order",
|
|
4175
4106
|
method: "POST",
|
|
@@ -4219,8 +4150,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4219
4150
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4220
4151
|
}
|
|
4221
4152
|
let _timeUnit;
|
|
4222
|
-
if ("timeUnit" in configuration)
|
|
4223
|
-
_timeUnit = configuration.timeUnit;
|
|
4153
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4224
4154
|
return {
|
|
4225
4155
|
endpoint: "/papi/v1/cm/conditional/allOrders",
|
|
4226
4156
|
method: "GET",
|
|
@@ -4276,8 +4206,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4276
4206
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4277
4207
|
}
|
|
4278
4208
|
let _timeUnit;
|
|
4279
|
-
if ("timeUnit" in configuration)
|
|
4280
|
-
_timeUnit = configuration.timeUnit;
|
|
4209
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4281
4210
|
return {
|
|
4282
4211
|
endpoint: "/papi/v1/cm/allOrders",
|
|
4283
4212
|
method: "GET",
|
|
@@ -4307,8 +4236,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4307
4236
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4308
4237
|
}
|
|
4309
4238
|
let _timeUnit;
|
|
4310
|
-
if ("timeUnit" in configuration)
|
|
4311
|
-
_timeUnit = configuration.timeUnit;
|
|
4239
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4312
4240
|
return {
|
|
4313
4241
|
endpoint: "/papi/v1/cm/conditional/openOrders",
|
|
4314
4242
|
method: "GET",
|
|
@@ -4343,8 +4271,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4343
4271
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4344
4272
|
}
|
|
4345
4273
|
let _timeUnit;
|
|
4346
|
-
if ("timeUnit" in configuration)
|
|
4347
|
-
_timeUnit = configuration.timeUnit;
|
|
4274
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4348
4275
|
return {
|
|
4349
4276
|
endpoint: "/papi/v1/cm/openOrders",
|
|
4350
4277
|
method: "GET",
|
|
@@ -4375,8 +4302,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4375
4302
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4376
4303
|
}
|
|
4377
4304
|
let _timeUnit;
|
|
4378
|
-
if ("timeUnit" in configuration)
|
|
4379
|
-
_timeUnit = configuration.timeUnit;
|
|
4305
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4380
4306
|
return {
|
|
4381
4307
|
endpoint: "/papi/v1/um/conditional/openOrders",
|
|
4382
4308
|
method: "GET",
|
|
@@ -4407,8 +4333,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4407
4333
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4408
4334
|
}
|
|
4409
4335
|
let _timeUnit;
|
|
4410
|
-
if ("timeUnit" in configuration)
|
|
4411
|
-
_timeUnit = configuration.timeUnit;
|
|
4336
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4412
4337
|
return {
|
|
4413
4338
|
endpoint: "/papi/v1/um/openOrders",
|
|
4414
4339
|
method: "GET",
|
|
@@ -4453,8 +4378,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4453
4378
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4454
4379
|
}
|
|
4455
4380
|
let _timeUnit;
|
|
4456
|
-
if ("timeUnit" in configuration)
|
|
4457
|
-
_timeUnit = configuration.timeUnit;
|
|
4381
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4458
4382
|
return {
|
|
4459
4383
|
endpoint: "/papi/v1/margin/allOrders",
|
|
4460
4384
|
method: "GET",
|
|
@@ -4504,8 +4428,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4504
4428
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4505
4429
|
}
|
|
4506
4430
|
let _timeUnit;
|
|
4507
|
-
if ("timeUnit" in configuration)
|
|
4508
|
-
_timeUnit = configuration.timeUnit;
|
|
4431
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4509
4432
|
return {
|
|
4510
4433
|
endpoint: "/papi/v1/um/conditional/allOrders",
|
|
4511
4434
|
method: "GET",
|
|
@@ -4557,8 +4480,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4557
4480
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4558
4481
|
}
|
|
4559
4482
|
let _timeUnit;
|
|
4560
|
-
if ("timeUnit" in configuration)
|
|
4561
|
-
_timeUnit = configuration.timeUnit;
|
|
4483
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4562
4484
|
return {
|
|
4563
4485
|
endpoint: "/papi/v1/um/allOrders",
|
|
4564
4486
|
method: "GET",
|
|
@@ -4603,8 +4525,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4603
4525
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4604
4526
|
}
|
|
4605
4527
|
let _timeUnit;
|
|
4606
|
-
if ("timeUnit" in configuration)
|
|
4607
|
-
_timeUnit = configuration.timeUnit;
|
|
4528
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4608
4529
|
return {
|
|
4609
4530
|
endpoint: "/papi/v1/cm/conditional/orderHistory",
|
|
4610
4531
|
method: "GET",
|
|
@@ -4655,8 +4576,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4655
4576
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4656
4577
|
}
|
|
4657
4578
|
let _timeUnit;
|
|
4658
|
-
if ("timeUnit" in configuration)
|
|
4659
|
-
_timeUnit = configuration.timeUnit;
|
|
4579
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4660
4580
|
return {
|
|
4661
4581
|
endpoint: "/papi/v1/cm/orderAmendment",
|
|
4662
4582
|
method: "GET",
|
|
@@ -4699,8 +4619,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4699
4619
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4700
4620
|
}
|
|
4701
4621
|
let _timeUnit;
|
|
4702
|
-
if ("timeUnit" in configuration)
|
|
4703
|
-
_timeUnit = configuration.timeUnit;
|
|
4622
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4704
4623
|
return {
|
|
4705
4624
|
endpoint: "/papi/v1/cm/order",
|
|
4706
4625
|
method: "GET",
|
|
@@ -4740,8 +4659,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4740
4659
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4741
4660
|
}
|
|
4742
4661
|
let _timeUnit;
|
|
4743
|
-
if ("timeUnit" in configuration)
|
|
4744
|
-
_timeUnit = configuration.timeUnit;
|
|
4662
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4745
4663
|
return {
|
|
4746
4664
|
endpoint: "/papi/v1/cm/conditional/openOrder",
|
|
4747
4665
|
method: "GET",
|
|
@@ -4781,8 +4699,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4781
4699
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4782
4700
|
}
|
|
4783
4701
|
let _timeUnit;
|
|
4784
|
-
if ("timeUnit" in configuration)
|
|
4785
|
-
_timeUnit = configuration.timeUnit;
|
|
4702
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4786
4703
|
return {
|
|
4787
4704
|
endpoint: "/papi/v1/cm/openOrder",
|
|
4788
4705
|
method: "GET",
|
|
@@ -4811,8 +4728,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4811
4728
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4812
4729
|
}
|
|
4813
4730
|
let _timeUnit;
|
|
4814
|
-
if ("timeUnit" in configuration)
|
|
4815
|
-
_timeUnit = configuration.timeUnit;
|
|
4731
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4816
4732
|
return {
|
|
4817
4733
|
endpoint: "/papi/v1/margin/openOrders",
|
|
4818
4734
|
method: "GET",
|
|
@@ -4852,8 +4768,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4852
4768
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4853
4769
|
}
|
|
4854
4770
|
let _timeUnit;
|
|
4855
|
-
if ("timeUnit" in configuration)
|
|
4856
|
-
_timeUnit = configuration.timeUnit;
|
|
4771
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4857
4772
|
return {
|
|
4858
4773
|
endpoint: "/papi/v1/um/conditional/openOrder",
|
|
4859
4774
|
method: "GET",
|
|
@@ -4894,8 +4809,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4894
4809
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4895
4810
|
}
|
|
4896
4811
|
let _timeUnit;
|
|
4897
|
-
if ("timeUnit" in configuration)
|
|
4898
|
-
_timeUnit = configuration.timeUnit;
|
|
4812
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4899
4813
|
return {
|
|
4900
4814
|
endpoint: "/papi/v1/um/openOrder",
|
|
4901
4815
|
method: "GET",
|
|
@@ -4932,8 +4846,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4932
4846
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4933
4847
|
}
|
|
4934
4848
|
let _timeUnit;
|
|
4935
|
-
if ("timeUnit" in configuration)
|
|
4936
|
-
_timeUnit = configuration.timeUnit;
|
|
4849
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4937
4850
|
return {
|
|
4938
4851
|
endpoint: "/papi/v1/margin/order",
|
|
4939
4852
|
method: "GET",
|
|
@@ -4973,8 +4886,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
4973
4886
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
4974
4887
|
}
|
|
4975
4888
|
let _timeUnit;
|
|
4976
|
-
if ("timeUnit" in configuration)
|
|
4977
|
-
_timeUnit = configuration.timeUnit;
|
|
4889
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
4978
4890
|
return {
|
|
4979
4891
|
endpoint: "/papi/v1/margin/allOrderList",
|
|
4980
4892
|
method: "GET",
|
|
@@ -5006,8 +4918,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5006
4918
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5007
4919
|
}
|
|
5008
4920
|
let _timeUnit;
|
|
5009
|
-
if ("timeUnit" in configuration)
|
|
5010
|
-
_timeUnit = configuration.timeUnit;
|
|
4921
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5011
4922
|
return {
|
|
5012
4923
|
endpoint: "/papi/v1/margin/orderList",
|
|
5013
4924
|
method: "GET",
|
|
@@ -5031,8 +4942,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5031
4942
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5032
4943
|
}
|
|
5033
4944
|
let _timeUnit;
|
|
5034
|
-
if ("timeUnit" in configuration)
|
|
5035
|
-
_timeUnit = configuration.timeUnit;
|
|
4945
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5036
4946
|
return {
|
|
5037
4947
|
endpoint: "/papi/v1/margin/openOrderList",
|
|
5038
4948
|
method: "GET",
|
|
@@ -5076,8 +4986,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5076
4986
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5077
4987
|
}
|
|
5078
4988
|
let _timeUnit;
|
|
5079
|
-
if ("timeUnit" in configuration)
|
|
5080
|
-
_timeUnit = configuration.timeUnit;
|
|
4989
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5081
4990
|
return {
|
|
5082
4991
|
endpoint: "/papi/v1/um/conditional/orderHistory",
|
|
5083
4992
|
method: "GET",
|
|
@@ -5128,8 +5037,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5128
5037
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5129
5038
|
}
|
|
5130
5039
|
let _timeUnit;
|
|
5131
|
-
if ("timeUnit" in configuration)
|
|
5132
|
-
_timeUnit = configuration.timeUnit;
|
|
5040
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5133
5041
|
return {
|
|
5134
5042
|
endpoint: "/papi/v1/um/orderAmendment",
|
|
5135
5043
|
method: "GET",
|
|
@@ -5172,8 +5080,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5172
5080
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5173
5081
|
}
|
|
5174
5082
|
let _timeUnit;
|
|
5175
|
-
if ("timeUnit" in configuration)
|
|
5176
|
-
_timeUnit = configuration.timeUnit;
|
|
5083
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5177
5084
|
return {
|
|
5178
5085
|
endpoint: "/papi/v1/um/order",
|
|
5179
5086
|
method: "GET",
|
|
@@ -5220,8 +5127,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5220
5127
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5221
5128
|
}
|
|
5222
5129
|
let _timeUnit;
|
|
5223
|
-
if ("timeUnit" in configuration)
|
|
5224
|
-
_timeUnit = configuration.timeUnit;
|
|
5130
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5225
5131
|
return {
|
|
5226
5132
|
endpoint: "/papi/v1/cm/forceOrders",
|
|
5227
5133
|
method: "GET",
|
|
@@ -5261,8 +5167,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5261
5167
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5262
5168
|
}
|
|
5263
5169
|
let _timeUnit;
|
|
5264
|
-
if ("timeUnit" in configuration)
|
|
5265
|
-
_timeUnit = configuration.timeUnit;
|
|
5170
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5266
5171
|
return {
|
|
5267
5172
|
endpoint: "/papi/v1/margin/forceOrders",
|
|
5268
5173
|
method: "GET",
|
|
@@ -5309,8 +5214,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5309
5214
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5310
5215
|
}
|
|
5311
5216
|
let _timeUnit;
|
|
5312
|
-
if ("timeUnit" in configuration)
|
|
5313
|
-
_timeUnit = configuration.timeUnit;
|
|
5217
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5314
5218
|
return {
|
|
5315
5219
|
endpoint: "/papi/v1/um/forceOrders",
|
|
5316
5220
|
method: "GET",
|
|
@@ -5342,8 +5246,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5342
5246
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5343
5247
|
}
|
|
5344
5248
|
let _timeUnit;
|
|
5345
|
-
if ("timeUnit" in configuration)
|
|
5346
|
-
_timeUnit = configuration.timeUnit;
|
|
5249
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5347
5250
|
return {
|
|
5348
5251
|
endpoint: "/papi/v1/um/feeBurn",
|
|
5349
5252
|
method: "POST",
|
|
@@ -5393,8 +5296,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5393
5296
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5394
5297
|
}
|
|
5395
5298
|
let _timeUnit;
|
|
5396
|
-
if ("timeUnit" in configuration)
|
|
5397
|
-
_timeUnit = configuration.timeUnit;
|
|
5299
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5398
5300
|
return {
|
|
5399
5301
|
endpoint: "/papi/v1/um/userTrades",
|
|
5400
5302
|
method: "GET",
|
|
@@ -5429,8 +5331,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
5429
5331
|
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
5430
5332
|
}
|
|
5431
5333
|
let _timeUnit;
|
|
5432
|
-
if ("timeUnit" in configuration)
|
|
5433
|
-
_timeUnit = configuration.timeUnit;
|
|
5334
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
5434
5335
|
return {
|
|
5435
5336
|
endpoint: "/papi/v1/um/adlQuantile",
|
|
5436
5337
|
method: "GET",
|
|
@@ -7546,8 +7447,7 @@ var UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
7546
7447
|
closeUserDataStream: async () => {
|
|
7547
7448
|
const localVarQueryParameter = {};
|
|
7548
7449
|
let _timeUnit;
|
|
7549
|
-
if ("timeUnit" in configuration)
|
|
7550
|
-
_timeUnit = configuration.timeUnit;
|
|
7450
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
7551
7451
|
return {
|
|
7552
7452
|
endpoint: "/papi/v1/listenKey",
|
|
7553
7453
|
method: "DELETE",
|
|
@@ -7567,8 +7467,7 @@ var UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
7567
7467
|
keepaliveUserDataStream: async () => {
|
|
7568
7468
|
const localVarQueryParameter = {};
|
|
7569
7469
|
let _timeUnit;
|
|
7570
|
-
if ("timeUnit" in configuration)
|
|
7571
|
-
_timeUnit = configuration.timeUnit;
|
|
7470
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
7572
7471
|
return {
|
|
7573
7472
|
endpoint: "/papi/v1/listenKey",
|
|
7574
7473
|
method: "PUT",
|
|
@@ -7588,8 +7487,7 @@ var UserDataStreamsApiAxiosParamCreator = function(configuration) {
|
|
|
7588
7487
|
startUserDataStream: async () => {
|
|
7589
7488
|
const localVarQueryParameter = {};
|
|
7590
7489
|
let _timeUnit;
|
|
7591
|
-
if ("timeUnit" in configuration)
|
|
7592
|
-
_timeUnit = configuration.timeUnit;
|
|
7490
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
7593
7491
|
return {
|
|
7594
7492
|
endpoint: "/papi/v1/listenKey",
|
|
7595
7493
|
method: "POST",
|