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