@binance/convert 1.0.0 → 1.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/README.md CHANGED
@@ -139,21 +139,6 @@ The REST API provides detailed error types to help you handle issues effectively
139
139
 
140
140
  See the [Error Handling example](./docs/rest-api/error-handling.md) for detailed usage.
141
141
 
142
- #### Testnet
143
-
144
- For testing purposes, `/sapi/v1/convert/*` endpoints can be used in the [Testnet](https://testnet.binance.vision/). Update the `basePath` in your configuration:
145
-
146
- ```typescript
147
- import { Convert, ConvertRestAPI, CONVERT_REST_API_TESTNET_URL } from '@binance/convert';
148
-
149
- const configurationRestAPI = {
150
- apiKey: 'your-api-key',
151
- apiSecret: 'your-api-secret',
152
- basePath: CONVERT_REST_API_TESTNET_URL,
153
- };
154
- const client = new Convert({ configurationRestAPI });
155
- ```
156
-
157
142
  If `basePath` is not provided, it defaults to `https://api.binance.com`.
158
143
 
159
144
  ## Testing
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
2
- export { BadRequestError, CONVERT_REST_API_PROD_URL, CONVERT_REST_API_TESTNET_URL, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
2
+ export { BadRequestError, CONVERT_REST_API_PROD_URL, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
3
3
 
4
4
  /**
5
- * Binance Public Convert REST API
5
+ * Binance Convert REST API
6
6
  *
7
- * OpenAPI Specification for the Binance Public Convert REST API
7
+ * OpenAPI Specification for the Binance Convert REST API
8
8
  *
9
9
  * The version of the OpenAPI document: 1.0.0
10
10
  *
@@ -40,9 +40,9 @@ interface AcceptQuoteResponse {
40
40
  }
41
41
 
42
42
  /**
43
- * Binance Public Convert REST API
43
+ * Binance Convert REST API
44
44
  *
45
- * OpenAPI Specification for the Binance Public Convert REST API
45
+ * OpenAPI Specification for the Binance Convert REST API
46
46
  *
47
47
  * The version of the OpenAPI document: 1.0.0
48
48
  *
@@ -72,9 +72,9 @@ interface BadRequest {
72
72
  }
73
73
 
74
74
  /**
75
- * Binance Public Convert REST API
75
+ * Binance Convert REST API
76
76
  *
77
- * OpenAPI Specification for the Binance Public Convert REST API
77
+ * OpenAPI Specification for the Binance Convert REST API
78
78
  *
79
79
  * The version of the OpenAPI document: 1.0.0
80
80
  *
@@ -104,9 +104,9 @@ interface CancelLimitOrderResponse {
104
104
  }
105
105
 
106
106
  /**
107
- * Binance Public Convert REST API
107
+ * Binance Convert REST API
108
108
  *
109
- * OpenAPI Specification for the Binance Public Convert REST API
109
+ * OpenAPI Specification for the Binance Convert REST API
110
110
  *
111
111
  * The version of the OpenAPI document: 1.0.0
112
112
  *
@@ -184,9 +184,9 @@ interface GetConvertTradeHistoryResponseListInner {
184
184
  }
185
185
 
186
186
  /**
187
- * Binance Public Convert REST API
187
+ * Binance Convert REST API
188
188
  *
189
- * OpenAPI Specification for the Binance Public Convert REST API
189
+ * OpenAPI Specification for the Binance Convert REST API
190
190
  *
191
191
  * The version of the OpenAPI document: 1.0.0
192
192
  *
@@ -235,9 +235,9 @@ interface GetConvertTradeHistoryResponse {
235
235
  }
236
236
 
237
237
  /**
238
- * Binance Public Convert REST API
238
+ * Binance Convert REST API
239
239
  *
240
- * OpenAPI Specification for the Binance Public Convert REST API
240
+ * OpenAPI Specification for the Binance Convert REST API
241
241
  *
242
242
  * The version of the OpenAPI document: 1.0.0
243
243
  *
@@ -291,9 +291,9 @@ interface ListAllConvertPairsResponseInner {
291
291
  }
292
292
 
293
293
  /**
294
- * Binance Public Convert REST API
294
+ * Binance Convert REST API
295
295
  *
296
- * OpenAPI Specification for the Binance Public Convert REST API
296
+ * OpenAPI Specification for the Binance Convert REST API
297
297
  *
298
298
  * The version of the OpenAPI document: 1.0.0
299
299
  *
@@ -312,9 +312,9 @@ interface ListAllConvertPairsResponse extends Array<ListAllConvertPairsResponseI
312
312
  }
313
313
 
314
314
  /**
315
- * Binance Public Convert REST API
315
+ * Binance Convert REST API
316
316
  *
317
- * OpenAPI Specification for the Binance Public Convert REST API
317
+ * OpenAPI Specification for the Binance Convert REST API
318
318
  *
319
319
  * The version of the OpenAPI document: 1.0.0
320
320
  *
@@ -386,9 +386,9 @@ interface OrderStatusResponse {
386
386
  }
387
387
 
388
388
  /**
389
- * Binance Public Convert REST API
389
+ * Binance Convert REST API
390
390
  *
391
- * OpenAPI Specification for the Binance Public Convert REST API
391
+ * OpenAPI Specification for the Binance Convert REST API
392
392
  *
393
393
  * The version of the OpenAPI document: 1.0.0
394
394
  *
@@ -442,9 +442,9 @@ interface PlaceLimitOrderResponse {
442
442
  }
443
443
 
444
444
  /**
445
- * Binance Public Convert REST API
445
+ * Binance Convert REST API
446
446
  *
447
- * OpenAPI Specification for the Binance Public Convert REST API
447
+ * OpenAPI Specification for the Binance Convert REST API
448
448
  *
449
449
  * The version of the OpenAPI document: 1.0.0
450
450
  *
@@ -528,9 +528,9 @@ interface QueryLimitOpenOrdersResponseListInner {
528
528
  }
529
529
 
530
530
  /**
531
- * Binance Public Convert REST API
531
+ * Binance Convert REST API
532
532
  *
533
- * OpenAPI Specification for the Binance Public Convert REST API
533
+ * OpenAPI Specification for the Binance Convert REST API
534
534
  *
535
535
  * The version of the OpenAPI document: 1.0.0
536
536
  *
@@ -555,9 +555,9 @@ interface QueryLimitOpenOrdersResponse {
555
555
  }
556
556
 
557
557
  /**
558
- * Binance Public Convert REST API
558
+ * Binance Convert REST API
559
559
  *
560
- * OpenAPI Specification for the Binance Public Convert REST API
560
+ * OpenAPI Specification for the Binance Convert REST API
561
561
  *
562
562
  * The version of the OpenAPI document: 1.0.0
563
563
  *
@@ -587,9 +587,9 @@ interface QueryOrderQuantityPrecisionPerAssetResponseInner {
587
587
  }
588
588
 
589
589
  /**
590
- * Binance Public Convert REST API
590
+ * Binance Convert REST API
591
591
  *
592
- * OpenAPI Specification for the Binance Public Convert REST API
592
+ * OpenAPI Specification for the Binance Convert REST API
593
593
  *
594
594
  * The version of the OpenAPI document: 1.0.0
595
595
  *
@@ -608,9 +608,9 @@ interface QueryOrderQuantityPrecisionPerAssetResponse extends Array<QueryOrderQu
608
608
  }
609
609
 
610
610
  /**
611
- * Binance Public Convert REST API
611
+ * Binance Convert REST API
612
612
  *
613
- * OpenAPI Specification for the Binance Public Convert REST API
613
+ * OpenAPI Specification for the Binance Convert REST API
614
614
  *
615
615
  * The version of the OpenAPI document: 1.0.0
616
616
  *
@@ -664,9 +664,9 @@ interface SendQuoteRequestResponse {
664
664
  }
665
665
 
666
666
  /**
667
- * Binance Public Convert REST API
667
+ * Binance Convert REST API
668
668
  *
669
- * OpenAPI Specification for the Binance Public Convert REST API
669
+ * OpenAPI Specification for the Binance Convert REST API
670
670
  *
671
671
  * The version of the OpenAPI document: 1.0.0
672
672
  *
@@ -779,9 +779,9 @@ declare class MarketDataApi implements MarketDataApiInterface {
779
779
  }
780
780
 
781
781
  /**
782
- * Binance Public Convert REST API
782
+ * Binance Convert REST API
783
783
  *
784
- * OpenAPI Specification for the Binance Public Convert REST API
784
+ * OpenAPI Specification for the Binance Convert REST API
785
785
  *
786
786
  * The version of the OpenAPI document: 1.0.0
787
787
  *
@@ -1205,9 +1205,9 @@ declare class TradeApi implements TradeApiInterface {
1205
1205
  }
1206
1206
 
1207
1207
  /**
1208
- * Binance Public Convert REST API
1208
+ * Binance Convert REST API
1209
1209
  *
1210
- * OpenAPI Specification for the Binance Public Convert REST API
1210
+ * OpenAPI Specification for the Binance Convert REST API
1211
1211
  *
1212
1212
  * The version of the OpenAPI document: 1.0.0
1213
1213
  *
@@ -1363,9 +1363,9 @@ declare class RestAPI {
1363
1363
  }
1364
1364
 
1365
1365
  /**
1366
- * Binance Public Convert REST API
1366
+ * Binance Convert REST API
1367
1367
  *
1368
- * OpenAPI Specification for the Binance Public Convert REST API
1368
+ * OpenAPI Specification for the Binance Convert REST API
1369
1369
  *
1370
1370
  * The version of the OpenAPI document: 1.0.0
1371
1371
  *
@@ -1407,36 +1407,7 @@ type index_TradeApi = TradeApi;
1407
1407
  declare const index_TradeApi: typeof TradeApi;
1408
1408
  type index_TradeApiInterface = TradeApiInterface;
1409
1409
  declare namespace index {
1410
- export {
1411
- index_AcceptQuoteRequest as AcceptQuoteRequest,
1412
- index_AcceptQuoteResponse as AcceptQuoteResponse,
1413
- index_BadRequest as BadRequest,
1414
- index_CancelLimitOrderRequest as CancelLimitOrderRequest,
1415
- index_CancelLimitOrderResponse as CancelLimitOrderResponse,
1416
- index_GetConvertTradeHistoryRequest as GetConvertTradeHistoryRequest,
1417
- index_GetConvertTradeHistoryResponse as GetConvertTradeHistoryResponse,
1418
- index_GetConvertTradeHistoryResponseListInner as GetConvertTradeHistoryResponseListInner,
1419
- index_ListAllConvertPairsRequest as ListAllConvertPairsRequest,
1420
- index_ListAllConvertPairsResponse as ListAllConvertPairsResponse,
1421
- index_ListAllConvertPairsResponseInner as ListAllConvertPairsResponseInner,
1422
- index_MarketDataApi as MarketDataApi,
1423
- index_MarketDataApiInterface as MarketDataApiInterface,
1424
- index_OrderStatusRequest as OrderStatusRequest,
1425
- index_OrderStatusResponse as OrderStatusResponse,
1426
- index_PlaceLimitOrderRequest as PlaceLimitOrderRequest,
1427
- index_PlaceLimitOrderResponse as PlaceLimitOrderResponse,
1428
- index_QueryLimitOpenOrdersRequest as QueryLimitOpenOrdersRequest,
1429
- index_QueryLimitOpenOrdersResponse as QueryLimitOpenOrdersResponse,
1430
- index_QueryLimitOpenOrdersResponseListInner as QueryLimitOpenOrdersResponseListInner,
1431
- index_QueryOrderQuantityPrecisionPerAssetRequest as QueryOrderQuantityPrecisionPerAssetRequest,
1432
- index_QueryOrderQuantityPrecisionPerAssetResponse as QueryOrderQuantityPrecisionPerAssetResponse,
1433
- index_QueryOrderQuantityPrecisionPerAssetResponseInner as QueryOrderQuantityPrecisionPerAssetResponseInner,
1434
- index_RestAPI as RestAPI,
1435
- index_SendQuoteRequestRequest as SendQuoteRequestRequest,
1436
- index_SendQuoteRequestResponse as SendQuoteRequestResponse,
1437
- index_TradeApi as TradeApi,
1438
- index_TradeApiInterface as TradeApiInterface,
1439
- };
1410
+ export { type index_AcceptQuoteRequest as AcceptQuoteRequest, type index_AcceptQuoteResponse as AcceptQuoteResponse, type index_BadRequest as BadRequest, type index_CancelLimitOrderRequest as CancelLimitOrderRequest, type index_CancelLimitOrderResponse as CancelLimitOrderResponse, type index_GetConvertTradeHistoryRequest as GetConvertTradeHistoryRequest, type index_GetConvertTradeHistoryResponse as GetConvertTradeHistoryResponse, type index_GetConvertTradeHistoryResponseListInner as GetConvertTradeHistoryResponseListInner, type index_ListAllConvertPairsRequest as ListAllConvertPairsRequest, type index_ListAllConvertPairsResponse as ListAllConvertPairsResponse, type index_ListAllConvertPairsResponseInner as ListAllConvertPairsResponseInner, index_MarketDataApi as MarketDataApi, type index_MarketDataApiInterface as MarketDataApiInterface, type index_OrderStatusRequest as OrderStatusRequest, type index_OrderStatusResponse as OrderStatusResponse, type index_PlaceLimitOrderRequest as PlaceLimitOrderRequest, type index_PlaceLimitOrderResponse as PlaceLimitOrderResponse, type index_QueryLimitOpenOrdersRequest as QueryLimitOpenOrdersRequest, type index_QueryLimitOpenOrdersResponse as QueryLimitOpenOrdersResponse, type index_QueryLimitOpenOrdersResponseListInner as QueryLimitOpenOrdersResponseListInner, type index_QueryOrderQuantityPrecisionPerAssetRequest as QueryOrderQuantityPrecisionPerAssetRequest, type index_QueryOrderQuantityPrecisionPerAssetResponse as QueryOrderQuantityPrecisionPerAssetResponse, type index_QueryOrderQuantityPrecisionPerAssetResponseInner as QueryOrderQuantityPrecisionPerAssetResponseInner, index_RestAPI as RestAPI, type index_SendQuoteRequestRequest as SendQuoteRequestRequest, type index_SendQuoteRequestResponse as SendQuoteRequestResponse, index_TradeApi as TradeApi, type index_TradeApiInterface as TradeApiInterface };
1440
1411
  }
1441
1412
 
1442
1413
  interface ConfigurationConvert {
@@ -1447,4 +1418,4 @@ declare class Convert {
1447
1418
  constructor(config: ConfigurationConvert);
1448
1419
  }
1449
1420
 
1450
- export { ConfigurationConvert, Convert, index as ConvertRestAPI };
1421
+ export { type ConfigurationConvert, Convert, index as ConvertRestAPI };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
2
- export { BadRequestError, CONVERT_REST_API_PROD_URL, CONVERT_REST_API_TESTNET_URL, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
2
+ export { BadRequestError, CONVERT_REST_API_PROD_URL, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
3
3
 
4
4
  /**
5
- * Binance Public Convert REST API
5
+ * Binance Convert REST API
6
6
  *
7
- * OpenAPI Specification for the Binance Public Convert REST API
7
+ * OpenAPI Specification for the Binance Convert REST API
8
8
  *
9
9
  * The version of the OpenAPI document: 1.0.0
10
10
  *
@@ -40,9 +40,9 @@ interface AcceptQuoteResponse {
40
40
  }
41
41
 
42
42
  /**
43
- * Binance Public Convert REST API
43
+ * Binance Convert REST API
44
44
  *
45
- * OpenAPI Specification for the Binance Public Convert REST API
45
+ * OpenAPI Specification for the Binance Convert REST API
46
46
  *
47
47
  * The version of the OpenAPI document: 1.0.0
48
48
  *
@@ -72,9 +72,9 @@ interface BadRequest {
72
72
  }
73
73
 
74
74
  /**
75
- * Binance Public Convert REST API
75
+ * Binance Convert REST API
76
76
  *
77
- * OpenAPI Specification for the Binance Public Convert REST API
77
+ * OpenAPI Specification for the Binance Convert REST API
78
78
  *
79
79
  * The version of the OpenAPI document: 1.0.0
80
80
  *
@@ -104,9 +104,9 @@ interface CancelLimitOrderResponse {
104
104
  }
105
105
 
106
106
  /**
107
- * Binance Public Convert REST API
107
+ * Binance Convert REST API
108
108
  *
109
- * OpenAPI Specification for the Binance Public Convert REST API
109
+ * OpenAPI Specification for the Binance Convert REST API
110
110
  *
111
111
  * The version of the OpenAPI document: 1.0.0
112
112
  *
@@ -184,9 +184,9 @@ interface GetConvertTradeHistoryResponseListInner {
184
184
  }
185
185
 
186
186
  /**
187
- * Binance Public Convert REST API
187
+ * Binance Convert REST API
188
188
  *
189
- * OpenAPI Specification for the Binance Public Convert REST API
189
+ * OpenAPI Specification for the Binance Convert REST API
190
190
  *
191
191
  * The version of the OpenAPI document: 1.0.0
192
192
  *
@@ -235,9 +235,9 @@ interface GetConvertTradeHistoryResponse {
235
235
  }
236
236
 
237
237
  /**
238
- * Binance Public Convert REST API
238
+ * Binance Convert REST API
239
239
  *
240
- * OpenAPI Specification for the Binance Public Convert REST API
240
+ * OpenAPI Specification for the Binance Convert REST API
241
241
  *
242
242
  * The version of the OpenAPI document: 1.0.0
243
243
  *
@@ -291,9 +291,9 @@ interface ListAllConvertPairsResponseInner {
291
291
  }
292
292
 
293
293
  /**
294
- * Binance Public Convert REST API
294
+ * Binance Convert REST API
295
295
  *
296
- * OpenAPI Specification for the Binance Public Convert REST API
296
+ * OpenAPI Specification for the Binance Convert REST API
297
297
  *
298
298
  * The version of the OpenAPI document: 1.0.0
299
299
  *
@@ -312,9 +312,9 @@ interface ListAllConvertPairsResponse extends Array<ListAllConvertPairsResponseI
312
312
  }
313
313
 
314
314
  /**
315
- * Binance Public Convert REST API
315
+ * Binance Convert REST API
316
316
  *
317
- * OpenAPI Specification for the Binance Public Convert REST API
317
+ * OpenAPI Specification for the Binance Convert REST API
318
318
  *
319
319
  * The version of the OpenAPI document: 1.0.0
320
320
  *
@@ -386,9 +386,9 @@ interface OrderStatusResponse {
386
386
  }
387
387
 
388
388
  /**
389
- * Binance Public Convert REST API
389
+ * Binance Convert REST API
390
390
  *
391
- * OpenAPI Specification for the Binance Public Convert REST API
391
+ * OpenAPI Specification for the Binance Convert REST API
392
392
  *
393
393
  * The version of the OpenAPI document: 1.0.0
394
394
  *
@@ -442,9 +442,9 @@ interface PlaceLimitOrderResponse {
442
442
  }
443
443
 
444
444
  /**
445
- * Binance Public Convert REST API
445
+ * Binance Convert REST API
446
446
  *
447
- * OpenAPI Specification for the Binance Public Convert REST API
447
+ * OpenAPI Specification for the Binance Convert REST API
448
448
  *
449
449
  * The version of the OpenAPI document: 1.0.0
450
450
  *
@@ -528,9 +528,9 @@ interface QueryLimitOpenOrdersResponseListInner {
528
528
  }
529
529
 
530
530
  /**
531
- * Binance Public Convert REST API
531
+ * Binance Convert REST API
532
532
  *
533
- * OpenAPI Specification for the Binance Public Convert REST API
533
+ * OpenAPI Specification for the Binance Convert REST API
534
534
  *
535
535
  * The version of the OpenAPI document: 1.0.0
536
536
  *
@@ -555,9 +555,9 @@ interface QueryLimitOpenOrdersResponse {
555
555
  }
556
556
 
557
557
  /**
558
- * Binance Public Convert REST API
558
+ * Binance Convert REST API
559
559
  *
560
- * OpenAPI Specification for the Binance Public Convert REST API
560
+ * OpenAPI Specification for the Binance Convert REST API
561
561
  *
562
562
  * The version of the OpenAPI document: 1.0.0
563
563
  *
@@ -587,9 +587,9 @@ interface QueryOrderQuantityPrecisionPerAssetResponseInner {
587
587
  }
588
588
 
589
589
  /**
590
- * Binance Public Convert REST API
590
+ * Binance Convert REST API
591
591
  *
592
- * OpenAPI Specification for the Binance Public Convert REST API
592
+ * OpenAPI Specification for the Binance Convert REST API
593
593
  *
594
594
  * The version of the OpenAPI document: 1.0.0
595
595
  *
@@ -608,9 +608,9 @@ interface QueryOrderQuantityPrecisionPerAssetResponse extends Array<QueryOrderQu
608
608
  }
609
609
 
610
610
  /**
611
- * Binance Public Convert REST API
611
+ * Binance Convert REST API
612
612
  *
613
- * OpenAPI Specification for the Binance Public Convert REST API
613
+ * OpenAPI Specification for the Binance Convert REST API
614
614
  *
615
615
  * The version of the OpenAPI document: 1.0.0
616
616
  *
@@ -664,9 +664,9 @@ interface SendQuoteRequestResponse {
664
664
  }
665
665
 
666
666
  /**
667
- * Binance Public Convert REST API
667
+ * Binance Convert REST API
668
668
  *
669
- * OpenAPI Specification for the Binance Public Convert REST API
669
+ * OpenAPI Specification for the Binance Convert REST API
670
670
  *
671
671
  * The version of the OpenAPI document: 1.0.0
672
672
  *
@@ -779,9 +779,9 @@ declare class MarketDataApi implements MarketDataApiInterface {
779
779
  }
780
780
 
781
781
  /**
782
- * Binance Public Convert REST API
782
+ * Binance Convert REST API
783
783
  *
784
- * OpenAPI Specification for the Binance Public Convert REST API
784
+ * OpenAPI Specification for the Binance Convert REST API
785
785
  *
786
786
  * The version of the OpenAPI document: 1.0.0
787
787
  *
@@ -1205,9 +1205,9 @@ declare class TradeApi implements TradeApiInterface {
1205
1205
  }
1206
1206
 
1207
1207
  /**
1208
- * Binance Public Convert REST API
1208
+ * Binance Convert REST API
1209
1209
  *
1210
- * OpenAPI Specification for the Binance Public Convert REST API
1210
+ * OpenAPI Specification for the Binance Convert REST API
1211
1211
  *
1212
1212
  * The version of the OpenAPI document: 1.0.0
1213
1213
  *
@@ -1363,9 +1363,9 @@ declare class RestAPI {
1363
1363
  }
1364
1364
 
1365
1365
  /**
1366
- * Binance Public Convert REST API
1366
+ * Binance Convert REST API
1367
1367
  *
1368
- * OpenAPI Specification for the Binance Public Convert REST API
1368
+ * OpenAPI Specification for the Binance Convert REST API
1369
1369
  *
1370
1370
  * The version of the OpenAPI document: 1.0.0
1371
1371
  *
@@ -1407,36 +1407,7 @@ type index_TradeApi = TradeApi;
1407
1407
  declare const index_TradeApi: typeof TradeApi;
1408
1408
  type index_TradeApiInterface = TradeApiInterface;
1409
1409
  declare namespace index {
1410
- export {
1411
- index_AcceptQuoteRequest as AcceptQuoteRequest,
1412
- index_AcceptQuoteResponse as AcceptQuoteResponse,
1413
- index_BadRequest as BadRequest,
1414
- index_CancelLimitOrderRequest as CancelLimitOrderRequest,
1415
- index_CancelLimitOrderResponse as CancelLimitOrderResponse,
1416
- index_GetConvertTradeHistoryRequest as GetConvertTradeHistoryRequest,
1417
- index_GetConvertTradeHistoryResponse as GetConvertTradeHistoryResponse,
1418
- index_GetConvertTradeHistoryResponseListInner as GetConvertTradeHistoryResponseListInner,
1419
- index_ListAllConvertPairsRequest as ListAllConvertPairsRequest,
1420
- index_ListAllConvertPairsResponse as ListAllConvertPairsResponse,
1421
- index_ListAllConvertPairsResponseInner as ListAllConvertPairsResponseInner,
1422
- index_MarketDataApi as MarketDataApi,
1423
- index_MarketDataApiInterface as MarketDataApiInterface,
1424
- index_OrderStatusRequest as OrderStatusRequest,
1425
- index_OrderStatusResponse as OrderStatusResponse,
1426
- index_PlaceLimitOrderRequest as PlaceLimitOrderRequest,
1427
- index_PlaceLimitOrderResponse as PlaceLimitOrderResponse,
1428
- index_QueryLimitOpenOrdersRequest as QueryLimitOpenOrdersRequest,
1429
- index_QueryLimitOpenOrdersResponse as QueryLimitOpenOrdersResponse,
1430
- index_QueryLimitOpenOrdersResponseListInner as QueryLimitOpenOrdersResponseListInner,
1431
- index_QueryOrderQuantityPrecisionPerAssetRequest as QueryOrderQuantityPrecisionPerAssetRequest,
1432
- index_QueryOrderQuantityPrecisionPerAssetResponse as QueryOrderQuantityPrecisionPerAssetResponse,
1433
- index_QueryOrderQuantityPrecisionPerAssetResponseInner as QueryOrderQuantityPrecisionPerAssetResponseInner,
1434
- index_RestAPI as RestAPI,
1435
- index_SendQuoteRequestRequest as SendQuoteRequestRequest,
1436
- index_SendQuoteRequestResponse as SendQuoteRequestResponse,
1437
- index_TradeApi as TradeApi,
1438
- index_TradeApiInterface as TradeApiInterface,
1439
- };
1410
+ export { type index_AcceptQuoteRequest as AcceptQuoteRequest, type index_AcceptQuoteResponse as AcceptQuoteResponse, type index_BadRequest as BadRequest, type index_CancelLimitOrderRequest as CancelLimitOrderRequest, type index_CancelLimitOrderResponse as CancelLimitOrderResponse, type index_GetConvertTradeHistoryRequest as GetConvertTradeHistoryRequest, type index_GetConvertTradeHistoryResponse as GetConvertTradeHistoryResponse, type index_GetConvertTradeHistoryResponseListInner as GetConvertTradeHistoryResponseListInner, type index_ListAllConvertPairsRequest as ListAllConvertPairsRequest, type index_ListAllConvertPairsResponse as ListAllConvertPairsResponse, type index_ListAllConvertPairsResponseInner as ListAllConvertPairsResponseInner, index_MarketDataApi as MarketDataApi, type index_MarketDataApiInterface as MarketDataApiInterface, type index_OrderStatusRequest as OrderStatusRequest, type index_OrderStatusResponse as OrderStatusResponse, type index_PlaceLimitOrderRequest as PlaceLimitOrderRequest, type index_PlaceLimitOrderResponse as PlaceLimitOrderResponse, type index_QueryLimitOpenOrdersRequest as QueryLimitOpenOrdersRequest, type index_QueryLimitOpenOrdersResponse as QueryLimitOpenOrdersResponse, type index_QueryLimitOpenOrdersResponseListInner as QueryLimitOpenOrdersResponseListInner, type index_QueryOrderQuantityPrecisionPerAssetRequest as QueryOrderQuantityPrecisionPerAssetRequest, type index_QueryOrderQuantityPrecisionPerAssetResponse as QueryOrderQuantityPrecisionPerAssetResponse, type index_QueryOrderQuantityPrecisionPerAssetResponseInner as QueryOrderQuantityPrecisionPerAssetResponseInner, index_RestAPI as RestAPI, type index_SendQuoteRequestRequest as SendQuoteRequestRequest, type index_SendQuoteRequestResponse as SendQuoteRequestResponse, index_TradeApi as TradeApi, type index_TradeApiInterface as TradeApiInterface };
1440
1411
  }
1441
1412
 
1442
1413
  interface ConfigurationConvert {
@@ -1447,4 +1418,4 @@ declare class Convert {
1447
1418
  constructor(config: ConfigurationConvert);
1448
1419
  }
1449
1420
 
1450
- export { ConfigurationConvert, Convert, index as ConvertRestAPI };
1421
+ export { type ConfigurationConvert, Convert, index as ConvertRestAPI };
package/dist/index.js CHANGED
@@ -18,11 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  BadRequestError: () => import_common5.BadRequestError,
24
24
  CONVERT_REST_API_PROD_URL: () => import_common5.CONVERT_REST_API_PROD_URL,
25
- CONVERT_REST_API_TESTNET_URL: () => import_common5.CONVERT_REST_API_TESTNET_URL,
26
25
  ConnectorClientError: () => import_common5.ConnectorClientError,
27
26
  Convert: () => Convert,
28
27
  ConvertRestAPI: () => rest_api_exports,
@@ -35,7 +34,7 @@ __export(src_exports, {
35
34
  TooManyRequestsError: () => import_common5.TooManyRequestsError,
36
35
  UnauthorizedError: () => import_common5.UnauthorizedError
37
36
  });
38
- module.exports = __toCommonJS(src_exports);
37
+ module.exports = __toCommonJS(index_exports);
39
38
 
40
39
  // src/convert.ts
41
40
  var import_os = require("os");
@@ -43,7 +42,7 @@ var import_common4 = require("@binance/common");
43
42
 
44
43
  // package.json
45
44
  var name = "@binance/convert";
46
- var version = "1.0.0";
45
+ var version = "1.0.1";
47
46
 
48
47
  // src/rest-api/index.ts
49
48
  var rest_api_exports = {};
@@ -80,8 +79,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
80
79
  localVarQueryParameter["toAsset"] = toAsset;
81
80
  }
82
81
  let _timeUnit;
83
- if ("timeUnit" in configuration)
84
- _timeUnit = configuration.timeUnit;
82
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
85
83
  return {
86
84
  endpoint: "/sapi/v1/convert/exchangeInfo",
87
85
  method: "GET",
@@ -105,8 +103,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
105
103
  localVarQueryParameter["recvWindow"] = recvWindow;
106
104
  }
107
105
  let _timeUnit;
108
- if ("timeUnit" in configuration)
109
- _timeUnit = configuration.timeUnit;
106
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
110
107
  return {
111
108
  endpoint: "/sapi/v1/convert/assetInfo",
112
109
  method: "GET",
@@ -202,8 +199,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
202
199
  localVarQueryParameter["recvWindow"] = recvWindow;
203
200
  }
204
201
  let _timeUnit;
205
- if ("timeUnit" in configuration)
206
- _timeUnit = configuration.timeUnit;
202
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
207
203
  return {
208
204
  endpoint: "/sapi/v1/convert/acceptQuote",
209
205
  method: "POST",
@@ -232,8 +228,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
232
228
  localVarQueryParameter["recvWindow"] = recvWindow;
233
229
  }
234
230
  let _timeUnit;
235
- if ("timeUnit" in configuration)
236
- _timeUnit = configuration.timeUnit;
231
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
237
232
  return {
238
233
  endpoint: "/sapi/v1/convert/limit/cancelOrder",
239
234
  method: "POST",
@@ -273,8 +268,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
273
268
  localVarQueryParameter["recvWindow"] = recvWindow;
274
269
  }
275
270
  let _timeUnit;
276
- if ("timeUnit" in configuration)
277
- _timeUnit = configuration.timeUnit;
271
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
278
272
  return {
279
273
  endpoint: "/sapi/v1/convert/tradeFlow",
280
274
  method: "GET",
@@ -302,8 +296,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
302
296
  localVarQueryParameter["quoteId"] = quoteId;
303
297
  }
304
298
  let _timeUnit;
305
- if ("timeUnit" in configuration)
306
- _timeUnit = configuration.timeUnit;
299
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
307
300
  return {
308
301
  endpoint: "/sapi/v1/convert/orderStatus",
309
302
  method: "GET",
@@ -368,8 +361,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
368
361
  localVarQueryParameter["recvWindow"] = recvWindow;
369
362
  }
370
363
  let _timeUnit;
371
- if ("timeUnit" in configuration)
372
- _timeUnit = configuration.timeUnit;
364
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
373
365
  return {
374
366
  endpoint: "/sapi/v1/convert/limit/placeOrder",
375
367
  method: "POST",
@@ -393,8 +385,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
393
385
  localVarQueryParameter["recvWindow"] = recvWindow;
394
386
  }
395
387
  let _timeUnit;
396
- if ("timeUnit" in configuration)
397
- _timeUnit = configuration.timeUnit;
388
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
398
389
  return {
399
390
  endpoint: "/sapi/v1/convert/limit/queryOpenOrders",
400
391
  method: "POST",
@@ -447,8 +438,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
447
438
  localVarQueryParameter["recvWindow"] = recvWindow;
448
439
  }
449
440
  let _timeUnit;
450
- if ("timeUnit" in configuration)
451
- _timeUnit = configuration.timeUnit;
441
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
452
442
  return {
453
443
  endpoint: "/sapi/v1/convert/getQuote",
454
444
  method: "POST",
@@ -863,7 +853,6 @@ var import_common5 = require("@binance/common");
863
853
  0 && (module.exports = {
864
854
  BadRequestError,
865
855
  CONVERT_REST_API_PROD_URL,
866
- CONVERT_REST_API_TESTNET_URL,
867
856
  ConnectorClientError,
868
857
  Convert,
869
858
  ConvertRestAPI,