@binance/derivatives-trading-options 5.0.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1126,6 +1126,12 @@ interface ExchangeInformationResponseOptionSymbolsInner {
1126
1126
  * @memberof ExchangeInformationResponseOptionSymbolsInner
1127
1127
  */
1128
1128
  takerFeeRate?: string;
1129
+ /**
1130
+ *
1131
+ * @type {string}
1132
+ * @memberof ExchangeInformationResponseOptionSymbolsInner
1133
+ */
1134
+ liquidationFeeRate?: string;
1129
1135
  /**
1130
1136
  *
1131
1137
  * @type {string}
@@ -2317,7 +2323,7 @@ interface OptionMarginAccountInformationResponseAssetInner {
2317
2323
  * @type {string}
2318
2324
  * @memberof OptionMarginAccountInformationResponseAssetInner
2319
2325
  */
2320
- lpProfit?: string;
2326
+ adjustedEquity?: string;
2321
2327
  }
2322
2328
 
2323
2329
  /**
@@ -4309,6 +4315,18 @@ interface AccountApiInterface {
4309
4315
  * @memberof AccountApiInterface
4310
4316
  */
4311
4317
  optionAccountInformation(requestParameters?: OptionAccountInformationRequest): Promise<RestApiResponse<OptionAccountInformationResponse>>;
4318
+ /**
4319
+ * Get current account information.
4320
+ *
4321
+ * Weight: 3
4322
+ *
4323
+ * @summary Option Margin Account Information (USER_DATA)
4324
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
4325
+ *
4326
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4327
+ * @memberof AccountApiInterface
4328
+ */
4329
+ optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
4312
4330
  }
4313
4331
  /**
4314
4332
  * Request parameters for accountFundingFlow operation in AccountApi.
@@ -4406,6 +4424,18 @@ interface OptionAccountInformationRequest {
4406
4424
  */
4407
4425
  readonly recvWindow?: number;
4408
4426
  }
4427
+ /**
4428
+ * Request parameters for optionMarginAccountInformation operation in AccountApi.
4429
+ * @interface OptionMarginAccountInformationRequest
4430
+ */
4431
+ interface OptionMarginAccountInformationRequest {
4432
+ /**
4433
+ *
4434
+ * @type {number}
4435
+ * @memberof AccountApiOptionMarginAccountInformation
4436
+ */
4437
+ readonly recvWindow?: number;
4438
+ }
4409
4439
  /**
4410
4440
  * AccountApi - object-oriented interface
4411
4441
  * @class AccountApi
@@ -4471,6 +4501,19 @@ declare class AccountApi implements AccountApiInterface {
4471
4501
  * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information Binance API Documentation}
4472
4502
  */
4473
4503
  optionAccountInformation(requestParameters?: OptionAccountInformationRequest): Promise<RestApiResponse<OptionAccountInformationResponse>>;
4504
+ /**
4505
+ * Get current account information.
4506
+ *
4507
+ * Weight: 3
4508
+ *
4509
+ * @summary Option Margin Account Information (USER_DATA)
4510
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
4511
+ * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
4512
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4513
+ * @memberof AccountApi
4514
+ * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
4515
+ */
4516
+ optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
4474
4517
  }
4475
4518
 
4476
4519
  /**
@@ -5491,18 +5534,6 @@ interface MarketMakerEndpointsApiInterface {
5491
5534
  * @memberof MarketMakerEndpointsApiInterface
5492
5535
  */
5493
5536
  getMarketMakerProtectionConfig(requestParameters?: GetMarketMakerProtectionConfigRequest): Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>;
5494
- /**
5495
- * Get current account information.
5496
- *
5497
- * Weight: 3
5498
- *
5499
- * @summary Option Margin Account Information (USER_DATA)
5500
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
5501
- *
5502
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5503
- * @memberof MarketMakerEndpointsApiInterface
5504
- */
5505
- optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
5506
5537
  /**
5507
5538
  * Reset MMP, start MMP order again.
5508
5539
  *
@@ -5601,18 +5632,6 @@ interface GetMarketMakerProtectionConfigRequest {
5601
5632
  */
