@binance/convert 3.0.0 → 4.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.d.mts +61 -52
- package/dist/index.d.ts +61 -52
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -27,10 +27,10 @@ interface AcceptQuoteResponse {
|
|
|
27
27
|
orderId?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {number}
|
|
30
|
+
* @type {number | bigint}
|
|
31
31
|
* @memberof AcceptQuoteResponse
|
|
32
32
|
*/
|
|
33
|
-
createTime?: number;
|
|
33
|
+
createTime?: number | bigint;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -59,10 +59,10 @@ interface AcceptQuoteResponse {
|
|
|
59
59
|
interface CancelLimitOrderResponse {
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {number}
|
|
62
|
+
* @type {number | bigint}
|
|
63
63
|
* @memberof CancelLimitOrderResponse
|
|
64
64
|
*/
|
|
65
|
-
orderId?: number;
|
|
65
|
+
orderId?: number | bigint;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -97,10 +97,10 @@ interface GetConvertTradeHistoryResponseListInner {
|
|
|
97
97
|
quoteId?: string;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
|
-
* @type {number}
|
|
100
|
+
* @type {number | bigint}
|
|
101
101
|
* @memberof GetConvertTradeHistoryResponseListInner
|
|
102
102
|
*/
|
|
103
|
-
orderId?: number;
|
|
103
|
+
orderId?: number | bigint;
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
106
|
* @type {string}
|
|
@@ -145,10 +145,10 @@ interface GetConvertTradeHistoryResponseListInner {
|
|
|
145
145
|
inverseRatio?: string;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
|
-
* @type {number}
|
|
148
|
+
* @type {number | bigint}
|
|
149
149
|
* @memberof GetConvertTradeHistoryResponseListInner
|
|
150
150
|
*/
|
|
151
|
-
createTime?: number;
|
|
151
|
+
createTime?: number | bigint;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/**
|
|
@@ -178,22 +178,22 @@ interface GetConvertTradeHistoryResponse {
|
|
|
178
178
|
list?: Array<GetConvertTradeHistoryResponseListInner>;
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
|
-
* @type {number}
|
|
181
|
+
* @type {number | bigint}
|
|
182
182
|
* @memberof GetConvertTradeHistoryResponse
|
|
183
183
|
*/
|
|
184
|
-
startTime?: number;
|
|
184
|
+
startTime?: number | bigint;
|
|
185
185
|
/**
|
|
186
186
|
*
|
|
187
|
-
* @type {number}
|
|
187
|
+
* @type {number | bigint}
|
|
188
188
|
* @memberof GetConvertTradeHistoryResponse
|
|
189
189
|
*/
|
|
190
|
-
endTime?: number;
|
|
190
|
+
endTime?: number | bigint;
|
|
191
191
|
/**
|
|
192
192
|
*
|
|
193
|
-
* @type {number}
|
|
193
|
+
* @type {number | bigint}
|
|
194
194
|
* @memberof GetConvertTradeHistoryResponse
|
|
195
195
|
*/
|
|
196
|
-
limit?: number;
|
|
196
|
+
limit?: number | bigint;
|
|
197
197
|
/**
|
|
198
198
|
*
|
|
199
199
|
* @type {boolean}
|
|
@@ -299,10 +299,10 @@ interface ListAllConvertPairsResponse extends Array<ListAllConvertPairsResponseI
|
|
|
299
299
|
interface OrderStatusResponse {
|
|
300
300
|
/**
|
|
301
301
|
*
|
|
302
|
-
* @type {number}
|
|
302
|
+
* @type {number | bigint}
|
|
303
303
|
* @memberof OrderStatusResponse
|
|
304
304
|
*/
|
|
305
|
-
orderId?: number;
|
|
305
|
+
orderId?: number | bigint;
|
|
306
306
|
/**
|
|
307
307
|
*
|
|
308
308
|
* @type {string}
|
|
@@ -347,10 +347,10 @@ interface OrderStatusResponse {
|
|
|
347
347
|
inverseRatio?: string;
|
|
348
348
|
/**
|
|
349
349
|
*
|
|
350
|
-
* @type {number}
|
|
350
|
+
* @type {number | bigint}
|
|
351
351
|
* @memberof OrderStatusResponse
|
|
352
352
|
*/
|
|
353
|
-
createTime?: number;
|
|
353
|
+
createTime?: number | bigint;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
/**
|
|
@@ -391,10 +391,10 @@ interface PlaceLimitOrderResponse {
|
|
|
391
391
|
inverseRatio?: string;
|
|
392
392
|
/**
|
|
393
393
|
*
|
|
394
|
-
* @type {number}
|
|
394
|
+
* @type {number | bigint}
|
|
395
395
|
* @memberof PlaceLimitOrderResponse
|
|
396
396
|
*/
|
|
397
|
-
validTimestamp?: number;
|
|
397
|
+
validTimestamp?: number | bigint;
|
|
398
398
|
/**
|
|
399
399
|
*
|
|
400
400
|
* @type {string}
|
|
@@ -435,10 +435,10 @@ interface QueryLimitOpenOrdersResponseListInner {
|
|
|
435
435
|
quoteId?: string;
|
|
436
436
|
/**
|
|
437
437
|
*
|
|
438
|
-
* @type {number}
|
|
438
|
+
* @type {number | bigint}
|
|
439
439
|
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
440
440
|
*/
|
|
441
|
-
orderId?: number;
|
|
441
|
+
orderId?: number | bigint;
|
|
442
442
|
/**
|
|
443
443
|
*
|
|
444
444
|
* @type {string}
|
|
@@ -483,16 +483,16 @@ interface QueryLimitOpenOrdersResponseListInner {
|
|
|
483
483
|
inverseRatio?: string;
|
|
484
484
|
/**
|
|
485
485
|
*
|
|
486
|
-
* @type {number}
|
|
486
|
+
* @type {number | bigint}
|
|
487
487
|
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
488
488
|
*/
|
|
489
|
-
createTime?: number;
|
|
489
|
+
createTime?: number | bigint;
|
|
490
490
|
/**
|
|
491
491
|
*
|
|
492
|
-
* @type {number}
|
|
492
|
+
* @type {number | bigint}
|
|
493
493
|
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
494
494
|
*/
|
|
495
|
-
expiredTimestamp?: number;
|
|
495
|
+
expiredTimestamp?: number | bigint;
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
/**
|
|
@@ -548,10 +548,10 @@ interface QueryOrderQuantityPrecisionPerAssetResponseInner {
|
|
|
548
548
|
asset?: string;
|
|
549
549
|
/**
|
|
550
550
|
*
|
|
551
|
-
* @type {number}
|
|
551
|
+
* @type {number | bigint}
|
|
552
552
|
* @memberof QueryOrderQuantityPrecisionPerAssetResponseInner
|
|
553
553
|
*/
|
|
554
|
-
fraction?: number;
|
|
554
|
+
fraction?: number | bigint;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
/**
|
|
@@ -613,10 +613,10 @@ interface SendQuoteRequestResponse {
|
|
|
613
613
|
inverseRatio?: string;
|
|
614
614
|
/**
|
|
615
615
|
*
|
|
616
|
-
* @type {number}
|
|
616
|
+
* @type {number | bigint}
|
|
617
617
|
* @memberof SendQuoteRequestResponse
|
|
618
618
|
*/
|
|
619
|
-
validTimestamp?: number;
|
|
619
|
+
validTimestamp?: number | bigint;
|
|
620
620
|
/**
|
|
621
621
|
*
|
|
622
622
|
* @type {string}
|
|
@@ -702,10 +702,10 @@ interface ListAllConvertPairsRequest {
|
|
|
702
702
|
interface QueryOrderQuantityPrecisionPerAssetRequest {
|
|
703
703
|
/**
|
|
704
704
|
* The value cannot be greater than 60000
|
|
705
|
-
* @type {number}
|
|
705
|
+
* @type {number | bigint}
|
|
706
706
|
* @memberof MarketDataApiQueryOrderQuantityPrecisionPerAsset
|
|
707
707
|
*/
|
|
708
|
-
readonly recvWindow?: number;
|
|
708
|
+
readonly recvWindow?: number | bigint;
|
|
709
709
|
}
|
|
710
710
|
/**
|
|
711
711
|
* MarketDataApi - object-oriented interface
|
|
@@ -871,10 +871,10 @@ interface AcceptQuoteRequest {
|
|
|
871
871
|
readonly quoteId: string;
|
|
872
872
|
/**
|
|
873
873
|
* The value cannot be greater than 60000
|
|
874
|
-
* @type {number}
|
|
874
|
+
* @type {number | bigint}
|
|
875
875
|
* @memberof TradeApiAcceptQuote
|
|
876
876
|
*/
|
|
877
|
-
readonly recvWindow?: number;
|
|
877
|
+
readonly recvWindow?: number | bigint;
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
880
|
* Request parameters for cancelLimitOrder operation in TradeApi.
|
|
@@ -883,16 +883,16 @@ interface AcceptQuoteRequest {
|
|
|
883
883
|
interface CancelLimitOrderRequest {
|
|
884
884
|
/**
|
|
885
885
|
* The orderId from `placeOrder` api
|
|
886
|
-
* @type {number}
|
|
886
|
+
* @type {number | bigint}
|
|
887
887
|
* @memberof TradeApiCancelLimitOrder
|
|
888
888
|
*/
|
|
889
|
-
readonly orderId: number;
|
|
889
|
+
readonly orderId: number | bigint;
|
|
890
890
|
/**
|
|
891
891
|
* The value cannot be greater than 60000
|
|
892
|
-
* @type {number}
|
|
892
|
+
* @type {number | bigint}
|
|
893
893
|
* @memberof TradeApiCancelLimitOrder
|
|
894
894
|
*/
|
|
895
|
-
readonly recvWindow?: number;
|
|
895
|
+
readonly recvWindow?: number | bigint;
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
898
898
|
* Request parameters for getConvertTradeHistory operation in TradeApi.
|
|
@@ -901,28 +901,28 @@ interface CancelLimitOrderRequest {
|
|
|
901
901
|
interface GetConvertTradeHistoryRequest {
|
|
902
902
|
/**
|
|
903
903
|
*
|
|
904
|
-
* @type {number}
|
|
904
|
+
* @type {number | bigint}
|
|
905
905
|
* @memberof TradeApiGetConvertTradeHistory
|
|
906
906
|
*/
|
|
907
|
-
readonly startTime: number;
|
|
907
|
+
readonly startTime: number | bigint;
|
|
908
908
|
/**
|
|
909
909
|
*
|
|
910
|
-
* @type {number}
|
|
910
|
+
* @type {number | bigint}
|
|
911
911
|
* @memberof TradeApiGetConvertTradeHistory
|
|
912
912
|
*/
|
|
913
|
-
readonly endTime: number;
|
|
913
|
+
readonly endTime: number | bigint;
|
|
914
914
|
/**
|
|
915
915
|
* Default 100, Max 1000
|
|
916
|
-
* @type {number}
|
|
916
|
+
* @type {number | bigint}
|
|
917
917
|
* @memberof TradeApiGetConvertTradeHistory
|
|
918
918
|
*/
|
|
919
|
-
readonly limit?: number;
|
|
919
|
+
readonly limit?: number | bigint;
|
|
920
920
|
/**
|
|
921
921
|
* The value cannot be greater than 60000
|
|
922
|
-
* @type {number}
|
|
922
|
+
* @type {number | bigint}
|
|
923
923
|
* @memberof TradeApiGetConvertTradeHistory
|
|
924
924
|
*/
|
|
925
|
-
readonly recvWindow?: number;
|
|
925
|
+
readonly recvWindow?: number | bigint;
|
|
926
926
|
}
|
|
927
927
|
/**
|
|
928
928
|
* Request parameters for orderStatus operation in TradeApi.
|
|
@@ -997,10 +997,10 @@ interface PlaceLimitOrderRequest {
|
|
|
997
997
|
readonly walletType?: string;
|
|
998
998
|
/**
|
|
999
999
|
* The value cannot be greater than 60000
|
|
1000
|
-
* @type {number}
|
|
1000
|
+
* @type {number | bigint}
|
|
1001
1001
|
* @memberof TradeApiPlaceLimitOrder
|
|
1002
1002
|
*/
|
|
1003
|
-
readonly recvWindow?: number;
|
|
1003
|
+
readonly recvWindow?: number | bigint;
|
|
1004
1004
|
}
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Request parameters for queryLimitOpenOrders operation in TradeApi.
|
|
@@ -1009,10 +1009,10 @@ interface PlaceLimitOrderRequest {
|
|
|
1009
1009
|
interface QueryLimitOpenOrdersRequest {
|
|
1010
1010
|
/**
|
|
1011
1011
|
* The value cannot be greater than 60000
|
|
1012
|
-
* @type {number}
|
|
1012
|
+
* @type {number | bigint}
|
|
1013
1013
|
* @memberof TradeApiQueryLimitOpenOrders
|
|
1014
1014
|
*/
|
|
1015
|
-
readonly recvWindow?: number;
|
|
1015
|
+
readonly recvWindow?: number | bigint;
|
|
1016
1016
|
}
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Request parameters for sendQuoteRequest operation in TradeApi.
|
|
@@ -1057,10 +1057,10 @@ interface SendQuoteRequestRequest {
|
|
|
1057
1057
|
readonly validTime?: string;
|
|
1058
1058
|
/**
|
|
1059
1059
|
* The value cannot be greater than 60000
|
|
1060
|
-
* @type {number}
|
|
1060
|
+
* @type {number | bigint}
|
|
1061
1061
|
* @memberof TradeApiSendQuoteRequest
|
|
1062
1062
|
*/
|
|
1063
|
-
readonly recvWindow?: number;
|
|
1063
|
+
readonly recvWindow?: number | bigint;
|
|
1064
1064
|
}
|
|
1065
1065
|
/**
|
|
1066
1066
|
* TradeApi - object-oriented interface
|
|
@@ -1218,6 +1218,7 @@ declare class RestAPI {
|
|
|
1218
1218
|
*
|
|
1219
1219
|
* @summary List All Convert Pairs
|
|
1220
1220
|
* @param {ListAllConvertPairsRequest} requestParameters Request parameters.
|
|
1221
|
+
*
|
|
1221
1222
|
* @returns {Promise<RestApiResponse<ListAllConvertPairsResponse>>}
|
|
1222
1223
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1223
1224
|
* @see {@link https://developers.binance.com/docs/convert/market-data/ Binance API Documentation}
|
|
@@ -1230,6 +1231,7 @@ declare class RestAPI {
|
|
|
1230
1231
|
*
|
|
1231
1232
|
* @summary Query order quantity precision per asset(USER_DATA)
|
|
1232
1233
|
* @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
|
|
1234
|
+
*
|
|
1233
1235
|
* @returns {Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>}
|
|
1234
1236
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1235
1237
|
* @see {@link https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset Binance API Documentation}
|
|
@@ -1242,6 +1244,7 @@ declare class RestAPI {
|
|
|
1242
1244
|
*
|
|
1243
1245
|
* @summary Accept Quote (TRADE)
|
|
1244
1246
|
* @param {AcceptQuoteRequest} requestParameters Request parameters.
|
|
1247
|
+
*
|
|
1245
1248
|
* @returns {Promise<RestApiResponse<AcceptQuoteResponse>>}
|
|
1246
1249
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1247
1250
|
* @see {@link https://developers.binance.com/docs/convert/trade/Accept-Quote Binance API Documentation}
|
|
@@ -1254,6 +1257,7 @@ declare class RestAPI {
|
|
|
1254
1257
|
*
|
|
1255
1258
|
* @summary Cancel limit order (USER_DATA)
|
|
1256
1259
|
* @param {CancelLimitOrderRequest} requestParameters Request parameters.
|
|
1260
|
+
*
|
|
1257
1261
|
* @returns {Promise<RestApiResponse<CancelLimitOrderResponse>>}
|
|
1258
1262
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1259
1263
|
* @see {@link https://developers.binance.com/docs/convert/trade/Cancel-Order Binance API Documentation}
|
|
@@ -1268,6 +1272,7 @@ declare class RestAPI {
|
|
|
1268
1272
|
*
|
|
1269
1273
|
* @summary Get Convert Trade History(USER_DATA)
|
|
1270
1274
|
* @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
|
|
1275
|
+
*
|
|
1271
1276
|
* @returns {Promise<RestApiResponse<GetConvertTradeHistoryResponse>>}
|
|
1272
1277
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1273
1278
|
* @see {@link https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History Binance API Documentation}
|
|
@@ -1280,6 +1285,7 @@ declare class RestAPI {
|
|
|
1280
1285
|
*
|
|
1281
1286
|
* @summary Order status(USER_DATA)
|
|
1282
1287
|
* @param {OrderStatusRequest} requestParameters Request parameters.
|
|
1288
|
+
*
|
|
1283
1289
|
* @returns {Promise<RestApiResponse<OrderStatusResponse>>}
|
|
1284
1290
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1285
1291
|
* @see {@link https://developers.binance.com/docs/convert/trade/Order-Status Binance API Documentation}
|
|
@@ -1296,6 +1302,7 @@ declare class RestAPI {
|
|
|
1296
1302
|
*
|
|
1297
1303
|
* @summary Place limit order (USER_DATA)
|
|
1298
1304
|
* @param {PlaceLimitOrderRequest} requestParameters Request parameters.
|
|
1305
|
+
*
|
|
1299
1306
|
* @returns {Promise<RestApiResponse<PlaceLimitOrderResponse>>}
|
|
1300
1307
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1301
1308
|
* @see {@link https://developers.binance.com/docs/convert/trade/Place-Order Binance API Documentation}
|
|
@@ -1308,6 +1315,7 @@ declare class RestAPI {
|
|
|
1308
1315
|
*
|
|
1309
1316
|
* @summary Query limit open orders (USER_DATA)
|
|
1310
1317
|
* @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
|
|
1318
|
+
*
|
|
1311
1319
|
* @returns {Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>}
|
|
1312
1320
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1313
1321
|
* @see {@link https://developers.binance.com/docs/convert/trade/Query-Order Binance API Documentation}
|
|
@@ -1323,6 +1331,7 @@ declare class RestAPI {
|
|
|
1323
1331
|
*
|
|
1324
1332
|
* @summary Send Quote Request(USER_DATA)
|
|
1325
1333
|
* @param {SendQuoteRequestRequest} requestParameters Request parameters.
|
|
1334
|
+
*
|
|
1326
1335
|
* @returns {Promise<RestApiResponse<SendQuoteRequestResponse>>}
|
|
1327
1336
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1328
1337
|
* @see {@link https://developers.binance.com/docs/convert/trade/Send-quote-request Binance API Documentation}
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var import_common4 = require("@binance/common");
|
|
|
41
41
|
|
|
42
42
|
// package.json
|
|
43
43
|
var name = "@binance/convert";
|
|
44
|
-
var version = "
|
|
44
|
+
var version = "4.0.1";
|
|
45
45
|
|
|
46
46
|
// src/rest-api/index.ts
|
|
47
47
|
var rest_api_exports = {};
|
|
@@ -92,7 +92,7 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
92
92
|
* Weight: 100(IP)
|
|
93
93
|
*
|
|
94
94
|
* @summary Query order quantity precision per asset(USER_DATA)
|
|
95
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
95
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
96
96
|
*
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
@@ -184,7 +184,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
184
184
|
*
|
|
185
185
|
* @summary Accept Quote (TRADE)
|
|
186
186
|
* @param {string} quoteId
|
|
187
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
187
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
188
188
|
*
|
|
189
189
|
* @throws {RequiredError}
|
|
190
190
|
*/
|
|
@@ -212,8 +212,8 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
212
212
|
* Weight: 200(UID)
|
|
213
213
|
*
|
|
214
214
|
* @summary Cancel limit order (USER_DATA)
|
|
215
|
-
* @param {number} orderId The orderId from `placeOrder` api
|
|
216
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
215
|
+
* @param {number | bigint} orderId The orderId from `placeOrder` api
|
|
216
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
217
217
|
*
|
|
218
218
|
* @throws {RequiredError}
|
|
219
219
|
*/
|
|
@@ -243,10 +243,10 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
243
243
|
* Weight: 3000
|
|
244
244
|
*
|
|
245
245
|
* @summary Get Convert Trade History(USER_DATA)
|
|
246
|
-
* @param {number} startTime
|
|
247
|
-
* @param {number} endTime
|
|
248
|
-
* @param {number} [limit] Default 100, Max 1000
|
|
249
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
246
|
+
* @param {number | bigint} startTime
|
|
247
|
+
* @param {number | bigint} endTime
|
|
248
|
+
* @param {number | bigint} [limit] Default 100, Max 1000
|
|
249
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
250
250
|
*
|
|
251
251
|
* @throws {RequiredError}
|
|
252
252
|
*/
|
|
@@ -321,7 +321,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
321
321
|
* @param {number} [baseAmount] Base asset amount. (One of `baseAmount` or `quoteAmount` is required)
|
|
322
322
|
* @param {number} [quoteAmount] Quote asset amount. (One of `baseAmount` or `quoteAmount` is required)
|
|
323
323
|
* @param {string} [walletType] It is to choose which wallet of assets. The wallet selection is `SPOT`, `FUNDING` and `EARN`. Combination of wallet is supported i.e. `SPOT_FUNDING`, `FUNDING_EARN`, `SPOT_FUNDING_EARN` or `SPOT_EARN` Default is `SPOT`.
|
|
324
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
324
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
325
325
|
*
|
|
326
326
|
* @throws {RequiredError}
|
|
327
327
|
*/
|
|
@@ -374,7 +374,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
374
374
|
* Weight: 3000(UID)
|
|
375
375
|
*
|
|
376
376
|
* @summary Query limit open orders (USER_DATA)
|
|
377
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
377
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
378
378
|
*
|
|
379
379
|
* @throws {RequiredError}
|
|
380
380
|
*/
|
|
@@ -407,7 +407,7 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
407
407
|
* @param {number} [toAmount] When specified, it is the amount you will be credited after the conversion
|
|
408
408
|
* @param {string} [walletType] It is to choose which wallet of assets. The wallet selection is `SPOT`, `FUNDING` and `EARN`. Combination of wallet is supported i.e. `SPOT_FUNDING`, `FUNDING_EARN`, `SPOT_FUNDING_EARN` or `SPOT_EARN` Default is `SPOT`.
|
|
409
409
|
* @param {string} [validTime] 10s, 30s, 1m, default 10s
|
|
410
|
-
* @param {number} [recvWindow] The value cannot be greater than 60000
|
|
410
|
+
* @param {number | bigint} [recvWindow] The value cannot be greater than 60000
|
|
411
411
|
*
|
|
412
412
|
* @throws {RequiredError}
|
|
413
413
|
*/
|
|
@@ -700,6 +700,7 @@ var RestAPI = class {
|
|
|
700
700
|
*
|
|
701
701
|
* @summary List All Convert Pairs
|
|
702
702
|
* @param {ListAllConvertPairsRequest} requestParameters Request parameters.
|
|
703
|
+
*
|
|
703
704
|
* @returns {Promise<RestApiResponse<ListAllConvertPairsResponse>>}
|
|
704
705
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
705
706
|
* @see {@link https://developers.binance.com/docs/convert/market-data/ Binance API Documentation}
|
|
@@ -714,6 +715,7 @@ var RestAPI = class {
|
|
|
714
715
|
*
|
|
715
716
|
* @summary Query order quantity precision per asset(USER_DATA)
|
|
716
717
|
* @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
|
|
718
|
+
*
|
|
717
719
|
* @returns {Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>}
|
|
718
720
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
719
721
|
* @see {@link https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset Binance API Documentation}
|
|
@@ -728,6 +730,7 @@ var RestAPI = class {
|
|
|
728
730
|
*
|
|
729
731
|
* @summary Accept Quote (TRADE)
|
|
730
732
|
* @param {AcceptQuoteRequest} requestParameters Request parameters.
|
|
733
|
+
*
|
|
731
734
|
* @returns {Promise<RestApiResponse<AcceptQuoteResponse>>}
|
|
732
735
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
733
736
|
* @see {@link https://developers.binance.com/docs/convert/trade/Accept-Quote Binance API Documentation}
|
|
@@ -742,6 +745,7 @@ var RestAPI = class {
|
|
|
742
745
|
*
|
|
743
746
|
* @summary Cancel limit order (USER_DATA)
|
|
744
747
|
* @param {CancelLimitOrderRequest} requestParameters Request parameters.
|
|
748
|
+
*
|
|
745
749
|
* @returns {Promise<RestApiResponse<CancelLimitOrderResponse>>}
|
|
746
750
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
747
751
|
* @see {@link https://developers.binance.com/docs/convert/trade/Cancel-Order Binance API Documentation}
|
|
@@ -758,6 +762,7 @@ var RestAPI = class {
|
|
|
758
762
|
*
|
|
759
763
|
* @summary Get Convert Trade History(USER_DATA)
|
|
760
764
|
* @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
|
|
765
|
+
*
|
|
761
766
|
* @returns {Promise<RestApiResponse<GetConvertTradeHistoryResponse>>}
|
|
762
767
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
763
768
|
* @see {@link https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History Binance API Documentation}
|
|
@@ -772,6 +777,7 @@ var RestAPI = class {
|
|
|
772
777
|
*
|
|
773
778
|
* @summary Order status(USER_DATA)
|
|
774
779
|
* @param {OrderStatusRequest} requestParameters Request parameters.
|
|
780
|
+
*
|
|
775
781
|
* @returns {Promise<RestApiResponse<OrderStatusResponse>>}
|
|
776
782
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
777
783
|
* @see {@link https://developers.binance.com/docs/convert/trade/Order-Status Binance API Documentation}
|
|
@@ -790,6 +796,7 @@ var RestAPI = class {
|
|
|
790
796
|
*
|
|
791
797
|
* @summary Place limit order (USER_DATA)
|
|
792
798
|
* @param {PlaceLimitOrderRequest} requestParameters Request parameters.
|
|
799
|
+
*
|
|
793
800
|
* @returns {Promise<RestApiResponse<PlaceLimitOrderResponse>>}
|
|
794
801
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
795
802
|
* @see {@link https://developers.binance.com/docs/convert/trade/Place-Order Binance API Documentation}
|
|
@@ -804,6 +811,7 @@ var RestAPI = class {
|
|
|
804
811
|
*
|
|
805
812
|
* @summary Query limit open orders (USER_DATA)
|
|
806
813
|
* @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
|
|
814
|
+
*
|
|
807
815
|
* @returns {Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>}
|
|
808
816
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
809
817
|
* @see {@link https://developers.binance.com/docs/convert/trade/Query-Order Binance API Documentation}
|
|
@@ -821,6 +829,7 @@ var RestAPI = class {
|
|
|
821
829
|
*
|
|
822
830
|
* @summary Send Quote Request(USER_DATA)
|
|
823
831
|
* @param {SendQuoteRequestRequest} requestParameters Request parameters.
|
|
832
|
+
*
|
|
824
833
|
* @returns {Promise<RestApiResponse<SendQuoteRequestResponse>>}
|
|
825
834
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
826
835
|
* @see {@link https://developers.binance.com/docs/convert/trade/Send-quote-request Binance API Documentation}
|