@binance/derivatives-trading-options 5.0.0 → 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/README.md +1 -0
- package/dist/index.d.mts +56 -50
- package/dist/index.d.ts +56 -50
- package/dist/index.js +64 -64
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -64
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
17
|
var name = "@binance/derivatives-trading-options";
|
|
18
|
-
var version = "
|
|
18
|
+
var version = "6.0.0";
|
|
19
19
|
|
|
20
20
|
// src/rest-api/index.ts
|
|
21
21
|
var rest_api_exports = {};
|
|
@@ -203,6 +203,30 @@ var AccountApiAxiosParamCreator = function(configuration) {
|
|
|
203
203
|
params: localVarQueryParameter,
|
|
204
204
|
timeUnit: _timeUnit
|
|
205
205
|
};
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* Get current account information.
|
|
209
|
+
*
|
|
210
|
+
* Weight: 3
|
|
211
|
+
*
|
|
212
|
+
* @summary Option Margin Account Information (USER_DATA)
|
|
213
|
+
* @param {number} [recvWindow]
|
|
214
|
+
*
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
optionMarginAccountInformation: async (recvWindow) => {
|
|
218
|
+
const localVarQueryParameter = {};
|
|
219
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
220
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
221
|
+
}
|
|
222
|
+
let _timeUnit;
|
|
223
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
224
|
+
return {
|
|
225
|
+
endpoint: "/eapi/v1/marginAccount",
|
|
226
|
+
method: "GET",
|
|
227
|
+
params: localVarQueryParameter,
|
|
228
|
+
timeUnit: _timeUnit
|
|
229
|
+
};
|
|
206
230
|
}
|
|
207
231
|
};
|
|
208
232
|
};
|
|
@@ -324,6 +348,31 @@ var AccountApi = class {
|
|
|
324
348
|
{ isSigned: true }
|
|
325
349
|
);
|
|
326
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* Get current account information.
|
|
353
|
+
*
|
|
354
|
+
* Weight: 3
|
|
355
|
+
*
|
|
356
|
+
* @summary Option Margin Account Information (USER_DATA)
|
|
357
|
+
* @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
|
|
358
|
+
* @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
|
|
359
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
360
|
+
* @memberof AccountApi
|
|
361
|
+
* @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
|
|
362
|
+
*/
|
|
363
|
+
async optionMarginAccountInformation(requestParameters = {}) {
|
|
364
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(
|
|
365
|
+
requestParameters?.recvWindow
|
|
366
|
+
);
|
|
367
|
+
return sendRequest(
|
|
368
|
+
this.configuration,
|
|
369
|
+
localVarAxiosArgs.endpoint,
|
|
370
|
+
localVarAxiosArgs.method,
|
|
371
|
+
localVarAxiosArgs.params,
|
|
372
|
+
localVarAxiosArgs?.timeUnit,
|
|
373
|
+
{ isSigned: true }
|
|
374
|
+
);
|
|
375
|
+
}
|
|
327
376
|
};
|
|
328
377
|
|
|
329
378
|
// src/rest-api/modules/market-data-api.ts
|
|
@@ -1622,30 +1671,6 @@ var MarketMakerEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
1622
1671
|
timeUnit: _timeUnit
|
|
1623
1672
|
};
|
|
1624
1673
|
},
|
|
1625
|
-
/**
|
|
1626
|
-
* Get current account information.
|
|
1627
|
-
*
|
|
1628
|
-
* Weight: 3
|
|
1629
|
-
*
|
|
1630
|
-
* @summary Option Margin Account Information (USER_DATA)
|
|
1631
|
-
* @param {number} [recvWindow]
|
|
1632
|
-
*
|
|
1633
|
-
* @throws {RequiredError}
|
|
1634
|
-
*/
|
|
1635
|
-
optionMarginAccountInformation: async (recvWindow) => {
|
|
1636
|
-
const localVarQueryParameter = {};
|
|
1637
|
-
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
1638
|
-
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1639
|
-
}
|
|
1640
|
-
let _timeUnit;
|
|
1641
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1642
|
-
return {
|
|
1643
|
-
endpoint: "/eapi/v1/marginAccount",
|
|
1644
|
-
method: "GET",
|
|
1645
|
-
params: localVarQueryParameter,
|
|
1646
|
-
timeUnit: _timeUnit
|
|
1647
|
-
};
|
|
1648
|
-
},
|
|
1649
1674
|
/**
|
|
1650
1675
|
* Reset MMP, start MMP order again.
|
|
1651
1676
|
*
|
|
@@ -1848,31 +1873,6 @@ var MarketMakerEndpointsApi = class {
|
|
|
1848
1873
|
{ isSigned: true }
|
|
1849
1874
|
);
|
|
1850
1875
|
}
|
|
1851
|
-
/**
|
|
1852
|
-
* Get current account information.
|
|
1853
|
-
*
|
|
1854
|
-
* Weight: 3
|
|
1855
|
-
*
|
|
1856
|
-
* @summary Option Margin Account Information (USER_DATA)
|
|
1857
|
-
* @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
|
|
1858
|
-
* @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
|
|
1859
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1860
|
-
* @memberof MarketMakerEndpointsApi
|
|
1861
|
-
* @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
|
|
1862
|
-
*/
|
|
1863
|
-
async optionMarginAccountInformation(requestParameters = {}) {
|
|
1864
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.optionMarginAccountInformation(
|
|
1865
|
-
requestParameters?.recvWindow
|
|
1866
|
-
);
|
|
1867
|
-
return sendRequest4(
|
|
1868
|
-
this.configuration,
|
|
1869
|
-
localVarAxiosArgs.endpoint,
|
|
1870
|
-
localVarAxiosArgs.method,
|
|
1871
|
-
localVarAxiosArgs.params,
|
|
1872
|
-
localVarAxiosArgs?.timeUnit,
|
|
1873
|
-
{ isSigned: true }
|
|
1874
|
-
);
|
|
1875
|
-
}
|
|
1876
1876
|
/**
|
|
1877
1877
|
* Reset MMP, start MMP order again.
|
|
1878
1878
|
*
|
|
@@ -3083,6 +3083,20 @@ var RestAPI = class {
|
|
|
3083
3083
|
optionAccountInformation(requestParameters = {}) {
|
|
3084
3084
|
return this.accountApi.optionAccountInformation(requestParameters);
|
|
3085
3085
|
}
|
|
3086
|
+
/**
|
|
3087
|
+
* Get current account information.
|
|
3088
|
+
*
|
|
3089
|
+
* Weight: 3
|
|
3090
|
+
*
|
|
3091
|
+
* @summary Option Margin Account Information (USER_DATA)
|
|
3092
|
+
* @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
|
|
3093
|
+
* @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
|
|
3094
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3095
|
+
* @see {@link https://developers.binance.com/docs/derivatives/option/account/Option-Margin-Account-Information Binance API Documentation}
|
|
3096
|
+
*/
|
|
3097
|
+
optionMarginAccountInformation(requestParameters = {}) {
|
|
3098
|
+
return this.accountApi.optionMarginAccountInformation(requestParameters);
|
|
3099
|
+
}
|
|
3086
3100
|
/**
|
|
3087
3101
|
* Test connectivity to the Rest API and get the current server time.
|
|
3088
3102
|
*
|
|
@@ -3416,20 +3430,6 @@ var RestAPI = class {
|
|
|
3416
3430
|
getMarketMakerProtectionConfig(requestParameters = {}) {
|
|
3417
3431
|
return this.marketMakerEndpointsApi.getMarketMakerProtectionConfig(requestParameters);
|
|
3418
3432
|
}
|
|
3419
|
-
/**
|
|
3420
|
-
* Get current account information.
|
|
3421
|
-
*
|
|
3422
|
-
* Weight: 3
|
|
3423
|
-
*
|
|
3424
|
-
* @summary Option Margin Account Information (USER_DATA)
|
|
3425
|
-
* @param {OptionMarginAccountInformationRequest} requestParameters Request parameters.
|
|
3426
|
-
* @returns {Promise<RestApiResponse<OptionMarginAccountInformationResponse>>}
|
|
3427
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3428
|
-
* @see {@link https://developers.binance.com/docs/derivatives/option/market-maker-endpoints/Option-Margin-Account-Information Binance API Documentation}
|
|
3429
|
-
*/
|
|
3430
|
-
optionMarginAccountInformation(requestParameters = {}) {
|
|
3431
|
-
return this.marketMakerEndpointsApi.optionMarginAccountInformation(requestParameters);
|
|
3432
|
-
}
|
|
3433
3433
|
/**
|
|
3434
3434
|
* Reset MMP, start MMP order again.
|
|
3435
3435
|
*
|