5602
5633
  readonly recvWindow?: number;
5603
5634
  }
5604
- /**
5605
- * Request parameters for optionMarginAccountInformation operation in MarketMakerEndpointsApi.
5606
- * @interface OptionMarginAccountInformationRequest
5607
- */
5608
- interface OptionMarginAccountInformationRequest {
5609
- /**
5610
- *
5611
- * @type {number}
5612
- * @memberof MarketMakerEndpointsApiOptionMarginAccountInformation
5613
- */
5614
- readonly recvWindow?: number;
5615
- }
5616
5635
  /**
5617
5636
  * Request parameters for resetMarketMakerProtectionConfig operation in MarketMakerEndpointsApi.
5618
5637
  * @interface ResetMarketMakerProtectionConfigRequest
@@ -5748,19 +5767,6 @@ declare class MarketMakerEndpointsApi implements MarketMakerEndpointsApiInterfac
5748
5767
  * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
5749
5768
  */
5750
5769
  getMarketMakerProtectionConfig(requestParameters?: GetMarketMakerProtectionConfigRequest): Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>;
5751
- /**
5752
- * Get current account information.
5753
- *
5754
- * Weight: 3
5755
- *
5756
- * @summary Option Margin Account Information (USER_DATA)
5757
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
5758
- * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
5759
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5760
- * @memberof MarketMakerEndpointsApi
5761
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
5762
- */
5763
- optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
5764
5770
  /**
5765
5771
  * Reset MMP, start MMP order again.
5766
5772
  *
@@ -6777,6 +6783,18 @@ declare class RestAPI {
6777
6783
  * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information Binance API Documentation}
6778
6784
  */
6779
6785
  optionAccountInformation(requestParameters?: OptionAccountInformationRequest): Promise<RestApiResponse<OptionAccountInformationResponse>>;
6786
+ /**
6787
+ * Get current account information.
6788
+ *
6789
+ * Weight: 3
6790
+ *
6791
+ * @summary Option Margin Account Information (USER_DATA)
6792
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
6793
+ * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
6794
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
6795
+ * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
6796
+ */
6797
+ optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
6780
6798
  /**
6781
6799
  * Test connectivity to the Rest API and get the current server time.
6782
6800
  *
@@ -7064,18 +7082,6 @@ declare class RestAPI {
7064
7082
  * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
7065
7083
  */
7066
7084
  getMarketMakerProtectionConfig(requestParameters?: GetMarketMakerProtectionConfigRequest): Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>;
7067
- /**
7068
- * Get current account information.
7069
- *
7070
- * Weight: 3
7071
- *
7072
- * @summary Option Margin Account Information (USER_DATA)
7073
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
7074
- * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
7075
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
7076
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
7077
- */
7078
- optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
7079
7085
  /**
7080
7086
  * Reset MMP, start MMP order again.
7081
7087
  *
package/dist/index.d.ts CHANGED
@@ -1126,6 +1126,12 @@ interface ExchangeInformationResponseOptionSymbolsInner {
1126
1126
  * @memberof ExchangeInformationResponseOptionSymbolsInner
1127
1127
  */
1128
1128
  takerFeeRate?: string;
1129
+ /**
1130
+ *
1131
+ * @type {string}
1132
+ * @memberof ExchangeInformationResponseOptionSymbolsInner
1133
+ */
1134
+ liquidationFeeRate?: string;
1129
1135
  /**
1130
1136
  *
1131
1137
  * @type {string}
@@ -2317,7 +2323,7 @@ interface OptionMarginAccountInformationResponseAssetInner {
2317
2323
  * @type {string}
2318
2324
  * @memberof OptionMarginAccountInformationResponseAssetInner
2319
2325
  */
2320
- lpProfit?: string;
2326
+ adjustedEquity?: string;
2321
2327
  }
2322
2328
 
2323
2329
  /**
@@ -4309,6 +4315,18 @@ interface AccountApiInterface {
4309
4315
  * @memberof AccountApiInterface
4310
4316
  */
