@binance/derivatives-trading-options 1.0.0 → 1.0.1

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 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 src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  BadRequestError: () => import_common12.BadRequestError,
24
24
  ConnectorClientError: () => import_common12.ConnectorClientError,
25
25
  DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL: () => import_common12.DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL,
@@ -36,7 +36,7 @@ __export(src_exports, {
36
36
  TooManyRequestsError: () => import_common12.TooManyRequestsError,
37
37
  UnauthorizedError: () => import_common12.UnauthorizedError
38
38
  });
39
- module.exports = __toCommonJS(src_exports);
39
+ module.exports = __toCommonJS(index_exports);
40
40
 
41
41
  // src/derivatives-trading-options.ts
42
42
  var import_os = require("os");
@@ -44,7 +44,7 @@ var import_common11 = require("@binance/common");
44
44
 
45
45
  // package.json
46
46
  var name = "@binance/derivatives-trading-options";
47
- var version = "1.0.0";
47
+ var version = "1.0.1";
48
48
 
49
49
  // src/rest-api/index.ts
50
50
  var rest_api_exports = {};
@@ -126,8 +126,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
126
126
  localVarQueryParameter["recvWindow"] = recvWindow;
127
127
  }
128
128
  let _timeUnit;
129
- if ("timeUnit" in configuration)
130
- _timeUnit = configuration.timeUnit;
129
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
131
130
  return {
132
131
  endpoint: "/eapi/v1/bill",
133
132
  method: "GET",
@@ -164,8 +163,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
164
163
  localVarQueryParameter["recvWindow"] = recvWindow;
165
164
  }
166
165
  let _timeUnit;
167
- if ("timeUnit" in configuration)
168
- _timeUnit = configuration.timeUnit;
166
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
169
167
  return {
170
168
  endpoint: "/eapi/v1/income/asyn",
171
169
  method: "GET",
@@ -200,8 +198,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
200
198
  localVarQueryParameter["recvWindow"] = recvWindow;
201
199
  }
202
200
  let _timeUnit;
203
- if ("timeUnit" in configuration)
204
- _timeUnit = configuration.timeUnit;
201
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
205
202
  return {
206
203
  endpoint: "/eapi/v1/income/asyn/id",
207
204
  method: "GET",
@@ -225,8 +222,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
225
222
  localVarQueryParameter["recvWindow"] = recvWindow;
226
223
  }
227
224
  let _timeUnit;
