@binance/derivatives-trading-options 15.0.8 → 16.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.js CHANGED
@@ -14,7 +14,15 @@ let __binance_common = require("@binance/common");
14
14
 
15
15
  //#region package.json
16
16
  var name = "@binance/derivatives-trading-options";
17
- var version = "15.0.8";
17
+ var version = "16.0.0";
18
+
19
+ //#endregion
20
+ //#region src/rest-api/types/new-block-trade-order-legs-parameter-inner.ts
21
+ const NewBlockTradeOrderLegsParameterInnerSideEnum = {
22
+ BUY: "BUY",
23
+ SELL: "SELL"
24
+ };
25
+ const NewBlockTradeOrderLegsParameterInnerTypeEnum = { LIMIT: "LIMIT" };
18
26
 
19
27
  //#endregion
20
28
  //#region src/rest-api/types/place-multiple-orders-orders-parameter-inner.ts
@@ -35,16 +43,16 @@ const PlaceMultipleOrdersOrdersParameterInnerNewOrderRespTypeEnum = {
35
43
  };
36
44
  const PlaceMultipleOrdersOrdersParameterInnerSelfTradePreventionModeEnum = {
37
45
  EXPIRE_TAKER: "EXPIRE_TAKER",
38
- EXPIRE_BOTH: "EXPIRE_BOTH",
39
- EXPIRE_MAKER: "EXPIRE_MAKER"
46
+ EXPIRE_MAKER: "EXPIRE_MAKER",
47
+ EXPIRE_BOTH: "EXPIRE_BOTH"
40
48
  };
41
49
 
42
50
  //#endregion
43
51
  //#region src/rest-api/modules/account-api.ts
44
52
  /**
45
- * Binance Derivatives Trading Options REST API
53
+ * Options REST API
46
54
  *
47
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
55
+ * Access market data, manage accounts, and trade Binance Options.
48
56
  *
49
57
  * The version of the OpenAPI document: 1.0.0
50
58
  *
@@ -110,17 +118,19 @@ var AccountApi = class {
110
118
  /**
111
119
  * Query account funding flows.
112
120
  *
121
+ * Weight(IP): 1
113
122
  *
114
- * Only support querying data in the past 3 months
123
+ * Security Type: USER_DATA
115
124
  *
116
- * Weight: 1
125
+ * Notes:
126
+ * - Only support querying data in the past 3 months
117
127
  *
118
128
  * @summary Account Funding Flow (USER_DATA)
119
129
  * @param {AccountFundingFlowRequest} requestParameters Request parameters.
120
130
  * @returns {Promise<RestApiResponse<AccountFundingFlowResponse>>}
121
131
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
122
132
  * @memberof AccountApi
123
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Account-Funding-Flow Binance API Documentation}
133
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#account-funding-flow Binance API Documentation}
124
134
  */