4311
4317
  optionAccountInformation(requestParameters?: OptionAccountInformationRequest): Promise<RestApiResponse<OptionAccountInformationResponse>>;
4318
+ /**
4319
+ * Get current account information.
4320
+ *
4321
+ * Weight: 3
4322
+ *
4323
+ * @summary Option Margin Account Information (USER_DATA)
4324
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
4325
+ *
4326
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4327
+ * @memberof AccountApiInterface
4328
+ */
4329
+ optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
4312
4330
  }
4313
4331
  /**
4314
4332
  * Request parameters for accountFundingFlow operation in AccountApi.
@@ -4406,6 +4424,18 @@ interface OptionAccountInformationRequest {
4406
4424
  */
4407
4425
  readonly recvWindow?: number;
4408
4426
  }
4427
+ /**
4428
+ * Request parameters for optionMarginAccountInformation operation in AccountApi.
4429
+ * @interface OptionMarginAccountInformationRequest
4430
+ */
4431
+ interface OptionMarginAccountInformationRequest {
4432
+ /**
4433
+ *
4434
+ * @type {number}
4435
+ * @memberof AccountApiOptionMarginAccountInformation
4436
+ */
4437
+ readonly recvWindow?: number;
4438
+ }
4409
4439
  /**
4410
4440
  * AccountApi - object-oriented interface
4411
4441
  * @class AccountApi
@@ -4471,6 +4501,19 @@ declare class AccountApi implements AccountApiInterface {
4471
4501
  * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information Binance API Documentation}
4472
4502
  */
4473
4503
  optionAccountInformation(requestParameters?: OptionAccountInformationRequest): Promise<RestApiResponse<OptionAccountInformationResponse>>;
4504
+ /**
4505
+ * Get current account information.
4506
+ *
4507
+ * Weight: 3
4508
+ *
4509
+ * @summary Option Margin Account Information (USER_DATA)
4510
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
4511
+ * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
4512
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4513
+ * @memberof AccountApi
4514
+ * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
4515
+ */
4516
+ optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
4474
4517
  }
4475
4518
 
4476
4519
  /**
@@ -5491,18 +5534,6 @@ interface MarketMakerEndpointsApiInterface {
5491
5534
  * @memberof MarketMakerEndpointsApiInterface
5492
5535
  */
5493
5536
  getMarketMakerProtectionConfig(requestParameters?: GetMarketMakerProtectionConfigRequest): Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>;
5494
- /**
5495
- * Get current account information.
5496
- *
5497
- * Weight: 3
5498
- *
5499
- * @summary Option Margin Account Information (USER_DATA)
5500
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
5501
- *
5502
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5503
- * @memberof MarketMakerEndpointsApiInterface
5504
- */
5505
- optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
5506
5537
  /**
5507
5538
  * Reset MMP, start MMP order again.
5508
5539
  *
@@ -5601,18 +5632,6 @@ interface GetMarketMakerProtectionConfigRequest {
5601
5632
  */
5602
5633
  readonly recvWindow?: number;
5603
5634
  }
5604
- /**
5605
- * Request parameters for optionMarginAccountInformation operation in MarketMakerEndpointsApi.
5606
- * @interface OptionMarginAccountInformationRequest
5607
- */
5608
- interface OptionMarginAccountInformationRequest {
5609
- /**
5610
- *
5611
- * @type {number}
5612
- * @memberof MarketMakerEndpointsApiOptionMarginAccountInformation
5613
- */
5614
- readonly recvWindow?: number;
5615
- }
5616
5635
  /**
5617
5636
  * Request parameters for resetMarketMakerProtectionConfig operation in MarketMakerEndpointsApi.
5618
5637
  * @interface ResetMarketMakerProtectionConfigRequest
@@ -5748,19 +5767,6 @@ declare class MarketMakerEndpointsApi implements MarketMakerEndpointsApiInterfac
5748
5767
  * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
5749
5768
  */
5750
5769
  getMarketMakerProtectionConfig(requestParameters?: GetMarketMakerProtectionConfigRequest): Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>;
