@binance/convert 5.0.14 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,14 +14,14 @@ let __binance_common = require("@binance/common");
14
14
 
15
15
  //#region package.json
16
16
  var name = "@binance/convert";
17
- var version = "5.0.14";
17
+ var version = "6.0.0";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/market-data-api.ts
21
21
  /**
22
- * Binance Convert REST API
22
+ * Convert REST API
23
23
  *
24
- * OpenAPI Specification for the Binance Convert REST API
24
+ * Request quotes and execute cryptocurrency conversions via the Convert REST API.
25
25
  *
26
26
  * The version of the OpenAPI document: 1.0.0
27
27
  *
@@ -80,19 +80,21 @@ var MarketDataApi = class {
80
80
  this.localVarAxiosParamCreator = MarketDataApiAxiosParamCreator(configuration);
81
81
  }
82
82
  /**
83
- * Query for all convertible token pairs and the tokens’ respective upper/lower limits
83
+ * Query for all convertible token pairs and the tokens’ respective
84
+ * upper/lower limits
84
85
  *
85
- * User needs to supply either or both of the input parameter
86
- * If not defined for both fromAsset and toAsset, only partial token pairs will be returned
86
+ * Weight(IP): 3000
87
87
  *
88
- * Weight: 3000(IP)
88
+ * Notes:
89
+ * - User needs to supply either or both input parameters.
90
+ * - If only one of `fromAsset` and `toAsset` is provided, only partial token pairs are returned.
89
91
  *
90
92
  * @summary List All Convert Pairs
91
93
  * @param {ListAllConvertPairsRequest} requestParameters Request parameters.
92
94
  * @returns {Promise<RestApiResponse<ListAllConvertPairsResponse>>}
93
95
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
94
96
  * @memberof MarketDataApi
95
- * @see {@link https://developers.binance.com/docs/convert/market-data/ Binance API Documentation}
97
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/market-data#list-all-convert-pairs Binance API Documentation}
96
98
  */