125
135
  async accountFundingFlow(requestParameters) {
126
136
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountFundingFlow(requestParameters?.currency, requestParameters?.recordId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -129,27 +139,33 @@ var AccountApi = class {
129
139
  /**
130
140
  * Get current account information.
131
141
  *
132
- * Weight: 3
142
+ * Weight(IP): 3
143
+ *
144
+ * Security Type: USER_DATA
133
145
  *
134
146
  * @summary Option Margin Account Information (USER_DATA)
135
147
  * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
136
148
  * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
137
149
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
138
150
  * @memberof AccountApi
139
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Option-Margin-Account-Information Binance API Documentation}
151
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#option-margin-account-information Binance API Documentation}
140
152
  */
141
153
  async optionMarginAccountInformation(requestParameters = {}) {
142
154
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(requestParameters?.recvWindow);
143
155
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
144
156
  }
145
157
  };
158
+ let AccountFundingFlowCurrencyEnum = /* @__PURE__ */ function(AccountFundingFlowCurrencyEnum$1) {
159
+ AccountFundingFlowCurrencyEnum$1["USDT"] = "USDT";
160
+ return AccountFundingFlowCurrencyEnum$1;
161
+ }({});
146
162
 
147
163
  //#endregion
148
164
  //#region src/rest-api/modules/market-data-api.ts
149
165
  /**
150
- * Binance Derivatives Trading Options REST API
166
+ * Options REST API
151
167
  *
152
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
168
+ * Access market data, manage accounts, and trade Binance Options.
153
169
  *
154
170
  * The version of the OpenAPI document: 1.0.0
155
171
  *
@@ -384,13 +400,13 @@ var MarketDataApi = class {
384
400
  /**
385
401
  * Test connectivity to the Rest API and get the current server time.
386
402
  *
387
- * Weight: 1
403
+ * Weight(IP): 1
388
404
  *
389
405
  * @summary Check Server Time
390
406
  * @returns {Promise<RestApiResponse<CheckServerTimeResponse>>}
391
407
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
392
408
  * @memberof MarketDataApi
393
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Check-Server-Time Binance API Documentation}
409
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#check-server-time Binance API Documentation}
394
410
  */
395
411
  async checkServerTime() {
396
412
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkServerTime();
@@ -399,13 +415,13 @@ var MarketDataApi = class {
399
415
  /**
400
416
  * Current exchange trading rules and symbol information
401
417
  *
402
- * Weight: 1
418
+ * Weight(IP): 1
403
419
  *
404
420
  * @summary Exchange Information
405
421
  * @returns {Promise<RestApiResponse<ExchangeInformationResponse>>}
406
422
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
407
423
  * @memberof MarketDataApi
408
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Exchange-Information Binance API Documentation}
424
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#exchange-information Binance API Documentation}
409
425
  */
410
426
  async exchangeInformation() {
411
427
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.exchangeInformation();
@@ -413,17 +429,18 @@ var MarketDataApi = class {
413
429
  }
414
430
  /**
415
431
  * Get historical exercise records.
432
+ *
416
433
  * REALISTIC_VALUE_STRICKEN -> Exercised
417
434
  * EXTRINSIC_VALUE_EXPIRED -> Expired OTM
418
435
  *
419
- * Weight: 3
436
+ * Weight(IP): 3
420
437
  *
421
438
  * @summary Historical Exercise Records
422
439
  * @param {HistoricalExerciseRecordsRequest} requestParameters Request parameters.
423
440
  * @returns {Promise<RestApiResponse<HistoricalExerciseRecordsResponse>>}
424
441
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
425
442
  * @memberof MarketDataApi
426
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Historical-Exercise-Records Binance API Documentation}
443
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#historical-exercise-records Binance API Documentation}
427
444
  */
428
445
  async historicalExerciseRecords(requestParameters = {}) {
429
446
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.historicalExerciseRecords(requestParameters?.underlying, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
@@ -432,33 +449,33 @@ var MarketDataApi = class {
432
449
  /**
433
450
  * Get spot index price for option underlying.
434
451
  *
435
- * Weight: 1
452
+ * Weight(IP): 1
436
453
  *
437
454
  * @summary Index Price
438
455
  * @param {IndexPriceRequest} requestParameters Request parameters.
439
456
  * @returns {Promise<RestApiResponse<IndexPriceResponse>>}
440
457
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
441
458
  * @memberof MarketDataApi
442
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Symbol-Price-Ticker Binance API Documentation}
459
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#index-price Binance API Documentation}
443
460
  */
444
461
  async indexPrice(requestParameters) {
445
462
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.indexPrice(requestParameters?.underlying);
446
463
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
447
464
  }
448
465
  /**
449
- * Kline/candlestick bars for an option symbol.
450
- * Klines are uniquely identified by their open time.
466
+ * Kline/candlestick bars for an option symbol. Klines are uniquely identified by their open time.
451
467
  *
452
- * If startTime and endTime are not sent, the most recent klines are returned.
468
+ * Weight(IP): 1
453
469
  *
454
- * Weight: 1
470
+ * Notes:
471
+ * - If startTime and endTime are not sent, the most recent klines are returned.
455
472
  *
456
473
  * @summary Kline/Candlestick Data
457
474
  * @param {KlineCandlestickDataRequest} requestParameters Request parameters.
458
475
  * @returns {Promise<RestApiResponse<KlineCandlestickDataResponse>>}
459
476
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
460
477
  * @memberof MarketDataApi
461
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Kline-Candlestick-Data Binance API Documentation}
478
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#kline-candlestick-data Binance API Documentation}
462
479
  */
463
480
  async klineCandlestickData(requestParameters) {
464
481
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.klineCandlestickData(requestParameters?.symbol, requestParameters?.interval, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit);
@@ -467,14 +484,14 @@ var MarketDataApi = class {
467
484
  /**
468
485
  * Get open interest for specific underlying asset on specific expiration date.
469
486
  *
470
- * Weight: 0
487
+ * Weight(IP): 0
471
488
  *
472
489
  * @summary Open Interest
473
490
  * @param {OpenInterestRequest} requestParameters Request parameters.
474
491
  * @returns {Promise<RestApiResponse<OpenInterestResponse>>}
475
492
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
476
493
  * @memberof MarketDataApi
477
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Open-Interest Binance API Documentation}
494
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#open-interest Binance API Documentation}
478
495
  */
479
496
  async openInterest(requestParameters) {
480
497
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.openInterest(requestParameters?.underlyingAsset, requestParameters?.expiration);
@@ -483,14 +500,14 @@ var MarketDataApi = class {
483
500
  /**
484
501
  * Option mark price and greek info.
485
502
  *
486
- * Weight: 5
503
+ * Weight(IP): 5
487
504
  *
488
505
  * @summary Option Mark Price
489
506
  * @param {OptionMarkPriceRequest} requestParameters Request parameters.
490
507
  * @returns {Promise<RestApiResponse<OptionMarkPriceResponse>>}
491
508
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
492
509
  * @memberof MarketDataApi
493
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Option-Mark-Price Binance API Documentation}
510
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#option-mark-price Binance API Documentation}
494
511
  */
495
512
  async optionMarkPrice(requestParameters = {}) {
496
513
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarkPrice(requestParameters?.symbol);
@@ -511,7 +528,7 @@ var MarketDataApi = class {
511
528
  * @returns {Promise<RestApiResponse<OrderBookResponse>>}
512
529
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
513
530
  * @memberof MarketDataApi
514
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Order-Book Binance API Documentation}
531
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#order-book Binance API Documentation}
515
532
  */
516
533
  async orderBook(requestParameters) {
517
534
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderBook(requestParameters?.symbol, requestParameters?.limit);
@@ -520,14 +537,14 @@ var MarketDataApi = class {
520
537
  /**
521
538
  * Get recent block trades
522
539
  *
523
- * Weight: 5
540
+ * Weight(IP): 5
524
541
  *
525
542
  * @summary Recent Block Trades List
526
543
  * @param {RecentBlockTradesListRequest} requestParameters Request parameters.
527
544
  * @returns {Promise<RestApiResponse<RecentBlockTradesListResponse>>}
528
545
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
529
546
  * @memberof MarketDataApi
530
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Block-Trade-List Binance API Documentation}
547
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#recent-block-trades-list Binance API Documentation}
531
548
  */
532
549
  async recentBlockTradesList(requestParameters = {}) {
533
550
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentBlockTradesList(requestParameters?.symbol, requestParameters?.limit);
@@ -536,14 +553,14 @@ var MarketDataApi = class {
536
553
  /**
537
554
  * Get recent market trades
538
555
  *
539
- * Weight: 5
556
+ * Weight(IP): 5
540
557
  *
541
558
  * @summary Recent Trades List
542
559
  * @param {RecentTradesListRequest} requestParameters Request parameters.
543
560
  * @returns {Promise<RestApiResponse<RecentTradesListResponse>>}
544
561
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
545
562
  * @memberof MarketDataApi
546
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Trades-List Binance API Documentation}
563
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#recent-trades-list Binance API Documentation}
547
564
  */
548
565
  async recentTradesList(requestParameters) {
549
566
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.recentTradesList(requestParameters?.symbol, requestParameters?.limit);
@@ -552,13 +569,13 @@ var MarketDataApi = class {
552
569
  /**
553
570
  * Test connectivity to the Rest API.
554
571
  *
555
- * Weight: 1
572
+ * Weight(IP): 1
556
573
  *
557
574
  * @summary Test Connectivity
558
575
  * @returns {Promise<RestApiResponse<void>>}
559
576
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
560
577
  * @memberof MarketDataApi
561
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Test-Connectivity Binance API Documentation}
578
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#test-connectivity Binance API Documentation}
562
579
  */
563
580
  async testConnectivity() {
564
581
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.testConnectivity();
@@ -567,27 +584,45 @@ var MarketDataApi = class {
567
584
  /**
568
585
  * 24 hour rolling window price change statistics.
569
586
  *
570
- * Weight: 5
587
+ * Weight(IP): 5
571
588
  *
572
589
  * @summary 24hr Ticker Price Change Statistics
573
590
  * @param {Ticker24hrPriceChangeStatisticsRequest} requestParameters Request parameters.
574
591
  * @returns {Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>}
575
592
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
576
593
  * @memberof MarketDataApi
577
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
594
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#ticker24hr-price-change-statistics Binance API Documentation}
578
595
  */
579
596
  async ticker24hrPriceChangeStatistics(requestParameters = {}) {
580
597
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.ticker24hrPriceChangeStatistics(requestParameters?.symbol);
581
598
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
582
599
  }
583
600
  };
601
+ let KlineCandlestickDataIntervalEnum = /* @__PURE__ */ function(KlineCandlestickDataIntervalEnum$1) {
602
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_1m"] = "1m";
603
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_3m"] = "3m";
604
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_5m"] = "5m";
605
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_15m"] = "15m";
606
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_30m"] = "30m";
607
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_1h"] = "1h";
608
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_2h"] = "2h";
609
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_4h"] = "4h";
610
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_6h"] = "6h";
611
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_8h"] = "8h";
612
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_12h"] = "12h";
613
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_1d"] = "1d";
614
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_3d"] = "3d";
615
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_1w"] = "1w";
616
+ KlineCandlestickDataIntervalEnum$1["INTERVAL_1M"] = "1M";
617
+ return KlineCandlestickDataIntervalEnum$1;
618
+ }({});
584
619
 
585
620
  //#endregion
586
621
  //#region src/rest-api/modules/market-maker-block-trade-api.ts
587
622
  /**
588
- * Binance Derivatives Trading Options REST API
623
+ * Options REST API
589
624
  *
590
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
625
+ * Access market data, manage accounts, and trade Binance Options.
591
626
  *
592
627
  * The version of the OpenAPI document: 1.0.0
593
628
  *
@@ -746,14 +781,16 @@ var MarketMakerBlockTradeApi = class {
746
781
  /**
747
782
  * Accept a block trade order
748
783
  *
749
- * Weight: 5
784
+ * Weight(IP): 5
785
+ *
786
+ * Security Type: TRADE
750
787
  *
751
788
  * @summary Accept Block Trade Order (TRADE)
752
789
  * @param {AcceptBlockTradeOrderRequest} requestParameters Request parameters.
753
790
  * @returns {Promise<RestApiResponse<AcceptBlockTradeOrderResponse>>}
754
791
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
755
792
  * @memberof MarketMakerBlockTradeApi
756
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Accept-Block-Trade-Order Binance API Documentation}
793
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#accept-block-trade-order Binance API Documentation}
757
794
  */
758
795
  async acceptBlockTradeOrder(requestParameters) {
759
796
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -762,14 +799,16 @@ var MarketMakerBlockTradeApi = class {
762
799
  /**
763
800
  * Gets block trades for a specific account.
764
801
  *
765
- * Weight: 5
802
+ * Weight(IP): 5
803
+ *
804
+ * Security Type: USER_DATA
766
805
  *
767
806
  * @summary Account Block Trade List (USER_DATA)
768
807
  * @param {AccountBlockTradeListRequest} requestParameters Request parameters.
769
808
  * @returns {Promise<RestApiResponse<AccountBlockTradeListResponse>>}
770
809
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
771
810
  * @memberof MarketMakerBlockTradeApi
772
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Account-Block-Trade-List Binance API Documentation}
811
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#account-block-trade-list Binance API Documentation}
773
812
  */
774
813
  async accountBlockTradeList(requestParameters = {}) {
775
814
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountBlockTradeList(requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
@@ -778,14 +817,16 @@ var MarketMakerBlockTradeApi = class {
778
817
  /**
779
818
  * Cancel a block trade order.
780
819
  *
781
- * Weight: 5
820
+ * Weight(IP): 5
821
+ *
822
+ * Security Type: TRADE
782
823
  *
783
824
  * @summary Cancel Block Trade Order (TRADE)
784
825
  * @param {CancelBlockTradeOrderRequest} requestParameters Request parameters.
785
826
  * @returns {Promise<RestApiResponse<void>>}
786
827
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
787
828
  * @memberof MarketMakerBlockTradeApi
788
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Cancel-Block-Trade-Order Binance API Documentation}
829
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#cancel-block-trade-order Binance API Documentation}
789
830
  */
790
831
  async cancelBlockTradeOrder(requestParameters) {
791
832
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -794,14 +835,16 @@ var MarketMakerBlockTradeApi = class {
794
835
  /**
795
836
  * Extends a block trade expire time by 30 mins from the current time.
796
837
  *
797
- * Weight: 5
838
+ * Weight(IP): 5
839
+ *
840
+ * Security Type: TRADE
798
841
  *
799
842
  * @summary Extend Block Trade Order (TRADE)
800
843
  * @param {ExtendBlockTradeOrderRequest} requestParameters Request parameters.
801
844
  * @returns {Promise<RestApiResponse<ExtendBlockTradeOrderResponse>>}
802
845
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
803
846
  * @memberof MarketMakerBlockTradeApi
804
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Extend-Block-Trade-Order Binance API Documentation}
847
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#extend-block-trade-order Binance API Documentation}
805
848
  */
806
849
  async extendBlockTradeOrder(requestParameters) {
807
850
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.extendBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -810,14 +853,16 @@ var MarketMakerBlockTradeApi = class {
810
853
  /**
811
854
  * Send in a new block trade order.
812
855
  *
813
- * Weight: 5
856
+ * Weight(IP): 5
857
+ *
858
+ * Security Type: TRADE
814
859
  *
815
860
  * @summary New Block Trade Order (TRADE)
816
861
  * @param {NewBlockTradeOrderRequest} requestParameters Request parameters.
817
862
  * @returns {Promise<RestApiResponse<NewBlockTradeOrderResponse>>}
818
863
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
819
864
  * @memberof MarketMakerBlockTradeApi
820
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/New-Block-Trade-Order Binance API Documentation}
865
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#new-block-trade-order Binance API Documentation}
821
866
  */
822
867
  async newBlockTradeOrder(requestParameters) {
823
868
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.newBlockTradeOrder(requestParameters?.liquidity, requestParameters?.legs, requestParameters?.recvWindow);
@@ -826,14 +871,16 @@ var MarketMakerBlockTradeApi = class {
826
871
  /**
827
872
  * Query block trade details; returns block trade details from counterparty's perspective.
828
873
  *
829
- * Weight: 5
874
+ * Weight(IP): 5
875
+ *
876
+ * Security Type: USER_DATA
830
877
  *
831
878
  * @summary Query Block Trade Details (USER_DATA)
832
879
  * @param {QueryBlockTradeDetailsRequest} requestParameters Request parameters.
833
880
  * @returns {Promise<RestApiResponse<QueryBlockTradeDetailsResponse>>}
834
881
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
835
882
  * @memberof MarketMakerBlockTradeApi
836
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Detail Binance API Documentation}
883
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#query-block-trade-details Binance API Documentation}
837
884
  */
838
885
  async queryBlockTradeDetails(requestParameters) {
839
886
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeDetails(requestParameters?.blockOrderMatchingKey, requestParameters?.recvWindow);
@@ -842,27 +889,34 @@ var MarketMakerBlockTradeApi = class {
842
889
  /**
843
890
  * Check block trade order status.
844
891
  *
845
- * Weight: 5
892
+ * Weight(IP): 5
893
+ *
894
+ * Security Type: TRADE
846
895
  *
847
896
  * @summary Query Block Trade Order (TRADE)
848
897
  * @param {QueryBlockTradeOrderRequest} requestParameters Request parameters.
849
898
  * @returns {Promise<RestApiResponse<QueryBlockTradeOrderResponse>>}
850
899
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
851
900
  * @memberof MarketMakerBlockTradeApi
852
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Order Binance API Documentation}
901
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#query-block-trade-order Binance API Documentation}
853
902
  */
854
903
  async queryBlockTradeOrder(requestParameters = {}) {
855
904
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryBlockTradeOrder(requestParameters?.blockOrderMatchingKey, requestParameters?.endTime, requestParameters?.startTime, requestParameters?.underlying, requestParameters?.recvWindow);
856
905
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
857
906
  }
858
907
  };
908
+ let NewBlockTradeOrderLiquidityEnum = /* @__PURE__ */ function(NewBlockTradeOrderLiquidityEnum$1) {
909
+ NewBlockTradeOrderLiquidityEnum$1["MAKER"] = "MAKER";
910
+ NewBlockTradeOrderLiquidityEnum$1["TAKER"] = "TAKER";
911
+ return NewBlockTradeOrderLiquidityEnum$1;
912
+ }({});
859
913
 
860
914
  //#endregion
861
915
  //#region src/rest-api/modules/market-maker-endpoints-api.ts
862
916
  /**
863
- * Binance Derivatives Trading Options REST API
917
+ * Options REST API
864
918
  *
865
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
919
+ * Access market data, manage accounts, and trade Binance Options.
866
920
  *
867
921
  * The version of the OpenAPI document: 1.0.0
868
922
  *
@@ -912,6 +966,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
912
966
  };
913
967
  },
914
968
  getMarketMakerProtectionConfig: async (underlying, recvWindow) => {
969
+ (0, __binance_common.assertParamExists)("getMarketMakerProtectionConfig", "underlying", underlying);
915
970
  const localVarQueryParameter = {};
916
971
  const localVarBodyParameter = {};
917
972
  const localVarHeaderParameter = {};
@@ -929,6 +984,7 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
929
984
  };
930
985
  },
931
986
  resetMarketMakerProtectionConfig: async (underlying, recvWindow) => {
987
+ (0, __binance_common.assertParamExists)("resetMarketMakerProtectionConfig", "underlying", underlying);
932
988
  const localVarQueryParameter = {};
933
989
  const localVarBodyParameter = {};
934
990
  const localVarHeaderParameter = {};
@@ -966,6 +1022,11 @@ const MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
966
1022
  };
967
1023
  },
968
1024
  setMarketMakerProtectionConfig: async (underlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindow) => {
1025
+ (0, __binance_common.assertParamExists)("setMarketMakerProtectionConfig", "underlying", underlying);
1026
+ (0, __binance_common.assertParamExists)("setMarketMakerProtectionConfig", "windowTimeInMilliseconds", windowTimeInMilliseconds);
1027
+ (0, __binance_common.assertParamExists)("setMarketMakerProtectionConfig", "frozenTimeInMilliseconds", frozenTimeInMilliseconds);
1028
+ (0, __binance_common.assertParamExists)("setMarketMakerProtectionConfig", "qtyLimit", qtyLimit);
1029
+ (0, __binance_common.assertParamExists)("setMarketMakerProtectionConfig", "deltaLimit", deltaLimit);
969
1030
  const localVarQueryParameter = {};
970
1031
  const localVarBodyParameter = {};
971
1032
  const localVarHeaderParameter = {};
@@ -1000,16 +1061,19 @@ var MarketMakerEndpointsApi = class {
1000
1061
  /**
1001
1062
  * This endpoint resets the time from which the countdown will begin to the time this messaged is received. It should be called repeatedly as heartbeats. Multiple heartbeats can be updated at once by specifying the underlying symbols as a list (ex. BTCUSDT,ETHUSDT) in the underlyings parameter.
1002
1063
  *
1003
- * The response will only include underlying symbols where the heartbeat has been successfully updated.
1064
+ * Weight(IP): 10
1065
+ *
1066
+ * Security Type: TRADE
1004
1067
  *
1005
- * Weight: 10
1068
+ * Notes:
1069
+ * - The response will only include underlying symbols where the heartbeat has been successfully updated.
1006
1070
  *
1007
1071
  * @summary Auto-Cancel All Open Orders (Kill-Switch) Heartbeat (TRADE)
1008
1072
  * @param {AutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
1009
1073
  * @returns {Promise<RestApiResponse<AutoCancelAllOpenOrdersResponse>>}
1010
1074
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1011
1075
  * @memberof MarketMakerEndpointsApi
1012
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Auto-Cancel-All-Open-Orders-Heartbeat Binance API Documentation}
1076
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#auto-cancel-all-open-orders Binance API Documentation}
1013
1077
  */
1014
1078
  async autoCancelAllOpenOrders(requestParameters) {
1015
1079
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.autoCancelAllOpenOrders(requestParameters?.underlyings, requestParameters?.recvWindow);
@@ -1018,16 +1082,19 @@ var MarketMakerEndpointsApi = class {
1018
1082
  /**
1019
1083
  * This endpoint returns the auto-cancel parameters for each underlying symbol. Note only active auto-cancel parameters will be returned, if countdownTime is set to 0 (ie. countdownTime has been turned off), the underlying symbol and corresponding countdownTime parameter will not be returned in the response.
1020
1084
  *
1021
- * countdownTime = 0 means the function is disabled.
1085
+ * Weight(IP): 1
1022
1086
  *
1023
- * Weight: 1
1087
+ * Security Type: TRADE
1088
+ *
1089
+ * Notes:
1090
+ * - countdownTime = 0 means the function is disabled.
1024
1091
  *
1025
1092
  * @summary Get Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE)
1026
1093
  * @param {GetAutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
1027
1094
  * @returns {Promise<RestApiResponse<GetAutoCancelAllOpenOrdersResponse>>}
1028
1095
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1029
1096
  * @memberof MarketMakerEndpointsApi
1030
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
1097
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#get-auto-cancel-all-open-orders Binance API Documentation}
1031
1098
  */
1032
1099
  async getAutoCancelAllOpenOrders(requestParameters = {}) {
1033
1100
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1036,71 +1103,77 @@ var MarketMakerEndpointsApi = class {
1036
1103
  /**
1037
1104
  * Get config for MMP.
1038
1105
  *
1039
- * Weight: 1
1106
+ * Weight(IP): 1
1107
+ *
1108
+ * Security Type: TRADE
1040
1109
  *
1041
1110
  * @summary Get Market Maker Protection Config (TRADE)
1042
1111
  * @param {GetMarketMakerProtectionConfigRequest} requestParameters Request parameters.
1043
1112
  * @returns {Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>}
1044
1113
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1045
1114
  * @memberof MarketMakerEndpointsApi
1046
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
1115
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#get-market-maker-protection-config Binance API Documentation}
1047
1116
  */
1048
- async getMarketMakerProtectionConfig(requestParameters = {}) {
1117
+ async getMarketMakerProtectionConfig(requestParameters) {
1049
1118
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
1050
1119
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1051
1120
  }
1052
1121
  /**
1053
1122
  * Reset MMP, start MMP order again.
1054
1123
  *
1055
- * Weight: 1
1124
+ * Weight(IP): 1
1125
+ *
1126
+ * Security Type: TRADE
1056
1127
  *
1057
1128
  * @summary Reset Market Maker Protection Config (TRADE)
1058
1129
  * @param {ResetMarketMakerProtectionConfigRequest} requestParameters Request parameters.
1059
1130
  * @returns {Promise<RestApiResponse<ResetMarketMakerProtectionConfigResponse>>}
1060
1131
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1061
1132
  * @memberof MarketMakerEndpointsApi
1062
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Reset-Market-Maker-Protection-Config Binance API Documentation}
1133
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#reset-market-maker-protection-config Binance API Documentation}
1063
1134
  */
1064
- async resetMarketMakerProtectionConfig(requestParameters = {}) {
1135
+ async resetMarketMakerProtectionConfig(requestParameters) {
1065
1136
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.resetMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.recvWindow);
1066
1137
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1067
1138
  }
1068
1139
  /**
1069
1140
  * This endpoint sets the parameters of the auto-cancel feature which cancels all open orders (both market maker protection and non market maker protection order types) of the underlying symbol at the end of the specified countdown time period if no heartbeat message is sent. After the countdown time period, all open orders will be cancelled and new orders will be rejected with error code -2010 until either a heartbeat message is sent or the auto-cancel feature is turned off by setting countdownTime to 0.
1070
1141
  *
1142
+ * Weight(IP): 1
1071
1143
  *
1072
- * This rest endpoint sets up the parameters to cancel your open orders in case of an outage or disconnection.
1073
- * Example usage:
1074
- * Call this endpoint with a countdownTime value of 10000 (10 seconds) to turn on the auto-cancel feature. If the corresponding countdownCancelAllHeartBeat endpoint is not called within 10 seconds with the specified underlying symbol, all open orders of the specified symbol will be automatically canceled. If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
1075
- * The system will check all countdowns approximately every 100 milliseconds, **please note that sufficient redundancy should be considered when using this function**. We do not recommend setting the countdown time to be too precise or too small.
1144
+ * Security Type: TRADE
1076
1145
  *
1077
- * Weight: 1
1146
+ * Notes:
1147
+ * - This rest endpoint sets up the parameters to cancel your open orders in case of an outage or disconnection.
1148
+ * - Example usage: > Call this endpoint with a countdownTime value of 10000 (10 seconds) to turn on the auto-cancel feature. If the corresponding countdownCancelAllHeartBeat endpoint is not called within 10 seconds with the specified underlying symbol, all open orders of the specified symbol will be automatically canceled. If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
1149
+ * - The system will check all countdowns approximately every 100 milliseconds, **please note that sufficient redundancy should be considered when using this function**. We do not recommend setting the countdown time to be too precise or too small.
1078
1150
  *
1079
1151
  * @summary Set Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE)
1080
1152
  * @param {SetAutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
1081
1153
  * @returns {Promise<RestApiResponse<SetAutoCancelAllOpenOrdersResponse>>}
1082
1154
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1083
1155
  * @memberof MarketMakerEndpointsApi
1084
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
1156
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#set-auto-cancel-all-open-orders Binance API Documentation}
1085
1157
  */
1086
1158
  async setAutoCancelAllOpenOrders(requestParameters) {
1087
1159
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setAutoCancelAllOpenOrders(requestParameters?.underlying, requestParameters?.countdownTime, requestParameters?.recvWindow);
1088
1160
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1089
1161
  }
1090
1162
  /**
1091
- * Set config for MMP.
1092
- * Market Maker Protection(MMP) is a set of protection mechanism for option market maker, this mechanism is able to prevent mass trading in short period time. Once market maker's account branches the threshold, the Market Maker Protection will be triggered. When Market Maker Protection triggers, all the current MMP orders will be canceled, new MMP orders will be rejected. Market maker can use this time to reevaluate market and modify order price.
1163
+ * Set config for MMP. Market Maker Protection(MMP) is a set of protection mechanism for option market maker, this mechanism is able to prevent mass trading in short period time. Once market maker's account branches the threshold, the Market Maker Protection will be triggered. When Market Maker Protection triggers, all the current MMP orders will be canceled, new MMP orders will be rejected. Market maker can use this time to reevaluate market and modify order price.
1093
1164
  *
1094
- * Weight: 1
1165
+ * Weight(IP): 1
1166
+ *
1167
+ * Security Type: TRADE
1095
1168
  *
1096
1169
  * @summary Set Market Maker Protection Config (TRADE)
1097
1170
  * @param {SetMarketMakerProtectionConfigRequest} requestParameters Request parameters.
1098
1171
  * @returns {Promise<RestApiResponse<SetMarketMakerProtectionConfigResponse>>}
1099
1172
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1100
1173
  * @memberof MarketMakerEndpointsApi
1101
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Market-Maker-Protection-Config Binance API Documentation}
1174
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#set-market-maker-protection-config Binance API Documentation}
1102
1175
  */
1103
- async setMarketMakerProtectionConfig(requestParameters = {}) {
1176
+ async setMarketMakerProtectionConfig(requestParameters) {
1104
1177
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setMarketMakerProtectionConfig(requestParameters?.underlying, requestParameters?.windowTimeInMilliseconds, requestParameters?.frozenTimeInMilliseconds, requestParameters?.qtyLimit, requestParameters?.deltaLimit, requestParameters?.recvWindow);
1105
1178
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1106
1179
  }
@@ -1109,9 +1182,9 @@ var MarketMakerEndpointsApi = class {
1109
1182
  //#endregion
1110
1183
  //#region src/rest-api/modules/trade-api.ts
1111
1184
  /**
1112
- * Binance Derivatives Trading Options REST API
1185
+ * Options REST API
1113
1186
  *
1114
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
1187
+ * Access market data, manage accounts, and trade Binance Options.
1115
1188
  *
1116
1189
  * The version of the OpenAPI document: 1.0.0
1117
1190
  *
@@ -1126,6 +1199,7 @@ var MarketMakerEndpointsApi = class {
1126
1199
  const TradeApiAxiosParamCreator = function(configuration) {
1127
1200
  return {
1128
1201
  accountTradeList: async (symbol, fromId, startTime, endTime, limit, recvWindow) => {
1202
+ (0, __binance_common.assertParamExists)("accountTradeList", "symbol", symbol);
1129
1203
  const localVarQueryParameter = {};
1130
1204
  const localVarBodyParameter = {};
1131
1205
  const localVarHeaderParameter = {};
@@ -1351,6 +1425,22 @@ const TradeApiAxiosParamCreator = function(configuration) {
1351
1425
  timeUnit: _timeUnit
1352
1426
  };
1353
1427
  },
1428
+ tradfiOptionsContract: async (recvWindow) => {
1429
+ const localVarQueryParameter = {};
1430
+ const localVarBodyParameter = {};
1431
+ const localVarHeaderParameter = {};
1432
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1433
+ let _timeUnit;
1434
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1435
+ return {
1436
+ endpoint: "/eapi/v1/stock/contract",
1437
+ method: "POST",
1438
+ queryParams: localVarQueryParameter,
1439
+ bodyParams: localVarBodyParameter,
1440
+ headerParams: localVarHeaderParameter,
1441
+ timeUnit: _timeUnit
1442
+ };
1443
+ },
1354
1444
  userCommission: async (recvWindow) => {
1355
1445
  const localVarQueryParameter = {};
1356
1446
  const localVarBodyParameter = {};
@@ -1401,32 +1491,34 @@ var TradeApi = class {
1401
1491
  /**
1402
1492
  * Get trades for a specific account and symbol.
1403
1493
  *
1404
- * Only support querying trades in the past 3 months
1494
+ * Weight(IP): 5
1405
1495
  *
1406
- * Weight: 5
1496
+ * Security Type: USER_DATA
1407
1497
  *
1408
1498
  * @summary Account Trade List (USER_DATA)
1409
1499
  * @param {AccountTradeListRequest} requestParameters Request parameters.
1410
1500
  * @returns {Promise<RestApiResponse<AccountTradeListResponse>>}
1411
1501
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1412
1502
  * @memberof TradeApi
1413
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Account-Trade-List Binance API Documentation}
1503
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#account-trade-list Binance API Documentation}
1414
1504
  */
1415
- async accountTradeList(requestParameters = {}) {
1505
+ async accountTradeList(requestParameters) {
1416
1506
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountTradeList(requestParameters?.symbol, requestParameters?.fromId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
1417
1507
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1418
1508
  }
1419
1509
  /**
1420
1510
  * Cancel all active orders on specified underlying.
1421
1511
  *
1422
- * Weight: 1
1512
+ * Weight(IP): 1
1513
+ *
1514
+ * Security Type: TRADE
1423
1515
  *
1424
1516
  * @summary Cancel All Option Orders By Underlying (TRADE)
1425
1517
  * @param {CancelAllOptionOrdersByUnderlyingRequest} requestParameters Request parameters.
1426
1518
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersByUnderlyingResponse>>}
1427
1519
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1428
1520
  * @memberof TradeApi
1429
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-All-Option-Orders-By-Underlying Binance API Documentation}
1521
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-all-option-orders-by-underlying Binance API Documentation}
1430
1522
  */
1431
1523
  async cancelAllOptionOrdersByUnderlying(requestParameters) {
1432
1524
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersByUnderlying(requestParameters?.underlying, requestParameters?.recvWindow);
@@ -1435,14 +1527,16 @@ var TradeApi = class {
1435
1527
  /**
1436
1528
  * Cancel all active order on a symbol.
1437
1529
  *
1438
- * Weight: 5
1530
+ * Weight(IP): 5
1531
+ *
1532
+ * Security Type: TRADE
1439
1533
  *
1440
1534
  * @summary Cancel all Option orders on specific symbol (TRADE)
1441
1535
  * @param {CancelAllOptionOrdersOnSpecificSymbolRequest} requestParameters Request parameters.
1442
1536
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersOnSpecificSymbolResponse>>}
1443
1537
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1444
1538
  * @memberof TradeApi
1445
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-all-Option-orders-on-specific-symbol Binance API Documentation}
1539
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-all-option-orders-on-specific-symbol Binance API Documentation}
1446
1540
  */
1447
1541
  async cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
1448
1542
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllOptionOrdersOnSpecificSymbol(requestParameters?.symbol, requestParameters?.recvWindow);
@@ -1451,16 +1545,19 @@ var TradeApi = class {
1451
1545
  /**
1452
1546
  * Cancel multiple orders.
1453
1547
  *
1454
- * At least one instance of `orderId` and `clientOrderId` must be sent.
1548
+ * Weight(IP): 5
1549
+ *
1550
+ * Security Type: TRADE
1455
1551
  *
1456
- * Weight: 1
1552
+ * Notes:
1553
+ * - At least one instance of `orderId` and `clientOrderId` must be sent.
1457
1554
  *
1458
1555
  * @summary Cancel Multiple Option Orders (TRADE)
1459
1556
  * @param {CancelMultipleOptionOrdersRequest} requestParameters Request parameters.
1460
1557
  * @returns {Promise<RestApiResponse<CancelMultipleOptionOrdersResponse>>}
1461
1558
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1462
1559
  * @memberof TradeApi
1463
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Multiple-Option-Orders Binance API Documentation}
1560
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-multiple-option-orders Binance API Documentation}
1464
1561
  */
1465
1562
  async cancelMultipleOptionOrders(requestParameters) {
1466
1563
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelMultipleOptionOrders(requestParameters?.symbol, requestParameters?.orderIds, requestParameters?.clientOrderIds, requestParameters?.recvWindow);
@@ -1469,16 +1566,19 @@ var TradeApi = class {
1469
1566
  /**
1470
1567
  * Cancel an active order.
1471
1568
  *
1472
- * At least one instance of `orderId` and `clientOrderId` must be sent.
1569
+ * Weight(IP): 1
1570
+ *
1571
+ * Security Type: TRADE
1473
1572
  *
1474
- * Weight: 1
1573
+ * Notes:
1574
+ * - At least one instance of `orderId` and `clientOrderId` must be sent.
1475
1575
  *
1476
1576
  * @summary Cancel Option Order (TRADE)
1477
1577
  * @param {CancelOptionOrderRequest} requestParameters Request parameters.
1478
1578
  * @returns {Promise<RestApiResponse<CancelOptionOrderResponse>>}
1479
1579
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1480
1580
  * @memberof TradeApi
1481
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Option-Order Binance API Documentation}
1581
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-option-order Binance API Documentation}
1482
1582
  */
1483
1583
  async cancelOptionOrder(requestParameters) {
1484
1584
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelOptionOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
@@ -1487,14 +1587,21 @@ var TradeApi = class {
1487
1587
  /**
1488
1588
  * Send a new order.
1489
1589
  *
1490
- * Weight: 0
1590
+ * Security Type: TRADE
1591
+ *
1592
+ * Notes:
1593
+ * Some parameters are mandatory depending on the order type as follows:
1594
+ *
1595
+ * Type | Mandatory parameters
1596
+ * ------------ | ------------
1597
+ * LIMIT | timeInForce, quantity, price
1491
1598
  *
1492
1599
  * @summary New Order (TRADE)
1493
1600
  * @param {NewOrderRequest} requestParameters Request parameters.
1494
1601
  * @returns {Promise<RestApiResponse<NewOrderResponse>>}
1495
1602
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1496
1603
  * @memberof TradeApi
1497
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/New-Order Binance API Documentation}
1604
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#new-order Binance API Documentation}
1498
1605
  */
1499
1606
  async newOrder(requestParameters) {
1500
1607
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.newOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.quantity, requestParameters?.price, requestParameters?.timeInForce, requestParameters?.reduceOnly, requestParameters?.postOnly, requestParameters?.newOrderRespType, requestParameters?.clientOrderId, requestParameters?.isMmp, requestParameters?.selfTradePreventionMode, requestParameters?.recvWindow);
@@ -1503,14 +1610,16 @@ var TradeApi = class {
1503
1610
  /**
1504
1611
  * Get current position information.
1505
1612
  *
1506
- * Weight: 5
1613
+ * Weight(IP): 5
1614
+ *
1615
+ * Security Type: USER_DATA
1507
1616
  *
1508
1617
  * @summary Option Position Information (USER_DATA)
1509
1618
  * @param {OptionPositionInformationRequest} requestParameters Request parameters.
1510
1619
  * @returns {Promise<RestApiResponse<OptionPositionInformationResponse>>}
1511
1620
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1512
1621
  * @memberof TradeApi
1513
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Option-Position-Information Binance API Documentation}
1622
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#option-position-information Binance API Documentation}
1514
1623
  */
1515
1624
  async optionPositionInformation(requestParameters = {}) {
1516
1625
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionPositionInformation(requestParameters?.symbol, requestParameters?.recvWindow);
@@ -1519,17 +1628,26 @@ var TradeApi = class {
1519
1628
  /**
1520
1629
  * Send multiple option orders.
1521
1630
  *
1522
- * Parameter rules are same with New Order
1523
- * Batch orders are processed concurrently, and the order of matching is not guaranteed.
1631
+ * Weight(IP): 5
1632
+ *
1633
+ * Security Type: TRADE
1524
1634
  *
1525
- * Weight: 5
1635
+ * Notes:
1636
+ * Some parameters are mandatory depending on the order type as follows:
1526
1637
  *
1527
- * @summary Place Multiple Orders(TRADE)
1638
+ * Type | Mandatory parameters
1639
+ * ------------ | ------------
1640
+ * LIMIT | timeInForce, quantity, price
1641
+ *
1642
+ * - Parameter rules are same with New Order
1643
+ * - Batch orders are processed concurrently, and the order of matching is not guaranteed.
1644
+ *
1645
+ * @summary Place Multiple Orders (TRADE)
1528
1646
  * @param {PlaceMultipleOrdersRequest} requestParameters Request parameters.
1529
1647
  * @returns {Promise<RestApiResponse<PlaceMultipleOrdersResponse>>}
1530
1648
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1531
1649
  * @memberof TradeApi
1532
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Place-Multiple-Orders Binance API Documentation}
1650
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#place-multiple-orders Binance API Documentation}
1533
1651
  */
1534
1652
  async placeMultipleOrders(requestParameters) {
1535
1653
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeMultipleOrders(requestParameters?.orders, requestParameters?.recvWindow);
@@ -1540,12 +1658,14 @@ var TradeApi = class {
1540
1658
  *
1541
1659
  * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
1542
1660
  *
1661
+ * Security Type: USER_DATA
1662
+ *
1543
1663
  * @summary Query Current Open Option Orders (USER_DATA)
1544
1664
  * @param {QueryCurrentOpenOptionOrdersRequest} requestParameters Request parameters.
1545
1665
  * @returns {Promise<RestApiResponse<QueryCurrentOpenOptionOrdersResponse>>}
1546
1666
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1547
1667
  * @memberof TradeApi
1548
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Current-Open-Option-Orders Binance API Documentation}
1668
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-current-open-option-orders Binance API Documentation}
1549
1669
  */
1550
1670
  async queryCurrentOpenOptionOrders(requestParameters = {}) {
1551
1671
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentOpenOptionOrders(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
@@ -1554,14 +1674,16 @@ var TradeApi = class {
1554
1674
  /**
1555
1675
  * Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.
1556
1676
  *
1557
- * Weight: 3
1677
+ * Weight(IP): 3
1678
+ *
1679
+ * Security Type: TRADE
1558
1680
  *
1559
1681
  * @summary Query Option Order History (TRADE)
1560
1682
  * @param {QueryOptionOrderHistoryRequest} requestParameters Request parameters.
1561
1683
  * @returns {Promise<RestApiResponse<QueryOptionOrderHistoryResponse>>}
1562
1684
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1563
1685
  * @memberof TradeApi
1564
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Option-Order-History Binance API Documentation}
1686
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-option-order-history Binance API Documentation}
1565
1687
  */
1566
1688
  async queryOptionOrderHistory(requestParameters) {
1567
1689
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOptionOrderHistory(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -1575,33 +1697,55 @@ var TradeApi = class {
1575
1697
  * order has NO filled trade, **AND**
1576
1698
  * created time + 3 days < current time
1577
1699
  *
1700
+ * Weight(IP): 1
1578
1701
  *
1579
- * Either `orderId` or `clientOrderId ` must be sent.
1702
+ * Security Type: TRADE
1580
1703
  *
1581
- * Weight: 1
1704
+ * Notes:
1705
+ * - Either `orderId` or `clientOrderId ` must be sent.
1582
1706
  *
1583
1707
  * @summary Query Single Order (TRADE)
1584
1708
  * @param {QuerySingleOrderRequest} requestParameters Request parameters.
1585
1709
  * @returns {Promise<RestApiResponse<QuerySingleOrderResponse>>}
1586
1710
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1587
1711
  * @memberof TradeApi
1588
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Single-Order Binance API Documentation}
1712
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-single-order Binance API Documentation}
1589
1713
  */
1590
1714
  async querySingleOrder(requestParameters) {
1591
1715
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySingleOrder(requestParameters?.symbol, requestParameters?.orderId, requestParameters?.clientOrderId, requestParameters?.recvWindow);
1592
1716
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1593
1717
  }
1594
1718
  /**
1719
+ * Sign TradFi Options agreement contract
1720
+ *
1721
+ * Weight(IP): 50
1722
+ *
1723
+ * Security Type: USER_DATA
1724
+ *
1725
+ * @summary TradFi Options Contract (USER_DATA)
1726
+ * @param {TradfiOptionsContractRequest} requestParameters Request parameters.
1727
+ * @returns {Promise<RestApiResponse<TradfiOptionsContractResponse>>}
1728
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1729
+ * @memberof TradeApi
1730
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#tradfi-options-contract Binance API Documentation}
1731
+ */
1732
+ async tradfiOptionsContract(requestParameters = {}) {
1733
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradfiOptionsContract(requestParameters?.recvWindow);
1734
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1735
+ }
1736
+ /**
1595
1737
  * Get account commission.
1596
1738
  *
1597
- * Weight: 5
1739
+ * Weight(IP): 5
1740
+ *
1741
+ * Security Type: USER_DATA
1598
1742
  *
1599
1743
  * @summary User Commission (USER_DATA)
1600
1744
  * @param {UserCommissionRequest} requestParameters Request parameters.
1601
1745
  * @returns {Promise<RestApiResponse<UserCommissionResponse>>}
1602
1746
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1603
1747
  * @memberof TradeApi
1604
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Commission Binance API Documentation}
1748
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#user-commission Binance API Documentation}
1605
1749
  */
1606
1750
  async userCommission(requestParameters = {}) {
1607
1751
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userCommission(requestParameters?.recvWindow);
@@ -1610,14 +1754,16 @@ var TradeApi = class {
1610
1754
  /**
1611
1755
  * Get account exercise records.
1612
1756
  *
1613
- * Weight: 5
1757
+ * Weight(IP): 5
1758
+ *
1759
+ * Security Type: USER_DATA
1614
1760
  *
1615
1761
  * @summary User Exercise Record (USER_DATA)
1616
1762
  * @param {UserExerciseRecordRequest} requestParameters Request parameters.
1617
1763
  * @returns {Promise<RestApiResponse<UserExerciseRecordResponse>>}
1618
1764
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1619
1765
  * @memberof TradeApi
1620
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Exercise-Record Binance API Documentation}
1766
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#user-exercise-record Binance API Documentation}
1621
1767
  */
1622
1768
  async userExerciseRecord(requestParameters = {}) {
1623
1769
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userExerciseRecord(requestParameters?.symbol, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -1646,18 +1792,19 @@ let NewOrderNewOrderRespTypeEnum = /* @__PURE__ */ function(NewOrderNewOrderResp
1646
1792
  return NewOrderNewOrderRespTypeEnum$1;
1647
1793
  }({});
1648
1794
  let NewOrderSelfTradePreventionModeEnum = /* @__PURE__ */ function(NewOrderSelfTradePreventionModeEnum$1) {
1795
+ NewOrderSelfTradePreventionModeEnum$1["NONE"] = "NONE";
1649
1796
  NewOrderSelfTradePreventionModeEnum$1["EXPIRE_TAKER"] = "EXPIRE_TAKER";
1650
- NewOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
1651
1797
  NewOrderSelfTradePreventionModeEnum$1["EXPIRE_MAKER"] = "EXPIRE_MAKER";
1798
+ NewOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
1652
1799
  return NewOrderSelfTradePreventionModeEnum$1;
1653
1800
  }({});
1654
1801
 
1655
1802
  //#endregion
1656
1803
  //#region src/rest-api/modules/user-data-streams-api.ts
1657
1804
  /**
1658
- * Binance Derivatives Trading Options REST API
1805
+ * Options REST API
1659
1806
  *
1660
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
1807
+ * Access market data, manage accounts, and trade Binance Options.
1661
1808
  *
1662
1809
  * The version of the OpenAPI document: 1.0.0
1663
1810
  *
@@ -1730,28 +1877,34 @@ var UserDataStreamsApi = class {
1730
1877
  /**
1731
1878
  * Close out a user data stream.
1732
1879
  *
1733
- * Weight: 1
1880
+ * Weight(IP): 1
1881
+ *
1882
+ * Security Type: USER_STREAM
1734
1883
  *
1735
1884
  * @summary Close User Data Stream (USER_STREAM)
1736
1885
  * @returns {Promise<RestApiResponse<void>>}
1737
1886
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1738
1887
  * @memberof UserDataStreamsApi
1739
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Close-User-Data-Stream Binance API Documentation}
1888
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/user-data-streams#close-user-data-stream Binance API Documentation}
1740
1889
  */
1741
1890
  async closeUserDataStream() {
1742
1891
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.closeUserDataStream();
1743
1892
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1744
1893
  }
1745
1894
  /**
1746
- * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
1895
+ * Keepalive a user data stream to prevent a time out. User data streams
1896
+ * will close after 60 minutes. It's recommended to send a ping about every
1897
+ * 60 minutes.
1898
+ *
1899
+ * Weight(IP): 1
1747
1900
  *
1748
- * Weight: 1
1901
+ * Security Type: USER_STREAM
1749
1902
  *
1750
1903
  * @summary Keepalive User Data Stream (USER_STREAM)
1751
1904
  * @returns {Promise<RestApiResponse<void>>}
1752
1905
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1753
1906
  * @memberof UserDataStreamsApi
1754
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
1907
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/user-data-streams#keepalive-user-data-stream Binance API Documentation}
1755
1908
  */
1756
1909
  async keepaliveUserDataStream() {
1757
1910
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.keepaliveUserDataStream();
@@ -1760,13 +1913,15 @@ var UserDataStreamsApi = class {
1760
1913
  /**
1761
1914
  * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
1762
1915
  *
1763
- * Weight: 1
1916
+ * Weight(IP): 1
1917
+ *
1918
+ * Security Type: USER_STREAM
1764
1919
  *
1765
1920
  * @summary Start User Data Stream (USER_STREAM)
1766
1921
  * @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
1767
1922
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1768
1923
  * @memberof UserDataStreamsApi
1769
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Start-User-Data-Stream Binance API Documentation}
1924
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/user-data-streams#start-user-data-stream Binance API Documentation}
1770
1925
  */
1771
1926
  async startUserDataStream() {
1772
1927
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.startUserDataStream();
@@ -1777,9 +1932,9 @@ var UserDataStreamsApi = class {
1777
1932
  //#endregion
1778
1933
  //#region src/rest-api/rest-api.ts
1779
1934
  /**
1780
- * Binance Derivatives Trading Options REST API
1935
+ * Options REST API
1781
1936
  *
1782
- * OpenAPI Specification for the Binance Derivatives Trading Options REST API
1937
+ * Access market data, manage accounts, and trade Binance Options.
1783
1938
  *
1784
1939
  * The version of the OpenAPI document: 1.0.0
1785
1940
  *
@@ -1825,17 +1980,19 @@ var RestAPI = class {
1825
1980
  /**
1826
1981
  * Query account funding flows.
1827
1982
  *
1983
+ * Weight(IP): 1
1828
1984
  *
1829
- * Only support querying data in the past 3 months
1985
+ * Security Type: USER_DATA
1830
1986
  *
1831
- * Weight: 1
1987
+ * Notes:
1988
+ * - Only support querying data in the past 3 months
1832
1989
  *
1833
1990
  * @summary Account Funding Flow (USER_DATA)
1834
1991
  * @param {AccountFundingFlowRequest} requestParameters Request parameters.
1835
1992
  *
1836
1993
  * @returns {Promise<RestApiResponse<AccountFundingFlowResponse>>}
1837
1994
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1838
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Account-Funding-Flow Binance API Documentation}
1995
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#account-funding-flow Binance API Documentation}
1839
1996
  */
1840
1997
  accountFundingFlow(requestParameters) {
1841
1998
  return this.accountApi.accountFundingFlow(requestParameters);
@@ -1843,14 +2000,16 @@ var RestAPI = class {
1843
2000
  /**
1844
2001
  * Get current account information.
1845
2002
  *
1846
- * Weight: 3
2003
+ * Weight(IP): 3
2004
+ *
2005
+ * Security Type: USER_DATA
1847
2006
  *
1848
2007
  * @summary Option Margin Account Information (USER_DATA)
1849
2008
  * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
1850
2009
  *
1851
2010
  * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
1852
2011
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1853
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/account/Option-Margin-Account-Information Binance API Documentation}
2012
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/account#option-margin-account-information Binance API Documentation}
1854
2013
  */
1855
2014
  optionMarginAccountInformation(requestParameters = {}) {
1856
2015
  return this.accountApi.optionMarginAccountInformation(requestParameters);
@@ -1858,13 +2017,13 @@ var RestAPI = class {
1858
2017
  /**
1859
2018
  * Test connectivity to the Rest API and get the current server time.
1860
2019
  *
1861
- * Weight: 1
2020
+ * Weight(IP): 1
1862
2021
  *
1863
2022
  * @summary Check Server Time
1864
2023
  *
1865
2024
  * @returns {Promise<RestApiResponse<CheckServerTimeResponse>>}
1866
2025
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1867
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Check-Server-Time Binance API Documentation}
2026
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#check-server-time Binance API Documentation}
1868
2027
  */
1869
2028
  checkServerTime() {
1870
2029
  return this.marketDataApi.checkServerTime();
@@ -1872,30 +2031,31 @@ var RestAPI = class {
1872
2031
  /**
1873
2032
  * Current exchange trading rules and symbol information
1874
2033
  *
1875
- * Weight: 1
2034
+ * Weight(IP): 1
1876
2035
  *
1877
2036
  * @summary Exchange Information
1878
2037
  *
1879
2038
  * @returns {Promise<RestApiResponse<ExchangeInformationResponse>>}
1880
2039
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1881
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Exchange-Information Binance API Documentation}
2040
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#exchange-information Binance API Documentation}
1882
2041
  */
1883
2042
  exchangeInformation() {
1884
2043
  return this.marketDataApi.exchangeInformation();
1885
2044
  }
1886
2045
  /**
1887
2046
  * Get historical exercise records.
2047
+ *
1888
2048
  * REALISTIC_VALUE_STRICKEN -> Exercised
1889
2049
  * EXTRINSIC_VALUE_EXPIRED -> Expired OTM
1890
2050
  *
1891
- * Weight: 3
2051
+ * Weight(IP): 3
1892
2052
  *
1893
2053
  * @summary Historical Exercise Records
1894
2054
  * @param {HistoricalExerciseRecordsRequest} requestParameters Request parameters.
1895
2055
  *
1896
2056
  * @returns {Promise<RestApiResponse<HistoricalExerciseRecordsResponse>>}
1897
2057
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1898
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Historical-Exercise-Records Binance API Documentation}
2058
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#historical-exercise-records Binance API Documentation}
1899
2059
  */
1900
2060
  historicalExerciseRecords(requestParameters = {}) {
1901
2061
  return this.marketDataApi.historicalExerciseRecords(requestParameters);
@@ -1903,32 +2063,32 @@ var RestAPI = class {
1903
2063
  /**
1904
2064
  * Get spot index price for option underlying.
1905
2065
  *
1906
- * Weight: 1
2066
+ * Weight(IP): 1
1907
2067
  *
1908
2068
  * @summary Index Price
1909
2069
  * @param {IndexPriceRequest} requestParameters Request parameters.
1910
2070
  *
1911
2071
  * @returns {Promise<RestApiResponse<IndexPriceResponse>>}
1912
2072
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1913
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Symbol-Price-Ticker Binance API Documentation}
2073
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#index-price Binance API Documentation}
1914
2074
  */
1915
2075
  indexPrice(requestParameters) {
1916
2076
  return this.marketDataApi.indexPrice(requestParameters);
1917
2077
  }
1918
2078
  /**
1919
- * Kline/candlestick bars for an option symbol.
1920
- * Klines are uniquely identified by their open time.
2079
+ * Kline/candlestick bars for an option symbol. Klines are uniquely identified by their open time.
1921
2080
  *
1922
- * If startTime and endTime are not sent, the most recent klines are returned.
2081
+ * Weight(IP): 1
1923
2082
  *
1924
- * Weight: 1
2083
+ * Notes:
2084
+ * - If startTime and endTime are not sent, the most recent klines are returned.
1925
2085
  *
1926
2086
  * @summary Kline/Candlestick Data
1927
2087
  * @param {KlineCandlestickDataRequest} requestParameters Request parameters.
1928
2088
  *
1929
2089
  * @returns {Promise<RestApiResponse<KlineCandlestickDataResponse>>}
1930
2090
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1931
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Kline-Candlestick-Data Binance API Documentation}
2091
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#kline-candlestick-data Binance API Documentation}
1932
2092
  */
1933
2093
  klineCandlestickData(requestParameters) {
1934
2094
  return this.marketDataApi.klineCandlestickData(requestParameters);
@@ -1936,14 +2096,14 @@ var RestAPI = class {
1936
2096
  /**
1937
2097
  * Get open interest for specific underlying asset on specific expiration date.
1938
2098
  *
1939
- * Weight: 0
2099
+ * Weight(IP): 0
1940
2100
  *
1941
2101
  * @summary Open Interest
1942
2102
  * @param {OpenInterestRequest} requestParameters Request parameters.
1943
2103
  *
1944
2104
  * @returns {Promise<RestApiResponse<OpenInterestResponse>>}
1945
2105
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1946
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Open-Interest Binance API Documentation}
2106
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#open-interest Binance API Documentation}
1947
2107
  */
1948
2108
  openInterest(requestParameters) {
1949
2109
  return this.marketDataApi.openInterest(requestParameters);
@@ -1951,14 +2111,14 @@ var RestAPI = class {
1951
2111
  /**
1952
2112
  * Option mark price and greek info.
1953
2113
  *
1954
- * Weight: 5
2114
+ * Weight(IP): 5
1955
2115
  *
1956
2116
  * @summary Option Mark Price
1957
2117
  * @param {OptionMarkPriceRequest} requestParameters Request parameters.
1958
2118
  *
1959
2119
  * @returns {Promise<RestApiResponse<OptionMarkPriceResponse>>}
1960
2120
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1961
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Option-Mark-Price Binance API Documentation}
2121
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#option-mark-price Binance API Documentation}
1962
2122
  */
1963
2123
  optionMarkPrice(requestParameters = {}) {
1964
2124
  return this.marketDataApi.optionMarkPrice(requestParameters);
@@ -1978,7 +2138,7 @@ var RestAPI = class {
1978
2138
  *
1979
2139
  * @returns {Promise<RestApiResponse<OrderBookResponse>>}
1980
2140
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1981
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Order-Book Binance API Documentation}
2141
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#order-book Binance API Documentation}
1982
2142
  */
1983
2143
  orderBook(requestParameters) {
1984
2144
  return this.marketDataApi.orderBook(requestParameters);
@@ -1986,14 +2146,14 @@ var RestAPI = class {
1986
2146
  /**
1987
2147
  * Get recent block trades
1988
2148
  *
1989
- * Weight: 5
2149
+ * Weight(IP): 5
1990
2150
  *
1991
2151
  * @summary Recent Block Trades List
1992
2152
  * @param {RecentBlockTradesListRequest} requestParameters Request parameters.
1993
2153
  *
1994
2154
  * @returns {Promise<RestApiResponse<RecentBlockTradesListResponse>>}
1995
2155
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1996
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Block-Trade-List Binance API Documentation}
2156
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#recent-block-trades-list Binance API Documentation}
1997
2157
  */
1998
2158
  recentBlockTradesList(requestParameters = {}) {
1999
2159
  return this.marketDataApi.recentBlockTradesList(requestParameters);
@@ -2001,14 +2161,14 @@ var RestAPI = class {
2001
2161
  /**
2002
2162
  * Get recent market trades
2003
2163
  *
2004
- * Weight: 5
2164
+ * Weight(IP): 5
2005
2165
  *
2006
2166
  * @summary Recent Trades List
2007
2167
  * @param {RecentTradesListRequest} requestParameters Request parameters.
2008
2168
  *
2009
2169
  * @returns {Promise<RestApiResponse<RecentTradesListResponse>>}
2010
2170
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2011
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Recent-Trades-List Binance API Documentation}
2171
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#recent-trades-list Binance API Documentation}
2012
2172
  */
2013
2173
  recentTradesList(requestParameters) {
2014
2174
  return this.marketDataApi.recentTradesList(requestParameters);
@@ -2016,13 +2176,13 @@ var RestAPI = class {
2016
2176
  /**
2017
2177
  * Test connectivity to the Rest API.
2018
2178
  *
2019
- * Weight: 1
2179
+ * Weight(IP): 1
2020
2180
  *
2021
2181
  * @summary Test Connectivity
2022
2182
  *
2023
2183
  * @returns {Promise<RestApiResponse<void>>}
2024
2184
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2025
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/Test-Connectivity Binance API Documentation}
2185
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#test-connectivity Binance API Documentation}
2026
2186
  */
2027
2187
  testConnectivity() {
2028
2188
  return this.marketDataApi.testConnectivity();
@@ -2030,14 +2190,14 @@ var RestAPI = class {
2030
2190
  /**
2031
2191
  * 24 hour rolling window price change statistics.
2032
2192
  *
2033
- * Weight: 5
2193
+ * Weight(IP): 5
2034
2194
  *
2035
2195
  * @summary 24hr Ticker Price Change Statistics
2036
2196
  * @param {Ticker24hrPriceChangeStatisticsRequest} requestParameters Request parameters.
2037
2197
  *
2038
2198
  * @returns {Promise<RestApiResponse<Ticker24hrPriceChangeStatisticsResponse>>}
2039
2199
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2040
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-data/24hr-Ticker-Price-Change-Statistics Binance API Documentation}
2200
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-data#ticker24hr-price-change-statistics Binance API Documentation}
2041
2201
  */
2042
2202
  ticker24hrPriceChangeStatistics(requestParameters = {}) {
2043
2203
  return this.marketDataApi.ticker24hrPriceChangeStatistics(requestParameters);
@@ -2045,14 +2205,16 @@ var RestAPI = class {
2045
2205
  /**
2046
2206
  * Accept a block trade order
2047
2207
  *
2048
- * Weight: 5
2208
+ * Weight(IP): 5
2209
+ *
2210
+ * Security Type: TRADE
2049
2211
  *
2050
2212
  * @summary Accept Block Trade Order (TRADE)
2051
2213
  * @param {AcceptBlockTradeOrderRequest} requestParameters Request parameters.
2052
2214
  *
2053
2215
  * @returns {Promise<RestApiResponse<AcceptBlockTradeOrderResponse>>}
2054
2216
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2055
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Accept-Block-Trade-Order Binance API Documentation}
2217
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#accept-block-trade-order Binance API Documentation}
2056
2218
  */
2057
2219
  acceptBlockTradeOrder(requestParameters) {
2058
2220
  return this.marketMakerBlockTradeApi.acceptBlockTradeOrder(requestParameters);
@@ -2060,14 +2222,16 @@ var RestAPI = class {
2060
2222
  /**
2061
2223
  * Gets block trades for a specific account.
2062
2224
  *
2063
- * Weight: 5
2225
+ * Weight(IP): 5
2226
+ *
2227
+ * Security Type: USER_DATA
2064
2228
  *
2065
2229
  * @summary Account Block Trade List (USER_DATA)
2066
2230
  * @param {AccountBlockTradeListRequest} requestParameters Request parameters.
2067
2231
  *
2068
2232
  * @returns {Promise<RestApiResponse<AccountBlockTradeListResponse>>}
2069
2233
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2070
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Account-Block-Trade-List Binance API Documentation}
2234
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#account-block-trade-list Binance API Documentation}
2071
2235
  */
2072
2236
  accountBlockTradeList(requestParameters = {}) {
2073
2237
  return this.marketMakerBlockTradeApi.accountBlockTradeList(requestParameters);
@@ -2075,14 +2239,16 @@ var RestAPI = class {
2075
2239
  /**
2076
2240
  * Cancel a block trade order.
2077
2241
  *
2078
- * Weight: 5
2242
+ * Weight(IP): 5
2243
+ *
2244
+ * Security Type: TRADE
2079
2245
  *
2080
2246
  * @summary Cancel Block Trade Order (TRADE)
2081
2247
  * @param {CancelBlockTradeOrderRequest} requestParameters Request parameters.
2082
2248
  *
2083
2249
  * @returns {Promise<RestApiResponse<void>>}
2084
2250
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2085
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Cancel-Block-Trade-Order Binance API Documentation}
2251
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#cancel-block-trade-order Binance API Documentation}
2086
2252
  */
2087
2253
  cancelBlockTradeOrder(requestParameters) {
2088
2254
  return this.marketMakerBlockTradeApi.cancelBlockTradeOrder(requestParameters);
@@ -2090,14 +2256,16 @@ var RestAPI = class {
2090
2256
  /**
2091
2257
  * Extends a block trade expire time by 30 mins from the current time.
2092
2258
  *
2093
- * Weight: 5
2259
+ * Weight(IP): 5
2260
+ *
2261
+ * Security Type: TRADE
2094
2262
  *
2095
2263
  * @summary Extend Block Trade Order (TRADE)
2096
2264
  * @param {ExtendBlockTradeOrderRequest} requestParameters Request parameters.
2097
2265
  *
2098
2266
  * @returns {Promise<RestApiResponse<ExtendBlockTradeOrderResponse>>}
2099
2267
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2100
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Extend-Block-Trade-Order Binance API Documentation}
2268
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#extend-block-trade-order Binance API Documentation}
2101
2269
  */
2102
2270
  extendBlockTradeOrder(requestParameters) {
2103
2271
  return this.marketMakerBlockTradeApi.extendBlockTradeOrder(requestParameters);
@@ -2105,14 +2273,16 @@ var RestAPI = class {
2105
2273
  /**
2106
2274
  * Send in a new block trade order.
2107
2275
  *
2108
- * Weight: 5
2276
+ * Weight(IP): 5
2277
+ *
2278
+ * Security Type: TRADE
2109
2279
  *
2110
2280
  * @summary New Block Trade Order (TRADE)
2111
2281
  * @param {NewBlockTradeOrderRequest} requestParameters Request parameters.
2112
2282
  *
2113
2283
  * @returns {Promise<RestApiResponse<NewBlockTradeOrderResponse>>}
2114
2284
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2115
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/New-Block-Trade-Order Binance API Documentation}
2285
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#new-block-trade-order Binance API Documentation}
2116
2286
  */
2117
2287
  newBlockTradeOrder(requestParameters) {
2118
2288
  return this.marketMakerBlockTradeApi.newBlockTradeOrder(requestParameters);
@@ -2120,14 +2290,16 @@ var RestAPI = class {
2120
2290
  /**
2121
2291
  * Query block trade details; returns block trade details from counterparty's perspective.
2122
2292
  *
2123
- * Weight: 5
2293
+ * Weight(IP): 5
2294
+ *
2295
+ * Security Type: USER_DATA
2124
2296
  *
2125
2297
  * @summary Query Block Trade Details (USER_DATA)
2126
2298
  * @param {QueryBlockTradeDetailsRequest} requestParameters Request parameters.
2127
2299
  *
2128
2300
  * @returns {Promise<RestApiResponse<QueryBlockTradeDetailsResponse>>}
2129
2301
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2130
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Detail Binance API Documentation}
2302
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#query-block-trade-details Binance API Documentation}
2131
2303
  */
2132
2304
  queryBlockTradeDetails(requestParameters) {
2133
2305
  return this.marketMakerBlockTradeApi.queryBlockTradeDetails(requestParameters);
@@ -2135,14 +2307,16 @@ var RestAPI = class {
2135
2307
  /**
2136
2308
  * Check block trade order status.
2137
2309
  *
2138
- * Weight: 5
2310
+ * Weight(IP): 5
2311
+ *
2312
+ * Security Type: TRADE
2139
2313
  *
2140
2314
  * @summary Query Block Trade Order (TRADE)
2141
2315
  * @param {QueryBlockTradeOrderRequest} requestParameters Request parameters.
2142
2316
  *
2143
2317
  * @returns {Promise<RestApiResponse<QueryBlockTradeOrderResponse>>}
2144
2318
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2145
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-block-trade/Query-Block-Trade-Order Binance API Documentation}
2319
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-block-trade#query-block-trade-order Binance API Documentation}
2146
2320
  */
2147
2321
  queryBlockTradeOrder(requestParameters = {}) {
2148
2322
  return this.marketMakerBlockTradeApi.queryBlockTradeOrder(requestParameters);
@@ -2150,16 +2324,19 @@ var RestAPI = class {
2150
2324
  /**
2151
2325
  * This endpoint resets the time from which the countdown will begin to the time this messaged is received. It should be called repeatedly as heartbeats. Multiple heartbeats can be updated at once by specifying the underlying symbols as a list (ex. BTCUSDT,ETHUSDT) in the underlyings parameter.
2152
2326
  *
2153
- * The response will only include underlying symbols where the heartbeat has been successfully updated.
2327
+ * Weight(IP): 10
2154
2328
  *
2155
- * Weight: 10
2329
+ * Security Type: TRADE
2330
+ *
2331
+ * Notes:
2332
+ * - The response will only include underlying symbols where the heartbeat has been successfully updated.
2156
2333
  *
2157
2334
  * @summary Auto-Cancel All Open Orders (Kill-Switch) Heartbeat (TRADE)
2158
2335
  * @param {AutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
2159
2336
  *
2160
2337
  * @returns {Promise<RestApiResponse<AutoCancelAllOpenOrdersResponse>>}
2161
2338
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2162
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Auto-Cancel-All-Open-Orders-Heartbeat Binance API Documentation}
2339
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#auto-cancel-all-open-orders Binance API Documentation}
2163
2340
  */
2164
2341
  autoCancelAllOpenOrders(requestParameters) {
2165
2342
  return this.marketMakerEndpointsApi.autoCancelAllOpenOrders(requestParameters);
@@ -2167,16 +2344,19 @@ var RestAPI = class {
2167
2344
  /**
2168
2345
  * This endpoint returns the auto-cancel parameters for each underlying symbol. Note only active auto-cancel parameters will be returned, if countdownTime is set to 0 (ie. countdownTime has been turned off), the underlying symbol and corresponding countdownTime parameter will not be returned in the response.
2169
2346
  *
2170
- * countdownTime = 0 means the function is disabled.
2347
+ * Weight(IP): 1
2348
+ *
2349
+ * Security Type: TRADE
2171
2350
  *
2172
- * Weight: 1
2351
+ * Notes:
2352
+ * - countdownTime = 0 means the function is disabled.
2173
2353
  *
2174
2354
  * @summary Get Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE)
2175
2355
  * @param {GetAutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
2176
2356
  *
2177
2357
  * @returns {Promise<RestApiResponse<GetAutoCancelAllOpenOrdersResponse>>}
2178
2358
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2179
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
2359
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#get-auto-cancel-all-open-orders Binance API Documentation}
2180
2360
  */
2181
2361
  getAutoCancelAllOpenOrders(requestParameters = {}) {
2182
2362
  return this.marketMakerEndpointsApi.getAutoCancelAllOpenOrders(requestParameters);
@@ -2184,98 +2364,106 @@ var RestAPI = class {
2184
2364
  /**
2185
2365
  * Get config for MMP.
2186
2366
  *
2187
- * Weight: 1
2367
+ * Weight(IP): 1
2368
+ *
2369
+ * Security Type: TRADE
2188
2370
  *
2189
2371
  * @summary Get Market Maker Protection Config (TRADE)
2190
2372
  * @param {GetMarketMakerProtectionConfigRequest} requestParameters Request parameters.
2191
2373
  *
2192
2374
  * @returns {Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>}
2193
2375
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2194
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
2376
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#get-market-maker-protection-config Binance API Documentation}
2195
2377
  */
2196
- getMarketMakerProtectionConfig(requestParameters = {}) {
2378
+ getMarketMakerProtectionConfig(requestParameters) {
2197
2379
  return this.marketMakerEndpointsApi.getMarketMakerProtectionConfig(requestParameters);
2198
2380
  }
2199
2381
  /**
2200
2382
  * Reset MMP, start MMP order again.
2201
2383
  *
2202
- * Weight: 1
2384
+ * Weight(IP): 1
2385
+ *
2386
+ * Security Type: TRADE
2203
2387
  *
2204
2388
  * @summary Reset Market Maker Protection Config (TRADE)
2205
2389
  * @param {ResetMarketMakerProtectionConfigRequest} requestParameters Request parameters.
2206
2390
  *
2207
2391
  * @returns {Promise<RestApiResponse<ResetMarketMakerProtectionConfigResponse>>}
2208
2392
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2209
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Reset-Market-Maker-Protection-Config Binance API Documentation}
2393
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#reset-market-maker-protection-config Binance API Documentation}
2210
2394
  */
2211
- resetMarketMakerProtectionConfig(requestParameters = {}) {
2395
+ resetMarketMakerProtectionConfig(requestParameters) {
2212
2396
  return this.marketMakerEndpointsApi.resetMarketMakerProtectionConfig(requestParameters);
2213
2397
  }
2214
2398
  /**
2215
2399
  * This endpoint sets the parameters of the auto-cancel feature which cancels all open orders (both market maker protection and non market maker protection order types) of the underlying symbol at the end of the specified countdown time period if no heartbeat message is sent. After the countdown time period, all open orders will be cancelled and new orders will be rejected with error code -2010 until either a heartbeat message is sent or the auto-cancel feature is turned off by setting countdownTime to 0.
2216
2400
  *
2401
+ * Weight(IP): 1
2217
2402
  *
2218
- * This rest endpoint sets up the parameters to cancel your open orders in case of an outage or disconnection.
2219
- * Example usage:
2220
- * Call this endpoint with a countdownTime value of 10000 (10 seconds) to turn on the auto-cancel feature. If the corresponding countdownCancelAllHeartBeat endpoint is not called within 10 seconds with the specified underlying symbol, all open orders of the specified symbol will be automatically canceled. If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
2221
- * The system will check all countdowns approximately every 100 milliseconds, **please note that sufficient redundancy should be considered when using this function**. We do not recommend setting the countdown time to be too precise or too small.
2403
+ * Security Type: TRADE
2222
2404
  *
2223
- * Weight: 1
2405
+ * Notes:
2406
+ * - This rest endpoint sets up the parameters to cancel your open orders in case of an outage or disconnection.
2407
+ * - Example usage: > Call this endpoint with a countdownTime value of 10000 (10 seconds) to turn on the auto-cancel feature. If the corresponding countdownCancelAllHeartBeat endpoint is not called within 10 seconds with the specified underlying symbol, all open orders of the specified symbol will be automatically canceled. If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
2408
+ * - The system will check all countdowns approximately every 100 milliseconds, **please note that sufficient redundancy should be considered when using this function**. We do not recommend setting the countdown time to be too precise or too small.
2224
2409
  *
2225
2410
  * @summary Set Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE)
2226
2411
  * @param {SetAutoCancelAllOpenOrdersRequest} requestParameters Request parameters.
2227
2412
  *
2228
2413
  * @returns {Promise<RestApiResponse<SetAutoCancelAllOpenOrdersResponse>>}
2229
2414
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2230
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Auto-Cancel-All-Open-Orders-Config Binance API Documentation}
2415
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#set-auto-cancel-all-open-orders Binance API Documentation}
2231
2416
  */
2232
2417
  setAutoCancelAllOpenOrders(requestParameters) {
2233
2418
  return this.marketMakerEndpointsApi.setAutoCancelAllOpenOrders(requestParameters);
2234
2419
  }
2235
2420
  /**
2236
- * Set config for MMP.
2237
- * Market Maker Protection(MMP) is a set of protection mechanism for option market maker, this mechanism is able to prevent mass trading in short period time. Once market maker's account branches the threshold, the Market Maker Protection will be triggered. When Market Maker Protection triggers, all the current MMP orders will be canceled, new MMP orders will be rejected. Market maker can use this time to reevaluate market and modify order price.
2421
+ * Set config for MMP. Market Maker Protection(MMP) is a set of protection mechanism for option market maker, this mechanism is able to prevent mass trading in short period time. Once market maker's account branches the threshold, the Market Maker Protection will be triggered. When Market Maker Protection triggers, all the current MMP orders will be canceled, new MMP orders will be rejected. Market maker can use this time to reevaluate market and modify order price.
2422
+ *
2423
+ * Weight(IP): 1
2238
2424
  *
2239
- * Weight: 1
2425
+ * Security Type: TRADE
2240
2426
  *
2241
2427
  * @summary Set Market Maker Protection Config (TRADE)
2242
2428
  * @param {SetMarketMakerProtectionConfigRequest} requestParameters Request parameters.
2243
2429
  *
2244
2430
  * @returns {Promise<RestApiResponse<SetMarketMakerProtectionConfigResponse>>}
2245
2431
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2246
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/market-maker-endpoints/Set-Market-Maker-Protection-Config Binance API Documentation}
2432
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#set-market-maker-protection-config Binance API Documentation}
2247
2433
  */
2248
- setMarketMakerProtectionConfig(requestParameters = {}) {
2434
+ setMarketMakerProtectionConfig(requestParameters) {
2249
2435
  return this.marketMakerEndpointsApi.setMarketMakerProtectionConfig(requestParameters);
2250
2436
  }
2251
2437
  /**
2252
2438
  * Get trades for a specific account and symbol.
2253
2439
  *
2254
- * Only support querying trades in the past 3 months
2440
+ * Weight(IP): 5
2255
2441
  *
2256
- * Weight: 5
2442
+ * Security Type: USER_DATA
2257
2443
  *
2258
2444
  * @summary Account Trade List (USER_DATA)
2259
2445
  * @param {AccountTradeListRequest} requestParameters Request parameters.
2260
2446
  *
2261
2447
  * @returns {Promise<RestApiResponse<AccountTradeListResponse>>}
2262
2448
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2263
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Account-Trade-List Binance API Documentation}
2449
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#account-trade-list Binance API Documentation}
2264
2450
  */
2265
- accountTradeList(requestParameters = {}) {
2451
+ accountTradeList(requestParameters) {
2266
2452
  return this.tradeApi.accountTradeList(requestParameters);
2267
2453
  }
2268
2454
  /**
2269
2455
  * Cancel all active orders on specified underlying.
2270
2456
  *
2271
- * Weight: 1
2457
+ * Weight(IP): 1
2458
+ *
2459
+ * Security Type: TRADE
2272
2460
  *
2273
2461
  * @summary Cancel All Option Orders By Underlying (TRADE)
2274
2462
  * @param {CancelAllOptionOrdersByUnderlyingRequest} requestParameters Request parameters.
2275
2463
  *
2276
2464
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersByUnderlyingResponse>>}
2277
2465
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2278
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-All-Option-Orders-By-Underlying Binance API Documentation}
2466
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-all-option-orders-by-underlying Binance API Documentation}
2279
2467
  */
2280
2468
  cancelAllOptionOrdersByUnderlying(requestParameters) {
2281
2469
  return this.tradeApi.cancelAllOptionOrdersByUnderlying(requestParameters);
@@ -2283,14 +2471,16 @@ var RestAPI = class {
2283
2471
  /**
2284
2472
  * Cancel all active order on a symbol.
2285
2473
  *
2286
- * Weight: 5
2474
+ * Weight(IP): 5
2475
+ *
2476
+ * Security Type: TRADE
2287
2477
  *
2288
2478
  * @summary Cancel all Option orders on specific symbol (TRADE)
2289
2479
  * @param {CancelAllOptionOrdersOnSpecificSymbolRequest} requestParameters Request parameters.
2290
2480
  *
2291
2481
  * @returns {Promise<RestApiResponse<CancelAllOptionOrdersOnSpecificSymbolResponse>>}
2292
2482
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2293
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-all-Option-orders-on-specific-symbol Binance API Documentation}
2483
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-all-option-orders-on-specific-symbol Binance API Documentation}
2294
2484
  */
2295
2485
  cancelAllOptionOrdersOnSpecificSymbol(requestParameters) {
2296
2486
  return this.tradeApi.cancelAllOptionOrdersOnSpecificSymbol(requestParameters);
@@ -2298,16 +2488,19 @@ var RestAPI = class {
2298
2488
  /**
2299
2489
  * Cancel multiple orders.
2300
2490
  *
2301
- * At least one instance of `orderId` and `clientOrderId` must be sent.
2491
+ * Weight(IP): 5
2492
+ *
2493
+ * Security Type: TRADE
2302
2494
  *
2303
- * Weight: 1
2495
+ * Notes:
2496
+ * - At least one instance of `orderId` and `clientOrderId` must be sent.
2304
2497
  *
2305
2498
  * @summary Cancel Multiple Option Orders (TRADE)
2306
2499
  * @param {CancelMultipleOptionOrdersRequest} requestParameters Request parameters.
2307
2500
  *
2308
2501
  * @returns {Promise<RestApiResponse<CancelMultipleOptionOrdersResponse>>}
2309
2502
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2310
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Multiple-Option-Orders Binance API Documentation}
2503
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-multiple-option-orders Binance API Documentation}
2311
2504
  */
2312
2505
  cancelMultipleOptionOrders(requestParameters) {
2313
2506
  return this.tradeApi.cancelMultipleOptionOrders(requestParameters);
@@ -2315,16 +2508,19 @@ var RestAPI = class {
2315
2508
  /**
2316
2509
  * Cancel an active order.
2317
2510
  *
2318
- * At least one instance of `orderId` and `clientOrderId` must be sent.
2511
+ * Weight(IP): 1
2319
2512
  *
2320
- * Weight: 1
2513
+ * Security Type: TRADE
2514
+ *
2515
+ * Notes:
2516
+ * - At least one instance of `orderId` and `clientOrderId` must be sent.
2321
2517
  *
2322
2518
  * @summary Cancel Option Order (TRADE)
2323
2519
  * @param {CancelOptionOrderRequest} requestParameters Request parameters.
2324
2520
  *
2325
2521
  * @returns {Promise<RestApiResponse<CancelOptionOrderResponse>>}
2326
2522
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2327
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Cancel-Option-Order Binance API Documentation}
2523
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#cancel-option-order Binance API Documentation}
2328
2524
  */
2329
2525
  cancelOptionOrder(requestParameters) {
2330
2526
  return this.tradeApi.cancelOptionOrder(requestParameters);
@@ -2332,14 +2528,21 @@ var RestAPI = class {
2332
2528
  /**
2333
2529
  * Send a new order.
2334
2530
  *
2335
- * Weight: 0
2531
+ * Security Type: TRADE
2532
+ *
2533
+ * Notes:
2534
+ * Some parameters are mandatory depending on the order type as follows:
2535
+ *
2536
+ * Type | Mandatory parameters
2537
+ * ------------ | ------------
2538
+ * LIMIT | timeInForce, quantity, price
2336
2539
  *
2337
2540
  * @summary New Order (TRADE)
2338
2541
  * @param {NewOrderRequest} requestParameters Request parameters.
2339
2542
  *
2340
2543
  * @returns {Promise<RestApiResponse<NewOrderResponse>>}
2341
2544
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2342
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/New-Order Binance API Documentation}
2545
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#new-order Binance API Documentation}
2343
2546
  */
2344
2547
  newOrder(requestParameters) {
2345
2548
  return this.tradeApi.newOrder(requestParameters);
@@ -2347,14 +2550,16 @@ var RestAPI = class {
2347
2550
  /**
2348
2551
  * Get current position information.
2349
2552
  *
2350
- * Weight: 5
2553
+ * Weight(IP): 5
2554
+ *
2555
+ * Security Type: USER_DATA
2351
2556
  *
2352
2557
  * @summary Option Position Information (USER_DATA)
2353
2558
  * @param {OptionPositionInformationRequest} requestParameters Request parameters.
2354
2559
  *
2355
2560
  * @returns {Promise<RestApiResponse<OptionPositionInformationResponse>>}
2356
2561
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2357
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Option-Position-Information Binance API Documentation}
2562
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#option-position-information Binance API Documentation}
2358
2563
  */
2359
2564
  optionPositionInformation(requestParameters = {}) {
2360
2565
  return this.tradeApi.optionPositionInformation(requestParameters);
@@ -2362,17 +2567,26 @@ var RestAPI = class {
2362
2567
  /**
2363
2568
  * Send multiple option orders.
2364
2569
  *
2365
- * Parameter rules are same with New Order
2366
- * Batch orders are processed concurrently, and the order of matching is not guaranteed.
2570
+ * Weight(IP): 5
2571
+ *
2572
+ * Security Type: TRADE
2367
2573
  *
2368
- * Weight: 5
2574
+ * Notes:
2575
+ * Some parameters are mandatory depending on the order type as follows:
2369
2576
  *
2370
- * @summary Place Multiple Orders(TRADE)
2577
+ * Type | Mandatory parameters
2578
+ * ------------ | ------------
2579
+ * LIMIT | timeInForce, quantity, price
2580
+ *
2581
+ * - Parameter rules are same with New Order
2582
+ * - Batch orders are processed concurrently, and the order of matching is not guaranteed.
2583
+ *
2584
+ * @summary Place Multiple Orders (TRADE)
2371
2585
  * @param {PlaceMultipleOrdersRequest} requestParameters Request parameters.
2372
2586
  *
2373
2587
  * @returns {Promise<RestApiResponse<PlaceMultipleOrdersResponse>>}
2374
2588
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2375
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Place-Multiple-Orders Binance API Documentation}
2589
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#place-multiple-orders Binance API Documentation}
2376
2590
  */
2377
2591
  placeMultipleOrders(requestParameters) {
2378
2592
  return this.tradeApi.placeMultipleOrders(requestParameters);
@@ -2382,12 +2596,14 @@ var RestAPI = class {
2382
2596
  *
2383
2597
  * Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
2384
2598
  *
2599
+ * Security Type: USER_DATA
2600
+ *
2385
2601
  * @summary Query Current Open Option Orders (USER_DATA)
2386
2602
  * @param {QueryCurrentOpenOptionOrdersRequest} requestParameters Request parameters.
2387
2603
  *
2388
2604
  * @returns {Promise<RestApiResponse<QueryCurrentOpenOptionOrdersResponse>>}
2389
2605
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2390
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Current-Open-Option-Orders Binance API Documentation}
2606
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-current-open-option-orders Binance API Documentation}
2391
2607
  */
2392
2608
  queryCurrentOpenOptionOrders(requestParameters = {}) {
2393
2609
  return this.tradeApi.queryCurrentOpenOptionOrders(requestParameters);
@@ -2395,14 +2611,16 @@ var RestAPI = class {
2395
2611
  /**
2396
2612
  * Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.
2397
2613
  *
2398
- * Weight: 3
2614
+ * Weight(IP): 3
2615
+ *
2616
+ * Security Type: TRADE
2399
2617
  *
2400
2618
  * @summary Query Option Order History (TRADE)
2401
2619
  * @param {QueryOptionOrderHistoryRequest} requestParameters Request parameters.
2402
2620
  *
2403
2621
  * @returns {Promise<RestApiResponse<QueryOptionOrderHistoryResponse>>}
2404
2622
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2405
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Option-Order-History Binance API Documentation}
2623
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-option-order-history Binance API Documentation}
2406
2624
  */
2407
2625
  queryOptionOrderHistory(requestParameters) {
2408
2626
  return this.tradeApi.queryOptionOrderHistory(requestParameters);
@@ -2415,32 +2633,53 @@ var RestAPI = class {
2415
2633
  * order has NO filled trade, **AND**
2416
2634
  * created time + 3 days < current time
2417
2635
  *
2636
+ * Weight(IP): 1
2418
2637
  *
2419
- * Either `orderId` or `clientOrderId ` must be sent.
2638
+ * Security Type: TRADE
2420
2639
  *
2421
- * Weight: 1
2640
+ * Notes:
2641
+ * - Either `orderId` or `clientOrderId ` must be sent.
2422
2642
  *
2423
2643
  * @summary Query Single Order (TRADE)
2424
2644
  * @param {QuerySingleOrderRequest} requestParameters Request parameters.
2425
2645
  *
2426
2646
  * @returns {Promise<RestApiResponse<QuerySingleOrderResponse>>}
2427
2647
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2428
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/Query-Single-Order Binance API Documentation}
2648
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#query-single-order Binance API Documentation}
2429
2649
  */
2430
2650
  querySingleOrder(requestParameters) {
2431
2651
  return this.tradeApi.querySingleOrder(requestParameters);
2432
2652
  }
2433
2653
  /**
2654
+ * Sign TradFi Options agreement contract
2655
+ *
2656
+ * Weight(IP): 50
2657
+ *
2658
+ * Security Type: USER_DATA
2659
+ *
2660
+ * @summary TradFi Options Contract (USER_DATA)
2661
+ * @param {TradfiOptionsContractRequest} requestParameters Request parameters.
2662
+ *
2663
+ * @returns {Promise<RestApiResponse<TradfiOptionsContractResponse>>}
2664
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2665
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#tradfi-options-contract Binance API Documentation}
2666
+ */
2667
+ tradfiOptionsContract(requestParameters = {}) {
2668
+ return this.tradeApi.tradfiOptionsContract(requestParameters);
2669
+ }
2670
+ /**
2434
2671
  * Get account commission.
2435
2672
  *
2436
- * Weight: 5
2673
+ * Weight(IP): 5
2674
+ *
2675
+ * Security Type: USER_DATA
2437
2676
  *
2438
2677
  * @summary User Commission (USER_DATA)
2439
2678
  * @param {UserCommissionRequest} requestParameters Request parameters.
2440
2679
  *
2441
2680
  * @returns {Promise<RestApiResponse<UserCommissionResponse>>}
2442
2681
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2443
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Commission Binance API Documentation}
2682
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#user-commission Binance API Documentation}
2444
2683
  */
2445
2684
  userCommission(requestParameters = {}) {
2446
2685
  return this.tradeApi.userCommission(requestParameters);
@@ -2448,14 +2687,16 @@ var RestAPI = class {
2448
2687
  /**
2449
2688
  * Get account exercise records.
2450
2689
  *
2451
- * Weight: 5
2690
+ * Weight(IP): 5
2691
+ *
2692
+ * Security Type: USER_DATA
2452
2693
  *
2453
2694
  * @summary User Exercise Record (USER_DATA)
2454
2695
  * @param {UserExerciseRecordRequest} requestParameters Request parameters.
2455
2696
  *
2456
2697
  * @returns {Promise<RestApiResponse<UserExerciseRecordResponse>>}
2457
2698
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2458
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/trade/User-Exercise-Record Binance API Documentation}
2699
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/trade#user-exercise-record Binance API Documentation}
2459
2700
  */
2460
2701
  userExerciseRecord(requestParameters = {}) {
2461
2702
  return this.tradeApi.userExerciseRecord(requestParameters);
@@ -2463,27 +2704,33 @@ var RestAPI = class {
2463
2704
  /**
2464
2705
  * Close out a user data stream.
2465
2706
  *
2466
- * Weight: 1
2707
+ * Weight(IP): 1
2708
+ *
2709
+ * Security Type: USER_STREAM
2467
2710
  *
2468
2711
  * @summary Close User Data Stream (USER_STREAM)
2469
2712
  *
2470
2713
  * @returns {Promise<RestApiResponse<void>>}
2471
2714
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2472
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Close-User-Data-Stream Binance API Documentation}
2715
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/user-data-streams#close-user-data-stream Binance API Documentation}
2473
2716
  */
2474
2717
  closeUserDataStream() {
2475
2718
  return this.userDataStreamsApi.closeUserDataStream();
2476
2719
  }
2477
2720
  /**
2478
- * Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
2721
+ * Keepalive a user data stream to prevent a time out. User data streams
2722
+ * will close after 60 minutes. It's recommended to send a ping about every
2723
+ * 60 minutes.
2724
+ *
2725
+ * Weight(IP): 1
2479
2726
  *
2480
- * Weight: 1
2727
+ * Security Type: USER_STREAM
2481
2728
  *
2482
2729
  * @summary Keepalive User Data Stream (USER_STREAM)
2483
2730
  *
2484
2731
  * @returns {Promise<RestApiResponse<void>>}
2485
2732
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2486
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Keepalive-User-Data-Stream Binance API Documentation}
2733
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/user-data-streams#keepalive-user-data-stream Binance API Documentation}
2487
2734
  */
2488
2735
  keepaliveUserDataStream() {
2489
2736
  return this.userDataStreamsApi.keepaliveUserDataStream();
@@ -2491,13 +2738,15 @@ var RestAPI = class {
2491
2738
  /**
2492
2739
  * Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active `listenKey`, that `listenKey` will be returned and its validity will be extended for 60 minutes.
2493
2740
  *
2494
- * Weight: 1
2741
+ * Weight(IP): 1
2742
+ *
2743
+ * Security Type: USER_STREAM
2495
2744
  *
2496
2745
  * @summary Start User Data Stream (USER_STREAM)
2497
2746
  *
2498
2747
  * @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
2499
2748
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2500
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/user-data-streams/Start-User-Data-Stream Binance API Documentation}
2749
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/user-data-streams#start-user-data-stream Binance API Documentation}
2501
2750
  */
2502
2751
  startUserDataStream() {
2503
2752
  return this.userDataStreamsApi.startUserDataStream();
@@ -2508,9 +2757,14 @@ var RestAPI = class {
2508
2757
  //#region src/rest-api/index.ts
2509
2758
  var rest_api_exports = /* @__PURE__ */ __export({
2510
2759
  AccountApi: () => AccountApi,
2760
+ AccountFundingFlowCurrencyEnum: () => AccountFundingFlowCurrencyEnum,
2761
+ KlineCandlestickDataIntervalEnum: () => KlineCandlestickDataIntervalEnum,
2511
2762
  MarketDataApi: () => MarketDataApi,
2512
2763
  MarketMakerBlockTradeApi: () => MarketMakerBlockTradeApi,
2513
2764
  MarketMakerEndpointsApi: () => MarketMakerEndpointsApi,
2765
+ NewBlockTradeOrderLegsParameterInnerSideEnum: () => NewBlockTradeOrderLegsParameterInnerSideEnum,
2766
+ NewBlockTradeOrderLegsParameterInnerTypeEnum: () => NewBlockTradeOrderLegsParameterInnerTypeEnum,
2767
+ NewBlockTradeOrderLiquidityEnum: () => NewBlockTradeOrderLiquidityEnum,
2514
2768
  NewOrderNewOrderRespTypeEnum: () => NewOrderNewOrderRespTypeEnum,
2515
2769
  NewOrderSelfTradePreventionModeEnum: () => NewOrderSelfTradePreventionModeEnum,
2516
2770
  NewOrderSideEnum: () => NewOrderSideEnum,
@@ -2529,9 +2783,9 @@ var rest_api_exports = /* @__PURE__ */ __export({
2529
2783
  //#endregion
2530
2784
  //#region src/websocket-streams/modules/market-api.ts
2531
2785
  /**
2532
- * Binance Derivatives Trading Options WebSocket Market Streams
2786
+ * Options WebSocket Market Streams
2533
2787
  *
2534
- * OpenAPI Specification for the Binance Derivatives Trading Options WebSocket Market Streams
2788
+ * Access market data, manage accounts, and trade Binance Options.
2535
2789
  *
2536
2790
  * The version of the OpenAPI document: 1.0.0
2537
2791
  *
@@ -2554,22 +2808,24 @@ const MarketApiParamCreator = function() {
2554
2808
  id
2555
2809
  });
2556
2810
  },
2557
- markPrice: (underlying, id) => {
2558
- (0, __binance_common.assertParamExists)("markPrice", "underlying", underlying);
2559
- return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<underlying>@optionMarkPrice".slice(1), {
2560
- underlying,
2561
- id
2562
- });
2563
- },
2564
2811
  newSymbolInfo: (id) => {
2565
2812
  return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/!optionSymbol".slice(1), { id });
2566
2813
  },
2567
- openInterest: (expirationDate, id) => {
2814
+ openInterest: (underlying, expirationDate, id) => {
2815
+ (0, __binance_common.assertParamExists)("openInterest", "underlying", underlying);
2568
2816
  (0, __binance_common.assertParamExists)("openInterest", "expirationDate", expirationDate);
2569
- return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/underlying@optionOpenInterest@<expirationDate>".slice(1), {
2817
+ return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<underlying>@openInterest@<expirationDate>".slice(1), {
2818
+ underlying,
2570
2819
  expirationDate,
2571
2820
  id
2572
2821
  });
2822
+ },
2823
+ optionMarkPrice: (underlying, id) => {
2824
+ (0, __binance_common.assertParamExists)("optionMarkPrice", "underlying", underlying);
2825
+ return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<underlying>@optionMarkPrice".slice(1), {
2826
+ underlying,
2827
+ id
2828
+ });
2573
2829
  }
2574
2830
  };
2575
2831
  };
@@ -2593,7 +2849,7 @@ var MarketApi = class {
2593
2849
  * @returns {WebsocketStream<IndexPriceStreamsResponse>}
2594
2850
  * @throws {RequiredError}
2595
2851
  * @memberof MarketApi
2596
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Index-Price-Streams Binance API Documentation}
2852
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#index-price-streams Binance API Documentation}
2597
2853
  */
2598
2854
  indexPriceStreams(requestParameters = {}) {
2599
2855
  const stream = this.localVarParamCreator.indexPriceStreams(requestParameters?.id);
@@ -2609,29 +2865,13 @@ var MarketApi = class {
2609
2865
  * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
2610
2866
  * @throws {RequiredError}
2611
2867
  * @memberof MarketApi
2612
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
2868
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#kline-candlestick-streams Binance API Documentation}
2613
2869
  */
2614
2870
  klineCandlestickStreams(requestParameters) {
2615
2871
  const stream = this.localVarParamCreator.klineCandlestickStreams(requestParameters?.symbol, requestParameters?.interval, requestParameters?.id);
2616
2872
  return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "market");
2617
2873
  }
2618
2874
  /**
2619
- * The mark price for all option symbols on specific underlying asset. E.g.[btcusdt@optionMarkPrice](wss://fstream.binance.com/market/stream?streams=btcusdt@optionMarkPrice)
2620
- *
2621
- * Update Speed: 1000ms
2622
- *
2623
- * @summary Mark Price
2624
- * @param {MarkPriceRequest} requestParameters Request parameters.
2625
- * @returns {WebsocketStream<MarkPriceResponse>}
2626
- * @throws {RequiredError}
2627
- * @memberof MarketApi
2628
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Mark-Price Binance API Documentation}
2629
- */
2630
- markPrice(requestParameters) {
2631
- const stream = this.localVarParamCreator.markPrice(requestParameters?.underlying, requestParameters?.id);
2632
- return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "market");
2633
- }
2634
- /**
2635
2875
  * New symbol listing stream.
2636
2876
  *
2637
2877
  * Update Speed: 50ms
@@ -2641,7 +2881,7 @@ var MarketApi = class {
2641
2881
  * @returns {WebsocketStream<NewSymbolInfoResponse>}
2642
2882
  * @throws {RequiredError}
2643
2883
  * @memberof MarketApi
2644
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/New-Symbol-Info Binance API Documentation}
2884
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#new-symbol-info Binance API Documentation}
2645
2885
  */
2646
2886
  newSymbolInfo(requestParameters = {}) {
2647
2887
  const stream = this.localVarParamCreator.newSymbolInfo(requestParameters?.id);
@@ -2657,20 +2897,52 @@ var MarketApi = class {
2657
2897
  * @returns {WebsocketStream<OpenInterestResponse>}
2658
2898
  * @throws {RequiredError}
2659
2899
  * @memberof MarketApi
2660
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Open-Interest Binance API Documentation}
2900
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#open-interest Binance API Documentation}
2661
2901
  */
2662
2902
  openInterest(requestParameters) {
2663
- const stream = this.localVarParamCreator.openInterest(requestParameters?.expirationDate, requestParameters?.id);
2903
+ const stream = this.localVarParamCreator.openInterest(requestParameters?.underlying, requestParameters?.expirationDate, requestParameters?.id);
2904
+ return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "market");
2905
+ }
2906
+ /**
2907
+ * The mark price for all option symbols on specific underlying asset. E.g.[btcusdt@optionMarkPrice](wss://fstream.binance.com/market/stream?streams=btcusdt@optionMarkPrice)
2908
+ *
2909
+ * Update Speed: 1000ms
2910
+ *
2911
+ * @summary Option Mark Price
2912
+ * @param {OptionMarkPriceRequest} requestParameters Request parameters.
2913
+ * @returns {WebsocketStream<OptionMarkPriceResponse>}
2914
+ * @throws {RequiredError}
2915
+ * @memberof MarketApi
2916
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#option-mark-price Binance API Documentation}
2917
+ */
2918
+ optionMarkPrice(requestParameters) {
2919
+ const stream = this.localVarParamCreator.optionMarkPrice(requestParameters?.underlying, requestParameters?.id);
2664
2920
  return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "market");
2665
2921
  }
2666
2922
  };
2923
+ let KlineCandlestickStreamsIntervalEnum = /* @__PURE__ */ function(KlineCandlestickStreamsIntervalEnum$1) {
2924
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_1m"] = "1m";
2925
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_3m"] = "3m";
2926
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_5m"] = "5m";
2927
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_15m"] = "15m";
2928
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_30m"] = "30m";
2929
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_1h"] = "1h";
2930
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_2h"] = "2h";
2931
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_4h"] = "4h";
2932
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_6h"] = "6h";
2933
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_12h"] = "12h";
2934
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_1d"] = "1d";
2935
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_3d"] = "3d";
2936
+ KlineCandlestickStreamsIntervalEnum$1["INTERVAL_1w"] = "1w";
2937
+ return KlineCandlestickStreamsIntervalEnum$1;
2938
+ }({});
2667
2939
 
2668
2940
  //#endregion
2669
2941
  //#region src/websocket-streams/modules/public-api.ts
2670
2942
  /**
2671
- * Binance Derivatives Trading Options WebSocket Market Streams
2943
+ * Options WebSocket Market Streams
2672
2944
  *
2673
- * OpenAPI Specification for the Binance Derivatives Trading Options WebSocket Market Streams
2945
+ * Access market data, manage accounts, and trade Binance Options.
2674
2946
  *
2675
2947
  * The version of the OpenAPI document: 1.0.0
2676
2948
  *
@@ -2681,12 +2953,21 @@ var MarketApi = class {
2681
2953
  */
2682
2954
  const PublicApiParamCreator = function() {
2683
2955
  return {
2684
- diffBookDepthStreams: (symbol, id, updateSpeed) => {
2956
+ diffBookDepthStreams: (symbol, updateSpeed, id) => {
2685
2957
  (0, __binance_common.assertParamExists)("diffBookDepthStreams", "symbol", symbol);
2958
+ (0, __binance_common.assertParamExists)("diffBookDepthStreams", "updateSpeed", updateSpeed);
2686
2959
  return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<symbol>@depth@<updateSpeed>".slice(1), {
2960
+ symbol,
2961
+ updateSpeed,
2962
+ id
2963
+ });
2964
+ },
2965
+ hour24Ticker: (symbol, id, expirationDate) => {
2966
+ (0, __binance_common.assertParamExists)("hour24Ticker", "symbol", symbol);
2967
+ return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<symbol>@optionTicker<expirationDate>".slice(1), {
2687
2968
  symbol,
2688
2969
  id,
2689
- updateSpeed
2970
+ expirationDate
2690
2971
  });
2691
2972
  },
2692
2973
  individualSymbolBookTickerStreams: (symbol, id) => {
@@ -2696,20 +2977,14 @@ const PublicApiParamCreator = function() {
2696
2977
  id
2697
2978
  });
2698
2979
  },
2699
- partialBookDepthStreams: (symbol, level, id, updateSpeed) => {
2980
+ partialBookDepthStreams: (symbol, level, updateSpeed, id) => {
2700
2981
  (0, __binance_common.assertParamExists)("partialBookDepthStreams", "symbol", symbol);
2701
2982
  (0, __binance_common.assertParamExists)("partialBookDepthStreams", "level", level);
2983
+ (0, __binance_common.assertParamExists)("partialBookDepthStreams", "updateSpeed", updateSpeed);
2702
2984
  return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<symbol>@depth<level>@<updateSpeed>".slice(1), {
2703
2985
  symbol,
2704
2986
  level,
2705
- id,
2706
- updateSpeed
2707
- });
2708
- },
2709
- ticker24Hour: (symbol, id) => {
2710
- (0, __binance_common.assertParamExists)("ticker24Hour", "symbol", symbol);
2711
- return (0, __binance_common.replaceWebsocketStreamsPlaceholders)("/<symbol>@optionTicker".slice(1), {
2712
- symbol,
2987
+ updateSpeed,
2713
2988
  id
2714
2989
  });
2715
2990
  },
@@ -2742,10 +3017,26 @@ var PublicApi = class {
2742
3017
  * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
2743
3018
  * @throws {RequiredError}
2744
3019
  * @memberof PublicApi
2745
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Diff-Book-Depth-Streams Binance API Documentation}
3020
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#diff-book-depth-streams Binance API Documentation}
2746
3021
  */
2747
3022
  diffBookDepthStreams(requestParameters) {
2748
- const stream = this.localVarParamCreator.diffBookDepthStreams(requestParameters?.symbol, requestParameters?.id, requestParameters?.updateSpeed);
3023
+ const stream = this.localVarParamCreator.diffBookDepthStreams(requestParameters?.symbol, requestParameters?.updateSpeed, requestParameters?.id);
3024
+ return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "public");
3025
+ }
3026
+ /**
3027
+ * 24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
3028
+ *
3029
+ * Update Speed: 1000ms
3030
+ *
3031
+ * @summary 24-hour TICKER
3032
+ * @param {Hour24TickerRequest} requestParameters Request parameters.
3033
+ * @returns {WebsocketStream<Hour24TickerResponse>}
3034
+ * @throws {RequiredError}
3035
+ * @memberof PublicApi
3036
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#hour24-ticker Binance API Documentation}
3037
+ */
3038
+ hour24Ticker(requestParameters) {
3039
+ const stream = this.localVarParamCreator.hour24Ticker(requestParameters?.symbol, requestParameters?.id, requestParameters?.expirationDate);
2749
3040
  return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "public");
2750
3041
  }
2751
3042
  /**
@@ -2758,14 +3049,14 @@ var PublicApi = class {
2758
3049
  * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
2759
3050
  * @throws {RequiredError}
2760
3051
  * @memberof PublicApi
2761
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Individual-Symbol-Book-Ticker-Streams Binance API Documentation}
3052
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#individual-symbol-book-ticker-streams Binance API Documentation}
2762
3053
  */
2763
3054
  individualSymbolBookTickerStreams(requestParameters) {
2764
3055
  const stream = this.localVarParamCreator.individualSymbolBookTickerStreams(requestParameters?.symbol, requestParameters?.id);
2765
3056
  return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "public");
2766
3057
  }
2767
3058
  /**
2768
- * Top **<levels\>** bids and asks, Valid levels are **<levels\>** are 5, 10, 20.
3059
+ * Top <levels> bids and asks. Valid <levels> are 5, 10, 20.
2769
3060
  *
2770
3061
  * Update Speed: 100ms or 500ms
2771
3062
  *
@@ -2774,26 +3065,10 @@ var PublicApi = class {
2774
3065
  * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
2775
3066
  * @throws {RequiredError}
2776
3067
  * @memberof PublicApi
2777
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
3068
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#partial-book-depth-streams Binance API Documentation}
2778
3069
  */
2779
3070
  partialBookDepthStreams(requestParameters) {
2780
- const stream = this.localVarParamCreator.partialBookDepthStreams(requestParameters?.symbol, requestParameters?.level, requestParameters?.id, requestParameters?.updateSpeed);
2781
- return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "public");
2782
- }
2783
- /**
2784
- * 24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
2785
- *
2786
- * Update Speed: 1000ms
2787
- *
2788
- * @summary 24-hour TICKER
2789
- * @param {Ticker24HourRequest} requestParameters Request parameters.
2790
- * @returns {WebsocketStream<Ticker24HourResponse>}
2791
- * @throws {RequiredError}
2792
- * @memberof PublicApi
2793
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/24-hour-TICKER Binance API Documentation}
2794
- */
2795
- ticker24Hour(requestParameters) {
2796
- const stream = this.localVarParamCreator.ticker24Hour(requestParameters?.symbol, requestParameters?.id);
3071
+ const stream = this.localVarParamCreator.partialBookDepthStreams(requestParameters?.symbol, requestParameters?.level, requestParameters?.updateSpeed, requestParameters?.id);
2797
3072
  return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "public");
2798
3073
  }
2799
3074
  /**
@@ -2806,20 +3081,36 @@ var PublicApi = class {
2806
3081
  * @returns {WebsocketStream<TradeStreamsResponse>}
2807
3082
  * @throws {RequiredError}
2808
3083
  * @memberof PublicApi
2809
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Trade-Streams Binance API Documentation}
3084
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#trade-streams Binance API Documentation}
2810
3085
  */
2811
3086
  tradeStreams(requestParameters) {
2812
3087
  const stream = this.localVarParamCreator.tradeStreams(requestParameters?.symbol, requestParameters?.id);
2813
3088
  return (0, __binance_common.createStreamHandler)(this.websocketBase, stream, requestParameters?.id, "public");
2814
3089
  }
2815
3090
  };
3091
+ let DiffBookDepthStreamsUpdateSpeedEnum = /* @__PURE__ */ function(DiffBookDepthStreamsUpdateSpeedEnum$1) {
3092
+ DiffBookDepthStreamsUpdateSpeedEnum$1["UPDATE_SPEED_100ms"] = "100ms";
3093
+ DiffBookDepthStreamsUpdateSpeedEnum$1["UPDATE_SPEED_500ms"] = "500ms";
3094
+ return DiffBookDepthStreamsUpdateSpeedEnum$1;
3095
+ }({});
3096
+ let PartialBookDepthStreamsLevelEnum = /* @__PURE__ */ function(PartialBookDepthStreamsLevelEnum$1) {
3097
+ PartialBookDepthStreamsLevelEnum$1["LEVEL_5"] = "5";
3098
+ PartialBookDepthStreamsLevelEnum$1["LEVEL_10"] = "10";
3099
+ PartialBookDepthStreamsLevelEnum$1["LEVEL_20"] = "20";
3100
+ return PartialBookDepthStreamsLevelEnum$1;
3101
+ }({});
3102
+ let PartialBookDepthStreamsUpdateSpeedEnum = /* @__PURE__ */ function(PartialBookDepthStreamsUpdateSpeedEnum$1) {
3103
+ PartialBookDepthStreamsUpdateSpeedEnum$1["UPDATE_SPEED_100ms"] = "100ms";
3104
+ PartialBookDepthStreamsUpdateSpeedEnum$1["UPDATE_SPEED_500ms"] = "500ms";
3105
+ return PartialBookDepthStreamsUpdateSpeedEnum$1;
3106
+ }({});
2816
3107
 
2817
3108
  //#endregion
2818
3109
  //#region src/websocket-streams/websocket-streams-connection.ts
2819
3110
  /**
2820
- * Binance Derivatives Trading Options WebSocket Market Streams
3111
+ * Options WebSocket Market Streams
2821
3112
  *
2822
- * OpenAPI Specification for the Binance Derivatives Trading Options WebSocket Market Streams
3113
+ * Access market data, manage accounts, and trade Binance Options.
2823
3114
  *
2824
3115
  * The version of the OpenAPI document: 1.0.0
2825
3116
  *
@@ -2924,7 +3215,7 @@ var WebsocketStreamsConnection = class {
2924
3215
  *
2925
3216
  * @returns {WebsocketStream<IndexPriceStreamsResponse>}
2926
3217
  * @throws {RequiredError}
2927
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Index-Price-Streams Binance API Documentation}
3218
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#index-price-streams Binance API Documentation}
2928
3219
  */
2929
3220
  indexPriceStreams(requestParameters = {}) {
2930
3221
  return this.marketApi.indexPriceStreams(requestParameters);
@@ -2939,27 +3230,12 @@ var WebsocketStreamsConnection = class {
2939
3230
  *
2940
3231
  * @returns {WebsocketStream<KlineCandlestickStreamsResponse>}
2941
3232
  * @throws {RequiredError}
2942
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Kline-Candlestick-Streams Binance API Documentation}
3233
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#kline-candlestick-streams Binance API Documentation}
2943
3234
  */
2944
3235
  klineCandlestickStreams(requestParameters) {
2945
3236
  return this.marketApi.klineCandlestickStreams(requestParameters);
2946
3237
  }
2947
3238
  /**
2948
- * The mark price for all option symbols on specific underlying asset. E.g.[btcusdt@optionMarkPrice](wss://fstream.binance.com/market/stream?streams=btcusdt@optionMarkPrice)
2949
- *
2950
- * Update Speed: 1000ms
2951
- *
2952
- * @summary Mark Price
2953
- * @param {MarkPriceRequest} requestParameters Request parameters.
2954
- *
2955
- * @returns {WebsocketStream<MarkPriceResponse>}
2956
- * @throws {RequiredError}
2957
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Mark-Price Binance API Documentation}
2958
- */
2959
- markPrice(requestParameters) {
2960
- return this.marketApi.markPrice(requestParameters);
2961
- }
2962
- /**
2963
3239
  * New symbol listing stream.
2964
3240
  *
2965
3241
  * Update Speed: 50ms
@@ -2969,7 +3245,7 @@ var WebsocketStreamsConnection = class {
2969
3245
  *
2970
3246
  * @returns {WebsocketStream<NewSymbolInfoResponse>}
2971
3247
  * @throws {RequiredError}
2972
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/New-Symbol-Info Binance API Documentation}
3248
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#new-symbol-info Binance API Documentation}
2973
3249
  */
2974
3250
  newSymbolInfo(requestParameters = {}) {
2975
3251
  return this.marketApi.newSymbolInfo(requestParameters);
@@ -2984,12 +3260,27 @@ var WebsocketStreamsConnection = class {
2984
3260
  *
2985
3261
  * @returns {WebsocketStream<OpenInterestResponse>}
2986
3262
  * @throws {RequiredError}
2987
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Open-Interest Binance API Documentation}
3263
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#open-interest Binance API Documentation}
2988
3264
  */
2989
3265
  openInterest(requestParameters) {
2990
3266
  return this.marketApi.openInterest(requestParameters);
2991
3267
  }
2992
3268
  /**
3269
+ * The mark price for all option symbols on specific underlying asset. E.g.[btcusdt@optionMarkPrice](wss://fstream.binance.com/market/stream?streams=btcusdt@optionMarkPrice)
3270
+ *
3271
+ * Update Speed: 1000ms
3272
+ *
3273
+ * @summary Option Mark Price
3274
+ * @param {OptionMarkPriceRequest} requestParameters Request parameters.
3275
+ *
3276
+ * @returns {WebsocketStream<OptionMarkPriceResponse>}
3277
+ * @throws {RequiredError}
3278
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/market#option-mark-price Binance API Documentation}
3279
+ */
3280
+ optionMarkPrice(requestParameters) {
3281
+ return this.marketApi.optionMarkPrice(requestParameters);
3282
+ }
3283
+ /**
2993
3284
  * Bids and asks, pushed every 500 milliseconds, 100 milliseconds (if existing)
2994
3285
  *
2995
3286
  * Update Speed: 100ms or 500ms
@@ -2999,12 +3290,27 @@ var WebsocketStreamsConnection = class {
2999
3290
  *
3000
3291
  * @returns {WebsocketStream<DiffBookDepthStreamsResponse>}
3001
3292
  * @throws {RequiredError}
3002
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Diff-Book-Depth-Streams Binance API Documentation}
3293
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#diff-book-depth-streams Binance API Documentation}
3003
3294
  */
3004
3295
  diffBookDepthStreams(requestParameters) {
3005
3296
  return this.publicApi.diffBookDepthStreams(requestParameters);
3006
3297
  }
3007
3298
  /**
3299
+ * 24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
3300
+ *
3301
+ * Update Speed: 1000ms
3302
+ *
3303
+ * @summary 24-hour TICKER
3304
+ * @param {Hour24TickerRequest} requestParameters Request parameters.
3305
+ *
3306
+ * @returns {WebsocketStream<Hour24TickerResponse>}
3307
+ * @throws {RequiredError}
3308
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#hour24-ticker Binance API Documentation}
3309
+ */
3310
+ hour24Ticker(requestParameters) {
3311
+ return this.publicApi.hour24Ticker(requestParameters);
3312
+ }
3313
+ /**
3008
3314
  * Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.
3009
3315
  *
3010
3316
  * Update Speed: Real-Time
@@ -3014,13 +3320,13 @@ var WebsocketStreamsConnection = class {
3014
3320
  *
3015
3321
  * @returns {WebsocketStream<IndividualSymbolBookTickerStreamsResponse>}
3016
3322
  * @throws {RequiredError}
3017
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Individual-Symbol-Book-Ticker-Streams Binance API Documentation}
3323
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#individual-symbol-book-ticker-streams Binance API Documentation}
3018
3324
  */
3019
3325
  individualSymbolBookTickerStreams(requestParameters) {
3020
3326
  return this.publicApi.individualSymbolBookTickerStreams(requestParameters);
3021
3327
  }
3022
3328
  /**
3023
- * Top **<levels\>** bids and asks, Valid levels are **<levels\>** are 5, 10, 20.
3329
+ * Top <levels> bids and asks. Valid <levels> are 5, 10, 20.
3024
3330
  *
3025
3331
  * Update Speed: 100ms or 500ms
3026
3332
  *
@@ -3029,27 +3335,12 @@ var WebsocketStreamsConnection = class {
3029
3335
  *
3030
3336
  * @returns {WebsocketStream<PartialBookDepthStreamsResponse>}
3031
3337
  * @throws {RequiredError}
3032
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Partial-Book-Depth-Streams Binance API Documentation}
3338
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#partial-book-depth-streams Binance API Documentation}
3033
3339
  */
3034
3340
  partialBookDepthStreams(requestParameters) {
3035
3341
  return this.publicApi.partialBookDepthStreams(requestParameters);
3036
3342
  }
3037
3343
  /**
3038
- * 24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent.
3039
- *
3040
- * Update Speed: 1000ms
3041
- *
3042
- * @summary 24-hour TICKER
3043
- * @param {Ticker24HourRequest} requestParameters Request parameters.
3044
- *
3045
- * @returns {WebsocketStream<Ticker24HourResponse>}
3046
- * @throws {RequiredError}
3047
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/24-hour-TICKER Binance API Documentation}
3048
- */
3049
- ticker24Hour(requestParameters) {
3050
- return this.publicApi.ticker24Hour(requestParameters);
3051
- }
3052
- /**
3053
3344
  * 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)
3054
3345
  *
3055
3346
  * Update Speed: 50ms
@@ -3059,7 +3350,7 @@ var WebsocketStreamsConnection = class {
3059
3350
  *
3060
3351
  * @returns {WebsocketStream<TradeStreamsResponse>}
3061
3352
  * @throws {RequiredError}
3062
- * @see {@link https://developers.binance.com/docs/derivatives/options-trading/websocket-market-streams/Trade-Streams Binance API Documentation}
3353
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/ws-streams/public#trade-streams Binance API Documentation}
3063
3354
  */
3064
3355
  tradeStreams(requestParameters) {
3065
3356
  return this.publicApi.tradeStreams(requestParameters);
@@ -3069,9 +3360,9 @@ var WebsocketStreamsConnection = class {
3069
3360
  //#endregion
3070
3361
  //#region src/websocket-streams/websocket-streams.ts
3071
3362
  /**
3072
- * Binance Derivatives Trading Options WebSocket Market Streams
3363
+ * Options WebSocket Market Streams
3073
3364
  *
3074
- * OpenAPI Specification for the Binance Derivatives Trading Options WebSocket Market Streams
3365
+ * Access market data, manage accounts, and trade Binance Options.
3075
3366
  *
3076
3367
  * The version of the OpenAPI document: 1.0.0
3077
3368
  *
@@ -3113,7 +3404,11 @@ var WebsocketStreams = class {
3113
3404
  //#endregion
3114
3405
  //#region src/websocket-streams/index.ts
3115
3406
  var websocket_streams_exports = /* @__PURE__ */ __export({
3407
+ DiffBookDepthStreamsUpdateSpeedEnum: () => DiffBookDepthStreamsUpdateSpeedEnum,
3408
+ KlineCandlestickStreamsIntervalEnum: () => KlineCandlestickStreamsIntervalEnum,
3116
3409
  MarketApi: () => MarketApi,
3410
+ PartialBookDepthStreamsLevelEnum: () => PartialBookDepthStreamsLevelEnum,
3411
+ PartialBookDepthStreamsUpdateSpeedEnum: () => PartialBookDepthStreamsUpdateSpeedEnum,
3117
3412
  PublicApi: () => PublicApi,
3118
3413
  WebsocketStreams: () => WebsocketStreams,
3119
3414
  WebsocketStreamsConnection: () => WebsocketStreamsConnection