@reyaxyz/api-v2-sdk 0.301.3 → 0.301.5
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/rest/apis/MarketDataApi.js +1 -1
- package/dist/rest/apis/MarketDataApi.js.map +1 -1
- package/dist/rest/apis/OrderEntryApi.js +1 -1
- package/dist/rest/apis/OrderEntryApi.js.map +1 -1
- package/dist/rest/apis/ReferenceDataApi.js +1 -1
- package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
- package/dist/rest/apis/SpecsApi.js +1 -1
- package/dist/rest/apis/SpecsApi.js.map +1 -1
- package/dist/rest/apis/WalletDataApi.js +1 -1
- package/dist/rest/apis/WalletDataApi.js.map +1 -1
- package/dist/rest/models/index.js +5 -152
- package/dist/rest/models/index.js.map +1 -1
- package/dist/rest/runtime.js +1 -1
- package/dist/rest/runtime.js.map +1 -1
- package/dist/types/rest/apis/MarketDataApi.d.ts +1 -1
- package/dist/types/rest/apis/OrderEntryApi.d.ts +1 -1
- package/dist/types/rest/apis/ReferenceDataApi.d.ts +1 -1
- package/dist/types/rest/apis/SpecsApi.d.ts +1 -1
- package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
- package/dist/types/rest/models/index.d.ts +153 -454
- package/dist/types/rest/models/index.d.ts.map +1 -1
- package/dist/types/rest/runtime.d.ts +1 -1
- package/dist/types/websocket/types.d.ts +53 -51
- package/dist/types/websocket/types.d.ts.map +1 -1
- package/dist/websocket/types.js +4 -47
- package/dist/websocket/types.js.map +1 -1
- package/package.json +2 -2
- package/rest/apis/MarketDataApi.ts +1 -1
- package/rest/apis/OrderEntryApi.ts +1 -1
- package/rest/apis/ReferenceDataApi.ts +1 -1
- package/rest/apis/SpecsApi.ts +1 -1
- package/rest/apis/WalletDataApi.ts +1 -1
- package/rest/models/index.ts +153 -496
- package/rest/runtime.ts +1 -1
- package/websocket/types.ts +63 -77
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @interface Account
|
|
5
5
|
*/
|
|
6
6
|
export interface Account {
|
|
7
|
+
[key: string]: any | any;
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @type {number}
|
|
@@ -17,7 +18,7 @@ export interface Account {
|
|
|
17
18
|
*/
|
|
18
19
|
name: string;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
*
|
|
21
22
|
* @type {number}
|
|
22
23
|
* @memberof Account
|
|
23
24
|
*/
|
|
@@ -29,6 +30,7 @@ export interface Account {
|
|
|
29
30
|
* @interface AccountBalance
|
|
30
31
|
*/
|
|
31
32
|
export interface AccountBalance {
|
|
33
|
+
[key: string]: any | any;
|
|
32
34
|
/**
|
|
33
35
|
*
|
|
34
36
|
* @type {number}
|
|
@@ -42,7 +44,7 @@ export interface AccountBalance {
|
|
|
42
44
|
*/
|
|
43
45
|
asset: string;
|
|
44
46
|
/**
|
|
45
|
-
*
|
|
47
|
+
*
|
|
46
48
|
* @type {string}
|
|
47
49
|
* @memberof AccountBalance
|
|
48
50
|
*/
|
|
@@ -54,6 +56,7 @@ export interface AccountBalance {
|
|
|
54
56
|
* @interface AssetDefinition
|
|
55
57
|
*/
|
|
56
58
|
export interface AssetDefinition {
|
|
59
|
+
[key: string]: any | any;
|
|
57
60
|
/**
|
|
58
61
|
*
|
|
59
62
|
* @type {string}
|
|
@@ -61,25 +64,25 @@ export interface AssetDefinition {
|
|
|
61
64
|
*/
|
|
62
65
|
asset: string;
|
|
63
66
|
/**
|
|
64
|
-
*
|
|
67
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
65
68
|
* @type {string}
|
|
66
69
|
* @memberof AssetDefinition
|
|
67
70
|
*/
|
|
68
71
|
spotMarketSymbol: string;
|
|
69
72
|
/**
|
|
70
|
-
*
|
|
73
|
+
*
|
|
71
74
|
* @type {string}
|
|
72
75
|
* @memberof AssetDefinition
|
|
73
76
|
*/
|
|
74
77
|
priceHaircut: string;
|
|
75
78
|
/**
|
|
76
|
-
*
|
|
79
|
+
*
|
|
77
80
|
* @type {string}
|
|
78
81
|
* @memberof AssetDefinition
|
|
79
82
|
*/
|
|
80
83
|
liquidationDiscount: string;
|
|
81
84
|
/**
|
|
82
|
-
*
|
|
85
|
+
*
|
|
83
86
|
* @type {number}
|
|
84
87
|
* @memberof AssetDefinition
|
|
85
88
|
*/
|
|
@@ -91,6 +94,7 @@ export interface AssetDefinition {
|
|
|
91
94
|
* @interface CancelOrderRequest
|
|
92
95
|
*/
|
|
93
96
|
export interface CancelOrderRequest {
|
|
97
|
+
[key: string]: any | any;
|
|
94
98
|
/**
|
|
95
99
|
* Order ID to cancel
|
|
96
100
|
* @type {string}
|
|
@@ -110,12 +114,13 @@ export interface CancelOrderRequest {
|
|
|
110
114
|
* @interface CancelOrderResponse
|
|
111
115
|
*/
|
|
112
116
|
export interface CancelOrderResponse {
|
|
117
|
+
[key: string]: any | any;
|
|
113
118
|
/**
|
|
114
|
-
*
|
|
115
|
-
* @type {
|
|
119
|
+
*
|
|
120
|
+
* @type {OrderStatus}
|
|
116
121
|
* @memberof CancelOrderResponse
|
|
117
122
|
*/
|
|
118
|
-
status:
|
|
123
|
+
status: OrderStatus;
|
|
119
124
|
/**
|
|
120
125
|
* Cancelled order ID
|
|
121
126
|
* @type {string}
|
|
@@ -123,22 +128,13 @@ export interface CancelOrderResponse {
|
|
|
123
128
|
*/
|
|
124
129
|
orderId: string;
|
|
125
130
|
}
|
|
126
|
-
/**
|
|
127
|
-
* @export
|
|
128
|
-
*/
|
|
129
|
-
export declare const CancelOrderResponseStatusEnum: {
|
|
130
|
-
readonly OPEN: "OPEN";
|
|
131
|
-
readonly FILLED: "FILLED";
|
|
132
|
-
readonly CANCELLED: "CANCELLED";
|
|
133
|
-
readonly REJECTED: "REJECTED";
|
|
134
|
-
};
|
|
135
|
-
export type CancelOrderResponseStatusEnum = typeof CancelOrderResponseStatusEnum[keyof typeof CancelOrderResponseStatusEnum];
|
|
136
131
|
/**
|
|
137
132
|
*
|
|
138
133
|
* @export
|
|
139
134
|
* @interface CandleHistoryData
|
|
140
135
|
*/
|
|
141
136
|
export interface CandleHistoryData {
|
|
137
|
+
[key: string]: any | any;
|
|
142
138
|
/**
|
|
143
139
|
* Array of timestamps (seconds)
|
|
144
140
|
* @type {Array<number>}
|
|
@@ -176,6 +172,7 @@ export interface CandleHistoryData {
|
|
|
176
172
|
* @interface CreateOrderRequest
|
|
177
173
|
*/
|
|
178
174
|
export interface CreateOrderRequest {
|
|
175
|
+
[key: string]: any | any;
|
|
179
176
|
/**
|
|
180
177
|
*
|
|
181
178
|
* @type {number}
|
|
@@ -183,7 +180,7 @@ export interface CreateOrderRequest {
|
|
|
183
180
|
*/
|
|
184
181
|
exchangeId: number;
|
|
185
182
|
/**
|
|
186
|
-
*
|
|
183
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
187
184
|
* @type {string}
|
|
188
185
|
* @memberof CreateOrderRequest
|
|
189
186
|
*/
|
|
@@ -213,19 +210,19 @@ export interface CreateOrderRequest {
|
|
|
213
210
|
*/
|
|
214
211
|
qty?: string;
|
|
215
212
|
/**
|
|
216
|
-
*
|
|
217
|
-
* @type {
|
|
213
|
+
*
|
|
214
|
+
* @type {OrderType}
|
|
218
215
|
* @memberof CreateOrderRequest
|
|
219
216
|
*/
|
|
220
|
-
orderType:
|
|
217
|
+
orderType: OrderType;
|
|
221
218
|
/**
|
|
222
|
-
*
|
|
223
|
-
* @type {
|
|
219
|
+
*
|
|
220
|
+
* @type {TimeInForce}
|
|
224
221
|
* @memberof CreateOrderRequest
|
|
225
222
|
*/
|
|
226
|
-
timeInForce?:
|
|
223
|
+
timeInForce?: TimeInForce;
|
|
227
224
|
/**
|
|
228
|
-
*
|
|
225
|
+
*
|
|
229
226
|
* @type {string}
|
|
230
227
|
* @memberof CreateOrderRequest
|
|
231
228
|
*/
|
|
@@ -249,47 +246,31 @@ export interface CreateOrderRequest {
|
|
|
249
246
|
*/
|
|
250
247
|
nonce: string;
|
|
251
248
|
/**
|
|
252
|
-
*
|
|
249
|
+
*
|
|
253
250
|
* @type {string}
|
|
254
251
|
* @memberof CreateOrderRequest
|
|
255
252
|
*/
|
|
256
253
|
signerWallet: string;
|
|
257
254
|
/**
|
|
258
|
-
*
|
|
255
|
+
*
|
|
259
256
|
* @type {number}
|
|
260
257
|
* @memberof CreateOrderRequest
|
|
261
258
|
*/
|
|
262
259
|
expiresAfter?: number;
|
|
263
260
|
}
|
|
264
|
-
/**
|
|
265
|
-
* @export
|
|
266
|
-
*/
|
|
267
|
-
export declare const CreateOrderRequestOrderTypeEnum: {
|
|
268
|
-
readonly LIMIT: "LIMIT";
|
|
269
|
-
readonly TP: "TP";
|
|
270
|
-
readonly SL: "SL";
|
|
271
|
-
};
|
|
272
|
-
export type CreateOrderRequestOrderTypeEnum = typeof CreateOrderRequestOrderTypeEnum[keyof typeof CreateOrderRequestOrderTypeEnum];
|
|
273
|
-
/**
|
|
274
|
-
* @export
|
|
275
|
-
*/
|
|
276
|
-
export declare const CreateOrderRequestTimeInForceEnum: {
|
|
277
|
-
readonly IOC: "IOC";
|
|
278
|
-
readonly GTC: "GTC";
|
|
279
|
-
};
|
|
280
|
-
export type CreateOrderRequestTimeInForceEnum = typeof CreateOrderRequestTimeInForceEnum[keyof typeof CreateOrderRequestTimeInForceEnum];
|
|
281
261
|
/**
|
|
282
262
|
*
|
|
283
263
|
* @export
|
|
284
264
|
* @interface CreateOrderResponse
|
|
285
265
|
*/
|
|
286
266
|
export interface CreateOrderResponse {
|
|
267
|
+
[key: string]: any | any;
|
|
287
268
|
/**
|
|
288
|
-
*
|
|
289
|
-
* @type {
|
|
269
|
+
*
|
|
270
|
+
* @type {OrderStatus}
|
|
290
271
|
* @memberof CreateOrderResponse
|
|
291
272
|
*/
|
|
292
|
-
status:
|
|
273
|
+
status: OrderStatus;
|
|
293
274
|
/**
|
|
294
275
|
* Created order ID (currently generated for all order types except IOC)
|
|
295
276
|
* @type {string}
|
|
@@ -297,16 +278,6 @@ export interface CreateOrderResponse {
|
|
|
297
278
|
*/
|
|
298
279
|
orderId?: string;
|
|
299
280
|
}
|
|
300
|
-
/**
|
|
301
|
-
* @export
|
|
302
|
-
*/
|
|
303
|
-
export declare const CreateOrderResponseStatusEnum: {
|
|
304
|
-
readonly OPEN: "OPEN";
|
|
305
|
-
readonly FILLED: "FILLED";
|
|
306
|
-
readonly CANCELLED: "CANCELLED";
|
|
307
|
-
readonly REJECTED: "REJECTED";
|
|
308
|
-
};
|
|
309
|
-
export type CreateOrderResponseStatusEnum = typeof CreateOrderResponseStatusEnum[keyof typeof CreateOrderResponseStatusEnum];
|
|
310
281
|
/**
|
|
311
282
|
* Type of execution
|
|
312
283
|
* @export
|
|
@@ -323,6 +294,7 @@ export type ExecutionType = typeof ExecutionType[keyof typeof ExecutionType];
|
|
|
323
294
|
* @interface FeeTierParameters
|
|
324
295
|
*/
|
|
325
296
|
export interface FeeTierParameters {
|
|
297
|
+
[key: string]: any | any;
|
|
326
298
|
/**
|
|
327
299
|
*
|
|
328
300
|
* @type {number}
|
|
@@ -330,64 +302,57 @@ export interface FeeTierParameters {
|
|
|
330
302
|
*/
|
|
331
303
|
tierId: number;
|
|
332
304
|
/**
|
|
333
|
-
*
|
|
305
|
+
*
|
|
334
306
|
* @type {string}
|
|
335
307
|
* @memberof FeeTierParameters
|
|
336
308
|
*/
|
|
337
309
|
takerFee: string;
|
|
338
310
|
/**
|
|
339
|
-
*
|
|
311
|
+
*
|
|
340
312
|
* @type {string}
|
|
341
313
|
* @memberof FeeTierParameters
|
|
342
314
|
*/
|
|
343
315
|
makerFee: string;
|
|
344
316
|
/**
|
|
345
|
-
*
|
|
317
|
+
*
|
|
346
318
|
* @type {string}
|
|
347
319
|
* @memberof FeeTierParameters
|
|
348
320
|
*/
|
|
349
321
|
volume14d: string;
|
|
350
322
|
/**
|
|
351
|
-
*
|
|
352
|
-
* @type {
|
|
323
|
+
*
|
|
324
|
+
* @type {TierType}
|
|
353
325
|
* @memberof FeeTierParameters
|
|
354
326
|
*/
|
|
355
|
-
tierType:
|
|
327
|
+
tierType: TierType;
|
|
356
328
|
}
|
|
357
|
-
/**
|
|
358
|
-
* @export
|
|
359
|
-
*/
|
|
360
|
-
export declare const FeeTierParametersTierTypeEnum: {
|
|
361
|
-
readonly REGULAR: "REGULAR";
|
|
362
|
-
readonly VIP: "VIP";
|
|
363
|
-
};
|
|
364
|
-
export type FeeTierParametersTierTypeEnum = typeof FeeTierParametersTierTypeEnum[keyof typeof FeeTierParametersTierTypeEnum];
|
|
365
329
|
/**
|
|
366
330
|
*
|
|
367
331
|
* @export
|
|
368
332
|
* @interface GlobalFeeParameters
|
|
369
333
|
*/
|
|
370
334
|
export interface GlobalFeeParameters {
|
|
335
|
+
[key: string]: any | any;
|
|
371
336
|
/**
|
|
372
|
-
*
|
|
337
|
+
*
|
|
373
338
|
* @type {string}
|
|
374
339
|
* @memberof GlobalFeeParameters
|
|
375
340
|
*/
|
|
376
341
|
ogDiscount: string;
|
|
377
342
|
/**
|
|
378
|
-
*
|
|
343
|
+
*
|
|
379
344
|
* @type {string}
|
|
380
345
|
* @memberof GlobalFeeParameters
|
|
381
346
|
*/
|
|
382
347
|
refereeDiscount: string;
|
|
383
348
|
/**
|
|
384
|
-
*
|
|
349
|
+
*
|
|
385
350
|
* @type {string}
|
|
386
351
|
* @memberof GlobalFeeParameters
|
|
387
352
|
*/
|
|
388
353
|
referrerRebate: string;
|
|
389
354
|
/**
|
|
390
|
-
*
|
|
355
|
+
*
|
|
391
356
|
* @type {string}
|
|
392
357
|
* @memberof GlobalFeeParameters
|
|
393
358
|
*/
|
|
@@ -399,20 +364,21 @@ export interface GlobalFeeParameters {
|
|
|
399
364
|
* @interface LiquidityParameters
|
|
400
365
|
*/
|
|
401
366
|
export interface LiquidityParameters {
|
|
367
|
+
[key: string]: any | any;
|
|
402
368
|
/**
|
|
403
|
-
*
|
|
369
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
404
370
|
* @type {string}
|
|
405
371
|
* @memberof LiquidityParameters
|
|
406
372
|
*/
|
|
407
373
|
symbol: string;
|
|
408
374
|
/**
|
|
409
|
-
*
|
|
375
|
+
*
|
|
410
376
|
* @type {string}
|
|
411
377
|
* @memberof LiquidityParameters
|
|
412
378
|
*/
|
|
413
379
|
depth: string;
|
|
414
380
|
/**
|
|
415
|
-
*
|
|
381
|
+
*
|
|
416
382
|
* @type {string}
|
|
417
383
|
* @memberof LiquidityParameters
|
|
418
384
|
*/
|
|
@@ -424,14 +390,15 @@ export interface LiquidityParameters {
|
|
|
424
390
|
* @interface MarketDefinition
|
|
425
391
|
*/
|
|
426
392
|
export interface MarketDefinition {
|
|
393
|
+
[key: string]: any | any;
|
|
427
394
|
/**
|
|
428
|
-
*
|
|
395
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
429
396
|
* @type {string}
|
|
430
397
|
* @memberof MarketDefinition
|
|
431
398
|
*/
|
|
432
399
|
symbol: string;
|
|
433
400
|
/**
|
|
434
|
-
*
|
|
401
|
+
*
|
|
435
402
|
* @type {number}
|
|
436
403
|
* @memberof MarketDefinition
|
|
437
404
|
*/
|
|
@@ -443,37 +410,37 @@ export interface MarketDefinition {
|
|
|
443
410
|
*/
|
|
444
411
|
minOrderQty: string;
|
|
445
412
|
/**
|
|
446
|
-
*
|
|
413
|
+
*
|
|
447
414
|
* @type {string}
|
|
448
415
|
* @memberof MarketDefinition
|
|
449
416
|
*/
|
|
450
417
|
qtyStepSize: string;
|
|
451
418
|
/**
|
|
452
|
-
*
|
|
419
|
+
*
|
|
453
420
|
* @type {string}
|
|
454
421
|
* @memberof MarketDefinition
|
|
455
422
|
*/
|
|
456
423
|
tickSize: string;
|
|
457
424
|
/**
|
|
458
|
-
*
|
|
425
|
+
*
|
|
459
426
|
* @type {string}
|
|
460
427
|
* @memberof MarketDefinition
|
|
461
428
|
*/
|
|
462
429
|
liquidationMarginParameter: string;
|
|
463
430
|
/**
|
|
464
|
-
*
|
|
431
|
+
*
|
|
465
432
|
* @type {string}
|
|
466
433
|
* @memberof MarketDefinition
|
|
467
434
|
*/
|
|
468
435
|
initialMarginParameter: string;
|
|
469
436
|
/**
|
|
470
|
-
*
|
|
437
|
+
*
|
|
471
438
|
* @type {number}
|
|
472
439
|
* @memberof MarketDefinition
|
|
473
440
|
*/
|
|
474
441
|
maxLeverage: number;
|
|
475
442
|
/**
|
|
476
|
-
*
|
|
443
|
+
*
|
|
477
444
|
* @type {string}
|
|
478
445
|
* @memberof MarketDefinition
|
|
479
446
|
*/
|
|
@@ -485,56 +452,57 @@ export interface MarketDefinition {
|
|
|
485
452
|
* @interface MarketSummary
|
|
486
453
|
*/
|
|
487
454
|
export interface MarketSummary {
|
|
455
|
+
[key: string]: any | any;
|
|
488
456
|
/**
|
|
489
|
-
*
|
|
457
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
490
458
|
* @type {string}
|
|
491
459
|
* @memberof MarketSummary
|
|
492
460
|
*/
|
|
493
461
|
symbol: string;
|
|
494
462
|
/**
|
|
495
|
-
*
|
|
463
|
+
*
|
|
496
464
|
* @type {number}
|
|
497
465
|
* @memberof MarketSummary
|
|
498
466
|
*/
|
|
499
467
|
updatedAt: number;
|
|
500
468
|
/**
|
|
501
|
-
*
|
|
469
|
+
*
|
|
502
470
|
* @type {string}
|
|
503
471
|
* @memberof MarketSummary
|
|
504
472
|
*/
|
|
505
473
|
longOiQty: string;
|
|
506
474
|
/**
|
|
507
|
-
*
|
|
475
|
+
*
|
|
508
476
|
* @type {string}
|
|
509
477
|
* @memberof MarketSummary
|
|
510
478
|
*/
|
|
511
479
|
shortOiQty: string;
|
|
512
480
|
/**
|
|
513
|
-
*
|
|
481
|
+
*
|
|
514
482
|
* @type {string}
|
|
515
483
|
* @memberof MarketSummary
|
|
516
484
|
*/
|
|
517
485
|
oiQty: string;
|
|
518
486
|
/**
|
|
519
|
-
*
|
|
487
|
+
*
|
|
520
488
|
* @type {string}
|
|
521
489
|
* @memberof MarketSummary
|
|
522
490
|
*/
|
|
523
491
|
fundingRate: string;
|
|
524
492
|
/**
|
|
525
|
-
*
|
|
493
|
+
*
|
|
526
494
|
* @type {string}
|
|
527
495
|
* @memberof MarketSummary
|
|
528
496
|
*/
|
|
529
497
|
longFundingValue: string;
|
|
530
498
|
/**
|
|
531
|
-
*
|
|
499
|
+
*
|
|
532
500
|
* @type {string}
|
|
533
501
|
* @memberof MarketSummary
|
|
534
502
|
*/
|
|
535
503
|
shortFundingValue: string;
|
|
536
504
|
/**
|
|
537
|
-
*
|
|
505
|
+
*
|
|
538
506
|
* @type {string}
|
|
539
507
|
* @memberof MarketSummary
|
|
540
508
|
*/
|
|
@@ -552,19 +520,19 @@ export interface MarketSummary {
|
|
|
552
520
|
*/
|
|
553
521
|
pxChange24h?: string;
|
|
554
522
|
/**
|
|
555
|
-
*
|
|
523
|
+
*
|
|
556
524
|
* @type {string}
|
|
557
525
|
* @memberof MarketSummary
|
|
558
526
|
*/
|
|
559
527
|
throttledOraclePrice?: string;
|
|
560
528
|
/**
|
|
561
|
-
*
|
|
529
|
+
*
|
|
562
530
|
* @type {string}
|
|
563
531
|
* @memberof MarketSummary
|
|
564
532
|
*/
|
|
565
533
|
throttledPoolPrice?: string;
|
|
566
534
|
/**
|
|
567
|
-
*
|
|
535
|
+
*
|
|
568
536
|
* @type {number}
|
|
569
537
|
* @memberof MarketSummary
|
|
570
538
|
*/
|
|
@@ -576,6 +544,7 @@ export interface MarketSummary {
|
|
|
576
544
|
* @interface Order
|
|
577
545
|
*/
|
|
578
546
|
export interface Order {
|
|
547
|
+
[key: string]: any | any;
|
|
579
548
|
/**
|
|
580
549
|
*
|
|
581
550
|
* @type {number}
|
|
@@ -583,7 +552,7 @@ export interface Order {
|
|
|
583
552
|
*/
|
|
584
553
|
exchangeId: number;
|
|
585
554
|
/**
|
|
586
|
-
*
|
|
555
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
587
556
|
* @type {string}
|
|
588
557
|
* @memberof Order
|
|
589
558
|
*/
|
|
@@ -607,17 +576,17 @@ export interface Order {
|
|
|
607
576
|
*/
|
|
608
577
|
qty?: string;
|
|
609
578
|
/**
|
|
610
|
-
*
|
|
579
|
+
*
|
|
611
580
|
* @type {string}
|
|
612
581
|
* @memberof Order
|
|
613
582
|
*/
|
|
614
583
|
execQty?: string;
|
|
615
584
|
/**
|
|
616
|
-
*
|
|
617
|
-
* @type {
|
|
585
|
+
*
|
|
586
|
+
* @type {Side}
|
|
618
587
|
* @memberof Order
|
|
619
588
|
*/
|
|
620
|
-
side:
|
|
589
|
+
side: Side;
|
|
621
590
|
/**
|
|
622
591
|
*
|
|
623
592
|
* @type {string}
|
|
@@ -625,23 +594,23 @@ export interface Order {
|
|
|
625
594
|
*/
|
|
626
595
|
limitPx: string;
|
|
627
596
|
/**
|
|
628
|
-
*
|
|
629
|
-
* @type {
|
|
597
|
+
*
|
|
598
|
+
* @type {OrderType}
|
|
630
599
|
* @memberof Order
|
|
631
600
|
*/
|
|
632
|
-
orderType:
|
|
601
|
+
orderType: OrderType;
|
|
633
602
|
/**
|
|
634
|
-
*
|
|
603
|
+
*
|
|
635
604
|
* @type {string}
|
|
636
605
|
* @memberof Order
|
|
637
606
|
*/
|
|
638
607
|
triggerPx?: string;
|
|
639
608
|
/**
|
|
640
|
-
*
|
|
641
|
-
* @type {
|
|
609
|
+
*
|
|
610
|
+
* @type {TimeInForce}
|
|
642
611
|
* @memberof Order
|
|
643
612
|
*/
|
|
644
|
-
timeInForce?:
|
|
613
|
+
timeInForce?: TimeInForce;
|
|
645
614
|
/**
|
|
646
615
|
* Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.
|
|
647
616
|
* @type {boolean}
|
|
@@ -649,59 +618,24 @@ export interface Order {
|
|
|
649
618
|
*/
|
|
650
619
|
reduceOnly?: boolean;
|
|
651
620
|
/**
|
|
652
|
-
*
|
|
653
|
-
* @type {
|
|
621
|
+
*
|
|
622
|
+
* @type {OrderStatus}
|
|
654
623
|
* @memberof Order
|
|
655
624
|
*/
|
|
656
|
-
status:
|
|
625
|
+
status: OrderStatus;
|
|
657
626
|
/**
|
|
658
|
-
*
|
|
627
|
+
*
|
|
659
628
|
* @type {number}
|
|
660
629
|
* @memberof Order
|
|
661
630
|
*/
|
|
662
631
|
createdAt: number;
|
|
663
632
|
/**
|
|
664
|
-
*
|
|
633
|
+
*
|
|
665
634
|
* @type {number}
|
|
666
635
|
* @memberof Order
|
|
667
636
|
*/
|
|
668
637
|
lastUpdateAt: number;
|
|
669
638
|
}
|
|
670
|
-
/**
|
|
671
|
-
* @export
|
|
672
|
-
*/
|
|
673
|
-
export declare const OrderSideEnum: {
|
|
674
|
-
readonly B: "B";
|
|
675
|
-
readonly A: "A";
|
|
676
|
-
};
|
|
677
|
-
export type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];
|
|
678
|
-
/**
|
|
679
|
-
* @export
|
|
680
|
-
*/
|
|
681
|
-
export declare const OrderOrderTypeEnum: {
|
|
682
|
-
readonly LIMIT: "LIMIT";
|
|
683
|
-
readonly TP: "TP";
|
|
684
|
-
readonly SL: "SL";
|
|
685
|
-
};
|
|
686
|
-
export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum];
|
|
687
|
-
/**
|
|
688
|
-
* @export
|
|
689
|
-
*/
|
|
690
|
-
export declare const OrderTimeInForceEnum: {
|
|
691
|
-
readonly IOC: "IOC";
|
|
692
|
-
readonly GTC: "GTC";
|
|
693
|
-
};
|
|
694
|
-
export type OrderTimeInForceEnum = typeof OrderTimeInForceEnum[keyof typeof OrderTimeInForceEnum];
|
|
695
|
-
/**
|
|
696
|
-
* @export
|
|
697
|
-
*/
|
|
698
|
-
export declare const OrderStatusEnum: {
|
|
699
|
-
readonly OPEN: "OPEN";
|
|
700
|
-
readonly FILLED: "FILLED";
|
|
701
|
-
readonly CANCELLED: "CANCELLED";
|
|
702
|
-
readonly REJECTED: "REJECTED";
|
|
703
|
-
};
|
|
704
|
-
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
705
639
|
/**
|
|
706
640
|
* Order status
|
|
707
641
|
* @export
|
|
@@ -726,31 +660,32 @@ export type OrderType = typeof OrderType[keyof typeof OrderType];
|
|
|
726
660
|
/**
|
|
727
661
|
*
|
|
728
662
|
* @export
|
|
729
|
-
* @interface
|
|
663
|
+
* @interface PaginationMeta
|
|
730
664
|
*/
|
|
731
|
-
export interface
|
|
665
|
+
export interface PaginationMeta {
|
|
666
|
+
[key: string]: any | any;
|
|
732
667
|
/**
|
|
733
|
-
*
|
|
668
|
+
*
|
|
734
669
|
* @type {number}
|
|
735
|
-
* @memberof
|
|
670
|
+
* @memberof PaginationMeta
|
|
736
671
|
*/
|
|
737
672
|
limit: number;
|
|
738
673
|
/**
|
|
739
|
-
*
|
|
674
|
+
*
|
|
740
675
|
* @type {number}
|
|
741
|
-
* @memberof
|
|
676
|
+
* @memberof PaginationMeta
|
|
742
677
|
*/
|
|
743
678
|
count: number;
|
|
744
679
|
/**
|
|
745
|
-
*
|
|
680
|
+
*
|
|
746
681
|
* @type {number}
|
|
747
|
-
* @memberof
|
|
682
|
+
* @memberof PaginationMeta
|
|
748
683
|
*/
|
|
749
684
|
endTime?: number;
|
|
750
685
|
/**
|
|
751
|
-
*
|
|
686
|
+
*
|
|
752
687
|
* @type {number}
|
|
753
|
-
* @memberof
|
|
688
|
+
* @memberof PaginationMeta
|
|
754
689
|
*/
|
|
755
690
|
startTime?: number;
|
|
756
691
|
}
|
|
@@ -760,6 +695,7 @@ export interface PaginationParameters {
|
|
|
760
695
|
* @interface PerpExecution
|
|
761
696
|
*/
|
|
762
697
|
export interface PerpExecution {
|
|
698
|
+
[key: string]: any | any;
|
|
763
699
|
/**
|
|
764
700
|
*
|
|
765
701
|
* @type {number}
|
|
@@ -767,7 +703,7 @@ export interface PerpExecution {
|
|
|
767
703
|
*/
|
|
768
704
|
exchangeId: number;
|
|
769
705
|
/**
|
|
770
|
-
*
|
|
706
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
771
707
|
* @type {string}
|
|
772
708
|
* @memberof PerpExecution
|
|
773
709
|
*/
|
|
@@ -785,11 +721,11 @@ export interface PerpExecution {
|
|
|
785
721
|
*/
|
|
786
722
|
qty: string;
|
|
787
723
|
/**
|
|
788
|
-
*
|
|
789
|
-
* @type {
|
|
724
|
+
*
|
|
725
|
+
* @type {Side}
|
|
790
726
|
* @memberof PerpExecution
|
|
791
727
|
*/
|
|
792
|
-
side:
|
|
728
|
+
side: Side;
|
|
793
729
|
/**
|
|
794
730
|
*
|
|
795
731
|
* @type {string}
|
|
@@ -803,174 +739,43 @@ export interface PerpExecution {
|
|
|
803
739
|
*/
|
|
804
740
|
fee: string;
|
|
805
741
|
/**
|
|
806
|
-
*
|
|
807
|
-
* @type {
|
|
742
|
+
*
|
|
743
|
+
* @type {ExecutionType}
|
|
808
744
|
* @memberof PerpExecution
|
|
809
745
|
*/
|
|
810
|
-
type:
|
|
746
|
+
type: ExecutionType;
|
|
811
747
|
/**
|
|
812
|
-
*
|
|
748
|
+
*
|
|
813
749
|
* @type {number}
|
|
814
750
|
* @memberof PerpExecution
|
|
815
751
|
*/
|
|
816
752
|
timestamp: number;
|
|
817
753
|
/**
|
|
818
|
-
*
|
|
754
|
+
*
|
|
819
755
|
* @type {number}
|
|
820
756
|
* @memberof PerpExecution
|
|
821
757
|
*/
|
|
822
758
|
sequenceNumber: number;
|
|
823
759
|
}
|
|
824
|
-
/**
|
|
825
|
-
* @export
|
|
826
|
-
*/
|
|
827
|
-
export declare const PerpExecutionSideEnum: {
|
|
828
|
-
readonly B: "B";
|
|
829
|
-
readonly A: "A";
|
|
830
|
-
};
|
|
831
|
-
export type PerpExecutionSideEnum = typeof PerpExecutionSideEnum[keyof typeof PerpExecutionSideEnum];
|
|
832
|
-
/**
|
|
833
|
-
* @export
|
|
834
|
-
*/
|
|
835
|
-
export declare const PerpExecutionTypeEnum: {
|
|
836
|
-
readonly ORDER_MATCH: "ORDER_MATCH";
|
|
837
|
-
readonly LIQUIDATION: "LIQUIDATION";
|
|
838
|
-
readonly ADL: "ADL";
|
|
839
|
-
};
|
|
840
|
-
export type PerpExecutionTypeEnum = typeof PerpExecutionTypeEnum[keyof typeof PerpExecutionTypeEnum];
|
|
841
760
|
/**
|
|
842
761
|
*
|
|
843
762
|
* @export
|
|
844
763
|
* @interface PerpExecutionList
|
|
845
764
|
*/
|
|
846
765
|
export interface PerpExecutionList {
|
|
766
|
+
[key: string]: any | any;
|
|
847
767
|
/**
|
|
848
768
|
*
|
|
849
|
-
* @type {Array<
|
|
769
|
+
* @type {Array<PerpExecution>}
|
|
850
770
|
* @memberof PerpExecutionList
|
|
851
771
|
*/
|
|
852
|
-
data: Array<
|
|
772
|
+
data: Array<PerpExecution>;
|
|
853
773
|
/**
|
|
854
774
|
*
|
|
855
|
-
* @type {
|
|
775
|
+
* @type {PaginationMeta}
|
|
856
776
|
* @memberof PerpExecutionList
|
|
857
777
|
*/
|
|
858
|
-
meta:
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
*
|
|
862
|
-
* @export
|
|
863
|
-
* @interface PerpExecutionListDataInner
|
|
864
|
-
*/
|
|
865
|
-
export interface PerpExecutionListDataInner {
|
|
866
|
-
/**
|
|
867
|
-
*
|
|
868
|
-
* @type {number}
|
|
869
|
-
* @memberof PerpExecutionListDataInner
|
|
870
|
-
*/
|
|
871
|
-
exchangeId: number;
|
|
872
|
-
/**
|
|
873
|
-
*
|
|
874
|
-
* @type {string}
|
|
875
|
-
* @memberof PerpExecutionListDataInner
|
|
876
|
-
*/
|
|
877
|
-
symbol: string;
|
|
878
|
-
/**
|
|
879
|
-
*
|
|
880
|
-
* @type {number}
|
|
881
|
-
* @memberof PerpExecutionListDataInner
|
|
882
|
-
*/
|
|
883
|
-
accountId: number;
|
|
884
|
-
/**
|
|
885
|
-
*
|
|
886
|
-
* @type {string}
|
|
887
|
-
* @memberof PerpExecutionListDataInner
|
|
888
|
-
*/
|
|
889
|
-
qty: string;
|
|
890
|
-
/**
|
|
891
|
-
* Order side (B = Buy/Bid, A = Ask/Sell)
|
|
892
|
-
* @type {string}
|
|
893
|
-
* @memberof PerpExecutionListDataInner
|
|
894
|
-
*/
|
|
895
|
-
side: PerpExecutionListDataInnerSideEnum;
|
|
896
|
-
/**
|
|
897
|
-
*
|
|
898
|
-
* @type {string}
|
|
899
|
-
* @memberof PerpExecutionListDataInner
|
|
900
|
-
*/
|
|
901
|
-
price: string;
|
|
902
|
-
/**
|
|
903
|
-
*
|
|
904
|
-
* @type {string}
|
|
905
|
-
* @memberof PerpExecutionListDataInner
|
|
906
|
-
*/
|
|
907
|
-
fee: string;
|
|
908
|
-
/**
|
|
909
|
-
* Type of execution
|
|
910
|
-
* @type {string}
|
|
911
|
-
* @memberof PerpExecutionListDataInner
|
|
912
|
-
*/
|
|
913
|
-
type: PerpExecutionListDataInnerTypeEnum;
|
|
914
|
-
/**
|
|
915
|
-
* Execution timestamp (milliseconds)
|
|
916
|
-
* @type {number}
|
|
917
|
-
* @memberof PerpExecutionListDataInner
|
|
918
|
-
*/
|
|
919
|
-
timestamp: number;
|
|
920
|
-
/**
|
|
921
|
-
* Execution sequence number, increases by 1 for every perp execution in reya chain
|
|
922
|
-
* @type {number}
|
|
923
|
-
* @memberof PerpExecutionListDataInner
|
|
924
|
-
*/
|
|
925
|
-
sequenceNumber: number;
|
|
926
|
-
}
|
|
927
|
-
/**
|
|
928
|
-
* @export
|
|
929
|
-
*/
|
|
930
|
-
export declare const PerpExecutionListDataInnerSideEnum: {
|
|
931
|
-
readonly B: "B";
|
|
932
|
-
readonly A: "A";
|
|
933
|
-
};
|
|
934
|
-
export type PerpExecutionListDataInnerSideEnum = typeof PerpExecutionListDataInnerSideEnum[keyof typeof PerpExecutionListDataInnerSideEnum];
|
|
935
|
-
/**
|
|
936
|
-
* @export
|
|
937
|
-
*/
|
|
938
|
-
export declare const PerpExecutionListDataInnerTypeEnum: {
|
|
939
|
-
readonly ORDER_MATCH: "ORDER_MATCH";
|
|
940
|
-
readonly LIQUIDATION: "LIQUIDATION";
|
|
941
|
-
readonly ADL: "ADL";
|
|
942
|
-
};
|
|
943
|
-
export type PerpExecutionListDataInnerTypeEnum = typeof PerpExecutionListDataInnerTypeEnum[keyof typeof PerpExecutionListDataInnerTypeEnum];
|
|
944
|
-
/**
|
|
945
|
-
*
|
|
946
|
-
* @export
|
|
947
|
-
* @interface PerpExecutionListMeta
|
|
948
|
-
*/
|
|
949
|
-
export interface PerpExecutionListMeta {
|
|
950
|
-
/**
|
|
951
|
-
* Number of items requested
|
|
952
|
-
* @type {number}
|
|
953
|
-
* @memberof PerpExecutionListMeta
|
|
954
|
-
*/
|
|
955
|
-
limit: number;
|
|
956
|
-
/**
|
|
957
|
-
* Number of items returned
|
|
958
|
-
* @type {number}
|
|
959
|
-
* @memberof PerpExecutionListMeta
|
|
960
|
-
*/
|
|
961
|
-
count: number;
|
|
962
|
-
/**
|
|
963
|
-
* Timestamp of last result, in milliseconds
|
|
964
|
-
* @type {number}
|
|
965
|
-
* @memberof PerpExecutionListMeta
|
|
966
|
-
*/
|
|
967
|
-
endTime?: number;
|
|
968
|
-
/**
|
|
969
|
-
* Timestamp of first result, in milliseconds
|
|
970
|
-
* @type {number}
|
|
971
|
-
* @memberof PerpExecutionListMeta
|
|
972
|
-
*/
|
|
973
|
-
startTime?: number;
|
|
778
|
+
meta: PaginationMeta;
|
|
974
779
|
}
|
|
975
780
|
/**
|
|
976
781
|
*
|
|
@@ -978,6 +783,7 @@ export interface PerpExecutionListMeta {
|
|
|
978
783
|
* @interface Position
|
|
979
784
|
*/
|
|
980
785
|
export interface Position {
|
|
786
|
+
[key: string]: any | any;
|
|
981
787
|
/**
|
|
982
788
|
*
|
|
983
789
|
* @type {number}
|
|
@@ -985,7 +791,7 @@ export interface Position {
|
|
|
985
791
|
*/
|
|
986
792
|
exchangeId: number;
|
|
987
793
|
/**
|
|
988
|
-
*
|
|
794
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
989
795
|
* @type {string}
|
|
990
796
|
* @memberof Position
|
|
991
797
|
*/
|
|
@@ -1003,11 +809,11 @@ export interface Position {
|
|
|
1003
809
|
*/
|
|
1004
810
|
qty: string;
|
|
1005
811
|
/**
|
|
1006
|
-
*
|
|
1007
|
-
* @type {
|
|
812
|
+
*
|
|
813
|
+
* @type {Side}
|
|
1008
814
|
* @memberof Position
|
|
1009
815
|
*/
|
|
1010
|
-
side:
|
|
816
|
+
side: Side;
|
|
1011
817
|
/**
|
|
1012
818
|
*
|
|
1013
819
|
* @type {string}
|
|
@@ -1015,52 +821,45 @@ export interface Position {
|
|
|
1015
821
|
*/
|
|
1016
822
|
avgEntryPrice: string;
|
|
1017
823
|
/**
|
|
1018
|
-
*
|
|
824
|
+
*
|
|
1019
825
|
* @type {string}
|
|
1020
826
|
* @memberof Position
|
|
1021
827
|
*/
|
|
1022
828
|
avgEntryFundingValue: string;
|
|
1023
829
|
/**
|
|
1024
|
-
*
|
|
830
|
+
*
|
|
1025
831
|
* @type {number}
|
|
1026
832
|
* @memberof Position
|
|
1027
833
|
*/
|
|
1028
834
|
lastTradeSequenceNumber: number;
|
|
1029
835
|
}
|
|
1030
|
-
/**
|
|
1031
|
-
* @export
|
|
1032
|
-
*/
|
|
1033
|
-
export declare const PositionSideEnum: {
|
|
1034
|
-
readonly B: "B";
|
|
1035
|
-
readonly A: "A";
|
|
1036
|
-
};
|
|
1037
|
-
export type PositionSideEnum = typeof PositionSideEnum[keyof typeof PositionSideEnum];
|
|
1038
836
|
/**
|
|
1039
837
|
*
|
|
1040
838
|
* @export
|
|
1041
839
|
* @interface Price
|
|
1042
840
|
*/
|
|
1043
841
|
export interface Price {
|
|
842
|
+
[key: string]: any | any;
|
|
1044
843
|
/**
|
|
1045
|
-
*
|
|
844
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
1046
845
|
* @type {string}
|
|
1047
846
|
* @memberof Price
|
|
1048
847
|
*/
|
|
1049
848
|
symbol: string;
|
|
1050
849
|
/**
|
|
1051
|
-
*
|
|
850
|
+
*
|
|
1052
851
|
* @type {string}
|
|
1053
852
|
* @memberof Price
|
|
1054
853
|
*/
|
|
1055
854
|
oraclePrice: string;
|
|
1056
855
|
/**
|
|
1057
|
-
*
|
|
856
|
+
*
|
|
1058
857
|
* @type {string}
|
|
1059
858
|
* @memberof Price
|
|
1060
859
|
*/
|
|
1061
860
|
poolPrice?: string;
|
|
1062
861
|
/**
|
|
1063
|
-
*
|
|
862
|
+
*
|
|
1064
863
|
* @type {number}
|
|
1065
864
|
* @memberof Price
|
|
1066
865
|
*/
|
|
@@ -1072,12 +871,13 @@ export interface Price {
|
|
|
1072
871
|
* @interface RequestError
|
|
1073
872
|
*/
|
|
1074
873
|
export interface RequestError {
|
|
874
|
+
[key: string]: any | any;
|
|
1075
875
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @type {
|
|
876
|
+
*
|
|
877
|
+
* @type {RequestErrorCode}
|
|
1078
878
|
* @memberof RequestError
|
|
1079
879
|
*/
|
|
1080
|
-
error:
|
|
880
|
+
error: RequestErrorCode;
|
|
1081
881
|
/**
|
|
1082
882
|
* Human-readable error message
|
|
1083
883
|
* @type {string}
|
|
@@ -1085,18 +885,6 @@ export interface RequestError {
|
|
|
1085
885
|
*/
|
|
1086
886
|
message: string;
|
|
1087
887
|
}
|
|
1088
|
-
/**
|
|
1089
|
-
* @export
|
|
1090
|
-
*/
|
|
1091
|
-
export declare const RequestErrorErrorEnum: {
|
|
1092
|
-
readonly SYMBOL_NOT_FOUND: "SYMBOL_NOT_FOUND";
|
|
1093
|
-
readonly NO_ACCOUNTS_FOUND: "NO_ACCOUNTS_FOUND";
|
|
1094
|
-
readonly NO_PRICES_FOUND_FOR_SYMBOL: "NO_PRICES_FOUND_FOR_SYMBOL";
|
|
1095
|
-
readonly INPUT_VALIDATION_ERROR: "INPUT_VALIDATION_ERROR";
|
|
1096
|
-
readonly CREATE_ORDER_OTHER_ERROR: "CREATE_ORDER_OTHER_ERROR";
|
|
1097
|
-
readonly CANCEL_ORDER_OTHER_ERROR: "CANCEL_ORDER_OTHER_ERROR";
|
|
1098
|
-
};
|
|
1099
|
-
export type RequestErrorErrorEnum = typeof RequestErrorErrorEnum[keyof typeof RequestErrorErrorEnum];
|
|
1100
888
|
/**
|
|
1101
889
|
* Standardized error codes for API responses
|
|
1102
890
|
* @export
|
|
@@ -1116,12 +904,13 @@ export type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestError
|
|
|
1116
904
|
* @interface ServerError
|
|
1117
905
|
*/
|
|
1118
906
|
export interface ServerError {
|
|
907
|
+
[key: string]: any | any;
|
|
1119
908
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
* @type {
|
|
909
|
+
*
|
|
910
|
+
* @type {ServerErrorCode}
|
|
1122
911
|
* @memberof ServerError
|
|
1123
912
|
*/
|
|
1124
|
-
error:
|
|
913
|
+
error: ServerErrorCode;
|
|
1125
914
|
/**
|
|
1126
915
|
* Human-readable error message
|
|
1127
916
|
* @type {string}
|
|
@@ -1129,13 +918,6 @@ export interface ServerError {
|
|
|
1129
918
|
*/
|
|
1130
919
|
message: string;
|
|
1131
920
|
}
|
|
1132
|
-
/**
|
|
1133
|
-
* @export
|
|
1134
|
-
*/
|
|
1135
|
-
export declare const ServerErrorErrorEnum: {
|
|
1136
|
-
readonly INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR";
|
|
1137
|
-
};
|
|
1138
|
-
export type ServerErrorErrorEnum = typeof ServerErrorErrorEnum[keyof typeof ServerErrorErrorEnum];
|
|
1139
921
|
/**
|
|
1140
922
|
* Standardized error codes for API responses
|
|
1141
923
|
* @export
|
|
@@ -1159,6 +941,7 @@ export type Side = typeof Side[keyof typeof Side];
|
|
|
1159
941
|
* @interface SpotExecution
|
|
1160
942
|
*/
|
|
1161
943
|
export interface SpotExecution {
|
|
944
|
+
[key: string]: any | any;
|
|
1162
945
|
/**
|
|
1163
946
|
*
|
|
1164
947
|
* @type {number}
|
|
@@ -1166,7 +949,7 @@ export interface SpotExecution {
|
|
|
1166
949
|
*/
|
|
1167
950
|
exchangeId: number;
|
|
1168
951
|
/**
|
|
1169
|
-
*
|
|
952
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
1170
953
|
* @type {string}
|
|
1171
954
|
* @memberof SpotExecution
|
|
1172
955
|
*/
|
|
@@ -1178,11 +961,11 @@ export interface SpotExecution {
|
|
|
1178
961
|
*/
|
|
1179
962
|
accountId: number;
|
|
1180
963
|
/**
|
|
1181
|
-
*
|
|
1182
|
-
* @type {
|
|
964
|
+
*
|
|
965
|
+
* @type {Side}
|
|
1183
966
|
* @memberof SpotExecution
|
|
1184
967
|
*/
|
|
1185
|
-
side:
|
|
968
|
+
side: Side;
|
|
1186
969
|
/**
|
|
1187
970
|
*
|
|
1188
971
|
* @type {string}
|
|
@@ -1202,132 +985,47 @@ export interface SpotExecution {
|
|
|
1202
985
|
*/
|
|
1203
986
|
fee: string;
|
|
1204
987
|
/**
|
|
1205
|
-
*
|
|
1206
|
-
* @type {
|
|
988
|
+
*
|
|
989
|
+
* @type {ExecutionType}
|
|
1207
990
|
* @memberof SpotExecution
|
|
1208
991
|
*/
|
|
1209
|
-
type:
|
|
992
|
+
type: ExecutionType;
|
|
1210
993
|
/**
|
|
1211
|
-
*
|
|
994
|
+
*
|
|
1212
995
|
* @type {number}
|
|
1213
996
|
* @memberof SpotExecution
|
|
1214
997
|
*/
|
|
1215
998
|
timestamp: number;
|
|
1216
999
|
}
|
|
1217
|
-
/**
|
|
1218
|
-
* @export
|
|
1219
|
-
*/
|
|
1220
|
-
export declare const SpotExecutionSideEnum: {
|
|
1221
|
-
readonly B: "B";
|
|
1222
|
-
readonly A: "A";
|
|
1223
|
-
};
|
|
1224
|
-
export type SpotExecutionSideEnum = typeof SpotExecutionSideEnum[keyof typeof SpotExecutionSideEnum];
|
|
1225
|
-
/**
|
|
1226
|
-
* @export
|
|
1227
|
-
*/
|
|
1228
|
-
export declare const SpotExecutionTypeEnum: {
|
|
1229
|
-
readonly ORDER_MATCH: "ORDER_MATCH";
|
|
1230
|
-
readonly LIQUIDATION: "LIQUIDATION";
|
|
1231
|
-
readonly ADL: "ADL";
|
|
1232
|
-
};
|
|
1233
|
-
export type SpotExecutionTypeEnum = typeof SpotExecutionTypeEnum[keyof typeof SpotExecutionTypeEnum];
|
|
1234
1000
|
/**
|
|
1235
1001
|
*
|
|
1236
1002
|
* @export
|
|
1237
1003
|
* @interface SpotExecutionList
|
|
1238
1004
|
*/
|
|
1239
1005
|
export interface SpotExecutionList {
|
|
1006
|
+
[key: string]: any | any;
|
|
1240
1007
|
/**
|
|
1241
1008
|
*
|
|
1242
|
-
* @type {Array<
|
|
1009
|
+
* @type {Array<SpotExecution>}
|
|
1243
1010
|
* @memberof SpotExecutionList
|
|
1244
1011
|
*/
|
|
1245
|
-
data: Array<
|
|
1012
|
+
data: Array<SpotExecution>;
|
|
1246
1013
|
/**
|
|
1247
1014
|
*
|
|
1248
|
-
* @type {
|
|
1015
|
+
* @type {PaginationMeta}
|
|
1249
1016
|
* @memberof SpotExecutionList
|
|
1250
1017
|
*/
|
|
1251
|
-
meta:
|
|
1018
|
+
meta: PaginationMeta;
|
|
1252
1019
|
}
|
|
1253
1020
|
/**
|
|
1254
|
-
*
|
|
1021
|
+
* Fee tier type (REGULAR = Standard tier, VIP = VIP tier)
|
|
1255
1022
|
* @export
|
|
1256
|
-
* @interface SpotExecutionListDataInner
|
|
1257
1023
|
*/
|
|
1258
|
-
export
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
* @type {number}
|
|
1262
|
-
* @memberof SpotExecutionListDataInner
|
|
1263
|
-
*/
|
|
1264
|
-
exchangeId: number;
|
|
1265
|
-
/**
|
|
1266
|
-
*
|
|
1267
|
-
* @type {string}
|
|
1268
|
-
* @memberof SpotExecutionListDataInner
|
|
1269
|
-
*/
|
|
1270
|
-
symbol: string;
|
|
1271
|
-
/**
|
|
1272
|
-
*
|
|
1273
|
-
* @type {number}
|
|
1274
|
-
* @memberof SpotExecutionListDataInner
|
|
1275
|
-
*/
|
|
1276
|
-
accountId: number;
|
|
1277
|
-
/**
|
|
1278
|
-
* Order side (B = Buy/Bid, A = Ask/Sell)
|
|
1279
|
-
* @type {string}
|
|
1280
|
-
* @memberof SpotExecutionListDataInner
|
|
1281
|
-
*/
|
|
1282
|
-
side: SpotExecutionListDataInnerSideEnum;
|
|
1283
|
-
/**
|
|
1284
|
-
*
|
|
1285
|
-
* @type {string}
|
|
1286
|
-
* @memberof SpotExecutionListDataInner
|
|
1287
|
-
*/
|
|
1288
|
-
qty: string;
|
|
1289
|
-
/**
|
|
1290
|
-
*
|
|
1291
|
-
* @type {string}
|
|
1292
|
-
* @memberof SpotExecutionListDataInner
|
|
1293
|
-
*/
|
|
1294
|
-
price?: string;
|
|
1295
|
-
/**
|
|
1296
|
-
*
|
|
1297
|
-
* @type {string}
|
|
1298
|
-
* @memberof SpotExecutionListDataInner
|
|
1299
|
-
*/
|
|
1300
|
-
fee: string;
|
|
1301
|
-
/**
|
|
1302
|
-
* Type of execution
|
|
1303
|
-
* @type {string}
|
|
1304
|
-
* @memberof SpotExecutionListDataInner
|
|
1305
|
-
*/
|
|
1306
|
-
type: SpotExecutionListDataInnerTypeEnum;
|
|
1307
|
-
/**
|
|
1308
|
-
* Execution timestamp (milliseconds)
|
|
1309
|
-
* @type {number}
|
|
1310
|
-
* @memberof SpotExecutionListDataInner
|
|
1311
|
-
*/
|
|
1312
|
-
timestamp: number;
|
|
1313
|
-
}
|
|
1314
|
-
/**
|
|
1315
|
-
* @export
|
|
1316
|
-
*/
|
|
1317
|
-
export declare const SpotExecutionListDataInnerSideEnum: {
|
|
1318
|
-
readonly B: "B";
|
|
1319
|
-
readonly A: "A";
|
|
1320
|
-
};
|
|
1321
|
-
export type SpotExecutionListDataInnerSideEnum = typeof SpotExecutionListDataInnerSideEnum[keyof typeof SpotExecutionListDataInnerSideEnum];
|
|
1322
|
-
/**
|
|
1323
|
-
* @export
|
|
1324
|
-
*/
|
|
1325
|
-
export declare const SpotExecutionListDataInnerTypeEnum: {
|
|
1326
|
-
readonly ORDER_MATCH: "ORDER_MATCH";
|
|
1327
|
-
readonly LIQUIDATION: "LIQUIDATION";
|
|
1328
|
-
readonly ADL: "ADL";
|
|
1024
|
+
export declare const TierType: {
|
|
1025
|
+
readonly REGULAR: "REGULAR";
|
|
1026
|
+
readonly VIP: "VIP";
|
|
1329
1027
|
};
|
|
1330
|
-
export type
|
|
1028
|
+
export type TierType = typeof TierType[keyof typeof TierType];
|
|
1331
1029
|
/**
|
|
1332
1030
|
* Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel)
|
|
1333
1031
|
* @export
|
|
@@ -1343,8 +1041,9 @@ export type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];
|
|
|
1343
1041
|
* @interface WalletConfiguration
|
|
1344
1042
|
*/
|
|
1345
1043
|
export interface WalletConfiguration {
|
|
1044
|
+
[key: string]: any | any;
|
|
1346
1045
|
/**
|
|
1347
|
-
*
|
|
1046
|
+
*
|
|
1348
1047
|
* @type {number}
|
|
1349
1048
|
* @memberof WalletConfiguration
|
|
1350
1049
|
*/
|