@reyaxyz/api-v2-sdk 0.301.3 → 0.301.4
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 +128 -397
- 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 +128 -439
- package/rest/runtime.ts +1 -1
- package/websocket/types.ts +63 -77
package/rest/models/index.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* @interface Account
|
|
7
7
|
*/
|
|
8
8
|
export interface Account {
|
|
9
|
+
[key: string]: any | any;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @type {number}
|
|
@@ -31,6 +32,7 @@ export interface Account {
|
|
|
31
32
|
* @interface AccountBalance
|
|
32
33
|
*/
|
|
33
34
|
export interface AccountBalance {
|
|
35
|
+
[key: string]: any | any;
|
|
34
36
|
/**
|
|
35
37
|
*
|
|
36
38
|
* @type {number}
|
|
@@ -56,6 +58,7 @@ export interface AccountBalance {
|
|
|
56
58
|
* @interface AssetDefinition
|
|
57
59
|
*/
|
|
58
60
|
export interface AssetDefinition {
|
|
61
|
+
[key: string]: any | any;
|
|
59
62
|
/**
|
|
60
63
|
*
|
|
61
64
|
* @type {string}
|
|
@@ -63,7 +66,7 @@ export interface AssetDefinition {
|
|
|
63
66
|
*/
|
|
64
67
|
asset: string;
|
|
65
68
|
/**
|
|
66
|
-
*
|
|
69
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
67
70
|
* @type {string}
|
|
68
71
|
* @memberof AssetDefinition
|
|
69
72
|
*/
|
|
@@ -93,6 +96,7 @@ export interface AssetDefinition {
|
|
|
93
96
|
* @interface CancelOrderRequest
|
|
94
97
|
*/
|
|
95
98
|
export interface CancelOrderRequest {
|
|
99
|
+
[key: string]: any | any;
|
|
96
100
|
/**
|
|
97
101
|
* Order ID to cancel
|
|
98
102
|
* @type {string}
|
|
@@ -112,12 +116,13 @@ export interface CancelOrderRequest {
|
|
|
112
116
|
* @interface CancelOrderResponse
|
|
113
117
|
*/
|
|
114
118
|
export interface CancelOrderResponse {
|
|
119
|
+
[key: string]: any | any;
|
|
115
120
|
/**
|
|
116
|
-
*
|
|
117
|
-
* @type {
|
|
121
|
+
*
|
|
122
|
+
* @type {OrderStatus}
|
|
118
123
|
* @memberof CancelOrderResponse
|
|
119
124
|
*/
|
|
120
|
-
status:
|
|
125
|
+
status: OrderStatus;
|
|
121
126
|
/**
|
|
122
127
|
* Cancelled order ID
|
|
123
128
|
* @type {string}
|
|
@@ -125,25 +130,13 @@ export interface CancelOrderResponse {
|
|
|
125
130
|
*/
|
|
126
131
|
orderId: string;
|
|
127
132
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @export
|
|
132
|
-
*/
|
|
133
|
-
export const CancelOrderResponseStatusEnum = {
|
|
134
|
-
OPEN: 'OPEN',
|
|
135
|
-
FILLED: 'FILLED',
|
|
136
|
-
CANCELLED: 'CANCELLED',
|
|
137
|
-
REJECTED: 'REJECTED'
|
|
138
|
-
} as const;
|
|
139
|
-
export type CancelOrderResponseStatusEnum = typeof CancelOrderResponseStatusEnum[keyof typeof CancelOrderResponseStatusEnum];
|
|
140
|
-
|
|
141
133
|
/**
|
|
142
134
|
*
|
|
143
135
|
* @export
|
|
144
136
|
* @interface CandleHistoryData
|
|
145
137
|
*/
|
|
146
138
|
export interface CandleHistoryData {
|
|
139
|
+
[key: string]: any | any;
|
|
147
140
|
/**
|
|
148
141
|
* Array of timestamps (seconds)
|
|
149
142
|
* @type {Array<number>}
|
|
@@ -181,6 +174,7 @@ export interface CandleHistoryData {
|
|
|
181
174
|
* @interface CreateOrderRequest
|
|
182
175
|
*/
|
|
183
176
|
export interface CreateOrderRequest {
|
|
177
|
+
[key: string]: any | any;
|
|
184
178
|
/**
|
|
185
179
|
*
|
|
186
180
|
* @type {number}
|
|
@@ -188,7 +182,7 @@ export interface CreateOrderRequest {
|
|
|
188
182
|
*/
|
|
189
183
|
exchangeId: number;
|
|
190
184
|
/**
|
|
191
|
-
*
|
|
185
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
192
186
|
* @type {string}
|
|
193
187
|
* @memberof CreateOrderRequest
|
|
194
188
|
*/
|
|
@@ -218,17 +212,17 @@ export interface CreateOrderRequest {
|
|
|
218
212
|
*/
|
|
219
213
|
qty?: string;
|
|
220
214
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {
|
|
215
|
+
*
|
|
216
|
+
* @type {OrderType}
|
|
223
217
|
* @memberof CreateOrderRequest
|
|
224
218
|
*/
|
|
225
|
-
orderType:
|
|
219
|
+
orderType: OrderType;
|
|
226
220
|
/**
|
|
227
|
-
*
|
|
228
|
-
* @type {
|
|
221
|
+
*
|
|
222
|
+
* @type {TimeInForce}
|
|
229
223
|
* @memberof CreateOrderRequest
|
|
230
224
|
*/
|
|
231
|
-
timeInForce?:
|
|
225
|
+
timeInForce?: TimeInForce;
|
|
232
226
|
/**
|
|
233
227
|
* Trigger price, only for TP/SL orders
|
|
234
228
|
* @type {string}
|
|
@@ -254,7 +248,7 @@ export interface CreateOrderRequest {
|
|
|
254
248
|
*/
|
|
255
249
|
nonce: string;
|
|
256
250
|
/**
|
|
257
|
-
*
|
|
251
|
+
* Ethereum wallet address
|
|
258
252
|
* @type {string}
|
|
259
253
|
* @memberof CreateOrderRequest
|
|
260
254
|
*/
|
|
@@ -266,39 +260,19 @@ export interface CreateOrderRequest {
|
|
|
266
260
|
*/
|
|
267
261
|
expiresAfter?: number;
|
|
268
262
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @export
|
|
273
|
-
*/
|
|
274
|
-
export const CreateOrderRequestOrderTypeEnum = {
|
|
275
|
-
LIMIT: 'LIMIT',
|
|
276
|
-
TP: 'TP',
|
|
277
|
-
SL: 'SL'
|
|
278
|
-
} as const;
|
|
279
|
-
export type CreateOrderRequestOrderTypeEnum = typeof CreateOrderRequestOrderTypeEnum[keyof typeof CreateOrderRequestOrderTypeEnum];
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* @export
|
|
283
|
-
*/
|
|
284
|
-
export const CreateOrderRequestTimeInForceEnum = {
|
|
285
|
-
IOC: 'IOC',
|
|
286
|
-
GTC: 'GTC'
|
|
287
|
-
} as const;
|
|
288
|
-
export type CreateOrderRequestTimeInForceEnum = typeof CreateOrderRequestTimeInForceEnum[keyof typeof CreateOrderRequestTimeInForceEnum];
|
|
289
|
-
|
|
290
263
|
/**
|
|
291
264
|
*
|
|
292
265
|
* @export
|
|
293
266
|
* @interface CreateOrderResponse
|
|
294
267
|
*/
|
|
295
268
|
export interface CreateOrderResponse {
|
|
269
|
+
[key: string]: any | any;
|
|
296
270
|
/**
|
|
297
|
-
*
|
|
298
|
-
* @type {
|
|
271
|
+
*
|
|
272
|
+
* @type {OrderStatus}
|
|
299
273
|
* @memberof CreateOrderResponse
|
|
300
274
|
*/
|
|
301
|
-
status:
|
|
275
|
+
status: OrderStatus;
|
|
302
276
|
/**
|
|
303
277
|
* Created order ID (currently generated for all order types except IOC)
|
|
304
278
|
* @type {string}
|
|
@@ -307,19 +281,6 @@ export interface CreateOrderResponse {
|
|
|
307
281
|
orderId?: string;
|
|
308
282
|
}
|
|
309
283
|
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* @export
|
|
313
|
-
*/
|
|
314
|
-
export const CreateOrderResponseStatusEnum = {
|
|
315
|
-
OPEN: 'OPEN',
|
|
316
|
-
FILLED: 'FILLED',
|
|
317
|
-
CANCELLED: 'CANCELLED',
|
|
318
|
-
REJECTED: 'REJECTED'
|
|
319
|
-
} as const;
|
|
320
|
-
export type CreateOrderResponseStatusEnum = typeof CreateOrderResponseStatusEnum[keyof typeof CreateOrderResponseStatusEnum];
|
|
321
|
-
|
|
322
|
-
|
|
323
284
|
/**
|
|
324
285
|
* Type of execution
|
|
325
286
|
* @export
|
|
@@ -337,6 +298,7 @@ export type ExecutionType = typeof ExecutionType[keyof typeof ExecutionType];
|
|
|
337
298
|
* @interface FeeTierParameters
|
|
338
299
|
*/
|
|
339
300
|
export interface FeeTierParameters {
|
|
301
|
+
[key: string]: any | any;
|
|
340
302
|
/**
|
|
341
303
|
*
|
|
342
304
|
* @type {number}
|
|
@@ -362,29 +324,19 @@ export interface FeeTierParameters {
|
|
|
362
324
|
*/
|
|
363
325
|
volume14d: string;
|
|
364
326
|
/**
|
|
365
|
-
*
|
|
366
|
-
* @type {
|
|
327
|
+
*
|
|
328
|
+
* @type {TierType}
|
|
367
329
|
* @memberof FeeTierParameters
|
|
368
330
|
*/
|
|
369
|
-
tierType:
|
|
331
|
+
tierType: TierType;
|
|
370
332
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @export
|
|
375
|
-
*/
|
|
376
|
-
export const FeeTierParametersTierTypeEnum = {
|
|
377
|
-
REGULAR: 'REGULAR',
|
|
378
|
-
VIP: 'VIP'
|
|
379
|
-
} as const;
|
|
380
|
-
export type FeeTierParametersTierTypeEnum = typeof FeeTierParametersTierTypeEnum[keyof typeof FeeTierParametersTierTypeEnum];
|
|
381
|
-
|
|
382
333
|
/**
|
|
383
334
|
*
|
|
384
335
|
* @export
|
|
385
336
|
* @interface GlobalFeeParameters
|
|
386
337
|
*/
|
|
387
338
|
export interface GlobalFeeParameters {
|
|
339
|
+
[key: string]: any | any;
|
|
388
340
|
/**
|
|
389
341
|
* OG user discount
|
|
390
342
|
* @type {string}
|
|
@@ -416,8 +368,9 @@ export interface GlobalFeeParameters {
|
|
|
416
368
|
* @interface LiquidityParameters
|
|
417
369
|
*/
|
|
418
370
|
export interface LiquidityParameters {
|
|
371
|
+
[key: string]: any | any;
|
|
419
372
|
/**
|
|
420
|
-
*
|
|
373
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
421
374
|
* @type {string}
|
|
422
375
|
* @memberof LiquidityParameters
|
|
423
376
|
*/
|
|
@@ -441,8 +394,9 @@ export interface LiquidityParameters {
|
|
|
441
394
|
* @interface MarketDefinition
|
|
442
395
|
*/
|
|
443
396
|
export interface MarketDefinition {
|
|
397
|
+
[key: string]: any | any;
|
|
444
398
|
/**
|
|
445
|
-
*
|
|
399
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
446
400
|
* @type {string}
|
|
447
401
|
* @memberof MarketDefinition
|
|
448
402
|
*/
|
|
@@ -502,8 +456,9 @@ export interface MarketDefinition {
|
|
|
502
456
|
* @interface MarketSummary
|
|
503
457
|
*/
|
|
504
458
|
export interface MarketSummary {
|
|
459
|
+
[key: string]: any | any;
|
|
505
460
|
/**
|
|
506
|
-
*
|
|
461
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
507
462
|
* @type {string}
|
|
508
463
|
* @memberof MarketSummary
|
|
509
464
|
*/
|
|
@@ -593,6 +548,7 @@ export interface MarketSummary {
|
|
|
593
548
|
* @interface Order
|
|
594
549
|
*/
|
|
595
550
|
export interface Order {
|
|
551
|
+
[key: string]: any | any;
|
|
596
552
|
/**
|
|
597
553
|
*
|
|
598
554
|
* @type {number}
|
|
@@ -600,7 +556,7 @@ export interface Order {
|
|
|
600
556
|
*/
|
|
601
557
|
exchangeId: number;
|
|
602
558
|
/**
|
|
603
|
-
*
|
|
559
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
604
560
|
* @type {string}
|
|
605
561
|
* @memberof Order
|
|
606
562
|
*/
|
|
@@ -630,11 +586,11 @@ export interface Order {
|
|
|
630
586
|
*/
|
|
631
587
|
execQty?: string;
|
|
632
588
|
/**
|
|
633
|
-
*
|
|
634
|
-
* @type {
|
|
589
|
+
*
|
|
590
|
+
* @type {Side}
|
|
635
591
|
* @memberof Order
|
|
636
592
|
*/
|
|
637
|
-
side:
|
|
593
|
+
side: Side;
|
|
638
594
|
/**
|
|
639
595
|
*
|
|
640
596
|
* @type {string}
|
|
@@ -642,11 +598,11 @@ export interface Order {
|
|
|
642
598
|
*/
|
|
643
599
|
limitPx: string;
|
|
644
600
|
/**
|
|
645
|
-
*
|
|
646
|
-
* @type {
|
|
601
|
+
*
|
|
602
|
+
* @type {OrderType}
|
|
647
603
|
* @memberof Order
|
|
648
604
|
*/
|
|
649
|
-
orderType:
|
|
605
|
+
orderType: OrderType;
|
|
650
606
|
/**
|
|
651
607
|
* Price at which TP/SL orders will be triggered, should not be set for other order types.
|
|
652
608
|
* @type {string}
|
|
@@ -654,11 +610,11 @@ export interface Order {
|
|
|
654
610
|
*/
|
|
655
611
|
triggerPx?: string;
|
|
656
612
|
/**
|
|
657
|
-
*
|
|
658
|
-
* @type {
|
|
613
|
+
*
|
|
614
|
+
* @type {TimeInForce}
|
|
659
615
|
* @memberof Order
|
|
660
616
|
*/
|
|
661
|
-
timeInForce?:
|
|
617
|
+
timeInForce?: TimeInForce;
|
|
662
618
|
/**
|
|
663
619
|
* Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.
|
|
664
620
|
* @type {boolean}
|
|
@@ -666,11 +622,11 @@ export interface Order {
|
|
|
666
622
|
*/
|
|
667
623
|
reduceOnly?: boolean;
|
|
668
624
|
/**
|
|
669
|
-
*
|
|
670
|
-
* @type {
|
|
625
|
+
*
|
|
626
|
+
* @type {OrderStatus}
|
|
671
627
|
* @memberof Order
|
|
672
628
|
*/
|
|
673
|
-
status:
|
|
629
|
+
status: OrderStatus;
|
|
674
630
|
/**
|
|
675
631
|
* Creation timestamp (milliseconds)
|
|
676
632
|
* @type {number}
|
|
@@ -685,47 +641,6 @@ export interface Order {
|
|
|
685
641
|
lastUpdateAt: number;
|
|
686
642
|
}
|
|
687
643
|
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @export
|
|
691
|
-
*/
|
|
692
|
-
export const OrderSideEnum = {
|
|
693
|
-
B: 'B',
|
|
694
|
-
A: 'A'
|
|
695
|
-
} as const;
|
|
696
|
-
export type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* @export
|
|
700
|
-
*/
|
|
701
|
-
export const OrderOrderTypeEnum = {
|
|
702
|
-
LIMIT: 'LIMIT',
|
|
703
|
-
TP: 'TP',
|
|
704
|
-
SL: 'SL'
|
|
705
|
-
} as const;
|
|
706
|
-
export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum];
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* @export
|
|
710
|
-
*/
|
|
711
|
-
export const OrderTimeInForceEnum = {
|
|
712
|
-
IOC: 'IOC',
|
|
713
|
-
GTC: 'GTC'
|
|
714
|
-
} as const;
|
|
715
|
-
export type OrderTimeInForceEnum = typeof OrderTimeInForceEnum[keyof typeof OrderTimeInForceEnum];
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* @export
|
|
719
|
-
*/
|
|
720
|
-
export const OrderStatusEnum = {
|
|
721
|
-
OPEN: 'OPEN',
|
|
722
|
-
FILLED: 'FILLED',
|
|
723
|
-
CANCELLED: 'CANCELLED',
|
|
724
|
-
REJECTED: 'REJECTED'
|
|
725
|
-
} as const;
|
|
726
|
-
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
727
|
-
|
|
728
|
-
|
|
729
644
|
/**
|
|
730
645
|
* Order status
|
|
731
646
|
* @export
|
|
@@ -750,12 +665,45 @@ export const OrderType = {
|
|
|
750
665
|
} as const;
|
|
751
666
|
export type OrderType = typeof OrderType[keyof typeof OrderType];
|
|
752
667
|
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @export
|
|
671
|
+
* @interface PaginationMeta
|
|
672
|
+
*/
|
|
673
|
+
export interface PaginationMeta {
|
|
674
|
+
[key: string]: any | any;
|
|
675
|
+
/**
|
|
676
|
+
* Number of items requested
|
|
677
|
+
* @type {number}
|
|
678
|
+
* @memberof PaginationMeta
|
|
679
|
+
*/
|
|
680
|
+
limit: number;
|
|
681
|
+
/**
|
|
682
|
+
* Number of items returned
|
|
683
|
+
* @type {number}
|
|
684
|
+
* @memberof PaginationMeta
|
|
685
|
+
*/
|
|
686
|
+
count: number;
|
|
687
|
+
/**
|
|
688
|
+
* Timestamp of last result, in milliseconds
|
|
689
|
+
* @type {number}
|
|
690
|
+
* @memberof PaginationMeta
|
|
691
|
+
*/
|
|
692
|
+
endTime?: number;
|
|
693
|
+
/**
|
|
694
|
+
* Timestamp of first result, in milliseconds
|
|
695
|
+
* @type {number}
|
|
696
|
+
* @memberof PaginationMeta
|
|
697
|
+
*/
|
|
698
|
+
startTime?: number;
|
|
699
|
+
}
|
|
753
700
|
/**
|
|
754
701
|
*
|
|
755
702
|
* @export
|
|
756
703
|
* @interface PaginationParameters
|
|
757
704
|
*/
|
|
758
705
|
export interface PaginationParameters {
|
|
706
|
+
[key: string]: any | any;
|
|
759
707
|
/**
|
|
760
708
|
* Number of items requested
|
|
761
709
|
* @type {number}
|
|
@@ -787,6 +735,7 @@ export interface PaginationParameters {
|
|
|
787
735
|
* @interface PerpExecution
|
|
788
736
|
*/
|
|
789
737
|
export interface PerpExecution {
|
|
738
|
+
[key: string]: any | any;
|
|
790
739
|
/**
|
|
791
740
|
*
|
|
792
741
|
* @type {number}
|
|
@@ -794,7 +743,7 @@ export interface PerpExecution {
|
|
|
794
743
|
*/
|
|
795
744
|
exchangeId: number;
|
|
796
745
|
/**
|
|
797
|
-
*
|
|
746
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
798
747
|
* @type {string}
|
|
799
748
|
* @memberof PerpExecution
|
|
800
749
|
*/
|
|
@@ -812,11 +761,11 @@ export interface PerpExecution {
|
|
|
812
761
|
*/
|
|
813
762
|
qty: string;
|
|
814
763
|
/**
|
|
815
|
-
*
|
|
816
|
-
* @type {
|
|
764
|
+
*
|
|
765
|
+
* @type {Side}
|
|
817
766
|
* @memberof PerpExecution
|
|
818
767
|
*/
|
|
819
|
-
side:
|
|
768
|
+
side: Side;
|
|
820
769
|
/**
|
|
821
770
|
*
|
|
822
771
|
* @type {string}
|
|
@@ -830,11 +779,11 @@ export interface PerpExecution {
|
|
|
830
779
|
*/
|
|
831
780
|
fee: string;
|
|
832
781
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @type {
|
|
782
|
+
*
|
|
783
|
+
* @type {ExecutionType}
|
|
835
784
|
* @memberof PerpExecution
|
|
836
785
|
*/
|
|
837
|
-
type:
|
|
786
|
+
type: ExecutionType;
|
|
838
787
|
/**
|
|
839
788
|
* Execution timestamp (milliseconds)
|
|
840
789
|
* @type {number}
|
|
@@ -848,164 +797,25 @@ export interface PerpExecution {
|
|
|
848
797
|
*/
|
|
849
798
|
sequenceNumber: number;
|
|
850
799
|
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* @export
|
|
855
|
-
*/
|
|
856
|
-
export const PerpExecutionSideEnum = {
|
|
857
|
-
B: 'B',
|
|
858
|
-
A: 'A'
|
|
859
|
-
} as const;
|
|
860
|
-
export type PerpExecutionSideEnum = typeof PerpExecutionSideEnum[keyof typeof PerpExecutionSideEnum];
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* @export
|
|
864
|
-
*/
|
|
865
|
-
export const PerpExecutionTypeEnum = {
|
|
866
|
-
ORDER_MATCH: 'ORDER_MATCH',
|
|
867
|
-
LIQUIDATION: 'LIQUIDATION',
|
|
868
|
-
ADL: 'ADL'
|
|
869
|
-
} as const;
|
|
870
|
-
export type PerpExecutionTypeEnum = typeof PerpExecutionTypeEnum[keyof typeof PerpExecutionTypeEnum];
|
|
871
|
-
|
|
872
800
|
/**
|
|
873
801
|
*
|
|
874
802
|
* @export
|
|
875
803
|
* @interface PerpExecutionList
|
|
876
804
|
*/
|
|
877
805
|
export interface PerpExecutionList {
|
|
806
|
+
[key: string]: any | any;
|
|
878
807
|
/**
|
|
879
808
|
*
|
|
880
|
-
* @type {Array<
|
|
809
|
+
* @type {Array<PerpExecution>}
|
|
881
810
|
* @memberof PerpExecutionList
|
|
882
811
|
*/
|
|
883
|
-
data: Array<
|
|
812
|
+
data: Array<PerpExecution>;
|
|
884
813
|
/**
|
|
885
814
|
*
|
|
886
|
-
* @type {
|
|
815
|
+
* @type {PaginationMeta}
|
|
887
816
|
* @memberof PerpExecutionList
|
|
888
817
|
*/
|
|
889
|
-
meta:
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
*
|
|
893
|
-
* @export
|
|
894
|
-
* @interface PerpExecutionListDataInner
|
|
895
|
-
*/
|
|
896
|
-
export interface PerpExecutionListDataInner {
|
|
897
|
-
/**
|
|
898
|
-
*
|
|
899
|
-
* @type {number}
|
|
900
|
-
* @memberof PerpExecutionListDataInner
|
|
901
|
-
*/
|
|
902
|
-
exchangeId: number;
|
|
903
|
-
/**
|
|
904
|
-
*
|
|
905
|
-
* @type {string}
|
|
906
|
-
* @memberof PerpExecutionListDataInner
|
|
907
|
-
*/
|
|
908
|
-
symbol: string;
|
|
909
|
-
/**
|
|
910
|
-
*
|
|
911
|
-
* @type {number}
|
|
912
|
-
* @memberof PerpExecutionListDataInner
|
|
913
|
-
*/
|
|
914
|
-
accountId: number;
|
|
915
|
-
/**
|
|
916
|
-
*
|
|
917
|
-
* @type {string}
|
|
918
|
-
* @memberof PerpExecutionListDataInner
|
|
919
|
-
*/
|
|
920
|
-
qty: string;
|
|
921
|
-
/**
|
|
922
|
-
* Order side (B = Buy/Bid, A = Ask/Sell)
|
|
923
|
-
* @type {string}
|
|
924
|
-
* @memberof PerpExecutionListDataInner
|
|
925
|
-
*/
|
|
926
|
-
side: PerpExecutionListDataInnerSideEnum;
|
|
927
|
-
/**
|
|
928
|
-
*
|
|
929
|
-
* @type {string}
|
|
930
|
-
* @memberof PerpExecutionListDataInner
|
|
931
|
-
*/
|
|
932
|
-
price: string;
|
|
933
|
-
/**
|
|
934
|
-
*
|
|
935
|
-
* @type {string}
|
|
936
|
-
* @memberof PerpExecutionListDataInner
|
|
937
|
-
*/
|
|
938
|
-
fee: string;
|
|
939
|
-
/**
|
|
940
|
-
* Type of execution
|
|
941
|
-
* @type {string}
|
|
942
|
-
* @memberof PerpExecutionListDataInner
|
|
943
|
-
*/
|
|
944
|
-
type: PerpExecutionListDataInnerTypeEnum;
|
|
945
|
-
/**
|
|
946
|
-
* Execution timestamp (milliseconds)
|
|
947
|
-
* @type {number}
|
|
948
|
-
* @memberof PerpExecutionListDataInner
|
|
949
|
-
*/
|
|
950
|
-
timestamp: number;
|
|
951
|
-
/**
|
|
952
|
-
* Execution sequence number, increases by 1 for every perp execution in reya chain
|
|
953
|
-
* @type {number}
|
|
954
|
-
* @memberof PerpExecutionListDataInner
|
|
955
|
-
*/
|
|
956
|
-
sequenceNumber: number;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* @export
|
|
962
|
-
*/
|
|
963
|
-
export const PerpExecutionListDataInnerSideEnum = {
|
|
964
|
-
B: 'B',
|
|
965
|
-
A: 'A'
|
|
966
|
-
} as const;
|
|
967
|
-
export type PerpExecutionListDataInnerSideEnum = typeof PerpExecutionListDataInnerSideEnum[keyof typeof PerpExecutionListDataInnerSideEnum];
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* @export
|
|
971
|
-
*/
|
|
972
|
-
export const PerpExecutionListDataInnerTypeEnum = {
|
|
973
|
-
ORDER_MATCH: 'ORDER_MATCH',
|
|
974
|
-
LIQUIDATION: 'LIQUIDATION',
|
|
975
|
-
ADL: 'ADL'
|
|
976
|
-
} as const;
|
|
977
|
-
export type PerpExecutionListDataInnerTypeEnum = typeof PerpExecutionListDataInnerTypeEnum[keyof typeof PerpExecutionListDataInnerTypeEnum];
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
*
|
|
981
|
-
* @export
|
|
982
|
-
* @interface PerpExecutionListMeta
|
|
983
|
-
*/
|
|
984
|
-
export interface PerpExecutionListMeta {
|
|
985
|
-
/**
|
|
986
|
-
* Number of items requested
|
|
987
|
-
* @type {number}
|
|
988
|
-
* @memberof PerpExecutionListMeta
|
|
989
|
-
*/
|
|
990
|
-
limit: number;
|
|
991
|
-
/**
|
|
992
|
-
* Number of items returned
|
|
993
|
-
* @type {number}
|
|
994
|
-
* @memberof PerpExecutionListMeta
|
|
995
|
-
*/
|
|
996
|
-
count: number;
|
|
997
|
-
/**
|
|
998
|
-
* Timestamp of last result, in milliseconds
|
|
999
|
-
* @type {number}
|
|
1000
|
-
* @memberof PerpExecutionListMeta
|
|
1001
|
-
*/
|
|
1002
|
-
endTime?: number;
|
|
1003
|
-
/**
|
|
1004
|
-
* Timestamp of first result, in milliseconds
|
|
1005
|
-
* @type {number}
|
|
1006
|
-
* @memberof PerpExecutionListMeta
|
|
1007
|
-
*/
|
|
1008
|
-
startTime?: number;
|
|
818
|
+
meta: PaginationMeta;
|
|
1009
819
|
}
|
|
1010
820
|
/**
|
|
1011
821
|
*
|
|
@@ -1013,6 +823,7 @@ export interface PerpExecutionListMeta {
|
|
|
1013
823
|
* @interface Position
|
|
1014
824
|
*/
|
|
1015
825
|
export interface Position {
|
|
826
|
+
[key: string]: any | any;
|
|
1016
827
|
/**
|
|
1017
828
|
*
|
|
1018
829
|
* @type {number}
|
|
@@ -1020,7 +831,7 @@ export interface Position {
|
|
|
1020
831
|
*/
|
|
1021
832
|
exchangeId: number;
|
|
1022
833
|
/**
|
|
1023
|
-
*
|
|
834
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
1024
835
|
* @type {string}
|
|
1025
836
|
* @memberof Position
|
|
1026
837
|
*/
|
|
@@ -1038,11 +849,11 @@ export interface Position {
|
|
|
1038
849
|
*/
|
|
1039
850
|
qty: string;
|
|
1040
851
|
/**
|
|
1041
|
-
*
|
|
1042
|
-
* @type {
|
|
852
|
+
*
|
|
853
|
+
* @type {Side}
|
|
1043
854
|
* @memberof Position
|
|
1044
855
|
*/
|
|
1045
|
-
side:
|
|
856
|
+
side: Side;
|
|
1046
857
|
/**
|
|
1047
858
|
*
|
|
1048
859
|
* @type {string}
|
|
@@ -1062,25 +873,15 @@ export interface Position {
|
|
|
1062
873
|
*/
|
|
1063
874
|
lastTradeSequenceNumber: number;
|
|
1064
875
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
/**
|
|
1068
|
-
* @export
|
|
1069
|
-
*/
|
|
1070
|
-
export const PositionSideEnum = {
|
|
1071
|
-
B: 'B',
|
|
1072
|
-
A: 'A'
|
|
1073
|
-
} as const;
|
|
1074
|
-
export type PositionSideEnum = typeof PositionSideEnum[keyof typeof PositionSideEnum];
|
|
1075
|
-
|
|
1076
876
|
/**
|
|
1077
877
|
*
|
|
1078
878
|
* @export
|
|
1079
879
|
* @interface Price
|
|
1080
880
|
*/
|
|
1081
881
|
export interface Price {
|
|
882
|
+
[key: string]: any | any;
|
|
1082
883
|
/**
|
|
1083
|
-
*
|
|
884
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
1084
885
|
* @type {string}
|
|
1085
886
|
* @memberof Price
|
|
1086
887
|
*/
|
|
@@ -1110,12 +911,13 @@ export interface Price {
|
|
|
1110
911
|
* @interface RequestError
|
|
1111
912
|
*/
|
|
1112
913
|
export interface RequestError {
|
|
914
|
+
[key: string]: any | any;
|
|
1113
915
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
* @type {
|
|
916
|
+
*
|
|
917
|
+
* @type {RequestErrorCode}
|
|
1116
918
|
* @memberof RequestError
|
|
1117
919
|
*/
|
|
1118
|
-
error:
|
|
920
|
+
error: RequestErrorCode;
|
|
1119
921
|
/**
|
|
1120
922
|
* Human-readable error message
|
|
1121
923
|
* @type {string}
|
|
@@ -1124,21 +926,6 @@ export interface RequestError {
|
|
|
1124
926
|
message: string;
|
|
1125
927
|
}
|
|
1126
928
|
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* @export
|
|
1130
|
-
*/
|
|
1131
|
-
export const RequestErrorErrorEnum = {
|
|
1132
|
-
SYMBOL_NOT_FOUND: 'SYMBOL_NOT_FOUND',
|
|
1133
|
-
NO_ACCOUNTS_FOUND: 'NO_ACCOUNTS_FOUND',
|
|
1134
|
-
NO_PRICES_FOUND_FOR_SYMBOL: 'NO_PRICES_FOUND_FOR_SYMBOL',
|
|
1135
|
-
INPUT_VALIDATION_ERROR: 'INPUT_VALIDATION_ERROR',
|
|
1136
|
-
CREATE_ORDER_OTHER_ERROR: 'CREATE_ORDER_OTHER_ERROR',
|
|
1137
|
-
CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR'
|
|
1138
|
-
} as const;
|
|
1139
|
-
export type RequestErrorErrorEnum = typeof RequestErrorErrorEnum[keyof typeof RequestErrorErrorEnum];
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
929
|
/**
|
|
1143
930
|
* Standardized error codes for API responses
|
|
1144
931
|
* @export
|
|
@@ -1159,12 +946,13 @@ export type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestError
|
|
|
1159
946
|
* @interface ServerError
|
|
1160
947
|
*/
|
|
1161
948
|
export interface ServerError {
|
|
949
|
+
[key: string]: any | any;
|
|
1162
950
|
/**
|
|
1163
|
-
*
|
|
1164
|
-
* @type {
|
|
951
|
+
*
|
|
952
|
+
* @type {ServerErrorCode}
|
|
1165
953
|
* @memberof ServerError
|
|
1166
954
|
*/
|
|
1167
|
-
error:
|
|
955
|
+
error: ServerErrorCode;
|
|
1168
956
|
/**
|
|
1169
957
|
* Human-readable error message
|
|
1170
958
|
* @type {string}
|
|
@@ -1173,16 +961,6 @@ export interface ServerError {
|
|
|
1173
961
|
message: string;
|
|
1174
962
|
}
|
|
1175
963
|
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* @export
|
|
1179
|
-
*/
|
|
1180
|
-
export const ServerErrorErrorEnum = {
|
|
1181
|
-
INTERNAL_SERVER_ERROR: 'INTERNAL_SERVER_ERROR'
|
|
1182
|
-
} as const;
|
|
1183
|
-
export type ServerErrorErrorEnum = typeof ServerErrorErrorEnum[keyof typeof ServerErrorErrorEnum];
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
964
|
/**
|
|
1187
965
|
* Standardized error codes for API responses
|
|
1188
966
|
* @export
|
|
@@ -1209,6 +987,7 @@ export type Side = typeof Side[keyof typeof Side];
|
|
|
1209
987
|
* @interface SpotExecution
|
|
1210
988
|
*/
|
|
1211
989
|
export interface SpotExecution {
|
|
990
|
+
[key: string]: any | any;
|
|
1212
991
|
/**
|
|
1213
992
|
*
|
|
1214
993
|
* @type {number}
|
|
@@ -1216,7 +995,7 @@ export interface SpotExecution {
|
|
|
1216
995
|
*/
|
|
1217
996
|
exchangeId: number;
|
|
1218
997
|
/**
|
|
1219
|
-
*
|
|
998
|
+
* Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
|
|
1220
999
|
* @type {string}
|
|
1221
1000
|
* @memberof SpotExecution
|
|
1222
1001
|
*/
|
|
@@ -1228,11 +1007,11 @@ export interface SpotExecution {
|
|
|
1228
1007
|
*/
|
|
1229
1008
|
accountId: number;
|
|
1230
1009
|
/**
|
|
1231
|
-
*
|
|
1232
|
-
* @type {
|
|
1010
|
+
*
|
|
1011
|
+
* @type {Side}
|
|
1233
1012
|
* @memberof SpotExecution
|
|
1234
1013
|
*/
|
|
1235
|
-
side:
|
|
1014
|
+
side: Side;
|
|
1236
1015
|
/**
|
|
1237
1016
|
*
|
|
1238
1017
|
* @type {string}
|
|
@@ -1252,11 +1031,11 @@ export interface SpotExecution {
|
|
|
1252
1031
|
*/
|
|
1253
1032
|
fee: string;
|
|
1254
1033
|
/**
|
|
1255
|
-
*
|
|
1256
|
-
* @type {
|
|
1034
|
+
*
|
|
1035
|
+
* @type {ExecutionType}
|
|
1257
1036
|
* @memberof SpotExecution
|
|
1258
1037
|
*/
|
|
1259
|
-
type:
|
|
1038
|
+
type: ExecutionType;
|
|
1260
1039
|
/**
|
|
1261
1040
|
* Execution timestamp (milliseconds)
|
|
1262
1041
|
* @type {number}
|
|
@@ -1264,127 +1043,36 @@ export interface SpotExecution {
|
|
|
1264
1043
|
*/
|
|
1265
1044
|
timestamp: number;
|
|
1266
1045
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
* @export
|
|
1271
|
-
*/
|
|
1272
|
-
export const SpotExecutionSideEnum = {
|
|
1273
|
-
B: 'B',
|
|
1274
|
-
A: 'A'
|
|
1275
|
-
} as const;
|
|
1276
|
-
export type SpotExecutionSideEnum = typeof SpotExecutionSideEnum[keyof typeof SpotExecutionSideEnum];
|
|
1277
|
-
|
|
1278
|
-
/**
|
|
1279
|
-
* @export
|
|
1280
|
-
*/
|
|
1281
|
-
export const SpotExecutionTypeEnum = {
|
|
1282
|
-
ORDER_MATCH: 'ORDER_MATCH',
|
|
1283
|
-
LIQUIDATION: 'LIQUIDATION',
|
|
1284
|
-
ADL: 'ADL'
|
|
1285
|
-
} as const;
|
|
1286
|
-
export type SpotExecutionTypeEnum = typeof SpotExecutionTypeEnum[keyof typeof SpotExecutionTypeEnum];
|
|
1287
|
-
|
|
1288
1046
|
/**
|
|
1289
1047
|
*
|
|
1290
1048
|
* @export
|
|
1291
1049
|
* @interface SpotExecutionList
|
|
1292
1050
|
*/
|
|
1293
1051
|
export interface SpotExecutionList {
|
|
1052
|
+
[key: string]: any | any;
|
|
1294
1053
|
/**
|
|
1295
1054
|
*
|
|
1296
|
-
* @type {Array<
|
|
1055
|
+
* @type {Array<SpotExecution>}
|
|
1297
1056
|
* @memberof SpotExecutionList
|
|
1298
1057
|
*/
|
|
1299
|
-
data: Array<
|
|
1058
|
+
data: Array<SpotExecution>;
|
|
1300
1059
|
/**
|
|
1301
1060
|
*
|
|
1302
|
-
* @type {
|
|
1061
|
+
* @type {PaginationMeta}
|
|
1303
1062
|
* @memberof SpotExecutionList
|
|
1304
1063
|
*/
|
|
1305
|
-
meta:
|
|
1064
|
+
meta: PaginationMeta;
|
|
1306
1065
|
}
|
|
1307
|
-
/**
|
|
1308
|
-
*
|
|
1309
|
-
* @export
|
|
1310
|
-
* @interface SpotExecutionListDataInner
|
|
1311
|
-
*/
|
|
1312
|
-
export interface SpotExecutionListDataInner {
|
|
1313
|
-
/**
|
|
1314
|
-
*
|
|
1315
|
-
* @type {number}
|
|
1316
|
-
* @memberof SpotExecutionListDataInner
|
|
1317
|
-
*/
|
|
1318
|
-
exchangeId: number;
|
|
1319
|
-
/**
|
|
1320
|
-
*
|
|
1321
|
-
* @type {string}
|
|
1322
|
-
* @memberof SpotExecutionListDataInner
|
|
1323
|
-
*/
|
|
1324
|
-
symbol: string;
|
|
1325
|
-
/**
|
|
1326
|
-
*
|
|
1327
|
-
* @type {number}
|
|
1328
|
-
* @memberof SpotExecutionListDataInner
|
|
1329
|
-
*/
|
|
1330
|
-
accountId: number;
|
|
1331
|
-
/**
|
|
1332
|
-
* Order side (B = Buy/Bid, A = Ask/Sell)
|
|
1333
|
-
* @type {string}
|
|
1334
|
-
* @memberof SpotExecutionListDataInner
|
|
1335
|
-
*/
|
|
1336
|
-
side: SpotExecutionListDataInnerSideEnum;
|
|
1337
|
-
/**
|
|
1338
|
-
*
|
|
1339
|
-
* @type {string}
|
|
1340
|
-
* @memberof SpotExecutionListDataInner
|
|
1341
|
-
*/
|
|
1342
|
-
qty: string;
|
|
1343
|
-
/**
|
|
1344
|
-
*
|
|
1345
|
-
* @type {string}
|
|
1346
|
-
* @memberof SpotExecutionListDataInner
|
|
1347
|
-
*/
|
|
1348
|
-
price?: string;
|
|
1349
|
-
/**
|
|
1350
|
-
*
|
|
1351
|
-
* @type {string}
|
|
1352
|
-
* @memberof SpotExecutionListDataInner
|
|
1353
|
-
*/
|
|
1354
|
-
fee: string;
|
|
1355
|
-
/**
|
|
1356
|
-
* Type of execution
|
|
1357
|
-
* @type {string}
|
|
1358
|
-
* @memberof SpotExecutionListDataInner
|
|
1359
|
-
*/
|
|
1360
|
-
type: SpotExecutionListDataInnerTypeEnum;
|
|
1361
|
-
/**
|
|
1362
|
-
* Execution timestamp (milliseconds)
|
|
1363
|
-
* @type {number}
|
|
1364
|
-
* @memberof SpotExecutionListDataInner
|
|
1365
|
-
*/
|
|
1366
|
-
timestamp: number;
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
/**
|
|
1371
|
-
* @export
|
|
1372
|
-
*/
|
|
1373
|
-
export const SpotExecutionListDataInnerSideEnum = {
|
|
1374
|
-
B: 'B',
|
|
1375
|
-
A: 'A'
|
|
1376
|
-
} as const;
|
|
1377
|
-
export type SpotExecutionListDataInnerSideEnum = typeof SpotExecutionListDataInnerSideEnum[keyof typeof SpotExecutionListDataInnerSideEnum];
|
|
1378
1066
|
|
|
1379
1067
|
/**
|
|
1068
|
+
* Fee tier type (REGULAR = Standard tier, VIP = VIP tier)
|
|
1380
1069
|
* @export
|
|
1381
1070
|
*/
|
|
1382
|
-
export const
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
ADL: 'ADL'
|
|
1071
|
+
export const TierType = {
|
|
1072
|
+
REGULAR: 'REGULAR',
|
|
1073
|
+
VIP: 'VIP'
|
|
1386
1074
|
} as const;
|
|
1387
|
-
export type
|
|
1075
|
+
export type TierType = typeof TierType[keyof typeof TierType];
|
|
1388
1076
|
|
|
1389
1077
|
|
|
1390
1078
|
/**
|
|
@@ -1403,6 +1091,7 @@ export type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];
|
|
|
1403
1091
|
* @interface WalletConfiguration
|
|
1404
1092
|
*/
|
|
1405
1093
|
export interface WalletConfiguration {
|
|
1094
|
+
[key: string]: any | any;
|
|
1406
1095
|
/**
|
|
1407
1096
|
* Fee tier identifier
|
|
1408
1097
|
* @type {number}
|