97
99
  async listAllConvertPairs(requestParameters = {}) {
98
100
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.listAllConvertPairs(requestParameters?.fromAsset, requestParameters?.toAsset);
@@ -101,14 +103,16 @@ var MarketDataApi = class {
101
103
  /**
102
104
  * Query for supported asset’s precision information
103
105
  *
104
- * Weight: 100(IP)
106
+ * Weight(IP): 100
105
107
  *
106
- * @summary Query order quantity precision per asset(USER_DATA)
108
+ * Security Type: USER_DATA
109
+ *
110
+ * @summary Query order quantity precision per asset (USER_DATA)
107
111
  * @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
108
112
  * @returns {Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>}
109
113
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
110
114
  * @memberof MarketDataApi
111
- * @see {@link https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset Binance API Documentation}
115
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/market-data#query-order-quantity-precision-per-asset Binance API Documentation}
112
116
  */
113
117
  async queryOrderQuantityPrecisionPerAsset(requestParameters = {}) {
114
118
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOrderQuantityPrecisionPerAsset(requestParameters?.recvWindow);
@@ -119,9 +123,9 @@ var MarketDataApi = class {
119
123
  //#endregion
120
124
  //#region src/rest-api/modules/trade-api.ts
121
125
  /**
122
- * Binance Convert REST API
126
+ * Convert REST API
123
127
  *
124
- * OpenAPI Specification for the Binance Convert REST API
128
+ * Request quotes and execute cryptocurrency conversions via the Convert REST API.
125
129
  *
126
130
  * The version of the OpenAPI document: 1.0.0
127
131
  *
@@ -292,14 +296,16 @@ var TradeApi = class {
292
296
  /**
293
297
  * Accept the offered quote by quote ID.
294
298
  *
295
- * Weight: 500(UID)
299
+ * Weight(UID): 500
300
+ *
301
+ * Security Type: TRADE
296
302
  *
297
303
  * @summary Accept Quote (TRADE)
298
304
  * @param {AcceptQuoteRequest} requestParameters Request parameters.
299
305
  * @returns {Promise<RestApiResponse<AcceptQuoteResponse>>}
300
306
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
301
307
  * @memberof TradeApi
302
- * @see {@link https://developers.binance.com/docs/convert/trade/Accept-Quote Binance API Documentation}
308
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#accept-quote Binance API Documentation}
303
309
  */
304
310
  async acceptQuote(requestParameters) {
305
311
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.acceptQuote(requestParameters?.quoteId, requestParameters?.recvWindow);
@@ -308,14 +314,16 @@ var TradeApi = class {
308
314
  /**
309
315
  * Enable users to cancel a limit order
310
316
  *
311
- * Weight: 200(UID)
317
+ * Weight(UID): 200
318
+ *
319
+ * Security Type: TRADE
312
320
  *
313
- * @summary Cancel limit order (USER_DATA)
321
+ * @summary Cancel limit order (TRADE)
314
322
  * @param {CancelLimitOrderRequest} requestParameters Request parameters.
315
323
  * @returns {Promise<RestApiResponse<CancelLimitOrderResponse>>}
316
324
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
317
325
  * @memberof TradeApi
318
- * @see {@link https://developers.binance.com/docs/convert/trade/Cancel-Order Binance API Documentation}
326
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#cancel-limit-order Binance API Documentation}
319
327
  */
320
328
  async cancelLimitOrder(requestParameters) {
321
329
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelLimitOrder(requestParameters?.orderId, requestParameters?.recvWindow);
@@ -324,16 +332,19 @@ var TradeApi = class {
324
332
  /**
325
333
  * Get Convert Trade History
326
334
  *
327
- * The max interval between startTime and endTime is 30 days.
335
+ * Weight(UID): 3000
328
336
  *
329
- * Weight: 3000
337
+ * Security Type: USER_DATA
330
338
  *
331
- * @summary Get Convert Trade History(USER_DATA)
339
+ * Notes:
340
+ * - The max interval between `startTime` and `endTime` is 30 days.
341
+ *
342
+ * @summary Get Convert Trade History (USER_DATA)
332
343
  * @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
333
344
  * @returns {Promise<RestApiResponse<GetConvertTradeHistoryResponse>>}
334
345
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
335
346
  * @memberof TradeApi
336
- * @see {@link https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History Binance API Documentation}
347
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#get-convert-trade-history Binance API Documentation}
337
348
  */
338
349
  async getConvertTradeHistory(requestParameters) {
339
350
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getConvertTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -342,14 +353,16 @@ var TradeApi = class {
342
353
  /**
343
354
  * Query order status by order ID.
344
355
  *
345
- * Weight: 100(UID)
356
+ * Weight(UID): 100
357
+ *
358
+ * Security Type: USER_DATA
346
359
  *
347
- * @summary Order status(USER_DATA)
360
+ * @summary Order status (USER_DATA)
348
361
  * @param {OrderStatusRequest} requestParameters Request parameters.
349
362
  * @returns {Promise<RestApiResponse<OrderStatusResponse>>}
350
363
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
351
364
  * @memberof TradeApi
352
- * @see {@link https://developers.binance.com/docs/convert/trade/Order-Status Binance API Documentation}
365
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#order-status Binance API Documentation}
353
366
  */
354
367
  async orderStatus(requestParameters = {}) {
355
368
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.orderStatus(requestParameters?.orderId, requestParameters?.quoteId);
@@ -358,34 +371,39 @@ var TradeApi = class {
358
371
  /**
359
372
  * Enable users to place a limit order
360
373
  *
361
- * `baseAsset` or `quoteAsset` can be determined via `exchangeInfo` endpoint.
362
- * Limit price is defined from `baseAsset` to `quoteAsset`.
363
- * Either `baseAmount` or `quoteAmount` is used.
374
+ * Weight(UID): 500
364
375
  *
365
- * Weight: 500(UID)
376
+ * Security Type: TRADE
366
377
  *
367
- * @summary Place limit order (USER_DATA)
378
+ * Notes:
379
+ * - `baseAsset` and `quoteAsset` can be determined via the `exchangeInfo` endpoint.
380
+ * - Limit price is defined from `baseAsset` to `quoteAsset`.
381
+ * - Exactly one of `baseAmount` or `quoteAmount` should be sent.
382
+ *
383
+ * @summary Place limit order (TRADE)
368
384
  * @param {PlaceLimitOrderRequest} requestParameters Request parameters.
369
385
  * @returns {Promise<RestApiResponse<PlaceLimitOrderResponse>>}
370
386
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
371
387
  * @memberof TradeApi
372
- * @see {@link https://developers.binance.com/docs/convert/trade/Place-Order Binance API Documentation}
388
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#place-limit-order Binance API Documentation}
373
389
  */
374
390
  async placeLimitOrder(requestParameters) {
375
391
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeLimitOrder(requestParameters?.baseAsset, requestParameters?.quoteAsset, requestParameters?.limitPrice, requestParameters?.side, requestParameters?.expiredType, requestParameters?.baseAmount, requestParameters?.quoteAmount, requestParameters?.walletType, requestParameters?.recvWindow);
376
392
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
377
393
  }
378
394
  /**
379
- * Request a quote for the requested token pairs
395
+ * Query current open limit orders
380
396
  *
381
- * Weight: 3000(UID)
397
+ * Weight(UID): 3000
398
+ *
399
+ * Security Type: USER_DATA
382
400
  *
383
401
  * @summary Query limit open orders (USER_DATA)
384
402
  * @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
385
403
  * @returns {Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>}
386
404
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
387
405
  * @memberof TradeApi
388
- * @see {@link https://developers.binance.com/docs/convert/trade/Query-Order Binance API Documentation}
406
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#query-limit-open-orders Binance API Documentation}
389
407
  */
390
408
  async queryLimitOpenOrders(requestParameters = {}) {
391
409
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryLimitOpenOrders(requestParameters?.recvWindow);
@@ -394,30 +412,71 @@ var TradeApi = class {
394
412
  /**
395
413
  * Request a quote for the requested token pairs
396
414
  *
397
- * Either fromAmount or toAmount should be sent
398
- * `quoteId` will be returned only if you have enough funds to convert
415
+ * Weight(UID): 200
416
+ *
417
+ * Security Type: TRADE
399
418
  *
400
- * Weight: 200(UID)
419
+ * Notes:
420
+ * - Either `fromAmount` or `toAmount` should be sent.
421
+ * - `quoteId` is returned only if you have enough funds to convert.
401
422
  *
402
- * @summary Send Quote Request(USER_DATA)
423
+ * @summary Send Quote Request (TRADE)
403
424
  * @param {SendQuoteRequestRequest} requestParameters Request parameters.
404
425
  * @returns {Promise<RestApiResponse<SendQuoteRequestResponse>>}
405
426
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
406
427
  * @memberof TradeApi
407
- * @see {@link https://developers.binance.com/docs/convert/trade/Send-quote-request Binance API Documentation}
428
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#send-quote-request Binance API Documentation}
408
429
  */
409
430
  async sendQuoteRequest(requestParameters) {
410
431
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.sendQuoteRequest(requestParameters?.fromAsset, requestParameters?.toAsset, requestParameters?.fromAmount, requestParameters?.toAmount, requestParameters?.walletType, requestParameters?.validTime, requestParameters?.recvWindow);
411
432
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
412
433
  }
413
434
  };
435
+ let PlaceLimitOrderSideEnum = /* @__PURE__ */ function(PlaceLimitOrderSideEnum$1) {
436
+ PlaceLimitOrderSideEnum$1["BUY"] = "BUY";
437
+ PlaceLimitOrderSideEnum$1["SELL"] = "SELL";
438
+ return PlaceLimitOrderSideEnum$1;
439
+ }({});
440
+ let PlaceLimitOrderExpiredTypeEnum = /* @__PURE__ */ function(PlaceLimitOrderExpiredTypeEnum$1) {
441
+ PlaceLimitOrderExpiredTypeEnum$1["EXPIRED_TYPE_1_D"] = "1_D";
442
+ PlaceLimitOrderExpiredTypeEnum$1["EXPIRED_TYPE_3_D"] = "3_D";
443
+ PlaceLimitOrderExpiredTypeEnum$1["EXPIRED_TYPE_7_D"] = "7_D";
444
+ PlaceLimitOrderExpiredTypeEnum$1["EXPIRED_TYPE_30_D"] = "30_D";
445
+ return PlaceLimitOrderExpiredTypeEnum$1;
446
+ }({});
447
+ let PlaceLimitOrderWalletTypeEnum = /* @__PURE__ */ function(PlaceLimitOrderWalletTypeEnum$1) {
448
+ PlaceLimitOrderWalletTypeEnum$1["SPOT"] = "SPOT";
449
+ PlaceLimitOrderWalletTypeEnum$1["FUNDING"] = "FUNDING";
450
+ PlaceLimitOrderWalletTypeEnum$1["EARN"] = "EARN";
451
+ PlaceLimitOrderWalletTypeEnum$1["SPOT_FUNDING"] = "SPOT_FUNDING";
452
+ PlaceLimitOrderWalletTypeEnum$1["FUNDING_EARN"] = "FUNDING_EARN";
453
+ PlaceLimitOrderWalletTypeEnum$1["SPOT_FUNDING_EARN"] = "SPOT_FUNDING_EARN";
454
+ PlaceLimitOrderWalletTypeEnum$1["SPOT_EARN"] = "SPOT_EARN";
455
+ return PlaceLimitOrderWalletTypeEnum$1;
456
+ }({});
457
+ let SendQuoteRequestWalletTypeEnum = /* @__PURE__ */ function(SendQuoteRequestWalletTypeEnum$1) {
458
+ SendQuoteRequestWalletTypeEnum$1["SPOT"] = "SPOT";
459
+ SendQuoteRequestWalletTypeEnum$1["FUNDING"] = "FUNDING";
460
+ SendQuoteRequestWalletTypeEnum$1["EARN"] = "EARN";
461
+ SendQuoteRequestWalletTypeEnum$1["SPOT_FUNDING"] = "SPOT_FUNDING";
462
+ SendQuoteRequestWalletTypeEnum$1["FUNDING_EARN"] = "FUNDING_EARN";
463
+ SendQuoteRequestWalletTypeEnum$1["SPOT_FUNDING_EARN"] = "SPOT_FUNDING_EARN";
464
+ SendQuoteRequestWalletTypeEnum$1["SPOT_EARN"] = "SPOT_EARN";
465
+ return SendQuoteRequestWalletTypeEnum$1;
466
+ }({});
467
+ let SendQuoteRequestValidTimeEnum = /* @__PURE__ */ function(SendQuoteRequestValidTimeEnum$1) {
468
+ SendQuoteRequestValidTimeEnum$1["VALID_TIME_10s"] = "10s";
469
+ SendQuoteRequestValidTimeEnum$1["VALID_TIME_30s"] = "30s";
470
+ SendQuoteRequestValidTimeEnum$1["VALID_TIME_1m"] = "1m";
471
+ return SendQuoteRequestValidTimeEnum$1;
472
+ }({});
414
473
 
415
474
  //#endregion
416
475
  //#region src/rest-api/rest-api.ts
417
476
  /**
418
- * Binance Convert REST API
477
+ * Convert REST API
419
478
  *
420
- * OpenAPI Specification for the Binance Convert REST API
479
+ * Request quotes and execute cryptocurrency conversions via the Convert REST API.
421
480
  *
422
481
  * The version of the OpenAPI document: 1.0.0
423
482
  *
@@ -457,19 +516,21 @@ var RestAPI = class {
457
516
  return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
458
517
  }
459
518
  /**
460
- * Query for all convertible token pairs and the tokens’ respective upper/lower limits
519
+ * Query for all convertible token pairs and the tokens’ respective
520
+ * upper/lower limits
461
521
  *
462
- * User needs to supply either or both of the input parameter
463
- * If not defined for both fromAsset and toAsset, only partial token pairs will be returned
522
+ * Weight(IP): 3000
464
523
  *
465
- * Weight: 3000(IP)
524
+ * Notes:
525
+ * - User needs to supply either or both input parameters.
526
+ * - If only one of `fromAsset` and `toAsset` is provided, only partial token pairs are returned.
466
527
  *
467
528
  * @summary List All Convert Pairs
468
529
  * @param {ListAllConvertPairsRequest} requestParameters Request parameters.
469
530
  *
470
531
  * @returns {Promise<RestApiResponse<ListAllConvertPairsResponse>>}
471
532
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
472
- * @see {@link https://developers.binance.com/docs/convert/market-data/ Binance API Documentation}
533
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/market-data#list-all-convert-pairs Binance API Documentation}
473
534
  */
474
535
  listAllConvertPairs(requestParameters = {}) {
475
536
  return this.marketDataApi.listAllConvertPairs(requestParameters);
@@ -477,14 +538,16 @@ var RestAPI = class {
477
538
  /**
478
539
  * Query for supported asset’s precision information
479
540
  *
480
- * Weight: 100(IP)
541
+ * Weight(IP): 100
481
542
  *
482
- * @summary Query order quantity precision per asset(USER_DATA)
543
+ * Security Type: USER_DATA
544
+ *
545
+ * @summary Query order quantity precision per asset (USER_DATA)
483
546
  * @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
484
547
  *
485
548
  * @returns {Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>}
486
549
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
487
- * @see {@link https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset Binance API Documentation}
550
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/market-data#query-order-quantity-precision-per-asset Binance API Documentation}
488
551
  */
489
552
  queryOrderQuantityPrecisionPerAsset(requestParameters = {}) {
490
553
  return this.marketDataApi.queryOrderQuantityPrecisionPerAsset(requestParameters);
@@ -492,14 +555,16 @@ var RestAPI = class {
492
555
  /**
493
556
  * Accept the offered quote by quote ID.
494
557
  *
495
- * Weight: 500(UID)
558
+ * Weight(UID): 500
559
+ *
560
+ * Security Type: TRADE
496
561
  *
497
562
  * @summary Accept Quote (TRADE)
498
563
  * @param {AcceptQuoteRequest} requestParameters Request parameters.
499
564
  *
500
565
  * @returns {Promise<RestApiResponse<AcceptQuoteResponse>>}
501
566
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
502
- * @see {@link https://developers.binance.com/docs/convert/trade/Accept-Quote Binance API Documentation}
567
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#accept-quote Binance API Documentation}
503
568
  */
504
569
  acceptQuote(requestParameters) {
505
570
  return this.tradeApi.acceptQuote(requestParameters);
@@ -507,14 +572,16 @@ var RestAPI = class {
507
572
  /**
508
573
  * Enable users to cancel a limit order
509
574
  *
510
- * Weight: 200(UID)
575
+ * Weight(UID): 200
576
+ *
577
+ * Security Type: TRADE
511
578
  *
512
- * @summary Cancel limit order (USER_DATA)
579
+ * @summary Cancel limit order (TRADE)
513
580
  * @param {CancelLimitOrderRequest} requestParameters Request parameters.
514
581
  *
515
582
  * @returns {Promise<RestApiResponse<CancelLimitOrderResponse>>}
516
583
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
517
- * @see {@link https://developers.binance.com/docs/convert/trade/Cancel-Order Binance API Documentation}
584
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#cancel-limit-order Binance API Documentation}
518
585
  */
519
586
  cancelLimitOrder(requestParameters) {
520
587
  return this.tradeApi.cancelLimitOrder(requestParameters);
@@ -522,16 +589,19 @@ var RestAPI = class {
522
589
  /**
523
590
  * Get Convert Trade History
524
591
  *
525
- * The max interval between startTime and endTime is 30 days.
592
+ * Weight(UID): 3000
526
593
  *
527
- * Weight: 3000
594
+ * Security Type: USER_DATA
528
595
  *
529
- * @summary Get Convert Trade History(USER_DATA)
596
+ * Notes:
597
+ * - The max interval between `startTime` and `endTime` is 30 days.
598
+ *
599
+ * @summary Get Convert Trade History (USER_DATA)
530
600
  * @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
531
601
  *
532
602
  * @returns {Promise<RestApiResponse<GetConvertTradeHistoryResponse>>}
533
603
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
534
- * @see {@link https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History Binance API Documentation}
604
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#get-convert-trade-history Binance API Documentation}
535
605
  */
536
606
  getConvertTradeHistory(requestParameters) {
537
607
  return this.tradeApi.getConvertTradeHistory(requestParameters);
@@ -539,14 +609,16 @@ var RestAPI = class {
539
609
  /**
540
610
  * Query order status by order ID.
541
611
  *
542
- * Weight: 100(UID)
612
+ * Weight(UID): 100
613
+ *
614
+ * Security Type: USER_DATA
543
615
  *
544
- * @summary Order status(USER_DATA)
616
+ * @summary Order status (USER_DATA)
545
617
  * @param {OrderStatusRequest} requestParameters Request parameters.
546
618
  *
547
619
  * @returns {Promise<RestApiResponse<OrderStatusResponse>>}
548
620
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
549
- * @see {@link https://developers.binance.com/docs/convert/trade/Order-Status Binance API Documentation}
621
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#order-status Binance API Documentation}
550
622
  */
551
623
  orderStatus(requestParameters = {}) {
552
624
  return this.tradeApi.orderStatus(requestParameters);
@@ -554,33 +626,38 @@ var RestAPI = class {
554
626
  /**
555
627
  * Enable users to place a limit order
556
628
  *
557
- * `baseAsset` or `quoteAsset` can be determined via `exchangeInfo` endpoint.
558
- * Limit price is defined from `baseAsset` to `quoteAsset`.
559
- * Either `baseAmount` or `quoteAmount` is used.
629
+ * Weight(UID): 500
560
630
  *
561
- * Weight: 500(UID)
631
+ * Security Type: TRADE
562
632
  *
563
- * @summary Place limit order (USER_DATA)
633
+ * Notes:
634
+ * - `baseAsset` and `quoteAsset` can be determined via the `exchangeInfo` endpoint.
635
+ * - Limit price is defined from `baseAsset` to `quoteAsset`.
636
+ * - Exactly one of `baseAmount` or `quoteAmount` should be sent.
637
+ *
638
+ * @summary Place limit order (TRADE)
564
639
  * @param {PlaceLimitOrderRequest} requestParameters Request parameters.
565
640
  *
566
641
  * @returns {Promise<RestApiResponse<PlaceLimitOrderResponse>>}
567
642
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
568
- * @see {@link https://developers.binance.com/docs/convert/trade/Place-Order Binance API Documentation}
643
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#place-limit-order Binance API Documentation}
569
644
  */
570
645
  placeLimitOrder(requestParameters) {
571
646
  return this.tradeApi.placeLimitOrder(requestParameters);
572
647
  }
573
648
  /**
574
- * Request a quote for the requested token pairs
649
+ * Query current open limit orders
575
650
  *
576
- * Weight: 3000(UID)
651
+ * Weight(UID): 3000
652
+ *
653
+ * Security Type: USER_DATA
577
654
  *
578
655
  * @summary Query limit open orders (USER_DATA)
579
656
  * @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
580
657
  *
581
658
  * @returns {Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>}
582
659
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
583
- * @see {@link https://developers.binance.com/docs/convert/trade/Query-Order Binance API Documentation}
660
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#query-limit-open-orders Binance API Documentation}
584
661
  */
585
662
  queryLimitOpenOrders(requestParameters = {}) {
586
663
  return this.tradeApi.queryLimitOpenOrders(requestParameters);
@@ -588,17 +665,20 @@ var RestAPI = class {
588
665
  /**
589
666
  * Request a quote for the requested token pairs
590
667
  *
591
- * Either fromAmount or toAmount should be sent
592
- * `quoteId` will be returned only if you have enough funds to convert
668
+ * Weight(UID): 200
669
+ *
670
+ * Security Type: TRADE
593
671
  *
594
- * Weight: 200(UID)
672
+ * Notes:
673
+ * - Either `fromAmount` or `toAmount` should be sent.
674
+ * - `quoteId` is returned only if you have enough funds to convert.
595
675
  *
596
- * @summary Send Quote Request(USER_DATA)
676
+ * @summary Send Quote Request (TRADE)
597
677
  * @param {SendQuoteRequestRequest} requestParameters Request parameters.
598
678
  *
599
679
  * @returns {Promise<RestApiResponse<SendQuoteRequestResponse>>}
600
680
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
601
- * @see {@link https://developers.binance.com/docs/convert/trade/Send-quote-request Binance API Documentation}
681
+ * @see {@link https://developers.binance.com/en/docs/catalog/core-trading-convert/api/rest-api/trade#send-quote-request Binance API Documentation}
602
682
  */
603
683
  sendQuoteRequest(requestParameters) {
604
684
  return this.tradeApi.sendQuoteRequest(requestParameters);
@@ -609,7 +689,12 @@ var RestAPI = class {
609
689
  //#region src/rest-api/index.ts
610
690
  var rest_api_exports = /* @__PURE__ */ __export({
611
691
  MarketDataApi: () => MarketDataApi,
692
+ PlaceLimitOrderExpiredTypeEnum: () => PlaceLimitOrderExpiredTypeEnum,
693
+ PlaceLimitOrderSideEnum: () => PlaceLimitOrderSideEnum,
694
+ PlaceLimitOrderWalletTypeEnum: () => PlaceLimitOrderWalletTypeEnum,
612
695
  RestAPI: () => RestAPI,
696
+ SendQuoteRequestValidTimeEnum: () => SendQuoteRequestValidTimeEnum,
697
+ SendQuoteRequestWalletTypeEnum: () => SendQuoteRequestWalletTypeEnum,
613
698
  TradeApi: () => TradeApi
614
699
  });
615
700