228
- if ("timeUnit" in configuration)
229
- _timeUnit = configuration.timeUnit;
225
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
230
226
  return {
231
227
  endpoint: "/eapi/v1/account",
232
228
  method: "GET",
@@ -372,8 +368,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
372
368
  checkServerTime: async () => {
373
369
  const localVarQueryParameter = {};
374
370
  let _timeUnit;
375
- if ("timeUnit" in configuration)
376
- _timeUnit = configuration.timeUnit;
371
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
377
372
  return {
378
373
  endpoint: "/eapi/v1/time",
379
374
  method: "GET",
@@ -393,8 +388,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
393
388
  exchangeInformation: async () => {
394
389
  const localVarQueryParameter = {};
395
390
  let _timeUnit;
396
- if ("timeUnit" in configuration)
397
- _timeUnit = configuration.timeUnit;
391
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
398
392
  return {
399
393
  endpoint: "/eapi/v1/exchangeInfo",
400
394
  method: "GET",
@@ -432,8 +426,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
432
426
  localVarQueryParameter["limit"] = limit;
433
427
  }
434
428
  let _timeUnit;
435
- if ("timeUnit" in configuration)
436
- _timeUnit = configuration.timeUnit;
429
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
437
430
  return {
438
431
  endpoint: "/eapi/v1/exerciseHistory",
439
432
  method: "GET",
@@ -478,8 +471,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
478
471
  localVarQueryParameter["limit"] = limit;
479
472
  }
480
473
  let _timeUnit;
481
- if ("timeUnit" in configuration)
482
- _timeUnit = configuration.timeUnit;
474
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
483
475
  return {
484
476
  endpoint: "/eapi/v1/klines",
485
477
  method: "GET",
@@ -512,8 +504,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
512
504
  localVarQueryParameter["limit"] = limit;
513
505
  }
514
506
  let _timeUnit;
515
- if ("timeUnit" in configuration)
516
- _timeUnit = configuration.timeUnit;
507
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
517
508
  return {
518
509
  endpoint: "/eapi/v1/historicalTrades",
519
510
  method: "GET",
@@ -543,8 +534,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
543
534
  localVarQueryParameter["expiration"] = expiration;
544
535
  }
545
536
  let _timeUnit;
546
- if ("timeUnit" in configuration)
547
- _timeUnit = configuration.timeUnit;
537
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
548
538
  return {
549
539
  endpoint: "/eapi/v1/openInterest",
550
540
  method: "GET",
@@ -568,8 +558,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
568
558
  localVarQueryParameter["symbol"] = symbol;
569
559
  }
570
560
  let _timeUnit;
571
- if ("timeUnit" in configuration)
572
- _timeUnit = configuration.timeUnit;
561
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
573
562
  return {
574
563
  endpoint: "/eapi/v1/mark",
575
564
  method: "GET",
@@ -603,8 +592,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
603
592
  localVarQueryParameter["limit"] = limit;
604
593
  }
605
594
  let _timeUnit;
606
- if ("timeUnit" in configuration)
607
- _timeUnit = configuration.timeUnit;
595
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
608
596
  return {
609
597
  endpoint: "/eapi/v1/depth",
610
598
  method: "GET",
@@ -632,8 +620,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
632
620
  localVarQueryParameter["limit"] = limit;
633
621
  }
634
622
  let _timeUnit;
635
- if ("timeUnit" in configuration)
636
- _timeUnit = configuration.timeUnit;
623
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
637
624
  return {
638
625
  endpoint: "/eapi/v1/blockTrades",
639
626
  method: "GET",
@@ -662,8 +649,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
662
649
  localVarQueryParameter["limit"] = limit;
663
650
  }
664
651
  let _timeUnit;
665
- if ("timeUnit" in configuration)
666
- _timeUnit = configuration.timeUnit;
652
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
667
653
  return {
668
654
  endpoint: "/eapi/v1/trades",
669
655
  method: "GET",
@@ -688,8 +674,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
688
674
  localVarQueryParameter["underlying"] = underlying;
689
675
  }
690
676
  let _timeUnit;
691
- if ("timeUnit" in configuration)
692
- _timeUnit = configuration.timeUnit;
677
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
693
678
  return {
694
679
  endpoint: "/eapi/v1/index",
695
680
  method: "GET",
@@ -709,8 +694,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
709
694
  testConnectivity: async () => {
710
695
  const localVarQueryParameter = {};
711
696
  let _timeUnit;
712
- if ("timeUnit" in configuration)
713
- _timeUnit = configuration.timeUnit;
697
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
714
698
  return {
715
699
  endpoint: "/eapi/v1/ping",
716
700
  method: "GET",
@@ -734,8 +718,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
734
718
  localVarQueryParameter["symbol"] = symbol;
735
719
  }
736
720
  let _timeUnit;
737
- if ("timeUnit" in configuration)
738
- _timeUnit = configuration.timeUnit;
721
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
739
722
  return {
740
723
  endpoint: "/eapi/v1/ticker",
741
724
  method: "GET",
@@ -1120,8 +1103,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1120
1103
  localVarQueryParameter["recvWindow"] = recvWindow;
1121
1104
  }
1122
1105
  let _timeUnit;
1123
- if ("timeUnit" in configuration)
1124
- _timeUnit = configuration.timeUnit;
1106
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1125
1107
  return {
1126
1108
  endpoint: "/eapi/v1/block/order/execute",
1127
1109
  method: "POST",
@@ -1157,8 +1139,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1157
1139
  localVarQueryParameter["recvWindow"] = recvWindow;
1158
1140
  }
1159
1141
  let _timeUnit;
1160
- if ("timeUnit" in configuration)
1161
- _timeUnit = configuration.timeUnit;
1142
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1162
1143
  return {
1163
1144
  endpoint: "/eapi/v1/block/user-trades",
1164
1145
  method: "GET",
@@ -1191,8 +1172,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1191
1172
  localVarQueryParameter["recvWindow"] = recvWindow;
1192
1173
  }
1193
1174
  let _timeUnit;
1194
- if ("timeUnit" in configuration)
1195
- _timeUnit = configuration.timeUnit;
1175
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1196
1176
  return {
1197
1177
  endpoint: "/eapi/v1/block/order/create",
1198
1178
  method: "DELETE",
@@ -1225,8 +1205,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1225
1205
  localVarQueryParameter["recvWindow"] = recvWindow;
1226
1206
  }
1227
1207
  let _timeUnit;
1228
- if ("timeUnit" in configuration)
1229
- _timeUnit = configuration.timeUnit;
1208
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1230
1209
  return {
1231
1210
  endpoint: "/eapi/v1/block/order/create",
1232
1211
  method: "PUT",
@@ -1280,8 +1259,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1280
1259
  localVarQueryParameter["recvWindow"] = recvWindow;
1281
1260
  }
1282
1261
  let _timeUnit;
1283
- if ("timeUnit" in configuration)
1284
- _timeUnit = configuration.timeUnit;
1262
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1285
1263
  return {
1286
1264
  endpoint: "/eapi/v1/block/order/create",
1287
1265
  method: "POST",
@@ -1314,8 +1292,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1314
1292
  localVarQueryParameter["recvWindow"] = recvWindow;
1315
1293
  }
1316
1294
  let _timeUnit;
1317
- if ("timeUnit" in configuration)
1318
- _timeUnit = configuration.timeUnit;
1295
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1319
1296
  return {
1320
1297
  endpoint: "/eapi/v1/block/order/execute",
1321
1298
  method: "GET",
@@ -1355,8 +1332,7 @@ var MarketMakerBlockTradeApiAxiosParamCreator = function(configuration) {
1355
1332
  localVarQueryParameter["recvWindow"] = recvWindow;
1356
1333
  }
1357
1334
  let _timeUnit;
1358
- if ("timeUnit" in configuration)
1359
- _timeUnit = configuration.timeUnit;
1335
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1360
1336
  return {
1361
1337
  endpoint: "/eapi/v1/block/order/orders",
1362
1338
  method: "GET",
@@ -1596,8 +1572,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1596
1572
  localVarQueryParameter["recvWindow"] = recvWindow;
1597
1573
  }
1598
1574
  let _timeUnit;
1599
- if ("timeUnit" in configuration)
1600
- _timeUnit = configuration.timeUnit;
1575
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1601
1576
  return {
1602
1577
  endpoint: "/eapi/v1/countdownCancelAllHeartBeat",
1603
1578
  method: "POST",
@@ -1627,8 +1602,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1627
1602
  localVarQueryParameter["recvWindow"] = recvWindow;
1628
1603
  }
1629
1604
  let _timeUnit;
1630
- if ("timeUnit" in configuration)
1631
- _timeUnit = configuration.timeUnit;
1605
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1632
1606
  return {
1633
1607
  endpoint: "/eapi/v1/countdownCancelAll",
1634
1608
  method: "GET",
@@ -1656,8 +1630,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1656
1630
  localVarQueryParameter["recvWindow"] = recvWindow;
1657
1631
  }
1658
1632
  let _timeUnit;
1659
- if ("timeUnit" in configuration)
1660
- _timeUnit = configuration.timeUnit;
1633
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1661
1634
  return {
1662
1635
  endpoint: "/eapi/v1/mmp",
1663
1636
  method: "GET",
@@ -1681,8 +1654,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1681
1654
  localVarQueryParameter["recvWindow"] = recvWindow;
1682
1655
  }
1683
1656
  let _timeUnit;
1684
- if ("timeUnit" in configuration)
1685
- _timeUnit = configuration.timeUnit;
1657
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1686
1658
  return {
1687
1659
  endpoint: "/eapi/v1/marginAccount",
1688
1660
  method: "GET",
@@ -1710,8 +1682,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1710
1682
  localVarQueryParameter["recvWindow"] = recvWindow;
1711
1683
  }
1712
1684
  let _timeUnit;
1713
- if ("timeUnit" in configuration)
1714
- _timeUnit = configuration.timeUnit;
1685
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1715
1686
  return {
1716
1687
  endpoint: "/eapi/v1/mmpReset",
1717
1688
  method: "POST",
@@ -1751,8 +1722,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1751
1722
  localVarQueryParameter["recvWindow"] = recvWindow;
1752
1723
  }
1753
1724
  let _timeUnit;
1754
- if ("timeUnit" in configuration)
1755
- _timeUnit = configuration.timeUnit;
1725
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1756
1726
  return {
1757
1727
  endpoint: "/eapi/v1/countdownCancelAll",
1758
1728
  method: "POST",
@@ -1797,8 +1767,7 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1797
1767
  localVarQueryParameter["recvWindow"] = recvWindow;
1798
1768
  }
1799
1769
  let _timeUnit;
1800
- if ("timeUnit" in configuration)
1801
- _timeUnit = configuration.timeUnit;
1770
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1802
1771
  return {
1803
1772
  endpoint: "/eapi/v1/mmpSet",
1804
1773
  method: "POST",
@@ -2052,8 +2021,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2052
2021
  localVarQueryParameter["recvWindow"] = recvWindow;
2053
2022
  }
2054
2023
  let _timeUnit;
2055
- if ("timeUnit" in configuration)
2056
- _timeUnit = configuration.timeUnit;
2024
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2057
2025
  return {
2058
2026
  endpoint: "/eapi/v1/userTrades",
2059
2027
  method: "GET",
@@ -2082,8 +2050,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2082
2050
  localVarQueryParameter["recvWindow"] = recvWindow;
2083
2051
  }
2084
2052
  let _timeUnit;
2085
- if ("timeUnit" in configuration)
2086
- _timeUnit = configuration.timeUnit;
2053
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2087
2054
  return {
2088
2055
  endpoint: "/eapi/v1/allOpenOrdersByUnderlying",
2089
2056
  method: "DELETE",
@@ -2112,8 +2079,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2112
2079
  localVarQueryParameter["recvWindow"] = recvWindow;
2113
2080
  }
2114
2081
  let _timeUnit;
2115
- if ("timeUnit" in configuration)
2116
- _timeUnit = configuration.timeUnit;
2082
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2117
2083
  return {
2118
2084
  endpoint: "/eapi/v1/allOpenOrders",
2119
2085
  method: "DELETE",
@@ -2152,8 +2118,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2152
2118
  localVarQueryParameter["recvWindow"] = recvWindow;
2153
2119
  }
2154
2120
  let _timeUnit;
2155
- if ("timeUnit" in configuration)
2156
- _timeUnit = configuration.timeUnit;
2121
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2157
2122
  return {
2158
2123
  endpoint: "/eapi/v1/batchOrders",
2159
2124
  method: "DELETE",
@@ -2192,8 +2157,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2192
2157
  localVarQueryParameter["recvWindow"] = recvWindow;
2193
2158
  }
2194
2159
  let _timeUnit;
2195
- if ("timeUnit" in configuration)
2196
- _timeUnit = configuration.timeUnit;
2160
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2197
2161
  return {
2198
2162
  endpoint: "/eapi/v1/order",
2199
2163
  method: "DELETE",
@@ -2265,8 +2229,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2265
2229
  localVarQueryParameter["recvWindow"] = recvWindow;
2266
2230
  }
2267
2231
  let _timeUnit;
2268
- if ("timeUnit" in configuration)
2269
- _timeUnit = configuration.timeUnit;
2232
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2270
2233
  return {
2271
2234
  endpoint: "/eapi/v1/order",
2272
2235
  method: "POST",
@@ -2294,8 +2257,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2294
2257
  localVarQueryParameter["recvWindow"] = recvWindow;
2295
2258
  }
2296
2259
  let _timeUnit;
2297
- if ("timeUnit" in configuration)
2298
- _timeUnit = configuration.timeUnit;
2260
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2299
2261
  return {
2300
2262
  endpoint: "/eapi/v1/position",
2301
2263
  method: "GET",
@@ -2327,8 +2289,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2327
2289
  localVarQueryParameter["recvWindow"] = recvWindow;
2328
2290
  }
2329
2291
  let _timeUnit;
2330
- if ("timeUnit" in configuration)
2331
- _timeUnit = configuration.timeUnit;
2292
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2332
2293
  return {
2333
2294
  endpoint: "/eapi/v1/batchOrders",
2334
2295
  method: "POST",
@@ -2372,8 +2333,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2372
2333
  localVarQueryParameter["recvWindow"] = recvWindow;
2373
2334
  }
2374
2335
  let _timeUnit;
2375
- if ("timeUnit" in configuration)
2376
- _timeUnit = configuration.timeUnit;
2336
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2377
2337
  return {
2378
2338
  endpoint: "/eapi/v1/openOrders",
2379
2339
  method: "GET",
@@ -2418,8 +2378,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2418
2378
  localVarQueryParameter["recvWindow"] = recvWindow;
2419
2379
  }
2420
2380
  let _timeUnit;
2421
- if ("timeUnit" in configuration)
2422
- _timeUnit = configuration.timeUnit;
2381
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2423
2382
  return {
2424
2383
  endpoint: "/eapi/v1/historyOrders",
2425
2384
  method: "GET",
@@ -2464,8 +2423,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2464
2423
  localVarQueryParameter["recvWindow"] = recvWindow;
2465
2424
  }
2466
2425
  let _timeUnit;
2467
- if ("timeUnit" in configuration)
2468
- _timeUnit = configuration.timeUnit;
2426
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2469
2427
  return {
2470
2428
  endpoint: "/eapi/v1/order",
2471
2429
  method: "GET",
@@ -2505,8 +2463,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
2505
2463
  localVarQueryParameter["recvWindow"] = recvWindow;
2506
2464
  }
2507
2465
  let _timeUnit;
2508
- if ("timeUnit" in configuration)
2509
- _timeUnit = configuration.timeUnit;
2466
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2510
2467
  return {
2511
2468
  endpoint: "/eapi/v1/exerciseRecord",
2512
2469
  method: "GET",
@@ -2913,8 +2870,7 @@ var UserDataStreamsApiAxiosParamCreator = function(configuration) {
2913
2870
  closeUserDataStream: async () => {
2914
2871
  const localVarQueryParameter = {};
2915
2872
  let _timeUnit;
2916
- if ("timeUnit" in configuration)
2917
- _timeUnit = configuration.timeUnit;
2873
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2918
2874
  return {
2919
2875
  endpoint: "/eapi/v1/listenKey",
2920
2876
  method: "DELETE",
@@ -2934,8 +2890,7 @@ var UserDataStreamsApiAxiosParamCreator = function(configuration) {
2934
2890
  keepaliveUserDataStream: async () => {
2935
2891
  const localVarQueryParameter = {};
2936
2892
  let _timeUnit;
2937
- if ("timeUnit" in configuration)
2938
- _timeUnit = configuration.timeUnit;
2893
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2939
2894
  return {
2940
2895
  endpoint: "/eapi/v1/listenKey",
2941
2896
  method: "PUT",
@@ -2955,8 +2910,7 @@ var UserDataStreamsApiAxiosParamCreator = function(configuration) {
2955
2910
  startUserDataStream: async () => {
2956
2911
  const localVarQueryParameter = {};
2957
2912
  let _timeUnit;
2958
- if ("timeUnit" in configuration)
2959
- _timeUnit = configuration.timeUnit;
2913
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2960
2914
  return {
2961
2915
  endpoint: "/eapi/v1/listenKey",
2962
2916
  method: "POST",