5751
- /**
5752
- * Get current account information.
5753
- *
5754
- * Weight: 3
5755
- *
5756
- * @summary Option Margin Account Information (USER_DATA)
5757
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
5758
- * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
5759
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5760
- * @memberof MarketMakerEndpointsApi
5761
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
5762
- */
5763
- optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
5764
5770
  /**
5765
5771
  * Reset MMP, start MMP order again.
5766
5772
  *
@@ -6777,6 +6783,18 @@ declare class RestAPI {
6777
6783
  * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information Binance API Documentation}
6778
6784
  */
6779
6785
  optionAccountInformation(requestParameters?: OptionAccountInformationRequest): Promise<RestApiResponse<OptionAccountInformationResponse>>;
6786
+ /**
6787
+ * Get current account information.
6788
+ *
6789
+ * Weight: 3
6790
+ *
6791
+ * @summary Option Margin Account Information (USER_DATA)
6792
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
6793
+ * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
6794
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
6795
+ * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
6796
+ */
6797
+ optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
6780
6798
  /**
6781
6799
  * Test connectivity to the Rest API and get the current server time.
6782
6800
  *
@@ -7064,18 +7082,6 @@ declare class RestAPI {
7064
7082
  * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Get-Market-Maker-Protection-Config Binance API Documentation}
7065
7083
  */
7066
7084
  getMarketMakerProtectionConfig(requestParameters?: GetMarketMakerProtectionConfigRequest): Promise<RestApiResponse<GetMarketMakerProtectionConfigResponse>>;
7067
- /**
7068
- * Get current account information.
7069
- *
7070
- * Weight: 3
7071
- *
7072
- * @summary Option Margin Account Information (USER_DATA)
7073
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
7074
- * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
7075
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
7076
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
7077
- */
7078
- optionMarginAccountInformation(requestParameters?: OptionMarginAccountInformationRequest): Promise<RestApiResponse<OptionMarginAccountInformationResponse>>;
7079
7085
  /**
7080
7086
  * Reset MMP, start MMP order again.
7081
7087
  *
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ var import_common11 = require("@binance/common");
43
43
 
44
44
  // package.json
45
45
  var name = "@binance/derivatives-trading-options";
46
- var version = "5.0.1";
46
+ var version = "6.0.0";
47
47
 
48
48
  // src/rest-api/index.ts
49
49
  var rest_api_exports = {};
@@ -228,6 +228,30 @@ var AccountApiAxiosParamCreator = function(configuration) {
228
228
  params: localVarQueryParameter,
229
229
  timeUnit: _timeUnit
230
230
  };
231
+ },
232
+ /**
233
+ * Get current account information.
234
+ *
235
+ * Weight: 3
236
+ *
237
+ * @summary Option Margin Account Information (USER_DATA)
238
+ * @param {number} [recvWindow]
239
+ *
240
+ * @throws {RequiredError}
241
+ */
242
+ optionMarginAccountInformation: async (recvWindow) => {
243
+ const localVarQueryParameter = {};
244
+ if (recvWindow !== void 0 && recvWindow !== null) {
245
+ localVarQueryParameter["recvWindow"] = recvWindow;
246
+ }
247
+ let _timeUnit;
248
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
249
+ return {
250
+ endpoint: "/eapi/v1/marginAccount",
251
+ method: "GET",
252
+ params: localVarQueryParameter,
253
+ timeUnit: _timeUnit
254
+ };
231
255
  }
232
256
  };
233
257
  };
@@ -349,6 +373,31 @@ var AccountApi = class {
349
373
  { isSigned: true }
350
374
  );
351
375
  }
376
+ /**
377
+ * Get current account information.
378
+ *
379
+ * Weight: 3
380
+ *
381
+ * @summary Option Margin Account Information (USER_DATA)
382
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
383
+ * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
384
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
385
+ * @memberof AccountApi
386
+ * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
387
+ */
388
+ async optionMarginAccountInformation(requestParameters = {}) {
389
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(
390
+ requestParameters?.recvWindow
391
+ );
392
+ return (0, import_common.sendRequest)(
393
+ this.configuration,
394
+ localVarAxiosArgs.endpoint,
395
+ localVarAxiosArgs.method,
396
+ localVarAxiosArgs.params,
397
+ localVarAxiosArgs?.timeUnit,
398
+ { isSigned: true }
399
+ );
400
+ }
352
401
  };
