@binance/convert 5.0.14 → 6.0.1

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