@binance/derivatives-trading-options 11.0.0 → 13.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.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as __export } from "./chunk.mjs";
2
- import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL as DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL$1, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL as DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL$1, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStreamsBase, assertParamExists, buildUserAgent, createStreamHandler, replaceWebsocketStreamsPlaceholders, sendRequest } from "@binance/common";
2
+ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL as DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL$1, DERIVATIVES_TRADING_OPTIONS_REST_API_TESTNET_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL as DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL$1, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStreamsBase, assertParamExists, buildUserAgent, createStreamHandler, replaceWebsocketStreamsPlaceholders, sendRequest } from "@binance/common";
3
3
 
4
4
  //#region package.json
5
5
  var name = "@binance/derivatives-trading-options";
6
- var version = "11.0.0";
6
+ var version = "13.0.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/rest-api/types/place-multiple-orders-orders-parameter-inner.ts
@@ -15,7 +15,8 @@ const PlaceMultipleOrdersOrdersParameterInnerTypeEnum = { LIMIT: "LIMIT" };
15
15
  const PlaceMultipleOrdersOrdersParameterInnerTimeInForceEnum = {
16
16
  GTC: "GTC",
17
17
  IOC: "IOC",
18
- FOK: "FOK"
18
+ FOK: "FOK",
19
+ GTX: "GTX"
19
20
  };
20
21
  const PlaceMultipleOrdersOrdersParameterInnerNewOrderRespTypeEnum = {
21
22
  ACK: "ACK",
@@ -61,54 +62,6 @@ const AccountApiAxiosParamCreator = function(configuration) {
61
62
  timeUnit: _timeUnit
62
63
  };
63
64
  },
64
- getDownloadIdForOptionTransactionHistory: async (startTime, endTime, recvWindow) => {
65
- assertParamExists("getDownloadIdForOptionTransactionHistory", "startTime", startTime);
66
- assertParamExists("getDownloadIdForOptionTransactionHistory", "endTime", endTime);
67
- const localVarQueryParameter = {};
68
- const localVarBodyParameter = {};
69
- if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
70
- if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
71
- if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
72
- let _timeUnit;
73
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
74
- return {
75
- endpoint: "/eapi/v1/income/asyn",
76
- method: "GET",
77
- queryParams: localVarQueryParameter,
78
- bodyParams: localVarBodyParameter,
79
- timeUnit: _timeUnit
80
- };
81
- },
82
- getOptionTransactionHistoryDownloadLinkById: async (downloadId, recvWindow) => {
83
- assertParamExists("getOptionTransactionHistoryDownloadLinkById", "downloadId", downloadId);
84
- const localVarQueryParameter = {};
85
- const localVarBodyParameter = {};
86
- if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
87
- if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
88
- let _timeUnit;
89
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
90
- return {
91
- endpoint: "/eapi/v1/income/asyn/id",
92
- method: "GET",
93
- queryParams: localVarQueryParameter,
94
- bodyParams: localVarBodyParameter,
95
- timeUnit: _timeUnit
96
- };
97
- },
98
- optionAccountInformation: async (recvWindow) => {
99
- const localVarQueryParameter = {};
100
- const localVarBodyParameter = {};
101
- if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
102
- let _timeUnit;
103
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
104
- return {
105
- endpoint: "/eapi/v1/account",
106
- method: "GET",
107
- queryParams: localVarQueryParameter,
108
- bodyParams: localVarBodyParameter,
109
- timeUnit: _timeUnit
110
- };
111
- },
112
65
  optionMarginAccountInformation: async (recvWindow) => {
113
66
  const localVarQueryParameter = {};
114
67
  const localVarBodyParameter = {};
@@ -144,66 +97,13 @@ var AccountApi = class {
144
97
  * @returns {Promise<RestApiResponse<AccountFundingFlowResponse>>}
145
98
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
146
99
  * @memberof AccountApi
147
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow Binance API Documentation}
100
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Account-Funding-Flow Binance API Documentation}
148
101
  */
149
102
  async accountFundingFlow(requestParameters) {
150
103
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountFundingFlow(requestParameters?.currency, requestParameters?.recordId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
151
104
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
152
105
  }
153
106
  /**
154
- * Get download id for option transaction history
155
- *
156
- * Request Limitation is 5 times per month, shared by > front end download page and rest api
157
- * The time between `startTime` and `endTime` can not be longer than 1 year
158
- *
159
- * Weight: 5
160
- *
161
- * @summary Get Download Id For Option Transaction History (USER_DATA)
162
- * @param {GetDownloadIdForOptionTransactionHistoryRequest} requestParameters Request parameters.
163
- * @returns {Promise<RestApiResponse<GetDownloadIdForOptionTransactionHistoryResponse>>}
164
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
165
- * @memberof AccountApi
166
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Get-Download-Id-For-Option-Transaction-History Binance API Documentation}
167
- */
168
- async getDownloadIdForOptionTransactionHistory(requestParameters) {
169
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForOptionTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
170
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
171
- }
172
- /**
173
- * Get option transaction history download Link by Id
174
- *
175
- * Download link expiration: 24h
176
- *
177
- * Weight: 5
178
- *
179
- * @summary Get Option Transaction History Download Link by Id (USER_DATA)
180
- * @param {GetOptionTransactionHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
181
- * @returns {Promise<RestApiResponse<GetOptionTransactionHistoryDownloadLinkByIdResponse>>}
182
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
183
- * @memberof AccountApi
184
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Get-Option-Transaction-History-Download-Link-by-Id Binance API Documentation}
185
- */
186
- async getOptionTransactionHistoryDownloadLinkById(requestParameters) {
187
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOptionTransactionHistoryDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
188
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
189
- }
190
- /**
191
- * Get current account information.
192
- *
193
- * Weight: 3
194
- *
195
- * @summary Option Account Information(TRADE)
196
- * @param {OptionAccountInformationRequest} requestParameters Request parameters.
197
- * @returns {Promise<RestApiResponse<OptionAccountInformationResponse>>}
198
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
199
- * @memberof AccountApi
200
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information Binance API Documentation}
201
- */
202
- async optionAccountInformation(requestParameters = {}) {
203
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionAccountInformation(requestParameters?.recvWindow);
204
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
205
- }
206
- /**
207
107
  * Get current account information.
208
108
  *
209
109
  * Weight: 3
@@ -213,7 +113,7 @@ var AccountApi = class {
213
113
  * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
214
114
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
215
115
  * @memberof AccountApi
216
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
116
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Option-Margin-Account-Information Binance API Documentation}
217
117
  */
218
118
  async optionMarginAccountInformation(requestParameters = {}) {
219
119
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(requestParameters?.recvWindow);
@@ -283,8 +183,8 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
283
183
  timeUnit: _timeUnit
284
184
  };
285
185
  },
286
- indexPriceTicker: async (underlying) => {
287
- assertParamExists("indexPriceTicker", "underlying", underlying);
186
+ indexPrice: async (underlying) => {
187
+ assertParamExists("indexPrice", "underlying", underlying);
288
188
  const localVarQueryParameter = {};
289
189
  const localVarBodyParameter = {};
290
190
  if (underlying !== void 0 && underlying !== null) localVarQueryParameter["underlying"] = underlying;
@@ -318,23 +218,6 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
318
218
  timeUnit: _timeUnit
319
219
  };
320
220
  },
321
- oldTradesLookup: async (symbol, fromId, limit) => {
322
- assertParamExists("oldTradesLookup", "symbol", symbol);
323
- const localVarQueryParameter = {};
324
- const localVarBodyParameter = {};
325
- if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
326
- if (fromId !== void 0 && fromId !== null) localVarQueryParameter["fromId"] = fromId;
327
- if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
328
- let _timeUnit;
329
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
330
- return {
331
- endpoint: "/eapi/v1/historicalTrades",
332
- method: "GET",
333
- queryParams: localVarQueryParameter,
334
- bodyParams: localVarBodyParameter,
335
- timeUnit: _timeUnit
336
- };
337
- },
338
221
  openInterest: async (underlyingAsset, expiration) => {
339
222
  assertParamExists("openInterest", "underlyingAsset", underlyingAsset);
340
223
  assertParamExists("openInterest", "expiration", expiration);
@@ -460,7 +343,7 @@ var MarketDataApi = class {
460
343
  * @returns {Promise<RestApiResponse<CheckServerTimeResponse>>}
461
344
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
462
345
  * @memberof MarketDataApi
463
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Check-Server-Time Binance API Documentation}
346
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Check-Server-Time Binance API Documentation}
464
347
  */
465
348
  async checkServerTime() {
466
349
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkServerTime();
@@ -475,7 +358,7 @@ var MarketDataApi = class {
475
358
  * @returns {Promise<RestApiResponse<ExchangeInformationResponse>>}
476
359
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
477
360
  * @memberof MarketDataApi
478
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information Binance API Documentation}
361
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Exchange-Information Binance API Documentation}
479
362
  */
480
363
  async exchangeInformation() {
481
364
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.exchangeInformation();
@@ -493,7 +376,7 @@ var MarketDataApi = class {
493
376
  * @returns {Promise<RestApiResponse<HistoricalExerciseRecordsResponse>>}
494
377
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
495
378
  * @memberof MarketDataApi
496
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Historical-Exercise-Records Binance API Documentation}
379
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Historical-Exercise-Records Binance API Documentation}
497
380
  */