353
402
 
354
403
  // src/rest-api/modules/market-data-api.ts
@@ -1638,30 +1687,6 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
1638
1687
  timeUnit: _timeUnit
1639
1688
  };
1640
1689
  },
1641
- /**
1642
- * Get current account information.
1643
- *
1644
- * Weight: 3
1645
- *
1646
- * @summary Option Margin Account Information (USER_DATA)
1647
- * @param {number} [recvWindow]
1648
- *
1649
- * @throws {RequiredError}
1650
- */
1651
- optionMarginAccountInformation: async (recvWindow) => {
1652
- const localVarQueryParameter = {};
1653
- if (recvWindow !== void 0 && recvWindow !== null) {
1654
- localVarQueryParameter["recvWindow"] = recvWindow;
1655
- }
1656
- let _timeUnit;
1657
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1658
- return {
1659
- endpoint: "/eapi/v1/marginAccount",
1660
- method: "GET",
1661
- params: localVarQueryParameter,
1662
- timeUnit: _timeUnit
1663
- };
1664
- },
1665
1690
  /**
1666
1691
  * Reset MMP, start MMP order again.
1667
1692
  *
@@ -1864,31 +1889,6 @@ var MarketMakerEndpointsApi = class {
1864
1889
  { isSigned: true }
1865
1890
  );
1866
1891
  }
1867
- /**
1868
- * Get current account information.
1869
- *
1870
- * Weight: 3
1871
- *
1872
- * @summary Option Margin Account Information (USER_DATA)
1873
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
1874
- * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
1875
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1876
- * @memberof MarketMakerEndpointsApi
1877
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
1878
- */
1879
- async optionMarginAccountInformation(requestParameters = {}) {
1880
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(
1881
- requestParameters?.recvWindow
1882
- );
1883
- return (0, import_common4.sendRequest)(
1884
- this.configuration,
1885
- localVarAxiosArgs.endpoint,
1886
- localVarAxiosArgs.method,
1887
- localVarAxiosArgs.params,
1888
- localVarAxiosArgs?.timeUnit,
1889
- { isSigned: true }
1890
- );
1891
- }
1892
1892
  /**
1893
1893
  * Reset MMP, start MMP order again.
1894
1894
  *
@@ -3094,6 +3094,20 @@ var RestAPI = class {
3094
3094
  optionAccountInformation(requestParameters = {}) {
3095
3095
  return this.accountApi.optionAccountInformation(requestParameters);
3096
3096
  }
3097
+ /**
3098
+ * Get current account information.
3099
+ *
3100
+ * Weight: 3
3101
+ *
3102
+ * @summary Option Margin Account Information (USER_DATA)
3103
+ * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
3104
+ * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
3105
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3106
+ * @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
3107
+ */
3108
+ optionMarginAccountInformation(requestParameters = {}) {
3109
+ return this.accountApi.optionMarginAccountInformation(requestParameters);
3110
+ }
3097
3111
  /**
3098
3112
  * Test connectivity to the Rest API and get the current server time.
3099
3113
  *
@@ -3427,20 +3441,6 @@ var RestAPI = class {
3427
3441
  getMarketMakerProtectionConfig(requestParameters = {}) {
3428
3442
  return this.marketMakerEndpointsApi.getMarketMakerProtectionConfig(requestParameters);
3429
3443
  }
3430
- /**
3431
- * Get current account information.
3432
- *
3433
- * Weight: 3
3434
- *
3435
- * @summary Option Margin Account Information (USER_DATA)
3436
- * @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
3437
- * @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
3438
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3439
- * @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
3440
- */
3441
- optionMarginAccountInformation(requestParameters = {}) {
3442
- return this.marketMakerEndpointsApi.optionMarginAccountInformation(requestParameters);
3443
- }
3444
3444
  /**
3445
3445
  * Reset MMP, start MMP order again.
3446
3446
  *