@binance/convert 4.0.1 → 4.0.2
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/chunk.mjs +13 -0
- package/dist/index.d.mts +997 -1116
- package/dist/index.d.ts +999 -1116
- package/dist/index.js +646 -849
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +569 -845
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { BadRequestError, CONVERT_REST_API_PROD_URL, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
|
|
1
|
+
import { BadRequestError, CONVERT_REST_API_PROD_URL, ConfigurationRestAPI, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
|
|
3
2
|
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/rest-api/types/accept-quote-response.d.ts
|
|
4
7
|
/**
|
|
5
8
|
* Binance Convert REST API
|
|
6
9
|
*
|
|
@@ -19,26 +22,27 @@ export { BadRequestError, CONVERT_REST_API_PROD_URL, ConnectorClientError, Forbi
|
|
|
19
22
|
* @interface AcceptQuoteResponse
|
|
20
23
|
*/
|
|
21
24
|
interface AcceptQuoteResponse {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AcceptQuoteResponse
|
|
29
|
+
*/
|
|
30
|
+
orderId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number | bigint}
|
|
34
|
+
* @memberof AcceptQuoteResponse
|
|
35
|
+
*/
|
|
36
|
+
createTime?: number | bigint;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AcceptQuoteResponse
|
|
41
|
+
*/
|
|
42
|
+
orderStatus?: string;
|
|
40
43
|
}
|
|
41
|
-
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/rest-api/types/cancel-limit-order-response.d.ts
|
|
42
46
|
/**
|
|
43
47
|
* Binance Convert REST API
|
|
44
48
|
*
|
|
@@ -57,20 +61,21 @@ interface AcceptQuoteResponse {
|
|
|
57
61
|
* @interface CancelLimitOrderResponse
|
|
58
62
|
*/
|
|
59
63
|
interface CancelLimitOrderResponse {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number | bigint}
|
|
67
|
+
* @memberof CancelLimitOrderResponse
|
|
68
|
+
*/
|
|
69
|
+
orderId?: number | bigint;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CancelLimitOrderResponse
|
|
74
|
+
*/
|
|
75
|
+
status?: string;
|
|
72
76
|
}
|
|
73
|
-
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/rest-api/types/get-convert-trade-history-response-list-inner.d.ts
|
|
74
79
|
/**
|
|
75
80
|
* Binance Convert REST API
|
|
76
81
|
*
|
|
@@ -89,119 +94,108 @@ interface CancelLimitOrderResponse {
|
|
|
89
94
|
* @interface GetConvertTradeHistoryResponseListInner
|
|
90
95
|
*/
|
|
91
96
|
interface GetConvertTradeHistoryResponseListInner {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
101
|
+
*/
|
|
102
|
+
quoteId?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number | bigint}
|
|
106
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
107
|
+
*/
|
|
108
|
+
orderId?: number | bigint;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
113
|
+
*/
|
|
114
|
+
orderStatus?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
119
|
+
*/
|
|
120
|
+
fromAsset?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
125
|
+
*/
|
|
126
|
+
fromAmount?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
131
|
+
*/
|
|
132
|
+
toAsset?: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
137
|
+
*/
|
|
138
|
+
toAmount?: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
143
|
+
*/
|
|
144
|
+
ratio?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
149
|
+
*/
|
|
150
|
+
inverseRatio?: string;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {number | bigint}
|
|
154
|
+
* @memberof GetConvertTradeHistoryResponseListInner
|
|
155
|
+
*/
|
|
156
|
+
createTime?: number | bigint;
|
|
152
157
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
* Binance Convert REST API
|
|
156
|
-
*
|
|
157
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
158
|
-
*
|
|
159
|
-
* The version of the OpenAPI document: 1.0.0
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
163
|
-
* https://openapi-generator.tech
|
|
164
|
-
* Do not edit the class manually.
|
|
165
|
-
*/
|
|
166
|
-
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/rest-api/types/get-convert-trade-history-response.d.ts
|
|
167
160
|
/**
|
|
168
161
|
*
|
|
169
162
|
* @export
|
|
170
163
|
* @interface GetConvertTradeHistoryResponse
|
|
171
164
|
*/
|
|
172
165
|
interface GetConvertTradeHistoryResponse {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {Array<GetConvertTradeHistoryResponseListInner>}
|
|
169
|
+
* @memberof GetConvertTradeHistoryResponse
|
|
170
|
+
*/
|
|
171
|
+
list?: Array<GetConvertTradeHistoryResponseListInner>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {number | bigint}
|
|
175
|
+
* @memberof GetConvertTradeHistoryResponse
|
|
176
|
+
*/
|
|
177
|
+
startTime?: number | bigint;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {number | bigint}
|
|
181
|
+
* @memberof GetConvertTradeHistoryResponse
|
|
182
|
+
*/
|
|
183
|
+
endTime?: number | bigint;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {number | bigint}
|
|
187
|
+
* @memberof GetConvertTradeHistoryResponse
|
|
188
|
+
*/
|
|
189
|
+
limit?: number | bigint;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {boolean}
|
|
193
|
+
* @memberof GetConvertTradeHistoryResponse
|
|
194
|
+
*/
|
|
195
|
+
moreData?: boolean;
|
|
203
196
|
}
|
|
204
|
-
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/rest-api/types/list-all-convert-pairs-response-inner.d.ts
|
|
205
199
|
/**
|
|
206
200
|
* Binance Convert REST API
|
|
207
201
|
*
|
|
@@ -220,65 +214,53 @@ interface GetConvertTradeHistoryResponse {
|
|
|
220
214
|
* @interface ListAllConvertPairsResponseInner
|
|
221
215
|
*/
|
|
222
216
|
interface ListAllConvertPairsResponseInner {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof ListAllConvertPairsResponseInner
|
|
221
|
+
*/
|
|
222
|
+
fromAsset?: string;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {string}
|
|
226
|
+
* @memberof ListAllConvertPairsResponseInner
|
|
227
|
+
*/
|
|
228
|
+
toAsset?: string;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof ListAllConvertPairsResponseInner
|
|
233
|
+
*/
|
|
234
|
+
fromAssetMinAmount?: string;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof ListAllConvertPairsResponseInner
|
|
239
|
+
*/
|
|
240
|
+
fromAssetMaxAmount?: string;
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof ListAllConvertPairsResponseInner
|
|
245
|
+
*/
|
|
246
|
+
toAssetMinAmount?: string;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof ListAllConvertPairsResponseInner
|
|
251
|
+
*/
|
|
252
|
+
toAssetMaxAmount?: string;
|
|
259
253
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
* Binance Convert REST API
|
|
263
|
-
*
|
|
264
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
265
|
-
*
|
|
266
|
-
* The version of the OpenAPI document: 1.0.0
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
270
|
-
* https://openapi-generator.tech
|
|
271
|
-
* Do not edit the class manually.
|
|
272
|
-
*/
|
|
273
|
-
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/rest-api/types/list-all-convert-pairs-response.d.ts
|
|
274
256
|
/**
|
|
275
257
|
*
|
|
276
258
|
* @export
|
|
277
259
|
* @interface ListAllConvertPairsResponse
|
|
278
260
|
*/
|
|
279
|
-
interface ListAllConvertPairsResponse extends Array<ListAllConvertPairsResponseInner> {
|
|
280
|
-
|
|
281
|
-
|
|
261
|
+
interface ListAllConvertPairsResponse extends Array<ListAllConvertPairsResponseInner> {}
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/rest-api/types/order-status-response.d.ts
|
|
282
264
|
/**
|
|
283
265
|
* Binance Convert REST API
|
|
284
266
|
*
|
|
@@ -297,62 +279,63 @@ interface ListAllConvertPairsResponse extends Array<ListAllConvertPairsResponseI
|
|
|
297
279
|
* @interface OrderStatusResponse
|
|
298
280
|
*/
|
|
299
281
|
interface OrderStatusResponse {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {number | bigint}
|
|
285
|
+
* @memberof OrderStatusResponse
|
|
286
|
+
*/
|
|
287
|
+
orderId?: number | bigint;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof OrderStatusResponse
|
|
292
|
+
*/
|
|
293
|
+
orderStatus?: string;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {string}
|
|
297
|
+
* @memberof OrderStatusResponse
|
|
298
|
+
*/
|
|
299
|
+
fromAsset?: string;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof OrderStatusResponse
|
|
304
|
+
*/
|
|
305
|
+
fromAmount?: string;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof OrderStatusResponse
|
|
310
|
+
*/
|
|
311
|
+
toAsset?: string;
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof OrderStatusResponse
|
|
316
|
+
*/
|
|
317
|
+
toAmount?: string;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof OrderStatusResponse
|
|
322
|
+
*/
|
|
323
|
+
ratio?: string;
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof OrderStatusResponse
|
|
328
|
+
*/
|
|
329
|
+
inverseRatio?: string;
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @type {number | bigint}
|
|
333
|
+
* @memberof OrderStatusResponse
|
|
334
|
+
*/
|
|
335
|
+
createTime?: number | bigint;
|
|
354
336
|
}
|
|
355
|
-
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/rest-api/types/place-limit-order-response.d.ts
|
|
356
339
|
/**
|
|
357
340
|
* Binance Convert REST API
|
|
358
341
|
*
|
|
@@ -371,44 +354,45 @@ interface OrderStatusResponse {
|
|
|
371
354
|
* @interface PlaceLimitOrderResponse
|
|
372
355
|
*/
|
|
373
356
|
interface PlaceLimitOrderResponse {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @type {string}
|
|
360
|
+
* @memberof PlaceLimitOrderResponse
|
|
361
|
+
*/
|
|
362
|
+
quoteId?: string;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @type {string}
|
|
366
|
+
* @memberof PlaceLimitOrderResponse
|
|
367
|
+
*/
|
|
368
|
+
ratio?: string;
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @type {string}
|
|
372
|
+
* @memberof PlaceLimitOrderResponse
|
|
373
|
+
*/
|
|
374
|
+
inverseRatio?: string;
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @type {number | bigint}
|
|
378
|
+
* @memberof PlaceLimitOrderResponse
|
|
379
|
+
*/
|
|
380
|
+
validTimestamp?: number | bigint;
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @type {string}
|
|
384
|
+
* @memberof PlaceLimitOrderResponse
|
|
385
|
+
*/
|
|
386
|
+
toAmount?: string;
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @type {string}
|
|
390
|
+
* @memberof PlaceLimitOrderResponse
|
|
391
|
+
*/
|
|
392
|
+
fromAmount?: string;
|
|
410
393
|
}
|
|
411
|
-
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region src/rest-api/types/query-limit-open-orders-response-list-inner.d.ts
|
|
412
396
|
/**
|
|
413
397
|
* Binance Convert REST API
|
|
414
398
|
*
|
|
@@ -427,101 +411,90 @@ interface PlaceLimitOrderResponse {
|
|
|
427
411
|
* @interface QueryLimitOpenOrdersResponseListInner
|
|
428
412
|
*/
|
|
429
413
|
interface QueryLimitOpenOrdersResponseListInner {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @type {string}
|
|
417
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
418
|
+
*/
|
|
419
|
+
quoteId?: string;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @type {number | bigint}
|
|
423
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
424
|
+
*/
|
|
425
|
+
orderId?: number | bigint;
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
430
|
+
*/
|
|
431
|
+
orderStatus?: string;
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
436
|
+
*/
|
|
437
|
+
fromAsset?: string;
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
442
|
+
*/
|
|
443
|
+
fromAmount?: string;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
448
|
+
*/
|
|
449
|
+
toAsset?: string;
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @type {string}
|
|
453
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
454
|
+
*/
|
|
455
|
+
toAmount?: string;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @type {string}
|
|
459
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
460
|
+
*/
|
|
461
|
+
ratio?: string;
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @type {string}
|
|
465
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
466
|
+
*/
|
|
467
|
+
inverseRatio?: string;
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @type {number | bigint}
|
|
471
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
472
|
+
*/
|
|
473
|
+
createTime?: number | bigint;
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @type {number | bigint}
|
|
477
|
+
* @memberof QueryLimitOpenOrdersResponseListInner
|
|
478
|
+
*/
|
|
479
|
+
expiredTimestamp?: number | bigint;
|
|
496
480
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
* Binance Convert REST API
|
|
500
|
-
*
|
|
501
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
502
|
-
*
|
|
503
|
-
* The version of the OpenAPI document: 1.0.0
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
507
|
-
* https://openapi-generator.tech
|
|
508
|
-
* Do not edit the class manually.
|
|
509
|
-
*/
|
|
510
|
-
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region src/rest-api/types/query-limit-open-orders-response.d.ts
|
|
511
483
|
/**
|
|
512
484
|
*
|
|
513
485
|
* @export
|
|
514
486
|
* @interface QueryLimitOpenOrdersResponse
|
|
515
487
|
*/
|
|
516
488
|
interface QueryLimitOpenOrdersResponse {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @type {Array<QueryLimitOpenOrdersResponseListInner>}
|
|
492
|
+
* @memberof QueryLimitOpenOrdersResponse
|
|
493
|
+
*/
|
|
494
|
+
list?: Array<QueryLimitOpenOrdersResponseListInner>;
|
|
523
495
|
}
|
|
524
|
-
|
|
496
|
+
//#endregion
|
|
497
|
+
//#region src/rest-api/types/query-order-quantity-precision-per-asset-response-inner.d.ts
|
|
525
498
|
/**
|
|
526
499
|
* Binance Convert REST API
|
|
527
500
|
*
|
|
@@ -540,41 +513,29 @@ interface QueryLimitOpenOrdersResponse {
|
|
|
540
513
|
* @interface QueryOrderQuantityPrecisionPerAssetResponseInner
|
|
541
514
|
*/
|
|
542
515
|
interface QueryOrderQuantityPrecisionPerAssetResponseInner {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof QueryOrderQuantityPrecisionPerAssetResponseInner
|
|
520
|
+
*/
|
|
521
|
+
asset?: string;
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @type {number | bigint}
|
|
525
|
+
* @memberof QueryOrderQuantityPrecisionPerAssetResponseInner
|
|
526
|
+
*/
|
|
527
|
+
fraction?: number | bigint;
|
|
555
528
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
* Binance Convert REST API
|
|
559
|
-
*
|
|
560
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
561
|
-
*
|
|
562
|
-
* The version of the OpenAPI document: 1.0.0
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
566
|
-
* https://openapi-generator.tech
|
|
567
|
-
* Do not edit the class manually.
|
|
568
|
-
*/
|
|
569
|
-
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/rest-api/types/query-order-quantity-precision-per-asset-response.d.ts
|
|
570
531
|
/**
|
|
571
532
|
*
|
|
572
533
|
* @export
|
|
573
534
|
* @interface QueryOrderQuantityPrecisionPerAssetResponse
|
|
574
535
|
*/
|
|
575
|
-
interface QueryOrderQuantityPrecisionPerAssetResponse extends Array<QueryOrderQuantityPrecisionPerAssetResponseInner> {
|
|
576
|
-
|
|
577
|
-
|
|
536
|
+
interface QueryOrderQuantityPrecisionPerAssetResponse extends Array<QueryOrderQuantityPrecisionPerAssetResponseInner> {}
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region src/rest-api/types/send-quote-request-response.d.ts
|
|
578
539
|
/**
|
|
579
540
|
* Binance Convert REST API
|
|
580
541
|
*
|
|
@@ -593,805 +554,727 @@ interface QueryOrderQuantityPrecisionPerAssetResponse extends Array<QueryOrderQu
|
|
|
593
554
|
* @interface SendQuoteRequestResponse
|
|
594
555
|
*/
|
|
595
556
|
interface SendQuoteRequestResponse {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof SendQuoteRequestResponse
|
|
561
|
+
*/
|
|
562
|
+
quoteId?: string;
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type {string}
|
|
566
|
+
* @memberof SendQuoteRequestResponse
|
|
567
|
+
*/
|
|
568
|
+
ratio?: string;
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof SendQuoteRequestResponse
|
|
573
|
+
*/
|
|
574
|
+
inverseRatio?: string;
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {number | bigint}
|
|
578
|
+
* @memberof SendQuoteRequestResponse
|
|
579
|
+
*/
|
|
580
|
+
validTimestamp?: number | bigint;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof SendQuoteRequestResponse
|
|
585
|
+
*/
|
|
586
|
+
toAmount?: string;
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof SendQuoteRequestResponse
|
|
591
|
+
*/
|
|
592
|
+
fromAmount?: string;
|
|
632
593
|
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
* Binance Convert REST API
|
|
636
|
-
*
|
|
637
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
638
|
-
*
|
|
639
|
-
* The version of the OpenAPI document: 1.0.0
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
643
|
-
* https://openapi-generator.tech
|
|
644
|
-
* Do not edit the class manually.
|
|
645
|
-
*/
|
|
646
|
-
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region src/rest-api/modules/market-data-api.d.ts
|
|
647
596
|
/**
|
|
648
597
|
* MarketDataApi - interface
|
|
649
598
|
* @interface MarketDataApi
|
|
650
599
|
*/
|
|
651
600
|
interface MarketDataApiInterface {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
601
|
+
/**
|
|
602
|
+
* Query for all convertible token pairs and the tokens’ respective upper/lower limits
|
|
603
|
+
*
|
|
604
|
+
* User needs to supply either or both of the input parameter
|
|
605
|
+
* If not defined for both fromAsset and toAsset, only partial token pairs will be returned
|
|
606
|
+
*
|
|
607
|
+
* Weight: 3000(IP)
|
|
608
|
+
*
|
|
609
|
+
* @summary List All Convert Pairs
|
|
610
|
+
* @param {ListAllConvertPairsRequest} requestParameters Request parameters.
|
|
611
|
+
*
|
|
612
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
613
|
+
* @memberof MarketDataApiInterface
|
|
614
|
+
*/
|
|
615
|
+
listAllConvertPairs(requestParameters?: ListAllConvertPairsRequest): Promise<RestApiResponse<ListAllConvertPairsResponse>>;
|
|
616
|
+
/**
|
|
617
|
+
* Query for supported asset’s precision information
|
|
618
|
+
*
|
|
619
|
+
* Weight: 100(IP)
|
|
620
|
+
*
|
|
621
|
+
* @summary Query order quantity precision per asset(USER_DATA)
|
|
622
|
+
* @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
|
|
623
|
+
*
|
|
624
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
625
|
+
* @memberof MarketDataApiInterface
|
|
626
|
+
*/
|
|
627
|
+
queryOrderQuantityPrecisionPerAsset(requestParameters?: QueryOrderQuantityPrecisionPerAssetRequest): Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>;
|
|
679
628
|
}
|
|
680
629
|
/**
|
|
681
630
|
* Request parameters for listAllConvertPairs operation in MarketDataApi.
|
|
682
631
|
* @interface ListAllConvertPairsRequest
|
|
683
632
|
*/
|
|
684
633
|
interface ListAllConvertPairsRequest {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
634
|
+
/**
|
|
635
|
+
* User spends coin
|
|
636
|
+
* @type {string}
|
|
637
|
+
* @memberof MarketDataApiListAllConvertPairs
|
|
638
|
+
*/
|
|
639
|
+
readonly fromAsset?: string;
|
|
640
|
+
/**
|
|
641
|
+
* User receives coin
|
|
642
|
+
* @type {string}
|
|
643
|
+
* @memberof MarketDataApiListAllConvertPairs
|
|
644
|
+
*/
|
|
645
|
+
readonly toAsset?: string;
|
|
697
646
|
}
|
|
698
647
|
/**
|
|
699
648
|
* Request parameters for queryOrderQuantityPrecisionPerAsset operation in MarketDataApi.
|
|
700
649
|
* @interface QueryOrderQuantityPrecisionPerAssetRequest
|
|
701
650
|
*/
|
|
702
651
|
interface QueryOrderQuantityPrecisionPerAssetRequest {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
652
|
+
/**
|
|
653
|
+
* The value cannot be greater than 60000
|
|
654
|
+
* @type {number | bigint}
|
|
655
|
+
* @memberof MarketDataApiQueryOrderQuantityPrecisionPerAsset
|
|
656
|
+
*/
|
|
657
|
+
readonly recvWindow?: number | bigint;
|
|
709
658
|
}
|
|
710
659
|
/**
|
|
711
660
|
* MarketDataApi - object-oriented interface
|
|
712
661
|
* @class MarketDataApi
|
|
713
662
|
*/
|
|
714
663
|
declare class MarketDataApi implements MarketDataApiInterface {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
664
|
+
private readonly configuration;
|
|
665
|
+
private localVarAxiosParamCreator;
|
|
666
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
667
|
+
/**
|
|
668
|
+
* Query for all convertible token pairs and the tokens’ respective upper/lower limits
|
|
669
|
+
*
|
|
670
|
+
* User needs to supply either or both of the input parameter
|
|
671
|
+
* If not defined for both fromAsset and toAsset, only partial token pairs will be returned
|
|
672
|
+
*
|
|
673
|
+
* Weight: 3000(IP)
|
|
674
|
+
*
|
|
675
|
+
* @summary List All Convert Pairs
|
|
676
|
+
* @param {ListAllConvertPairsRequest} requestParameters Request parameters.
|
|
677
|
+
* @returns {Promise<RestApiResponse<ListAllConvertPairsResponse>>}
|
|
678
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
679
|
+
* @memberof MarketDataApi
|
|
680
|
+
* @see {@link https://developers.binance.com/docs/convert/market-data/ Binance API Documentation}
|
|
681
|
+
*/
|
|
682
|
+
listAllConvertPairs(requestParameters?: ListAllConvertPairsRequest): Promise<RestApiResponse<ListAllConvertPairsResponse>>;
|
|
683
|
+
/**
|
|
684
|
+
* Query for supported asset’s precision information
|
|
685
|
+
*
|
|
686
|
+
* Weight: 100(IP)
|
|
687
|
+
*
|
|
688
|
+
* @summary Query order quantity precision per asset(USER_DATA)
|
|
689
|
+
* @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
|
|
690
|
+
* @returns {Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>}
|
|
691
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
692
|
+
* @memberof MarketDataApi
|
|
693
|
+
* @see {@link https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset Binance API Documentation}
|
|
694
|
+
*/
|
|
695
|
+
queryOrderQuantityPrecisionPerAsset(requestParameters?: QueryOrderQuantityPrecisionPerAssetRequest): Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>;
|
|
747
696
|
}
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
* Binance Convert REST API
|
|
751
|
-
*
|
|
752
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
753
|
-
*
|
|
754
|
-
* The version of the OpenAPI document: 1.0.0
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
758
|
-
* https://openapi-generator.tech
|
|
759
|
-
* Do not edit the class manually.
|
|
760
|
-
*/
|
|
761
|
-
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region src/rest-api/modules/trade-api.d.ts
|
|
762
699
|
/**
|
|
763
700
|
* TradeApi - interface
|
|
764
701
|
* @interface TradeApi
|
|
765
702
|
*/
|
|
766
703
|
interface TradeApiInterface {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
704
|
+
/**
|
|
705
|
+
* Accept the offered quote by quote ID.
|
|
706
|
+
*
|
|
707
|
+
* Weight: 500(UID)
|
|
708
|
+
*
|
|
709
|
+
* @summary Accept Quote (TRADE)
|
|
710
|
+
* @param {AcceptQuoteRequest} requestParameters Request parameters.
|
|
711
|
+
*
|
|
712
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
713
|
+
* @memberof TradeApiInterface
|
|
714
|
+
*/
|
|
715
|
+
acceptQuote(requestParameters: AcceptQuoteRequest): Promise<RestApiResponse<AcceptQuoteResponse>>;
|
|
716
|
+
/**
|
|
717
|
+
* Enable users to cancel a limit order
|
|
718
|
+
*
|
|
719
|
+
* Weight: 200(UID)
|
|
720
|
+
*
|
|
721
|
+
* @summary Cancel limit order (USER_DATA)
|
|
722
|
+
* @param {CancelLimitOrderRequest} requestParameters Request parameters.
|
|
723
|
+
*
|
|
724
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
725
|
+
* @memberof TradeApiInterface
|
|
726
|
+
*/
|
|
727
|
+
cancelLimitOrder(requestParameters: CancelLimitOrderRequest): Promise<RestApiResponse<CancelLimitOrderResponse>>;
|
|
728
|
+
/**
|
|
729
|
+
* Get Convert Trade History
|
|
730
|
+
*
|
|
731
|
+
* The max interval between startTime and endTime is 30 days.
|
|
732
|
+
*
|
|
733
|
+
* Weight: 3000
|
|
734
|
+
*
|
|
735
|
+
* @summary Get Convert Trade History(USER_DATA)
|
|
736
|
+
* @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
|
|
737
|
+
*
|
|
738
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
739
|
+
* @memberof TradeApiInterface
|
|
740
|
+
*/
|
|
741
|
+
getConvertTradeHistory(requestParameters: GetConvertTradeHistoryRequest): Promise<RestApiResponse<GetConvertTradeHistoryResponse>>;
|
|
742
|
+
/**
|
|
743
|
+
* Query order status by order ID.
|
|
744
|
+
*
|
|
745
|
+
* Weight: 100(UID)
|
|
746
|
+
*
|
|
747
|
+
* @summary Order status(USER_DATA)
|
|
748
|
+
* @param {OrderStatusRequest} requestParameters Request parameters.
|
|
749
|
+
*
|
|
750
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
751
|
+
* @memberof TradeApiInterface
|
|
752
|
+
*/
|
|
753
|
+
orderStatus(requestParameters?: OrderStatusRequest): Promise<RestApiResponse<OrderStatusResponse>>;
|
|
754
|
+
/**
|
|
755
|
+
* Enable users to place a limit order
|
|
756
|
+
*
|
|
757
|
+
* `baseAsset` or `quoteAsset` can be determined via `exchangeInfo` endpoint.
|
|
758
|
+
* Limit price is defined from `baseAsset` to `quoteAsset`.
|
|
759
|
+
* Either `baseAmount` or `quoteAmount` is used.
|
|
760
|
+
*
|
|
761
|
+
* Weight: 500(UID)
|
|
762
|
+
*
|
|
763
|
+
* @summary Place limit order (USER_DATA)
|
|
764
|
+
* @param {PlaceLimitOrderRequest} requestParameters Request parameters.
|
|
765
|
+
*
|
|
766
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
767
|
+
* @memberof TradeApiInterface
|
|
768
|
+
*/
|
|
769
|
+
placeLimitOrder(requestParameters: PlaceLimitOrderRequest): Promise<RestApiResponse<PlaceLimitOrderResponse>>;
|
|
770
|
+
/**
|
|
771
|
+
* Request a quote for the requested token pairs
|
|
772
|
+
*
|
|
773
|
+
* Weight: 3000(UID)
|
|
774
|
+
*
|
|
775
|
+
* @summary Query limit open orders (USER_DATA)
|
|
776
|
+
* @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
|
|
777
|
+
*
|
|
778
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
779
|
+
* @memberof TradeApiInterface
|
|
780
|
+
*/
|
|
781
|
+
queryLimitOpenOrders(requestParameters?: QueryLimitOpenOrdersRequest): Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>;
|
|
782
|
+
/**
|
|
783
|
+
* Request a quote for the requested token pairs
|
|
784
|
+
*
|
|
785
|
+
* Either fromAmount or toAmount should be sent
|
|
786
|
+
* `quoteId` will be returned only if you have enough funds to convert
|
|
787
|
+
*
|
|
788
|
+
* Weight: 200(UID)
|
|
789
|
+
*
|
|
790
|
+
* @summary Send Quote Request(USER_DATA)
|
|
791
|
+
* @param {SendQuoteRequestRequest} requestParameters Request parameters.
|
|
792
|
+
*
|
|
793
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
794
|
+
* @memberof TradeApiInterface
|
|
795
|
+
*/
|
|
796
|
+
sendQuoteRequest(requestParameters: SendQuoteRequestRequest): Promise<RestApiResponse<SendQuoteRequestResponse>>;
|
|
860
797
|
}
|
|
861
798
|
/**
|
|
862
799
|
* Request parameters for acceptQuote operation in TradeApi.
|
|
863
800
|
* @interface AcceptQuoteRequest
|
|
864
801
|
*/
|
|
865
802
|
interface AcceptQuoteRequest {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
803
|
+
/**
|
|
804
|
+
*
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof TradeApiAcceptQuote
|
|
807
|
+
*/
|
|
808
|
+
readonly quoteId: string;
|
|
809
|
+
/**
|
|
810
|
+
* The value cannot be greater than 60000
|
|
811
|
+
* @type {number | bigint}
|
|
812
|
+
* @memberof TradeApiAcceptQuote
|
|
813
|
+
*/
|
|
814
|
+
readonly recvWindow?: number | bigint;
|
|
878
815
|
}
|
|
879
816
|
/**
|
|
880
817
|
* Request parameters for cancelLimitOrder operation in TradeApi.
|
|
881
818
|
* @interface CancelLimitOrderRequest
|
|
882
819
|
*/
|
|
883
820
|
interface CancelLimitOrderRequest {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
821
|
+
/**
|
|
822
|
+
* The orderId from `placeOrder` api
|
|
823
|
+
* @type {number | bigint}
|
|
824
|
+
* @memberof TradeApiCancelLimitOrder
|
|
825
|
+
*/
|
|
826
|
+
readonly orderId: number | bigint;
|
|
827
|
+
/**
|
|
828
|
+
* The value cannot be greater than 60000
|
|
829
|
+
* @type {number | bigint}
|
|
830
|
+
* @memberof TradeApiCancelLimitOrder
|
|
831
|
+
*/
|
|
832
|
+
readonly recvWindow?: number | bigint;
|
|
896
833
|
}
|
|
897
834
|
/**
|
|
898
835
|
* Request parameters for getConvertTradeHistory operation in TradeApi.
|
|
899
836
|
* @interface GetConvertTradeHistoryRequest
|
|
900
837
|
*/
|
|
901
838
|
interface GetConvertTradeHistoryRequest {
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {number | bigint}
|
|
842
|
+
* @memberof TradeApiGetConvertTradeHistory
|
|
843
|
+
*/
|
|
844
|
+
readonly startTime: number | bigint;
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @type {number | bigint}
|
|
848
|
+
* @memberof TradeApiGetConvertTradeHistory
|
|
849
|
+
*/
|
|
850
|
+
readonly endTime: number | bigint;
|
|
851
|
+
/**
|
|
852
|
+
* Default 100, Max 1000
|
|
853
|
+
* @type {number | bigint}
|
|
854
|
+
* @memberof TradeApiGetConvertTradeHistory
|
|
855
|
+
*/
|
|
856
|
+
readonly limit?: number | bigint;
|
|
857
|
+
/**
|
|
858
|
+
* The value cannot be greater than 60000
|
|
859
|
+
* @type {number | bigint}
|
|
860
|
+
* @memberof TradeApiGetConvertTradeHistory
|
|
861
|
+
*/
|
|
862
|
+
readonly recvWindow?: number | bigint;
|
|
926
863
|
}
|
|
927
864
|
/**
|
|
928
865
|
* Request parameters for orderStatus operation in TradeApi.
|
|
929
866
|
* @interface OrderStatusRequest
|
|
930
867
|
*/
|
|
931
868
|
interface OrderStatusRequest {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
869
|
+
/**
|
|
870
|
+
* Either orderId or quoteId is required
|
|
871
|
+
* @type {string}
|
|
872
|
+
* @memberof TradeApiOrderStatus
|
|
873
|
+
*/
|
|
874
|
+
readonly orderId?: string;
|
|
875
|
+
/**
|
|
876
|
+
* Either orderId or quoteId is required
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof TradeApiOrderStatus
|
|
879
|
+
*/
|
|
880
|
+
readonly quoteId?: string;
|
|
944
881
|
}
|
|
945
882
|
/**
|
|
946
883
|
* Request parameters for placeLimitOrder operation in TradeApi.
|
|
947
884
|
* @interface PlaceLimitOrderRequest
|
|
948
885
|
*/
|
|
949
886
|
interface PlaceLimitOrderRequest {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
887
|
+
/**
|
|
888
|
+
* base asset (use the response `fromIsBase` from `GET /sapi/v1/convert/exchangeInfo` api to check which one is baseAsset )
|
|
889
|
+
* @type {string}
|
|
890
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
891
|
+
*/
|
|
892
|
+
readonly baseAsset: string;
|
|
893
|
+
/**
|
|
894
|
+
* quote asset
|
|
895
|
+
* @type {string}
|
|
896
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
897
|
+
*/
|
|
898
|
+
readonly quoteAsset: string;
|
|
899
|
+
/**
|
|
900
|
+
* Symbol limit price (from baseAsset to quoteAsset)
|
|
901
|
+
* @type {number}
|
|
902
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
903
|
+
*/
|
|
904
|
+
readonly limitPrice: number;
|
|
905
|
+
/**
|
|
906
|
+
* `BUY` or `SELL`
|
|
907
|
+
* @type {string}
|
|
908
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
909
|
+
*/
|
|
910
|
+
readonly side: string;
|
|
911
|
+
/**
|
|
912
|
+
* 1_D, 3_D, 7_D, 30_D (D means day)
|
|
913
|
+
* @type {string}
|
|
914
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
915
|
+
*/
|
|
916
|
+
readonly expiredType: string;
|
|
917
|
+
/**
|
|
918
|
+
* Base asset amount. (One of `baseAmount` or `quoteAmount` is required)
|
|
919
|
+
* @type {number}
|
|
920
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
921
|
+
*/
|
|
922
|
+
readonly baseAmount?: number;
|
|
923
|
+
/**
|
|
924
|
+
* Quote asset amount. (One of `baseAmount` or `quoteAmount` is required)
|
|
925
|
+
* @type {number}
|
|
926
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
927
|
+
*/
|
|
928
|
+
readonly quoteAmount?: number;
|
|
929
|
+
/**
|
|
930
|
+
* 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`.
|
|
931
|
+
* @type {string}
|
|
932
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
933
|
+
*/
|
|
934
|
+
readonly walletType?: string;
|
|
935
|
+
/**
|
|
936
|
+
* The value cannot be greater than 60000
|
|
937
|
+
* @type {number | bigint}
|
|
938
|
+
* @memberof TradeApiPlaceLimitOrder
|
|
939
|
+
*/
|
|
940
|
+
readonly recvWindow?: number | bigint;
|
|
1004
941
|
}
|
|
1005
942
|
/**
|
|
1006
943
|
* Request parameters for queryLimitOpenOrders operation in TradeApi.
|
|
1007
944
|
* @interface QueryLimitOpenOrdersRequest
|
|
1008
945
|
*/
|
|
1009
946
|
interface QueryLimitOpenOrdersRequest {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
947
|
+
/**
|
|
948
|
+
* The value cannot be greater than 60000
|
|
949
|
+
* @type {number | bigint}
|
|
950
|
+
* @memberof TradeApiQueryLimitOpenOrders
|
|
951
|
+
*/
|
|
952
|
+
readonly recvWindow?: number | bigint;
|
|
1016
953
|
}
|
|
1017
954
|
/**
|
|
1018
955
|
* Request parameters for sendQuoteRequest operation in TradeApi.
|
|
1019
956
|
* @interface SendQuoteRequestRequest
|
|
1020
957
|
*/
|
|
1021
958
|
interface SendQuoteRequestRequest {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @type {string}
|
|
962
|
+
* @memberof TradeApiSendQuoteRequest
|
|
963
|
+
*/
|
|
964
|
+
readonly fromAsset: string;
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof TradeApiSendQuoteRequest
|
|
969
|
+
*/
|
|
970
|
+
readonly toAsset: string;
|
|
971
|
+
/**
|
|
972
|
+
* When specified, it is the amount you will be debited after the conversion
|
|
973
|
+
* @type {number}
|
|
974
|
+
* @memberof TradeApiSendQuoteRequest
|
|
975
|
+
*/
|
|
976
|
+
readonly fromAmount?: number;
|
|
977
|
+
/**
|
|
978
|
+
* When specified, it is the amount you will be credited after the conversion
|
|
979
|
+
* @type {number}
|
|
980
|
+
* @memberof TradeApiSendQuoteRequest
|
|
981
|
+
*/
|
|
982
|
+
readonly toAmount?: number;
|
|
983
|
+
/**
|
|
984
|
+
* 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`.
|
|
985
|
+
* @type {string}
|
|
986
|
+
* @memberof TradeApiSendQuoteRequest
|
|
987
|
+
*/
|
|
988
|
+
readonly walletType?: string;
|
|
989
|
+
/**
|
|
990
|
+
* 10s, 30s, 1m, default 10s
|
|
991
|
+
* @type {string}
|
|
992
|
+
* @memberof TradeApiSendQuoteRequest
|
|
993
|
+
*/
|
|
994
|
+
readonly validTime?: string;
|
|
995
|
+
/**
|
|
996
|
+
* The value cannot be greater than 60000
|
|
997
|
+
* @type {number | bigint}
|
|
998
|
+
* @memberof TradeApiSendQuoteRequest
|
|
999
|
+
*/
|
|
1000
|
+
readonly recvWindow?: number | bigint;
|
|
1064
1001
|
}
|
|
1065
1002
|
/**
|
|
1066
1003
|
* TradeApi - object-oriented interface
|
|
1067
1004
|
* @class TradeApi
|
|
1068
1005
|
*/
|
|
1069
1006
|
declare class TradeApi implements TradeApiInterface {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1007
|
+
private readonly configuration;
|
|
1008
|
+
private localVarAxiosParamCreator;
|
|
1009
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
1010
|
+
/**
|
|
1011
|
+
* Accept the offered quote by quote ID.
|
|
1012
|
+
*
|
|
1013
|
+
* Weight: 500(UID)
|
|
1014
|
+
*
|
|
1015
|
+
* @summary Accept Quote (TRADE)
|
|
1016
|
+
* @param {AcceptQuoteRequest} requestParameters Request parameters.
|
|
1017
|
+
* @returns {Promise<RestApiResponse<AcceptQuoteResponse>>}
|
|
1018
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1019
|
+
* @memberof TradeApi
|
|
1020
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Accept-Quote Binance API Documentation}
|
|
1021
|
+
*/
|
|
1022
|
+
acceptQuote(requestParameters: AcceptQuoteRequest): Promise<RestApiResponse<AcceptQuoteResponse>>;
|
|
1023
|
+
/**
|
|
1024
|
+
* Enable users to cancel a limit order
|
|
1025
|
+
*
|
|
1026
|
+
* Weight: 200(UID)
|
|
1027
|
+
*
|
|
1028
|
+
* @summary Cancel limit order (USER_DATA)
|
|
1029
|
+
* @param {CancelLimitOrderRequest} requestParameters Request parameters.
|
|
1030
|
+
* @returns {Promise<RestApiResponse<CancelLimitOrderResponse>>}
|
|
1031
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1032
|
+
* @memberof TradeApi
|
|
1033
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Cancel-Order Binance API Documentation}
|
|
1034
|
+
*/
|
|
1035
|
+
cancelLimitOrder(requestParameters: CancelLimitOrderRequest): Promise<RestApiResponse<CancelLimitOrderResponse>>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Get Convert Trade History
|
|
1038
|
+
*
|
|
1039
|
+
* The max interval between startTime and endTime is 30 days.
|
|
1040
|
+
*
|
|
1041
|
+
* Weight: 3000
|
|
1042
|
+
*
|
|
1043
|
+
* @summary Get Convert Trade History(USER_DATA)
|
|
1044
|
+
* @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
|
|
1045
|
+
* @returns {Promise<RestApiResponse<GetConvertTradeHistoryResponse>>}
|
|
1046
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1047
|
+
* @memberof TradeApi
|
|
1048
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History Binance API Documentation}
|
|
1049
|
+
*/
|
|
1050
|
+
getConvertTradeHistory(requestParameters: GetConvertTradeHistoryRequest): Promise<RestApiResponse<GetConvertTradeHistoryResponse>>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Query order status by order ID.
|
|
1053
|
+
*
|
|
1054
|
+
* Weight: 100(UID)
|
|
1055
|
+
*
|
|
1056
|
+
* @summary Order status(USER_DATA)
|
|
1057
|
+
* @param {OrderStatusRequest} requestParameters Request parameters.
|
|
1058
|
+
* @returns {Promise<RestApiResponse<OrderStatusResponse>>}
|
|
1059
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1060
|
+
* @memberof TradeApi
|
|
1061
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Order-Status Binance API Documentation}
|
|
1062
|
+
*/
|
|
1063
|
+
orderStatus(requestParameters?: OrderStatusRequest): Promise<RestApiResponse<OrderStatusResponse>>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Enable users to place a limit order
|
|
1066
|
+
*
|
|
1067
|
+
* `baseAsset` or `quoteAsset` can be determined via `exchangeInfo` endpoint.
|
|
1068
|
+
* Limit price is defined from `baseAsset` to `quoteAsset`.
|
|
1069
|
+
* Either `baseAmount` or `quoteAmount` is used.
|
|
1070
|
+
*
|
|
1071
|
+
* Weight: 500(UID)
|
|
1072
|
+
*
|
|
1073
|
+
* @summary Place limit order (USER_DATA)
|
|
1074
|
+
* @param {PlaceLimitOrderRequest} requestParameters Request parameters.
|
|
1075
|
+
* @returns {Promise<RestApiResponse<PlaceLimitOrderResponse>>}
|
|
1076
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1077
|
+
* @memberof TradeApi
|
|
1078
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Place-Order Binance API Documentation}
|
|
1079
|
+
*/
|
|
1080
|
+
placeLimitOrder(requestParameters: PlaceLimitOrderRequest): Promise<RestApiResponse<PlaceLimitOrderResponse>>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Request a quote for the requested token pairs
|
|
1083
|
+
*
|
|
1084
|
+
* Weight: 3000(UID)
|
|
1085
|
+
*
|
|
1086
|
+
* @summary Query limit open orders (USER_DATA)
|
|
1087
|
+
* @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
|
|
1088
|
+
* @returns {Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>}
|
|
1089
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1090
|
+
* @memberof TradeApi
|
|
1091
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Query-Order Binance API Documentation}
|
|
1092
|
+
*/
|
|
1093
|
+
queryLimitOpenOrders(requestParameters?: QueryLimitOpenOrdersRequest): Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Request a quote for the requested token pairs
|
|
1096
|
+
*
|
|
1097
|
+
* Either fromAmount or toAmount should be sent
|
|
1098
|
+
* `quoteId` will be returned only if you have enough funds to convert
|
|
1099
|
+
*
|
|
1100
|
+
* Weight: 200(UID)
|
|
1101
|
+
*
|
|
1102
|
+
* @summary Send Quote Request(USER_DATA)
|
|
1103
|
+
* @param {SendQuoteRequestRequest} requestParameters Request parameters.
|
|
1104
|
+
* @returns {Promise<RestApiResponse<SendQuoteRequestResponse>>}
|
|
1105
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1106
|
+
* @memberof TradeApi
|
|
1107
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Send-quote-request Binance API Documentation}
|
|
1108
|
+
*/
|
|
1109
|
+
sendQuoteRequest(requestParameters: SendQuoteRequestRequest): Promise<RestApiResponse<SendQuoteRequestResponse>>;
|
|
1173
1110
|
}
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
* Binance Convert REST API
|
|
1177
|
-
*
|
|
1178
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
1179
|
-
*
|
|
1180
|
-
* The version of the OpenAPI document: 1.0.0
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1184
|
-
* https://openapi-generator.tech
|
|
1185
|
-
* Do not edit the class manually.
|
|
1186
|
-
*/
|
|
1187
|
-
|
|
1111
|
+
//#endregion
|
|
1112
|
+
//#region src/rest-api/rest-api.d.ts
|
|
1188
1113
|
declare class RestAPI {
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1114
|
+
private configuration;
|
|
1115
|
+
private marketDataApi;
|
|
1116
|
+
private tradeApi;
|
|
1117
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
1118
|
+
/**
|
|
1119
|
+
* Generic function to send a request.
|
|
1120
|
+
* @param endpoint - The API endpoint to call.
|
|
1121
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
1122
|
+
* @param params - Query parameters for the request.
|
|
1123
|
+
*
|
|
1124
|
+
* @returns A promise resolving to the response data object.
|
|
1125
|
+
*/
|
|
1126
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Generic function to send a signed request.
|
|
1129
|
+
* @param endpoint - The API endpoint to call.
|
|
1130
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
1131
|
+
* @param params - Query parameters for the request.
|
|
1132
|
+
*
|
|
1133
|
+
* @returns A promise resolving to the response data object.
|
|
1134
|
+
*/
|
|
1135
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
1136
|
+
/**
|
|
1137
|
+
* Query for all convertible token pairs and the tokens’ respective upper/lower limits
|
|
1138
|
+
*
|
|
1139
|
+
* User needs to supply either or both of the input parameter
|
|
1140
|
+
* If not defined for both fromAsset and toAsset, only partial token pairs will be returned
|
|
1141
|
+
*
|
|
1142
|
+
* Weight: 3000(IP)
|
|
1143
|
+
*
|
|
1144
|
+
* @summary List All Convert Pairs
|
|
1145
|
+
* @param {ListAllConvertPairsRequest} requestParameters Request parameters.
|
|
1146
|
+
*
|
|
1147
|
+
* @returns {Promise<RestApiResponse<ListAllConvertPairsResponse>>}
|
|
1148
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1149
|
+
* @see {@link https://developers.binance.com/docs/convert/market-data/ Binance API Documentation}
|
|
1150
|
+
*/
|
|
1151
|
+
listAllConvertPairs(requestParameters?: ListAllConvertPairsRequest): Promise<RestApiResponse<ListAllConvertPairsResponse>>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Query for supported asset’s precision information
|
|
1154
|
+
*
|
|
1155
|
+
* Weight: 100(IP)
|
|
1156
|
+
*
|
|
1157
|
+
* @summary Query order quantity precision per asset(USER_DATA)
|
|
1158
|
+
* @param {QueryOrderQuantityPrecisionPerAssetRequest} requestParameters Request parameters.
|
|
1159
|
+
*
|
|
1160
|
+
* @returns {Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>}
|
|
1161
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1162
|
+
* @see {@link https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset Binance API Documentation}
|
|
1163
|
+
*/
|
|
1164
|
+
queryOrderQuantityPrecisionPerAsset(requestParameters?: QueryOrderQuantityPrecisionPerAssetRequest): Promise<RestApiResponse<QueryOrderQuantityPrecisionPerAssetResponse>>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Accept the offered quote by quote ID.
|
|
1167
|
+
*
|
|
1168
|
+
* Weight: 500(UID)
|
|
1169
|
+
*
|
|
1170
|
+
* @summary Accept Quote (TRADE)
|
|
1171
|
+
* @param {AcceptQuoteRequest} requestParameters Request parameters.
|
|
1172
|
+
*
|
|
1173
|
+
* @returns {Promise<RestApiResponse<AcceptQuoteResponse>>}
|
|
1174
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1175
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Accept-Quote Binance API Documentation}
|
|
1176
|
+
*/
|
|
1177
|
+
acceptQuote(requestParameters: AcceptQuoteRequest): Promise<RestApiResponse<AcceptQuoteResponse>>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Enable users to cancel a limit order
|
|
1180
|
+
*
|
|
1181
|
+
* Weight: 200(UID)
|
|
1182
|
+
*
|
|
1183
|
+
* @summary Cancel limit order (USER_DATA)
|
|
1184
|
+
* @param {CancelLimitOrderRequest} requestParameters Request parameters.
|
|
1185
|
+
*
|
|
1186
|
+
* @returns {Promise<RestApiResponse<CancelLimitOrderResponse>>}
|
|
1187
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1188
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Cancel-Order Binance API Documentation}
|
|
1189
|
+
*/
|
|
1190
|
+
cancelLimitOrder(requestParameters: CancelLimitOrderRequest): Promise<RestApiResponse<CancelLimitOrderResponse>>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Get Convert Trade History
|
|
1193
|
+
*
|
|
1194
|
+
* The max interval between startTime and endTime is 30 days.
|
|
1195
|
+
*
|
|
1196
|
+
* Weight: 3000
|
|
1197
|
+
*
|
|
1198
|
+
* @summary Get Convert Trade History(USER_DATA)
|
|
1199
|
+
* @param {GetConvertTradeHistoryRequest} requestParameters Request parameters.
|
|
1200
|
+
*
|
|
1201
|
+
* @returns {Promise<RestApiResponse<GetConvertTradeHistoryResponse>>}
|
|
1202
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1203
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History Binance API Documentation}
|
|
1204
|
+
*/
|
|
1205
|
+
getConvertTradeHistory(requestParameters: GetConvertTradeHistoryRequest): Promise<RestApiResponse<GetConvertTradeHistoryResponse>>;
|
|
1206
|
+
/**
|
|
1207
|
+
* Query order status by order ID.
|
|
1208
|
+
*
|
|
1209
|
+
* Weight: 100(UID)
|
|
1210
|
+
*
|
|
1211
|
+
* @summary Order status(USER_DATA)
|
|
1212
|
+
* @param {OrderStatusRequest} requestParameters Request parameters.
|
|
1213
|
+
*
|
|
1214
|
+
* @returns {Promise<RestApiResponse<OrderStatusResponse>>}
|
|
1215
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1216
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Order-Status Binance API Documentation}
|
|
1217
|
+
*/
|
|
1218
|
+
orderStatus(requestParameters?: OrderStatusRequest): Promise<RestApiResponse<OrderStatusResponse>>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Enable users to place a limit order
|
|
1221
|
+
*
|
|
1222
|
+
* `baseAsset` or `quoteAsset` can be determined via `exchangeInfo` endpoint.
|
|
1223
|
+
* Limit price is defined from `baseAsset` to `quoteAsset`.
|
|
1224
|
+
* Either `baseAmount` or `quoteAmount` is used.
|
|
1225
|
+
*
|
|
1226
|
+
* Weight: 500(UID)
|
|
1227
|
+
*
|
|
1228
|
+
* @summary Place limit order (USER_DATA)
|
|
1229
|
+
* @param {PlaceLimitOrderRequest} requestParameters Request parameters.
|
|
1230
|
+
*
|
|
1231
|
+
* @returns {Promise<RestApiResponse<PlaceLimitOrderResponse>>}
|
|
1232
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1233
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Place-Order Binance API Documentation}
|
|
1234
|
+
*/
|
|
1235
|
+
placeLimitOrder(requestParameters: PlaceLimitOrderRequest): Promise<RestApiResponse<PlaceLimitOrderResponse>>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Request a quote for the requested token pairs
|
|
1238
|
+
*
|
|
1239
|
+
* Weight: 3000(UID)
|
|
1240
|
+
*
|
|
1241
|
+
* @summary Query limit open orders (USER_DATA)
|
|
1242
|
+
* @param {QueryLimitOpenOrdersRequest} requestParameters Request parameters.
|
|
1243
|
+
*
|
|
1244
|
+
* @returns {Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>}
|
|
1245
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1246
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Query-Order Binance API Documentation}
|
|
1247
|
+
*/
|
|
1248
|
+
queryLimitOpenOrders(requestParameters?: QueryLimitOpenOrdersRequest): Promise<RestApiResponse<QueryLimitOpenOrdersResponse>>;
|
|
1249
|
+
/**
|
|
1250
|
+
* Request a quote for the requested token pairs
|
|
1251
|
+
*
|
|
1252
|
+
* Either fromAmount or toAmount should be sent
|
|
1253
|
+
* `quoteId` will be returned only if you have enough funds to convert
|
|
1254
|
+
*
|
|
1255
|
+
* Weight: 200(UID)
|
|
1256
|
+
*
|
|
1257
|
+
* @summary Send Quote Request(USER_DATA)
|
|
1258
|
+
* @param {SendQuoteRequestRequest} requestParameters Request parameters.
|
|
1259
|
+
*
|
|
1260
|
+
* @returns {Promise<RestApiResponse<SendQuoteRequestResponse>>}
|
|
1261
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1262
|
+
* @see {@link https://developers.binance.com/docs/convert/trade/Send-quote-request Binance API Documentation}
|
|
1263
|
+
*/
|
|
1264
|
+
sendQuoteRequest(requestParameters: SendQuoteRequestRequest): Promise<RestApiResponse<SendQuoteRequestResponse>>;
|
|
1340
1265
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
* Binance Convert REST API
|
|
1344
|
-
*
|
|
1345
|
-
* OpenAPI Specification for the Binance Convert REST API
|
|
1346
|
-
*
|
|
1347
|
-
* The version of the OpenAPI document: 1.0.0
|
|
1348
|
-
*
|
|
1349
|
-
*
|
|
1350
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1351
|
-
* https://openapi-generator.tech
|
|
1352
|
-
* Do not edit the class manually.
|
|
1353
|
-
*/
|
|
1354
|
-
|
|
1355
|
-
type index_AcceptQuoteRequest = AcceptQuoteRequest;
|
|
1356
|
-
type index_AcceptQuoteResponse = AcceptQuoteResponse;
|
|
1357
|
-
type index_CancelLimitOrderRequest = CancelLimitOrderRequest;
|
|
1358
|
-
type index_CancelLimitOrderResponse = CancelLimitOrderResponse;
|
|
1359
|
-
type index_GetConvertTradeHistoryRequest = GetConvertTradeHistoryRequest;
|
|
1360
|
-
type index_GetConvertTradeHistoryResponse = GetConvertTradeHistoryResponse;
|
|
1361
|
-
type index_GetConvertTradeHistoryResponseListInner = GetConvertTradeHistoryResponseListInner;
|
|
1362
|
-
type index_ListAllConvertPairsRequest = ListAllConvertPairsRequest;
|
|
1363
|
-
type index_ListAllConvertPairsResponse = ListAllConvertPairsResponse;
|
|
1364
|
-
type index_ListAllConvertPairsResponseInner = ListAllConvertPairsResponseInner;
|
|
1365
|
-
type index_MarketDataApi = MarketDataApi;
|
|
1366
|
-
declare const index_MarketDataApi: typeof MarketDataApi;
|
|
1367
|
-
type index_MarketDataApiInterface = MarketDataApiInterface;
|
|
1368
|
-
type index_OrderStatusRequest = OrderStatusRequest;
|
|
1369
|
-
type index_OrderStatusResponse = OrderStatusResponse;
|
|
1370
|
-
type index_PlaceLimitOrderRequest = PlaceLimitOrderRequest;
|
|
1371
|
-
type index_PlaceLimitOrderResponse = PlaceLimitOrderResponse;
|
|
1372
|
-
type index_QueryLimitOpenOrdersRequest = QueryLimitOpenOrdersRequest;
|
|
1373
|
-
type index_QueryLimitOpenOrdersResponse = QueryLimitOpenOrdersResponse;
|
|
1374
|
-
type index_QueryLimitOpenOrdersResponseListInner = QueryLimitOpenOrdersResponseListInner;
|
|
1375
|
-
type index_QueryOrderQuantityPrecisionPerAssetRequest = QueryOrderQuantityPrecisionPerAssetRequest;
|
|
1376
|
-
type index_QueryOrderQuantityPrecisionPerAssetResponse = QueryOrderQuantityPrecisionPerAssetResponse;
|
|
1377
|
-
type index_QueryOrderQuantityPrecisionPerAssetResponseInner = QueryOrderQuantityPrecisionPerAssetResponseInner;
|
|
1378
|
-
type index_RestAPI = RestAPI;
|
|
1379
|
-
declare const index_RestAPI: typeof RestAPI;
|
|
1380
|
-
type index_SendQuoteRequestRequest = SendQuoteRequestRequest;
|
|
1381
|
-
type index_SendQuoteRequestResponse = SendQuoteRequestResponse;
|
|
1382
|
-
type index_TradeApi = TradeApi;
|
|
1383
|
-
declare const index_TradeApi: typeof TradeApi;
|
|
1384
|
-
type index_TradeApiInterface = TradeApiInterface;
|
|
1385
|
-
declare namespace index {
|
|
1386
|
-
export { type index_AcceptQuoteRequest as AcceptQuoteRequest, type index_AcceptQuoteResponse as AcceptQuoteResponse, 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 };
|
|
1266
|
+
declare namespace index_d_exports {
|
|
1267
|
+
export { AcceptQuoteRequest, AcceptQuoteResponse, CancelLimitOrderRequest, CancelLimitOrderResponse, GetConvertTradeHistoryRequest, GetConvertTradeHistoryResponse, GetConvertTradeHistoryResponseListInner, ListAllConvertPairsRequest, ListAllConvertPairsResponse, ListAllConvertPairsResponseInner, MarketDataApi, MarketDataApiInterface, OrderStatusRequest, OrderStatusResponse, PlaceLimitOrderRequest, PlaceLimitOrderResponse, QueryLimitOpenOrdersRequest, QueryLimitOpenOrdersResponse, QueryLimitOpenOrdersResponseListInner, QueryOrderQuantityPrecisionPerAssetRequest, QueryOrderQuantityPrecisionPerAssetResponse, QueryOrderQuantityPrecisionPerAssetResponseInner, RestAPI, SendQuoteRequestRequest, SendQuoteRequestResponse, TradeApi, TradeApiInterface };
|
|
1387
1268
|
}
|
|
1388
|
-
|
|
1269
|
+
//#endregion
|
|
1270
|
+
//#region src/convert.d.ts
|
|
1389
1271
|
interface ConfigurationConvert {
|
|
1390
|
-
|
|
1272
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
1391
1273
|
}
|
|
1392
1274
|
declare class Convert {
|
|
1393
|
-
|
|
1394
|
-
|
|
1275
|
+
restAPI: RestAPI;
|
|
1276
|
+
constructor(config: ConfigurationConvert);
|
|
1395
1277
|
}
|
|
1396
|
-
|
|
1397
|
-
export {
|
|
1278
|
+
//#endregion
|
|
1279
|
+
export { BadRequestError, CONVERT_REST_API_PROD_URL, ConfigurationConvert, ConnectorClientError, Convert, index_d_exports as ConvertRestAPI, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
1280
|
+
//# sourceMappingURL=index.d.ts.map
|