498
381
  async historicalExerciseRecords(requestParameters = {}) {
499
382
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.historicalExerciseRecords(requestParameters?.underlying, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
@@ -504,15 +387,15 @@ var MarketDataApi = class {
504
387
  *
505
388
  * Weight: 1
506
389
  *
507
- * @summary Index Price Ticker
508
- * @param {IndexPriceTickerRequest} requestParameters Request parameters.
509
- * @returns {Promise<RestApiResponse<IndexPriceTickerResponse>>}
390
+ * @summary Index Price
391
+ * @param {IndexPriceRequest} requestParameters Request parameters.
392
+ * @returns {Promise<RestApiResponse<IndexPriceResponse>>}
510
393
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
511
394
  * @memberof MarketDataApi
512
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Index-Price-Ticker Binance API Documentation}
395
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Symbol-Price-Ticker Binance API Documentation}
513
396
  */
514
- async indexPriceTicker(requestParameters) {
515
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPriceTicker(requestParameters?.underlying);
397
+ async indexPrice(requestParameters) {
398
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPrice(requestParameters?.underlying);
516
399
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
517
400
  }
518
401
  /**
@@ -528,29 +411,13 @@ var MarketDataApi = class {
528
411
  * @returns {Promise<RestApiResponse<KlineCandlestickDataResponse>>}
529
412
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
530
413
  * @memberof MarketDataApi
531
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data Binance API Documentation}
414
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Kline-Candlestick-Data Binance API Documentation}
532
415
  */
533
416
  async klineCandlestickData(requestParameters) {
534
417
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.klineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
535
418
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
536
419
  }
537
420
  /**
538
- * Get older market historical trades.
539
- *
540
- * Weight: 20
541
- *
542
- * @summary Old Trades Lookup (MARKET_DATA)
543
- * @param {OldTradesLookupRequest} requestParameters Request parameters.
544
- * @returns {Promise<RestApiResponse<OldTradesLookupResponse>>}
545
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
546
- * @memberof MarketDataApi
547
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup Binance API Documentation}
548
- */
549
- async oldTradesLookup(requestParameters) {
550
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.oldTradesLookup(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.limit);
551
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
552
- }
553
- /**
554
421
  * Get open interest for specific underlying asset on specific expiration date.
555
422
  *
556
423
  * Weight: 0
@@ -560,7 +427,7 @@ var MarketDataApi = class {
560
427
  * @returns {Promise<RestApiResponse<OpenInterestResponse>>}
561
428
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
562
429
  * @memberof MarketDataApi
563
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest Binance API Documentation}
430
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Open-Interest Binance API Documentation}
564
431
  */
565
432
  async openInterest(requestParameters) {
566
433
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterest(requestParameters?.underlyingAsset, requestParameters?.expiration);
@@ -576,7 +443,7 @@ var MarketDataApi = class {
576
443
  * @returns {Promise<RestApiResponse<OptionMarkPriceResponse>>}
577
444
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
578
445
  * @memberof MarketDataApi
579
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price Binance API Documentation}
446
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Option-Mark-Price Binance API Documentation}
580
447
  */
581
448
  async optionMarkPrice(requestParameters = {}) {
582
449
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarkPrice(requestParameters?.symbol);
@@ -587,7 +454,7 @@ var MarketDataApi = class {
587
454
  *
588
455
  * Weight: limit | weight
589
456
  * ------------ | ------------
590
- * 5, 10, 20, 50 | 2
457
+ * 5, 10, 20, 50 | 1
591
458
  * 100 | 5
592
459
  * 500 | 10
593
460
  * 1000 | 20
@@ -597,7 +464,7 @@ var MarketDataApi = class {
597
464
  * @returns {Promise<RestApiResponse<OrderBookResponse>>}
598
465
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
599
466
  * @memberof MarketDataApi
600
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Order-Book Binance API Documentation}
467
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Order-Book Binance API Documentation}
601
468
  */
602
469
  async orderBook(requestParameters) {
603
470
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderBook(requestParameters?.symbol, requestParameters?.limit);
@@ -613,7 +480,7 @@ var MarketDataApi = class {
613
480
  * @returns {Promise<RestApiResponse<RecentBlockTradesListResponse>>}
614
481
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
615
482
  * @memberof MarketDataApi
616
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Recent-Block-Trade-List Binance API Documentation}
483
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Block-Trade-List Binance API Documentation}
617
484
  */
618
485
  async recentBlockTradesList(requestParameters = {}) {
619
486
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentBlockTradesList(requestParameters?.symbol, requestParameters?.limit);
@@ -629,7 +496,7 @@ var MarketDataApi = class {
629
496
  * @returns {Promise<RestApiResponse<RecentTradesListResponse>>}
630
497
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
631
498
  * @memberof MarketDataApi
632
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List Binance API Documentation}
499
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Trades-List Binance API Documentation}
633
500
  */
634
501
  async recentTradesList(requestParameters) {
635
502
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentTradesList(requestParameters?.symbol, requestParameters?.limit);
@@ -644,7 +511,7 @@ var MarketDataApi = class {
644
511
  * @returns {Promise<RestApiResponse<void>>}
645
512
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
646
513
  * @memberof MarketDataApi
647
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Test-Connectivity Binance API Documentation}
514
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Test-Connectivity Binance API Documentation}
648
515
  */
649
516
  async testConnectivity() {
650
517
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
@@ -660,7 +527,7 @@ var MarketDataApi = class {
660
527
  * @returns {Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>}
661
528
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
662
529
  * @memberof MarketDataApi
663
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
530
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
664
531
  */
665
532
  async ticker24hrPriceChangeStatistics(requestParameters = {}) {
666
533
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.ticker24hrPriceChangeStatistics(requestParameters?.symbol);
@@ -825,7 +692,7 @@ var MarketMakerBlockTradeApi = class {
825
692
  * @returns {Promise<RestApiResponse<AcceptBlockTradeOrderResponse>>}
826
693
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
827
694
  * @memberof MarketMakerBlockTradeApi
828
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Accept-Block-Trade-Order Binance API Documentation}
695
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Accept-Block-Trade-Order Binance API Documentation}
829
696
  */
830
697
  async acceptBlockTradeOrder(requestParameters) {
831
698
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -841,7 +708,7 @@ var MarketMakerBlockTradeApi = class {
841
708
  * @returns {Promise<RestApiResponse<AccountBlockTradeListResponse>>}
842
709
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
843
710
  * @memberof MarketMakerBlockTradeApi
844
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Account-Block-Trade-List Binance API Documentation}
711
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Account-Block-Trade-List Binance API Documentation}
845
712
  */
846
713
  async accountBlockTradeList(requestParameters = {}) {
847
714
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBlockTradeList(requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
@@ -857,7 +724,7 @@ var MarketMakerBlockTradeApi = class {
857
724
  * @returns {Promise<RestApiResponse<void>>}
858
725
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
859
726
  * @memberof MarketMakerBlockTradeApi
860
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Cancel-Block-Trade-Order Binance API Documentation}
727
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Cancel-Block-Trade-Order Binance API Documentation}
861
728
  */
862
729
  async cancelBlockTradeOrder(requestParameters) {
863
730
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -873,7 +740,7 @@ var MarketMakerBlockTradeApi = class {
873
740
  * @returns {Promise<RestApiResponse<ExtendBlockTradeOrderResponse>>}
874
741
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
875
742
  * @memberof MarketMakerBlockTradeApi
876
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Extend-Block-Trade-Order Binance API Documentation}
743
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Extend-Block-Trade-Order Binance API Documentation}
877
744
  */
878
745
  async extendBlockTradeOrder(requestParameters) {
879
746
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.extendBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -889,7 +756,7 @@ var MarketMakerBlockTradeApi = class {
889
756
  * @returns {Promise<RestApiResponse<NewBlockTradeOrderResponse>>}
890
757
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
891
758
  * @memberof MarketMakerBlockTradeApi
892
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/New-Block-Trade-Order Binance API Documentation}
759
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/New-Block-Trade-Order Binance API Documentation}
893
760
  */
894
761
  async newBlockTradeOrder(requestParameters) {
895
762
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.newBlockTradeOrder(requestParameters?.liquidity, requestParameters?.legs, requestParameters?.recvWindow);
@@ -905,7 +772,7 @@ var MarketMakerBlockTradeApi = class {
905
772
  * @returns {Promise<RestApiResponse<QueryBlockTradeDetailsResponse>>}
906
773
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
907
774
  * @memberof MarketMakerBlockTradeApi
908
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Query-Block-Trade-Detail Binance API Documentation}
775
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Detail Binance API Documentation}
909
776
  */
910
777
  async queryBlockTradeDetails(requestParameters) {
911
778
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeDetails(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -921,7 +788,7 @@ var MarketMakerBlockTradeApi = class {
921
788
  * @returns {Promise<RestApiResponse<QueryBlockTradeOrderResponse>>}
922
789
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
923
790
  * @memberof MarketMakerBlockTradeApi
924
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Query-Block-Trade-Order Binance API Documentation}
791
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Order Binance API Documentation}
925
792
  */
926
793
  async queryBlockTradeOrder(requestParameters = {}) {
927
794
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1069,7 +936,7 @@ var MarketMakerEndpointsApi = class {
1069
936
  * @returns {Promise<RestApiResponse<AutoCancelAllOpenOrdersResponse>>}
1070
937
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1071
938
  * @memberof MarketMakerEndpointsApi
1072
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Auto-Cancel-All-Open-Orders-Heartbeat Binance API Documentation}
939
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Auto-Cancel-All-Open-Orders-Heartbeat Binance API Documentation}
1073
940
  */
1074
941
  async autoCancelAllOpenOrders(requestParameters) {
1075
942
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.autoCancelAllOpenOrders(requestParameters?.underlyings, requestParameters?.recvWindow);
@@ -1087,7 +954,7 @@ var MarketMakerEndpointsApi = class {
1087
954
  * @returns {Promise<RestApiResponse<GetAutoCancelAllOpenOrdersResponse>>}
1088
955
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1089
956
  * @memberof MarketMakerEndpointsApi
1090
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
957
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
1091
958
  */
1092
959
  async getAutoCancelAllOpenOrders(requestParameters = {}) {
1093
960
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1103,7 +970,7 @@ var MarketMakerEndpointsApi = class {
1103
970
  * @returns {Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>}
1104
971
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1105
972
  * @memberof MarketMakerEndpointsApi
1106
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
973
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
1107
974
  */
1108
975
  async getMarketMakerProtectionConfig(requestParameters = {}) {
1109
976
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1119,7 +986,7 @@ var MarketMakerEndpointsApi = class {
1119
986
  * @returns {Promise<RestApiResponse<ResetMarketMakerProtectionConfigResponse>>}
1120
987
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1121
988
  * @memberof MarketMakerEndpointsApi
1122
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Reset-Market-Maker-Protection-Config Binance API Documentation}
989
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Reset-Market-Maker-Protection-Config Binance API Documentation}
1123
990
  */
1124
991
  async resetMarketMakerProtectionConfig(requestParameters = {}) {
1125
992
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.resetMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1141,7 +1008,7 @@ var MarketMakerEndpointsApi = class {
1141
1008
  * @returns {Promise<RestApiResponse<SetAutoCancelAllOpenOrdersResponse>>}
1142
1009
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1143
1010
  * @memberof MarketMakerEndpointsApi
1144
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Set-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
1011
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
1145
1012
  */
1146
1013
  async setAutoCancelAllOpenOrders(requestParameters) {
1147
1014
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.countdownTime, requestParameters?.recvWindow);
@@ -1158,7 +1025,7 @@ var MarketMakerEndpointsApi = class {
1158
1025
  * @returns {Promise<RestApiResponse<SetMarketMakerProtectionConfigResponse>>}
1159
1026
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1160
1027
  * @memberof MarketMakerEndpointsApi
1161
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Set-Market-Maker-Protection-Config Binance API Documentation}
1028
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Market-Maker-Protection-Config Binance API Documentation}
1162
1029
  */
1163
1030
  async setMarketMakerProtectionConfig(requestParameters = {}) {
1164
1031
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.windowTimeInMilliseconds, requestParameters?.frozenTimeInMilliseconds, requestParameters?.qtyLimit, requestParameters?.deltaLimit, requestParameters?.recvWindow);
@@ -1388,6 +1255,20 @@ const TradeApiAxiosParamCreator = function(configuration) {
1388
1255
  timeUnit: _timeUnit
1389
1256
  };
1390
1257
  },
1258
+ userCommission: async (recvWindow) => {
1259
+ const localVarQueryParameter = {};
1260
+ const localVarBodyParameter = {};
1261
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1262
+ let _timeUnit;
1263
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1264
+ return {
1265
+ endpoint: "/eapi/v1/commission",
1266
+ method: "GET",
1267
+ queryParams: localVarQueryParameter,
1268
+ bodyParams: localVarBodyParameter,
1269
+ timeUnit: _timeUnit
1270
+ };
1271
+ },
1391
1272
  userExerciseRecord: async (symbol, startTime, endTime, limit, recvWindow) => {
1392
1273
  const localVarQueryParameter = {};
1393
1274
  const localVarBodyParameter = {};
@@ -1427,7 +1308,7 @@ var TradeApi = class {
1427
1308
  * @returns {Promise<RestApiResponse<AccountTradeListResponse>>}
1428
1309
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1429
1310
  * @memberof TradeApi
1430
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List Binance API Documentation}
1311
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Account-Trade-List Binance API Documentation}
1431
1312
  */
1432
1313
  async accountTradeList(requestParameters = {}) {
1433
1314
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountTradeList(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -1443,7 +1324,7 @@ var TradeApi = class {
1443
1324
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersByUnderlyingResponse>>}
1444
1325
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1445
1326
  * @memberof TradeApi
1446
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-All-Option-Orders-By-Underlying Binance API Documentation}
1327
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-All-Option-Orders-By-Underlying Binance API Documentation}
1447
1328
  */
1448
1329
  async cancelAllOptionOrdersByUnderlying(requestParameters) {
1449
1330
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersByUnderlying(requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1459,7 +1340,7 @@ var TradeApi = class {
1459
1340
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersOnSpecificSymbolResponse>>}
1460
1341
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1461
1342
  * @memberof TradeApi
1462
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol Binance API Documentation}
1343
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-all-Option-orders-on-specific-symbol Binance API Documentation}
1463
1344
  */
1464
1345
  async cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
1465
1346
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersOnSpecificSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
@@ -1469,7 +1350,6 @@ var TradeApi = class {
1469
1350
  * Cancel multiple orders.
1470
1351
  *
1471
1352
  * At least one instance of `orderId` and `clientOrderId` must be sent.
1472
- * Max 10 orders can be deleted in one request
1473
1353
  *
1474
1354
  * Weight: 1
1475
1355
  *
@@ -1478,7 +1358,7 @@ var TradeApi = class {
1478
1358
  * @returns {Promise<RestApiResponse<CancelMultipleOptionOrdersResponse>>}
1479
1359
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1480
1360
  * @memberof TradeApi
1481
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-Multiple-Option-Orders Binance API Documentation}
1361
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Multiple-Option-Orders Binance API Documentation}
1482
1362
  */
1483
1363
  async cancelMultipleOptionOrders(requestParameters) {
1484
1364
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMultipleOptionOrders(requestParameters?.symbol, requestParameters?.orderIds, requestParameters?.clientOrderIds, requestParameters?.recvWindow);
@@ -1496,7 +1376,7 @@ var TradeApi = class {
1496
1376
  * @returns {Promise<RestApiResponse<CancelOptionOrderResponse>>}
1497
1377
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1498
1378
  * @memberof TradeApi
1499
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order Binance API Documentation}
1379
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Option-Order Binance API Documentation}
1500
1380
  */
1501
1381
  async cancelOptionOrder(requestParameters) {
1502
1382
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelOptionOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
@@ -1512,7 +1392,7 @@ var TradeApi = class {
1512
1392
  * @returns {Promise<RestApiResponse<NewOrderResponse>>}
1513
1393
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1514
1394
  * @memberof TradeApi
1515
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/New-Order Binance API Documentation}
1395
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/New-Order Binance API Documentation}
1516
1396
  */
1517
1397
  async newOrder(requestParameters) {
1518
1398
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.newOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.price, requestParameters?.timeInForce, requestParameters?.reduceOnly, requestParameters?.postOnly, requestParameters?.newOrderRespType, requestParameters?.clientOrderId, requestParameters?.isMmp, requestParameters?.recvWindow);
@@ -1528,7 +1408,7 @@ var TradeApi = class {
1528
1408
  * @returns {Promise<RestApiResponse<OptionPositionInformationResponse>>}
1529
1409
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1530
1410
  * @memberof TradeApi
1531
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information Binance API Documentation}
1411
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Option-Position-Information Binance API Documentation}
1532
1412
  */
1533
1413
  async optionPositionInformation(requestParameters = {}) {
1534
1414
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
@@ -1547,7 +1427,7 @@ var TradeApi = class {
1547
1427
  * @returns {Promise<RestApiResponse<PlaceMultipleOrdersResponse>>}
1548
1428
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1549
1429
  * @memberof TradeApi
1550
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders Binance API Documentation}
1430
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Place-Multiple-Orders Binance API Documentation}
1551
1431
  */
1552
1432
  async placeMultipleOrders(requestParameters) {
1553
1433
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeMultipleOrders(requestParameters?.orders, requestParameters?.recvWindow);
@@ -1563,7 +1443,7 @@ var TradeApi = class {
1563
1443
  * @returns {Promise<RestApiResponse<QueryCurrentOpenOptionOrdersResponse>>}
1564
1444
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1565
1445
  * @memberof TradeApi
1566
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders Binance API Documentation}
1446
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Current-Open-Option-Orders Binance API Documentation}
1567
1447
  */
1568
1448
  async queryCurrentOpenOptionOrders(requestParameters = {}) {
1569
1449
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentOpenOptionOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
@@ -1579,7 +1459,7 @@ var TradeApi = class {
1579
1459
  * @returns {Promise<RestApiResponse<QueryOptionOrderHistoryResponse>>}
1580
1460
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1581
1461
  * @memberof TradeApi
1582
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History Binance API Documentation}
1462
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Option-Order-History Binance API Documentation}
1583
1463
  */
1584
1464
  async queryOptionOrderHistory(requestParameters) {
1585
1465
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOptionOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -1603,13 +1483,29 @@ var TradeApi = class {
1603
1483
  * @returns {Promise<RestApiResponse<QuerySingleOrderResponse>>}
1604
1484
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1605
1485
  * @memberof TradeApi
1606
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order Binance API Documentation}
1486
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Single-Order Binance API Documentation}
1607
1487
  */
1608
1488
  async querySingleOrder(requestParameters) {
1609
1489
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySingleOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
1610
1490
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1611
1491
  }
1612
1492
  /**
1493
+ * Get account commission.
1494
+ *
1495
+ * Weight: 5
1496
+ *
1497
+ * @summary User Commission (USER_DATA)
1498
+ * @param {UserCommissionRequest} requestParameters Request parameters.
1499
+ * @returns {Promise<RestApiResponse<UserCommissionResponse>>}
1500
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1501
+ * @memberof TradeApi
1502
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Commission Binance API Documentation}
1503
+ */
1504
+ async userCommission(requestParameters = {}) {
1505
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.userCommission(requestParameters?.recvWindow);
1506
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1507
+ }
1508
+ /**
1613
1509
  * Get account exercise records.
1614
1510
  *
1615
1511
  * Weight: 5
@@ -1619,7 +1515,7 @@ var TradeApi = class {
1619
1515
  * @returns {Promise<RestApiResponse<UserExerciseRecordResponse>>}
1620
1516
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1621
1517
  * @memberof TradeApi
1622
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/User-Exercise-Record Binance API Documentation}
1518
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Exercise-Record Binance API Documentation}
1623
1519
  */
1624
1520
  async userExerciseRecord(requestParameters = {}) {
1625
1521
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userExerciseRecord(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -1639,6 +1535,7 @@ let NewOrderTimeInForceEnum = /* @__PURE__ */ function(NewOrderTimeInForceEnum$1
1639
1535
  NewOrderTimeInForceEnum$1["GTC"] = "GTC";
1640
1536
  NewOrderTimeInForceEnum$1["IOC"] = "IOC";
1641
1537
  NewOrderTimeInForceEnum$1["FOK"] = "FOK";
1538
+ NewOrderTimeInForceEnum$1["GTX"] = "GTX";
1642
1539
  return NewOrderTimeInForceEnum$1;
1643
1540
  }({});
1644
1541
  let NewOrderNewOrderRespTypeEnum = /* @__PURE__ */ function(NewOrderNewOrderRespTypeEnum$1) {
@@ -1725,7 +1622,7 @@ var UserDataStreamsApi = class {
1725
1622
  * @returns {Promise<RestApiResponse<void>>}
1726
1623
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1727
1624
  * @memberof UserDataStreamsApi
1728
- * @see {@link https://developers.binance.com/docs/derivatives/option/user-data-streams/Close-User-Data-Stream Binance API Documentation}
1625
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Close-User-Data-Stream Binance API Documentation}
1729
1626
  */
1730
1627
  async closeUserDataStream() {
1731
1628
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
@@ -1740,7 +1637,7 @@ var UserDataStreamsApi = class {
1740
1637
  * @returns {Promise<RestApiResponse<void>>}
1741
1638
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1742
1639
  * @memberof UserDataStreamsApi
1743
- * @see {@link https://developers.binance.com/docs/derivatives/option/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
1640
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
1744
1641
  */
1745
1642
  async keepaliveUserDataStream() {
1746
1643
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
@@ -1755,7 +1652,7 @@ var UserDataStreamsApi = class {
1755
1652
  * @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
1756
1653
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1757
1654
  * @memberof UserDataStreamsApi
1758
- * @see {@link https://developers.binance.com/docs/derivatives/option/user-data-streams/Start-User-Data-Stream Binance API Documentation}
1655
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Start-User-Data-Stream Binance API Documentation}
1759
1656
  */
1760
1657
  async startUserDataStream() {
1761
1658
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
@@ -1821,62 +1718,12 @@ var RestAPI = class {
1821
1718
  *
1822
1719
  * @returns {Promise<RestApiResponse<AccountFundingFlowResponse>>}
1823
1720
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1824
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow Binance API Documentation}
1721
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Account-Funding-Flow Binance API Documentation}
1825
1722
  */
1826
1723
  accountFundingFlow(requestParameters) {
1827
1724
  return this.accountApi.accountFundingFlow(requestParameters);
1828
1725
  }
1829
1726
  /**
1830
- * Get download id for option transaction history
1831
- *
1832
- * Request Limitation is 5 times per month, shared by > front end download page and rest api
1833
- * The time between `startTime` and `endTime` can not be longer than 1 year
1834
- *
1835
- * Weight: 5
1836
- *
1837
- * @summary Get Download Id For Option Transaction History (USER_DATA)
1838
- * @param {GetDownloadIdForOptionTransactionHistoryRequest} requestParameters Request parameters.
1839
- *
1840
- * @returns {Promise<RestApiResponse<GetDownloadIdForOptionTransactionHistoryResponse>>}
1841
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1842
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Get-Download-Id-For-Option-Transaction-History Binance API Documentation}
1843
- */
1844
- getDownloadIdForOptionTransactionHistory(requestParameters) {
1845
- return this.accountApi.getDownloadIdForOptionTransactionHistory(requestParameters);
1846
- }
1847
- /**
1848
- * Get option transaction history download Link by Id
1849
- *
1850
- * Download link expiration: 24h
1851
- *
1852
- * Weight: 5
1853
- *
1854
- * @summary Get Option Transaction History Download Link by Id (USER_DATA)
1855
- * @param {GetOptionTransactionHistoryDownloadLinkByIdRequest} requestParameters Request parameters.
1856
- *
1857
- * @returns {Promise<RestApiResponse<GetOptionTransactionHistoryDownloadLinkByIdResponse>>}
1858
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1859
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Get-Option-Transaction-History-Download-Link-by-Id Binance API Documentation}
1860
- */
1861
- getOptionTransactionHistoryDownloadLinkById(requestParameters) {
1862
- return this.accountApi.getOptionTransactionHistoryDownloadLinkById(requestParameters);
1863
- }
1864
- /**
1865
- * Get current account information.
1866
- *
1867
- * Weight: 3
1868
- *
1869
- * @summary Option Account Information(TRADE)
1870
- * @param {OptionAccountInformationRequest} requestParameters Request parameters.
1871
- *
1872
- * @returns {Promise<RestApiResponse<OptionAccountInformationResponse>>}
1873
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1874
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information Binance API Documentation}
1875
- */
1876
- optionAccountInformation(requestParameters = {}) {
1877
- return this.accountApi.optionAccountInformation(requestParameters);
1878
- }
1879
- /**
1880
1727
  * Get current account information.
1881
1728
  *
1882
1729
  * Weight: 3
@@ -1886,7 +1733,7 @@ var RestAPI = class {
1886
1733
  *
1887
1734
  * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
1888
1735
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1889
- * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
1736
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Option-Margin-Account-Information Binance API Documentation}
1890
1737
  */
1891
1738
  optionMarginAccountInformation(requestParameters = {}) {
1892
1739
  return this.accountApi.optionMarginAccountInformation(requestParameters);
@@ -1900,7 +1747,7 @@ var RestAPI = class {
1900
1747
  *
1901
1748
  * @returns {Promise<RestApiResponse<CheckServerTimeResponse>>}
1902
1749
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1903
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Check-Server-Time Binance API Documentation}
1750
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Check-Server-Time Binance API Documentation}
1904
1751
  */
1905
1752
  checkServerTime() {
1906
1753
  return this.marketDataApi.checkServerTime();
@@ -1914,7 +1761,7 @@ var RestAPI = class {
1914
1761
  *
1915
1762
  * @returns {Promise<RestApiResponse<ExchangeInformationResponse>>}
1916
1763
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1917
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information Binance API Documentation}
1764
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Exchange-Information Binance API Documentation}
1918
1765
  */
1919
1766
  exchangeInformation() {
1920
1767
  return this.marketDataApi.exchangeInformation();
@@ -1931,7 +1778,7 @@ var RestAPI = class {
1931
1778
  *
1932
1779
  * @returns {Promise<RestApiResponse<HistoricalExerciseRecordsResponse>>}
1933
1780
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1934
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Historical-Exercise-Records Binance API Documentation}
1781
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Historical-Exercise-Records Binance API Documentation}
1935
1782
  */
1936
1783
  historicalExerciseRecords(requestParameters = {}) {
1937
1784
  return this.marketDataApi.historicalExerciseRecords(requestParameters);
@@ -1941,15 +1788,15 @@ var RestAPI = class {
1941
1788
  *
1942
1789
  * Weight: 1
1943
1790
  *
1944
- * @summary Index Price Ticker
1945
- * @param {IndexPriceTickerRequest} requestParameters Request parameters.
1791
+ * @summary Index Price
1792
+ * @param {IndexPriceRequest} requestParameters Request parameters.
1946
1793
  *
1947
- * @returns {Promise<RestApiResponse<IndexPriceTickerResponse>>}
1794
+ * @returns {Promise<RestApiResponse<IndexPriceResponse>>}
1948
1795
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1949
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Index-Price-Ticker Binance API Documentation}
1796
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Symbol-Price-Ticker Binance API Documentation}
1950
1797
  */
1951
- indexPriceTicker(requestParameters) {
1952
- return this.marketDataApi.indexPriceTicker(requestParameters);
1798
+ indexPrice(requestParameters) {
1799
+ return this.marketDataApi.indexPrice(requestParameters);
1953
1800
  }
1954
1801
  /**
1955
1802
  * Kline/candlestick bars for an option symbol.
@@ -1964,27 +1811,12 @@ var RestAPI = class {
1964
1811
  *
1965
1812
  * @returns {Promise<RestApiResponse<KlineCandlestickDataResponse>>}
1966
1813
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1967
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data Binance API Documentation}
1814
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Kline-Candlestick-Data Binance API Documentation}
1968
1815
  */
1969
1816
  klineCandlestickData(requestParameters) {
1970
1817
  return this.marketDataApi.klineCandlestickData(requestParameters);
1971
1818
  }
1972
1819
  /**
1973
- * Get older market historical trades.
1974
- *
1975
- * Weight: 20
1976
- *
1977
- * @summary Old Trades Lookup (MARKET_DATA)
1978
- * @param {OldTradesLookupRequest} requestParameters Request parameters.
1979
- *
1980
- * @returns {Promise<RestApiResponse<OldTradesLookupResponse>>}
1981
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1982
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup Binance API Documentation}
1983
- */
1984
- oldTradesLookup(requestParameters) {
1985
- return this.marketDataApi.oldTradesLookup(requestParameters);
1986
- }
1987
- /**
1988
1820
  * Get open interest for specific underlying asset on specific expiration date.
1989
1821
  *
1990
1822
  * Weight: 0
@@ -1994,7 +1826,7 @@ var RestAPI = class {
1994
1826
  *
1995
1827
  * @returns {Promise<RestApiResponse<OpenInterestResponse>>}
1996
1828
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1997
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest Binance API Documentation}
1829
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Open-Interest Binance API Documentation}
1998
1830
  */
1999
1831
  openInterest(requestParameters) {
2000
1832
  return this.marketDataApi.openInterest(requestParameters);
@@ -2009,7 +1841,7 @@ var RestAPI = class {
2009
1841
  *
2010
1842
  * @returns {Promise<RestApiResponse<OptionMarkPriceResponse>>}
2011
1843
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2012
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price Binance API Documentation}
1844
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Option-Mark-Price Binance API Documentation}
2013
1845
  */
2014
1846
  optionMarkPrice(requestParameters = {}) {
2015
1847
  return this.marketDataApi.optionMarkPrice(requestParameters);
@@ -2019,7 +1851,7 @@ var RestAPI = class {
2019
1851
  *
2020
1852
  * Weight: limit | weight
2021
1853
  * ------------ | ------------
2022
- * 5, 10, 20, 50 | 2
1854
+ * 5, 10, 20, 50 | 1
2023
1855
  * 100 | 5
2024
1856
  * 500 | 10
2025
1857
  * 1000 | 20
@@ -2029,7 +1861,7 @@ var RestAPI = class {
2029
1861
  *
2030
1862
  * @returns {Promise<RestApiResponse<OrderBookResponse>>}
2031
1863
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2032
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Order-Book Binance API Documentation}
1864
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Order-Book Binance API Documentation}
2033
1865
  */
2034
1866
  orderBook(requestParameters) {
2035
1867
  return this.marketDataApi.orderBook(requestParameters);
@@ -2044,7 +1876,7 @@ var RestAPI = class {
2044
1876
  *
2045
1877
  * @returns {Promise<RestApiResponse<RecentBlockTradesListResponse>>}
2046
1878
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2047
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Recent-Block-Trade-List Binance API Documentation}
1879
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Block-Trade-List Binance API Documentation}
2048
1880
  */
2049
1881
  recentBlockTradesList(requestParameters = {}) {
2050
1882
  return this.marketDataApi.recentBlockTradesList(requestParameters);
@@ -2059,7 +1891,7 @@ var RestAPI = class {
2059
1891
  *
2060
1892
  * @returns {Promise<RestApiResponse<RecentTradesListResponse>>}
2061
1893
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2062
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List Binance API Documentation}
1894
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Trades-List Binance API Documentation}
2063
1895
  */
2064
1896
  recentTradesList(requestParameters) {
2065
1897
  return this.marketDataApi.recentTradesList(requestParameters);
@@ -2073,7 +1905,7 @@ var RestAPI = class {
2073
1905
  *
2074
1906
  * @returns {Promise<RestApiResponse<void>>}
2075
1907
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2076
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/Test-Connectivity Binance API Documentation}
1908
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Test-Connectivity Binance API Documentation}
2077
1909
  */
2078
1910
  testConnectivity() {
2079
1911
  return this.marketDataApi.testConnectivity();
@@ -2088,7 +1920,7 @@ var RestAPI = class {
2088
1920
  *
2089
1921
  * @returns {Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>}
2090
1922
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2091
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
1923
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
2092
1924
  */
2093
1925
  ticker24hrPriceChangeStatistics(requestParameters = {}) {
2094
1926
  return this.marketDataApi.ticker24hrPriceChangeStatistics(requestParameters);
@@ -2103,7 +1935,7 @@ var RestAPI = class {
2103
1935
  *
2104
1936
  * @returns {Promise<RestApiResponse<AcceptBlockTradeOrderResponse>>}
2105
1937
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2106
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Accept-Block-Trade-Order Binance API Documentation}
1938
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Accept-Block-Trade-Order Binance API Documentation}
2107
1939
  */
2108
1940
  acceptBlockTradeOrder(requestParameters) {
2109
1941
  return this.marketMakerBlockTradeApi.acceptBlockTradeOrder(requestParameters);
@@ -2118,7 +1950,7 @@ var RestAPI = class {
2118
1950
  *
2119
1951
  * @returns {Promise<RestApiResponse<AccountBlockTradeListResponse>>}
2120
1952
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2121
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Account-Block-Trade-List Binance API Documentation}
1953
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Account-Block-Trade-List Binance API Documentation}
2122
1954
  */
2123
1955
  accountBlockTradeList(requestParameters = {}) {
2124
1956
  return this.marketMakerBlockTradeApi.accountBlockTradeList(requestParameters);
@@ -2133,7 +1965,7 @@ var RestAPI = class {
2133
1965
  *
2134
1966
  * @returns {Promise<RestApiResponse<void>>}
2135
1967
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2136
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Cancel-Block-Trade-Order Binance API Documentation}
1968
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Cancel-Block-Trade-Order Binance API Documentation}
2137
1969
  */
2138
1970
  cancelBlockTradeOrder(requestParameters) {
2139
1971
  return this.marketMakerBlockTradeApi.cancelBlockTradeOrder(requestParameters);
@@ -2148,7 +1980,7 @@ var RestAPI = class {
2148
1980
  *
2149
1981
  * @returns {Promise<RestApiResponse<ExtendBlockTradeOrderResponse>>}
2150
1982
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2151
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Extend-Block-Trade-Order Binance API Documentation}
1983
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Extend-Block-Trade-Order Binance API Documentation}
2152
1984
  */
2153
1985
  extendBlockTradeOrder(requestParameters) {
2154
1986
  return this.marketMakerBlockTradeApi.extendBlockTradeOrder(requestParameters);
@@ -2163,7 +1995,7 @@ var RestAPI = class {
2163
1995
  *
2164
1996
  * @returns {Promise<RestApiResponse<NewBlockTradeOrderResponse>>}
2165
1997
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2166
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/New-Block-Trade-Order Binance API Documentation}
1998
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/New-Block-Trade-Order Binance API Documentation}
2167
1999
  */
2168
2000
  newBlockTradeOrder(requestParameters) {
2169
2001
  return this.marketMakerBlockTradeApi.newBlockTradeOrder(requestParameters);
@@ -2178,7 +2010,7 @@ var RestAPI = class {
2178
2010
  *
2179
2011
  * @returns {Promise<RestApiResponse<QueryBlockTradeDetailsResponse>>}
2180
2012
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2181
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Query-Block-Trade-Detail Binance API Documentation}
2013
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Detail Binance API Documentation}
2182
2014
  */
2183
2015
  queryBlockTradeDetails(requestParameters) {
2184
2016
  return this.marketMakerBlockTradeApi.queryBlockTradeDetails(requestParameters);
@@ -2193,7 +2025,7 @@ var RestAPI = class {
2193
2025
  *
2194
2026
  * @returns {Promise<RestApiResponse<QueryBlockTradeOrderResponse>>}
2195
2027
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2196
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-block-trade/Query-Block-Trade-Order Binance API Documentation}
2028
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Order Binance API Documentation}
2197
2029
  */
2198
2030
  queryBlockTradeOrder(requestParameters = {}) {
2199
2031
  return this.marketMakerBlockTradeApi.queryBlockTradeOrder(requestParameters);
@@ -2210,7 +2042,7 @@ var RestAPI = class {
2210
2042
  *
2211
2043
  * @returns {Promise<RestApiResponse<AutoCancelAllOpenOrdersResponse>>}
2212
2044
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2213
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Auto-Cancel-All-Open-Orders-Heartbeat Binance API Documentation}
2045
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Auto-Cancel-All-Open-Orders-Heartbeat Binance API Documentation}
2214
2046
  */
2215
2047
  autoCancelAllOpenOrders(requestParameters) {
2216
2048
  return this.marketMakerEndpointsApi.autoCancelAllOpenOrders(requestParameters);
@@ -2227,7 +2059,7 @@ var RestAPI = class {
2227
2059
  *
2228
2060
  * @returns {Promise<RestApiResponse<GetAutoCancelAllOpenOrdersResponse>>}
2229
2061
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2230
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
2062
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
2231
2063
  */
2232
2064
  getAutoCancelAllOpenOrders(requestParameters = {}) {
2233
2065
  return this.marketMakerEndpointsApi.getAutoCancelAllOpenOrders(requestParameters);
@@ -2242,7 +2074,7 @@ var RestAPI = class {
2242
2074
  *
2243
2075
  * @returns {Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>}
2244
2076
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2245
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
2077
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
2246
2078
  */
2247
2079
  getMarketMakerProtectionConfig(requestParameters = {}) {
2248
2080
  return this.marketMakerEndpointsApi.getMarketMakerProtectionConfig(requestParameters);
@@ -2257,7 +2089,7 @@ var RestAPI = class {
2257
2089
  *
2258
2090
  * @returns {Promise<RestApiResponse<ResetMarketMakerProtectionConfigResponse>>}
2259
2091
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2260
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Reset-Market-Maker-Protection-Config Binance API Documentation}
2092
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Reset-Market-Maker-Protection-Config Binance API Documentation}
2261
2093
  */
2262
2094
  resetMarketMakerProtectionConfig(requestParameters = {}) {
2263
2095
  return this.marketMakerEndpointsApi.resetMarketMakerProtectionConfig(requestParameters);
@@ -2278,7 +2110,7 @@ var RestAPI = class {
2278
2110
  *
2279
2111
  * @returns {Promise<RestApiResponse<SetAutoCancelAllOpenOrdersResponse>>}
2280
2112
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2281
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Set-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
2113
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
2282
2114
  */
2283
2115
  setAutoCancelAllOpenOrders(requestParameters) {
2284
2116
  return this.marketMakerEndpointsApi.setAutoCancelAllOpenOrders(requestParameters);
@@ -2294,7 +2126,7 @@ var RestAPI = class {
2294
2126
  *
2295
2127
  * @returns {Promise<RestApiResponse<SetMarketMakerProtectionConfigResponse>>}
2296
2128
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2297
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Set-Market-Maker-Protection-Config Binance API Documentation}
2129
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Market-Maker-Protection-Config Binance API Documentation}
2298
2130
  */
2299
2131
  setMarketMakerProtectionConfig(requestParameters = {}) {
2300
2132
  return this.marketMakerEndpointsApi.setMarketMakerProtectionConfig(requestParameters);
@@ -2309,7 +2141,7 @@ var RestAPI = class {
2309
2141
  *
2310
2142
  * @returns {Promise<RestApiResponse<AccountTradeListResponse>>}
2311
2143
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2312
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List Binance API Documentation}
2144
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Account-Trade-List Binance API Documentation}
2313
2145
  */
2314
2146
  accountTradeList(requestParameters = {}) {
2315
2147
  return this.tradeApi.accountTradeList(requestParameters);
@@ -2324,7 +2156,7 @@ var RestAPI = class {
2324
2156
  *
2325
2157
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersByUnderlyingResponse>>}
2326
2158
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2327
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-All-Option-Orders-By-Underlying Binance API Documentation}
2159
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-All-Option-Orders-By-Underlying Binance API Documentation}
2328
2160
  */
2329
2161
  cancelAllOptionOrdersByUnderlying(requestParameters) {
2330
2162
  return this.tradeApi.cancelAllOptionOrdersByUnderlying(requestParameters);
@@ -2339,7 +2171,7 @@ var RestAPI = class {
2339
2171
  *
2340
2172
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersOnSpecificSymbolResponse>>}
2341
2173
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2342
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol Binance API Documentation}
2174
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-all-Option-orders-on-specific-symbol Binance API Documentation}
2343
2175
  */
2344
2176
  cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
2345
2177
  return this.tradeApi.cancelAllOptionOrdersOnSpecificSymbol(requestParameters);
@@ -2348,7 +2180,6 @@ var RestAPI = class {
2348
2180
  * Cancel multiple orders.
2349
2181
  *
2350
2182
  * At least one instance of `orderId` and `clientOrderId` must be sent.
2351
- * Max 10 orders can be deleted in one request
2352
2183
  *
2353
2184
  * Weight: 1
2354
2185
  *
@@ -2357,7 +2188,7 @@ var RestAPI = class {
2357
2188
  *
2358
2189
  * @returns {Promise<RestApiResponse<CancelMultipleOptionOrdersResponse>>}
2359
2190
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2360
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-Multiple-Option-Orders Binance API Documentation}
2191
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Multiple-Option-Orders Binance API Documentation}
2361
2192
  */
2362
2193
  cancelMultipleOptionOrders(requestParameters) {
2363
2194
  return this.tradeApi.cancelMultipleOptionOrders(requestParameters);
@@ -2374,7 +2205,7 @@ var RestAPI = class {
2374
2205
  *
2375
2206
  * @returns {Promise<RestApiResponse<CancelOptionOrderResponse>>}
2376
2207
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2377
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order Binance API Documentation}
2208
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Option-Order Binance API Documentation}
2378
2209
  */
2379
2210
  cancelOptionOrder(requestParameters) {
2380
2211
  return this.tradeApi.cancelOptionOrder(requestParameters);
@@ -2389,7 +2220,7 @@ var RestAPI = class {
2389
2220
  *
2390
2221
  * @returns {Promise<RestApiResponse<NewOrderResponse>>}
2391
2222
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2392
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/New-Order Binance API Documentation}
2223
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/New-Order Binance API Documentation}
2393
2224
  */
2394
2225
  newOrder(requestParameters) {
2395
2226
  return this.tradeApi.newOrder(requestParameters);
@@ -2404,7 +2235,7 @@ var RestAPI = class {
2404
2235
  *
2405
2236
  * @returns {Promise<RestApiResponse<OptionPositionInformationResponse>>}
2406
2237
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2407
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information Binance API Documentation}
2238
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Option-Position-Information Binance API Documentation}
2408
2239
  */
2409
2240
  optionPositionInformation(requestParameters = {}) {
2410
2241
  return this.tradeApi.optionPositionInformation(requestParameters);
@@ -2422,7 +2253,7 @@ var RestAPI = class {
2422
2253
  *
2423
2254
  * @returns {Promise<RestApiResponse<PlaceMultipleOrdersResponse>>}
2424
2255
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2425
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders Binance API Documentation}
2256
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Place-Multiple-Orders Binance API Documentation}
2426
2257
  */
2427
2258
  placeMultipleOrders(requestParameters) {
2428
2259
  return this.tradeApi.placeMultipleOrders(requestParameters);
@@ -2437,7 +2268,7 @@ var RestAPI = class {
2437
2268
  *
2438
2269
  * @returns {Promise<RestApiResponse<QueryCurrentOpenOptionOrdersResponse>>}
2439
2270
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2440
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders Binance API Documentation}
2271
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Current-Open-Option-Orders Binance API Documentation}
2441
2272
  */
2442
2273
  queryCurrentOpenOptionOrders(requestParameters = {}) {
2443
2274
  return this.tradeApi.queryCurrentOpenOptionOrders(requestParameters);
@@ -2452,7 +2283,7 @@ var RestAPI = class {
2452
2283
  *
2453
2284
  * @returns {Promise<RestApiResponse<QueryOptionOrderHistoryResponse>>}
2454
2285
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2455
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History Binance API Documentation}
2286
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Option-Order-History Binance API Documentation}
2456
2287
  */
2457
2288
  queryOptionOrderHistory(requestParameters) {
2458
2289
  return this.tradeApi.queryOptionOrderHistory(requestParameters);
@@ -2475,12 +2306,27 @@ var RestAPI = class {
2475
2306
  *
2476
2307
  * @returns {Promise<RestApiResponse<QuerySingleOrderResponse>>}
2477
2308
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2478
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order Binance API Documentation}
2309
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Single-Order Binance API Documentation}
2479
2310
  */
2480
2311
  querySingleOrder(requestParameters) {
2481
2312
  return this.tradeApi.querySingleOrder(requestParameters);
2482
2313
  }
2483
2314
  /**
2315
+ * Get account commission.
2316
+ *
2317
+ * Weight: 5
2318
+ *
2319
+ * @summary User Commission (USER_DATA)
2320
+ * @param {UserCommissionRequest} requestParameters Request parameters.
2321
+ *
2322
+ * @returns {Promise<RestApiResponse<UserCommissionResponse>>}
2323
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2324
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Commission Binance API Documentation}
2325
+ */
2326
+ userCommission(requestParameters = {}) {
2327
+ return this.tradeApi.userCommission(requestParameters);
2328
+ }
2329
+ /**
2484
2330
  * Get account exercise records.
2485
2331
  *
2486
2332
  * Weight: 5
@@ -2490,7 +2336,7 @@ var RestAPI = class {
2490
2336
  *
2491
2337
  * @returns {Promise<RestApiResponse<UserExerciseRecordResponse>>}
2492
2338
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2493
- * @see {@link https://developers.binance.com/docs/derivatives/option/trade/User-Exercise-Record Binance API Documentation}
2339
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Exercise-Record Binance API Documentation}
2494
2340
  */
2495
2341
  userExerciseRecord(requestParameters = {}) {
2496
2342
  return this.tradeApi.userExerciseRecord(requestParameters);
@@ -2504,7 +2350,7 @@ var RestAPI = class {
2504
2350
  *
2505
2351
  * @returns {Promise<RestApiResponse<void>>}
2506
2352
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2507
- * @see {@link https://developers.binance.com/docs/derivatives/option/user-data-streams/Close-User-Data-Stream Binance API Documentation}
2353
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Close-User-Data-Stream Binance API Documentation}
2508
2354
  */
2509
2355
  closeUserDataStream() {
2510
2356
  return this.userDataStreamsApi.closeUserDataStream();
@@ -2518,7 +2364,7 @@ var RestAPI = class {
2518
2364
  *
2519
2365
  * @returns {Promise<RestApiResponse<void>>}
2520
2366
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2521
- * @see {@link https://developers.binance.com/docs/derivatives/option/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
2367
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
2522
2368
  */
2523
2369
  keepaliveUserDataStream() {
2524
2370
  return this.userDataStreamsApi.keepaliveUserDataStream();
@@ -2532,7 +2378,7 @@ var RestAPI = class {
2532
2378
  *
2533
2379
  * @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
2534
2380
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2535
- * @see {@link https://developers.binance.com/docs/derivatives/option/user-data-streams/Start-User-Data-Stream Binance API Documentation}
2381
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Start-User-Data-Stream Binance API Documentation}
2536
2382
  */
2537
2383
  startUserDataStream() {
2538
2384
  return this.userDataStreamsApi.startUserDataStream();
@@ -2560,7 +2406,7 @@ var rest_api_exports = /* @__PURE__ */ __export({
2560
2406
  });
2561
2407
 
2562
2408
  //#endregion
2563
- //#region src/websocket-streams/modules/websocket-market-streams-api.ts
2409
+ //#region src/websocket-streams/modules/market-api.ts
2564
2410
  /**
2565
2411
  * Binance Derivatives Trading Options WebSocket Market Streams
2566
2412
  *
@@ -2573,14 +2419,10 @@ var rest_api_exports = /* @__PURE__ */ __export({
2573
2419
  * https://openapi-generator.tech
2574
2420
  * Do not edit the class manually.
2575
2421
  */
2576
- const WebsocketMarketStreamsApiParamCreator = function() {
2422
+ const MarketApiParamCreator = function() {
2577
2423
  return {
2578
- indexPriceStreams: (symbol, id) => {
2579
- assertParamExists("indexPriceStreams", "symbol", symbol);
2580
- return replaceWebsocketStreamsPlaceholders("/<symbol>@index".slice(1), {
2581
- symbol,
2582
- id
2583
- });
2424
+ indexPriceStreams: (id) => {
2425
+ return replaceWebsocketStreamsPlaceholders("/!index@arr".slice(1), { id });
2584
2426
  },
2585
2427
  klineCandlestickStreams: (symbol, interval, id) => {
2586
2428
  assertParamExists("klineCandlestickStreams", "symbol", symbol);
@@ -2591,69 +2433,34 @@ const WebsocketMarketStreamsApiParamCreator = function() {
2591
2433
  id
2592
2434
  });
2593
2435
  },
2594
- markPrice: (underlyingAsset, id) => {
2595
- assertParamExists("markPrice", "underlyingAsset", underlyingAsset);
2596
- return replaceWebsocketStreamsPlaceholders("/<underlyingAsset>@markPrice".slice(1), {
2597
- underlyingAsset,
2436
+ markPrice: (underlying, id) => {
2437
+ assertParamExists("markPrice", "underlying", underlying);
2438
+ return replaceWebsocketStreamsPlaceholders("/<underlying>@optionMarkPrice".slice(1), {
2439
+ underlying,
2598
2440
  id
2599
2441
  });
2600
2442
  },
2601
2443
  newSymbolInfo: (id) => {
2602
- return replaceWebsocketStreamsPlaceholders("/option_pair".slice(1), { id });
2444
+ return replaceWebsocketStreamsPlaceholders("/!optionSymbol".slice(1), { id });
2603
2445
  },
2604
- openInterest: (underlyingAsset, expirationDate, id) => {
2605
- assertParamExists("openInterest", "underlyingAsset", underlyingAsset);
2446
+ openInterest: (expirationDate, id) => {
2606
2447
  assertParamExists("openInterest", "expirationDate", expirationDate);
2607
- return replaceWebsocketStreamsPlaceholders("/<underlyingAsset>@openInterest@<expirationDate>".slice(1), {
2608
- underlyingAsset,
2609
- expirationDate,
2610
- id
2611
- });
2612
- },
2613
- partialBookDepthStreams: (symbol, levels, id, updateSpeed) => {
2614
- assertParamExists("partialBookDepthStreams", "symbol", symbol);
2615
- assertParamExists("partialBookDepthStreams", "levels", levels);
2616
- return replaceWebsocketStreamsPlaceholders("/<symbol>@depth<levels>@<updateSpeed>".slice(1), {
2617
- symbol,
2618
- levels,
2619
- id,
2620
- updateSpeed
2621
- });
2622
- },
2623
- ticker24Hour: (symbol, id) => {
2624
- assertParamExists("ticker24Hour", "symbol", symbol);
2625
- return replaceWebsocketStreamsPlaceholders("/<symbol>@ticker".slice(1), {
2626
- symbol,
2627
- id
2628
- });
2629
- },
2630
- ticker24HourByUnderlyingAssetAndExpirationData: (underlyingAsset, expirationDate, id) => {
2631
- assertParamExists("ticker24HourByUnderlyingAssetAndExpirationData", "underlyingAsset", underlyingAsset);
2632
- assertParamExists("ticker24HourByUnderlyingAssetAndExpirationData", "expirationDate", expirationDate);
2633
- return replaceWebsocketStreamsPlaceholders("/<underlyingAsset>@ticker@<expirationDate>".slice(1), {
2634
- underlyingAsset,
2448
+ return replaceWebsocketStreamsPlaceholders("/underlying@optionOpenInterest@<expirationDate>".slice(1), {
2635
2449
  expirationDate,
2636
2450
  id
2637
2451
  });
2638
- },
2639
- tradeStreams: (symbol, id) => {
2640
- assertParamExists("tradeStreams", "symbol", symbol);
2641
- return replaceWebsocketStreamsPlaceholders("/<symbol>@trade".slice(1), {
2642
- symbol,
2643
- id
2644
- });
2645
2452
  }
2646
2453
  };
2647
2454
  };
2648
2455
  /**
2649
- * WebsocketMarketStreamsApi - interface
2650
- * @class WebsocketMarketStreamsApi
2456
+ * MarketApi - interface
2457
+ * @class MarketApi
2651
2458
  * @extends {WebsocketStreamsBase}
2652
2459
  */
2653
- var WebsocketMarketStreamsApi = class {
2460
+ var MarketApi = class {
2654
2461
  constructor(websocketBase) {
2655
2462
  this.websocketBase = websocketBase;
2656
- this.localVarParamCreator = WebsocketMarketStreamsApiParamCreator();
2463
+ this.localVarParamCreator = MarketApiParamCreator();
2657
2464
  }
2658
2465
  /**
2659
2466
  * Underlying(e.g ETHUSDT) index stream.
@@ -2664,12 +2471,12 @@ var WebsocketMarketStreamsApi = class {
2664
2471
  * @param {IndexPriceStreamsRequest} requestParameters Request parameters.
2665
2472
  * @returns {WebsocketStream<IndexPriceStreamsResponse>}
2666
2473
  * @throws {RequiredError}
2667
- * @memberof WebsocketMarketStreamsApi
2668
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Index-Price-Streams Binance API Documentation}
2474
+ * @memberof MarketApi
2475
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Index-Price-Streams Binance API Documentation}
2669
2476
  */
2670
- indexPriceStreams(requestParameters) {
2671
- const stream = this.localVarParamCreator.indexPriceStreams(requestParameters?.symbol, requestParameters?.id);
2672
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2477
+ indexPriceStreams(requestParameters = {}) {
2478
+ const stream = this.localVarParamCreator.indexPriceStreams(requestParameters?.id);
2479
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "market");
2673
2480
  }
2674
2481
  /**
2675
2482
  * The Kline/Candlestick Stream push updates to the current klines/candlestick every 1000 milliseconds (if existing).
@@ -2680,15 +2487,15 @@ var WebsocketMarketStreamsApi = class {
2680
2487
  * @param {KlineCandlestickStreamsRequest} requestParameters Request parameters.
2681
2488
  * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
2682
2489
  * @throws {RequiredError}
2683
- * @memberof WebsocketMarketStreamsApi
2684
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
2490
+ * @memberof MarketApi
2491
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
2685
2492
  */
2686
2493
  klineCandlestickStreams(requestParameters) {
2687
2494
  const stream = this.localVarParamCreator.klineCandlestickStreams(requestParameters?.symbol, requestParameters?.interval, requestParameters?.id);
2688
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2495
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "market");
2689
2496
  }
2690
2497
  /**
2691
- * The mark price for all option symbols on specific underlying asset. E.g.[ETH@markPrice](wss://nbstream.binance.com/eoptions/stream?streams=ETH@markPrice)
2498
+ * The mark price for all option symbols on specific underlying asset. E.g.[btcusdt@optionMarkPrice](wss://fstream.binance.com/market/stream?streams=btcusdt@optionMarkPrice)
2692
2499
  *
2693
2500
  * Update Speed: 1000ms
2694
2501
  *
@@ -2696,12 +2503,12 @@ var WebsocketMarketStreamsApi = class {
2696
2503
  * @param {MarkPriceRequest} requestParameters Request parameters.
2697
2504
  * @returns {WebsocketStream<MarkPriceResponse>}
2698
2505
  * @throws {RequiredError}
2699
- * @memberof WebsocketMarketStreamsApi
2700
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Mark-Price Binance API Documentation}
2506
+ * @memberof MarketApi
2507
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Mark-Price Binance API Documentation}
2701
2508
  */
2702
2509
  markPrice(requestParameters) {
2703
- const stream = this.localVarParamCreator.markPrice(requestParameters?.underlyingAsset, requestParameters?.id);
2704
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2510
+ const stream = this.localVarParamCreator.markPrice(requestParameters?.underlying, requestParameters?.id);
2511
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "market");
2705
2512
  }
2706
2513
  /**
2707
2514
  * New symbol listing stream.
@@ -2712,15 +2519,15 @@ var WebsocketMarketStreamsApi = class {
2712
2519
  * @param {NewSymbolInfoRequest} requestParameters Request parameters.
2713
2520
  * @returns {WebsocketStream<NewSymbolInfoResponse>}
2714
2521
  * @throws {RequiredError}
2715
- * @memberof WebsocketMarketStreamsApi
2716
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/New-Symbol-Info Binance API Documentation}
2522
+ * @memberof MarketApi
2523
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/New-Symbol-Info Binance API Documentation}
2717
2524
  */
2718
2525
  newSymbolInfo(requestParameters = {}) {
2719
2526
  const stream = this.localVarParamCreator.newSymbolInfo(requestParameters?.id);
2720
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2527
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "market");
2721
2528
  }
2722
2529
  /**
2723
- * Option open interest for specific underlying asset on specific expiration date. E.g.[ETH@openInterest@221125](wss://nbstream.binance.com/eoptions/stream?streams=ETH@openInterest@221125)
2530
+ * Option open interest for specific underlying asset on specific expiration date. E.g.[ethusdt@openInterest@221125](wss://fstream.binance.com/market/stream?streams=ethusdt@openInterest@221125)
2724
2531
  *
2725
2532
  * Update Speed: 60s
2726
2533
  *
@@ -2728,28 +2535,129 @@ var WebsocketMarketStreamsApi = class {
2728
2535
  * @param {OpenInterestRequest} requestParameters Request parameters.
2729
2536
  * @returns {WebsocketStream<OpenInterestResponse>}
2730
2537
  * @throws {RequiredError}
2731
- * @memberof WebsocketMarketStreamsApi
2732
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Open-Interest Binance API Documentation}
2538
+ * @memberof MarketApi
2539
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Open-Interest Binance API Documentation}
2733
2540
  */
2734
2541
  openInterest(requestParameters) {
2735
- const stream = this.localVarParamCreator.openInterest(requestParameters?.underlyingAsset, requestParameters?.expirationDate, requestParameters?.id);
2736
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2542
+ const stream = this.localVarParamCreator.openInterest(requestParameters?.expirationDate, requestParameters?.id);
2543
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "market");
2544
+ }
2545
+ };
2546
+
2547
+ //#endregion
2548
+ //#region src/websocket-streams/modules/public-api.ts
2549
+ /**
2550
+ * Binance Derivatives Trading Options WebSocket Market Streams
2551
+ *
2552
+ * OpenAPI Specification for the Binance Derivatives Trading Options WebSocket Market Streams
2553
+ *
2554
+ * The version of the OpenAPI document: 1.0.0
2555
+ *
2556
+ *
2557
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2558
+ * https://openapi-generator.tech
2559
+ * Do not edit the class manually.
2560
+ */
2561
+ const PublicApiParamCreator = function() {
2562
+ return {
2563
+ diffBookDepthStreams: (symbol, id, updateSpeed) => {
2564
+ assertParamExists("diffBookDepthStreams", "symbol", symbol);
2565
+ return replaceWebsocketStreamsPlaceholders("/<symbol>@depth@<updateSpeed>".slice(1), {
2566
+ symbol,
2567
+ id,
2568
+ updateSpeed
2569
+ });
2570
+ },
2571
+ individualSymbolBookTickerStreams: (symbol, id) => {
2572
+ assertParamExists("individualSymbolBookTickerStreams", "symbol", symbol);
2573
+ return replaceWebsocketStreamsPlaceholders("/<symbol>@bookTicker".slice(1), {
2574
+ symbol,
2575
+ id
2576
+ });
2577
+ },
2578
+ partialBookDepthStreams: (symbol, level, id, updateSpeed) => {
2579
+ assertParamExists("partialBookDepthStreams", "symbol", symbol);
2580
+ assertParamExists("partialBookDepthStreams", "level", level);
2581
+ return replaceWebsocketStreamsPlaceholders("/<symbol>@depth<level>@<updateSpeed>".slice(1), {
2582
+ symbol,
2583
+ level,
2584
+ id,
2585
+ updateSpeed
2586
+ });
2587
+ },
2588
+ ticker24Hour: (symbol, id) => {
2589
+ assertParamExists("ticker24Hour", "symbol", symbol);
2590
+ return replaceWebsocketStreamsPlaceholders("/<symbol>@optionTicker".slice(1), {
2591
+ symbol,
2592
+ id
2593
+ });
2594
+ },
2595
+ tradeStreams: (symbol, id) => {
2596
+ assertParamExists("tradeStreams", "symbol", symbol);
2597
+ return replaceWebsocketStreamsPlaceholders("/<symbol>@optionTrade".slice(1), {
2598
+ symbol,
2599
+ id
2600
+ });
2601
+ }
2602
+ };
2603
+ };
2604
+ /**
2605
+ * PublicApi - interface
2606
+ * @class PublicApi
2607
+ * @extends {WebsocketStreamsBase}
2608
+ */
2609
+ var PublicApi = class {
2610
+ constructor(websocketBase) {
2611
+ this.websocketBase = websocketBase;
2612
+ this.localVarParamCreator = PublicApiParamCreator();
2737
2613
  }
2738
2614
  /**
2739
- * Top **<levels\>** bids and asks, Valid levels are **<levels\>** are 10, 20, 50, 100.
2615
+ * Bids and asks, pushed every 500 milliseconds, 100 milliseconds (if existing)
2740
2616
  *
2741
- * Update Speed: 100ms or 1000ms, 500ms(default when update speed isn't used)
2617
+ * Update Speed: 100ms or 500ms
2618
+ *
2619
+ * @summary Diff Book Depth Streams
2620
+ * @param {DiffBookDepthStreamsRequest} requestParameters Request parameters.
2621
+ * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
2622
+ * @throws {RequiredError}
2623
+ * @memberof PublicApi
2624
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Diff-Book-Depth-Streams Binance API Documentation}
2625
+ */
2626
+ diffBookDepthStreams(requestParameters) {
2627
+ const stream = this.localVarParamCreator.diffBookDepthStreams(requestParameters?.symbol, requestParameters?.id, requestParameters?.updateSpeed);
2628
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "public");
2629
+ }
2630
+ /**
2631
+ * Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
2632
+ *
2633
+ * Update Speed: Real-Time
2634
+ *
2635
+ * @summary Individual Symbol Book Ticker Streams
2636
+ * @param {IndividualSymbolBookTickerStreamsRequest} requestParameters Request parameters.
2637
+ * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
2638
+ * @throws {RequiredError}
2639
+ * @memberof PublicApi
2640
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Individual-Symbol-Book-Ticker-Streams Binance API Documentation}
2641
+ */
2642
+ individualSymbolBookTickerStreams(requestParameters) {
2643
+ const stream = this.localVarParamCreator.individualSymbolBookTickerStreams(requestParameters?.symbol, requestParameters?.id);
2644
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "public");
2645
+ }
2646
+ /**
2647
+ * Top **<levels\>** bids and asks, Valid levels are **<levels\>** are 5, 10, 20.
2648
+ *
2649
+ * Update Speed: 100ms or 500ms
2742
2650
  *
2743
2651
  * @summary Partial Book Depth Streams
2744
2652
  * @param {PartialBookDepthStreamsRequest} requestParameters Request parameters.
2745
2653
  * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
2746
2654
  * @throws {RequiredError}
2747
- * @memberof WebsocketMarketStreamsApi
2748
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
2655
+ * @memberof PublicApi
2656
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
2749
2657
  */
2750
2658
  partialBookDepthStreams(requestParameters) {
2751
- const stream = this.localVarParamCreator.partialBookDepthStreams(requestParameters?.symbol, requestParameters?.levels, requestParameters?.id, requestParameters?.updateSpeed);
2752
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2659
+ const stream = this.localVarParamCreator.partialBookDepthStreams(requestParameters?.symbol, requestParameters?.level, requestParameters?.id, requestParameters?.updateSpeed);
2660
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "public");
2753
2661
  }
2754
2662
  /**
2755
2663
  * 24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
@@ -2760,31 +2668,15 @@ var WebsocketMarketStreamsApi = class {
2760
2668
  * @param {Ticker24HourRequest} requestParameters Request parameters.
2761
2669
  * @returns {WebsocketStream<Ticker24HourResponse>}
2762
2670
  * @throws {RequiredError}
2763
- * @memberof WebsocketMarketStreamsApi
2764
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/24-hour-TICKER Binance API Documentation}
2671
+ * @memberof PublicApi
2672
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/24-hour-TICKER Binance API Documentation}
2765
2673
  */
2766
2674
  ticker24Hour(requestParameters) {
2767
2675
  const stream = this.localVarParamCreator.ticker24Hour(requestParameters?.symbol, requestParameters?.id);
2768
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2676
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "public");
2769
2677
  }
2770
2678
  /**
2771
- * 24hr ticker info by underlying asset and expiration date. E.g.[ETH@ticker@220930](wss://nbstream.binance.com/eoptions/stream?streams=ETH@ticker@220930)
2772
- *
2773
- * Update Speed: 1000ms
2774
- *
2775
- * @summary 24-hour TICKER by underlying asset and expiration data
2776
- * @param {Ticker24HourByUnderlyingAssetAndExpirationDataRequest} requestParameters Request parameters.
2777
- * @returns {WebsocketStream<Ticker24HourByUnderlyingAssetAndExpirationDataResponse>}
2778
- * @throws {RequiredError}
2779
- * @memberof WebsocketMarketStreamsApi
2780
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/24-hour-TICKER-by-underlying-asset-and-expiration-data Binance API Documentation}
2781
- */
2782
- ticker24HourByUnderlyingAssetAndExpirationData(requestParameters) {
2783
- const stream = this.localVarParamCreator.ticker24HourByUnderlyingAssetAndExpirationData(requestParameters?.underlyingAsset, requestParameters?.expirationDate, requestParameters?.id);
2784
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2785
- }
2786
- /**
2787
- * The Trade Streams push raw trade information for specific symbol or underlying asset. E.g.[ETH@trade](wss://nbstream.binance.com/eoptions/stream?streams=ETH@trade)
2679
+ * The Trade Streams push raw trade information for specific symbol or underlying asset. E.g.[btcusdt@optionTrade](wss://fstream.binance.com/public/stream?streams=btcusdt@optionTrade)
2788
2680
  *
2789
2681
  * Update Speed: 50ms
2790
2682
  *
@@ -2792,12 +2684,12 @@ var WebsocketMarketStreamsApi = class {
2792
2684
  * @param {TradeStreamsRequest} requestParameters Request parameters.
2793
2685
  * @returns {WebsocketStream<TradeStreamsResponse>}
2794
2686
  * @throws {RequiredError}
2795
- * @memberof WebsocketMarketStreamsApi
2796
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Trade-Streams Binance API Documentation}
2687
+ * @memberof PublicApi
2688
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Trade-Streams Binance API Documentation}
2797
2689
  */
2798
2690
  tradeStreams(requestParameters) {
2799
2691
  const stream = this.localVarParamCreator.tradeStreams(requestParameters?.symbol, requestParameters?.id);
2800
- return createStreamHandler(this.websocketBase, stream, requestParameters?.id);
2692
+ return createStreamHandler(this.websocketBase, stream, requestParameters?.id, "public");
2801
2693
  }
2802
2694
  };
2803
2695
 
@@ -2818,7 +2710,8 @@ var WebsocketMarketStreamsApi = class {
2818
2710
  var WebsocketStreamsConnection = class {
2819
2711
  constructor(websocketBase) {
2820
2712
  this.websocketBase = websocketBase;
2821
- this.websocketMarketStreamsApi = new WebsocketMarketStreamsApi(websocketBase);
2713
+ this.marketApi = new MarketApi(websocketBase);
2714
+ this.publicApi = new PublicApi(websocketBase);
2822
2715
  }
2823
2716
  /**
2824
2717
  * Adds an event listener for the specified WebSocket event.
@@ -2898,7 +2791,7 @@ var WebsocketStreamsConnection = class {
2898
2791
  * @returns A WebSocket stream handler for the user data stream.
2899
2792
  */
2900
2793
  userData(listenKey, id) {
2901
- return createStreamHandler(this.websocketBase, listenKey, id);
2794
+ return createStreamHandler(this.websocketBase, listenKey, id, "private");
2902
2795
  }
2903
2796
  /**
2904
2797
  * Underlying(e.g ETHUSDT) index stream.
@@ -2910,10 +2803,10 @@ var WebsocketStreamsConnection = class {
2910
2803
  *
2911
2804
  * @returns {WebsocketStream<IndexPriceStreamsResponse>}
2912
2805
  * @throws {RequiredError}
2913
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Index-Price-Streams Binance API Documentation}
2806
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Index-Price-Streams Binance API Documentation}
2914
2807
  */
2915
- indexPriceStreams(requestParameters) {
2916
- return this.websocketMarketStreamsApi.indexPriceStreams(requestParameters);
2808
+ indexPriceStreams(requestParameters = {}) {
2809
+ return this.marketApi.indexPriceStreams(requestParameters);
2917
2810
  }
2918
2811
  /**
2919
2812
  * The Kline/Candlestick Stream push updates to the current klines/candlestick every 1000 milliseconds (if existing).
@@ -2925,13 +2818,13 @@ var WebsocketStreamsConnection = class {
2925
2818
  *
2926
2819
  * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
2927
2820
  * @throws {RequiredError}
2928
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
2821
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
2929
2822
  */
2930
2823
  klineCandlestickStreams(requestParameters) {
2931
- return this.websocketMarketStreamsApi.klineCandlestickStreams(requestParameters);
2824
+ return this.marketApi.klineCandlestickStreams(requestParameters);
2932
2825
  }
2933
2826
  /**
2934
- * The mark price for all option symbols on specific underlying asset. E.g.[ETH@markPrice](wss://nbstream.binance.com/eoptions/stream?streams=ETH@markPrice)
2827
+ * The mark price for all option symbols on specific underlying asset. E.g.[btcusdt@optionMarkPrice](wss://fstream.binance.com/market/stream?streams=btcusdt@optionMarkPrice)
2935
2828
  *
2936
2829
  * Update Speed: 1000ms
2937
2830
  *
@@ -2940,10 +2833,10 @@ var WebsocketStreamsConnection = class {
2940
2833
  *
2941
2834
  * @returns {WebsocketStream<MarkPriceResponse>}
2942
2835
  * @throws {RequiredError}
2943
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Mark-Price Binance API Documentation}
2836
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Mark-Price Binance API Documentation}
2944
2837
  */
2945
2838
  markPrice(requestParameters) {
2946
- return this.websocketMarketStreamsApi.markPrice(requestParameters);
2839
+ return this.marketApi.markPrice(requestParameters);
2947
2840
  }
2948
2841
  /**
2949
2842
  * New symbol listing stream.
@@ -2955,13 +2848,13 @@ var WebsocketStreamsConnection = class {
2955
2848
  *
2956
2849
  * @returns {WebsocketStream<NewSymbolInfoResponse>}
2957
2850
  * @throws {RequiredError}
2958
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/New-Symbol-Info Binance API Documentation}
2851
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/New-Symbol-Info Binance API Documentation}
2959
2852
  */
2960
2853
  newSymbolInfo(requestParameters = {}) {
2961
- return this.websocketMarketStreamsApi.newSymbolInfo(requestParameters);
2854
+ return this.marketApi.newSymbolInfo(requestParameters);
2962
2855
  }
2963
2856
  /**
2964
- * Option open interest for specific underlying asset on specific expiration date. E.g.[ETH@openInterest@221125](wss://nbstream.binance.com/eoptions/stream?streams=ETH@openInterest@221125)
2857
+ * Option open interest for specific underlying asset on specific expiration date. E.g.[ethusdt@openInterest@221125](wss://fstream.binance.com/market/stream?streams=ethusdt@openInterest@221125)
2965
2858
  *
2966
2859
  * Update Speed: 60s
2967
2860
  *
@@ -2970,25 +2863,55 @@ var WebsocketStreamsConnection = class {
2970
2863
  *
2971
2864
  * @returns {WebsocketStream<OpenInterestResponse>}
2972
2865
  * @throws {RequiredError}
2973
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Open-Interest Binance API Documentation}
2866
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Open-Interest Binance API Documentation}
2974
2867
  */
2975
2868
  openInterest(requestParameters) {
2976
- return this.websocketMarketStreamsApi.openInterest(requestParameters);
2869
+ return this.marketApi.openInterest(requestParameters);
2977
2870
  }
2978
2871
  /**
2979
- * Top **<levels\>** bids and asks, Valid levels are **<levels\>** are 10, 20, 50, 100.
2872
+ * Bids and asks, pushed every 500 milliseconds, 100 milliseconds (if existing)
2873
+ *
2874
+ * Update Speed: 100ms or 500ms
2875
+ *
2876
+ * @summary Diff Book Depth Streams
2877
+ * @param {DiffBookDepthStreamsRequest} requestParameters Request parameters.
2980
2878
  *
2981
- * Update Speed: 100ms or 1000ms, 500ms(default when update speed isn't used)
2879
+ * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
2880
+ * @throws {RequiredError}
2881
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Diff-Book-Depth-Streams Binance API Documentation}
2882
+ */
2883
+ diffBookDepthStreams(requestParameters) {
2884
+ return this.publicApi.diffBookDepthStreams(requestParameters);
2885
+ }
2886
+ /**
2887
+ * Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
2888
+ *
2889
+ * Update Speed: Real-Time
2890
+ *
2891
+ * @summary Individual Symbol Book Ticker Streams
2892
+ * @param {IndividualSymbolBookTickerStreamsRequest} requestParameters Request parameters.
2893
+ *
2894
+ * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
2895
+ * @throws {RequiredError}
2896
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Individual-Symbol-Book-Ticker-Streams Binance API Documentation}
2897
+ */
2898
+ individualSymbolBookTickerStreams(requestParameters) {
2899
+ return this.publicApi.individualSymbolBookTickerStreams(requestParameters);
2900
+ }
2901
+ /**
2902
+ * Top **<levels\>** bids and asks, Valid levels are **<levels\>** are 5, 10, 20.
2903
+ *
2904
+ * Update Speed: 100ms or 500ms
2982
2905
  *
2983
2906
  * @summary Partial Book Depth Streams
2984
2907
  * @param {PartialBookDepthStreamsRequest} requestParameters Request parameters.
2985
2908
  *
2986
2909
  * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
2987
2910
  * @throws {RequiredError}
2988
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
2911
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
2989
2912
  */
2990
2913
  partialBookDepthStreams(requestParameters) {
2991
- return this.websocketMarketStreamsApi.partialBookDepthStreams(requestParameters);
2914
+ return this.publicApi.partialBookDepthStreams(requestParameters);
2992
2915
  }
2993
2916
  /**
2994
2917
  * 24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
@@ -3000,28 +2923,13 @@ var WebsocketStreamsConnection = class {
3000
2923
  *
3001
2924
  * @returns {WebsocketStream<Ticker24HourResponse>}
3002
2925
  * @throws {RequiredError}
3003
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/24-hour-TICKER Binance API Documentation}
2926
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/24-hour-TICKER Binance API Documentation}
3004
2927
  */
3005
2928
  ticker24Hour(requestParameters) {
3006
- return this.websocketMarketStreamsApi.ticker24Hour(requestParameters);
3007
- }
3008
- /**
3009
- * 24hr ticker info by underlying asset and expiration date. E.g.[ETH@ticker@220930](wss://nbstream.binance.com/eoptions/stream?streams=ETH@ticker@220930)
3010
- *
3011
- * Update Speed: 1000ms
3012
- *
3013
- * @summary 24-hour TICKER by underlying asset and expiration data
3014
- * @param {Ticker24HourByUnderlyingAssetAndExpirationDataRequest} requestParameters Request parameters.
3015
- *
3016
- * @returns {WebsocketStream<Ticker24HourByUnderlyingAssetAndExpirationDataResponse>}
3017
- * @throws {RequiredError}
3018
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/24-hour-TICKER-by-underlying-asset-and-expiration-data Binance API Documentation}
3019
- */
3020
- ticker24HourByUnderlyingAssetAndExpirationData(requestParameters) {
3021
- return this.websocketMarketStreamsApi.ticker24HourByUnderlyingAssetAndExpirationData(requestParameters);
2929
+ return this.publicApi.ticker24Hour(requestParameters);
3022
2930
  }
3023
2931
  /**
3024
- * The Trade Streams push raw trade information for specific symbol or underlying asset. E.g.[ETH@trade](wss://nbstream.binance.com/eoptions/stream?streams=ETH@trade)
2932
+ * The Trade Streams push raw trade information for specific symbol or underlying asset. E.g.[btcusdt@optionTrade](wss://fstream.binance.com/public/stream?streams=btcusdt@optionTrade)
3025
2933
  *
3026
2934
  * Update Speed: 50ms
3027
2935
  *
@@ -3030,10 +2938,10 @@ var WebsocketStreamsConnection = class {
3030
2938
  *
3031
2939
  * @returns {WebsocketStream<TradeStreamsResponse>}
3032
2940
  * @throws {RequiredError}
3033
- * @see {@link https://developers.binance.com/docs/derivatives/option/websocket-market-streams/Trade-Streams Binance API Documentation}
2941
+ * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Trade-Streams Binance API Documentation}
3034
2942
  */
3035
2943
  tradeStreams(requestParameters) {
3036
- return this.websocketMarketStreamsApi.tradeStreams(requestParameters);
2944
+ return this.publicApi.tradeStreams(requestParameters);
3037
2945
  }
3038
2946
  };
3039
2947
 
@@ -3069,7 +2977,12 @@ var WebsocketStreams = class {
3069
2977
  ...this.configuration,
3070
2978
  ...mode && { mode },
3071
2979
  ...poolSize && { poolSize }
3072
- });
2980
+ }, [], [
2981
+ "market",
2982
+ "public",
2983
+ "private"
2984
+ ]);
2985
+ websocketBase.streamIdIsStrictlyNumber = true;
3073
2986
  const websocketStreamsConnection = new WebsocketStreamsConnection(websocketBase);
3074
2987
  await websocketBase.connect(stream);
3075
2988
  return websocketStreamsConnection;
@@ -3079,7 +2992,8 @@ var WebsocketStreams = class {
3079
2992
  //#endregion
3080
2993
  //#region src/websocket-streams/index.ts
3081
2994
  var websocket_streams_exports = /* @__PURE__ */ __export({
3082
- WebsocketMarketStreamsApi: () => WebsocketMarketStreamsApi,
2995
+ MarketApi: () => MarketApi,
2996
+ PublicApi: () => PublicApi,
3083
2997
  WebsocketStreams: () => WebsocketStreams,
3084
2998
  WebsocketStreamsConnection: () => WebsocketStreamsConnection
3085
2999
  });
@@ -3109,5 +3023,5 @@ var DerivativesTradingOptions = class {
3109
3023
  };
3110
3024
 
3111
3025
  //#endregion
3112
- export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DerivativesTradingOptions, rest_api_exports as DerivativesTradingOptionsRestAPI, websocket_streams_exports as DerivativesTradingOptionsWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
3026
+ export { BadRequestError, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_REST_API_TESTNET_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_TESTNET_URL, DerivativesTradingOptions, rest_api_exports as DerivativesTradingOptionsRestAPI, websocket_streams_exports as DerivativesTradingOptionsWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
3113
3027
  //# sourceMappingURL=index.mjs.map