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