@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.
Files changed (35) hide show
  1. package/dist/rest/apis/MarketDataApi.js +1 -1
  2. package/dist/rest/apis/MarketDataApi.js.map +1 -1
  3. package/dist/rest/apis/OrderEntryApi.js +1 -1
  4. package/dist/rest/apis/OrderEntryApi.js.map +1 -1
  5. package/dist/rest/apis/ReferenceDataApi.js +1 -1
  6. package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
  7. package/dist/rest/apis/SpecsApi.js +1 -1
  8. package/dist/rest/apis/SpecsApi.js.map +1 -1
  9. package/dist/rest/apis/WalletDataApi.js +1 -1
  10. package/dist/rest/apis/WalletDataApi.js.map +1 -1
  11. package/dist/rest/models/index.js +5 -152
  12. package/dist/rest/models/index.js.map +1 -1
  13. package/dist/rest/runtime.js +1 -1
  14. package/dist/rest/runtime.js.map +1 -1
  15. package/dist/types/rest/apis/MarketDataApi.d.ts +1 -1
  16. package/dist/types/rest/apis/OrderEntryApi.d.ts +1 -1
  17. package/dist/types/rest/apis/ReferenceDataApi.d.ts +1 -1
  18. package/dist/types/rest/apis/SpecsApi.d.ts +1 -1
  19. package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
  20. package/dist/types/rest/models/index.d.ts +153 -454
  21. package/dist/types/rest/models/index.d.ts.map +1 -1
  22. package/dist/types/rest/runtime.d.ts +1 -1
  23. package/dist/types/websocket/types.d.ts +53 -51
  24. package/dist/types/websocket/types.d.ts.map +1 -1
  25. package/dist/websocket/types.js +4 -47
  26. package/dist/websocket/types.js.map +1 -1
  27. package/package.json +2 -2
  28. package/rest/apis/MarketDataApi.ts +1 -1
  29. package/rest/apis/OrderEntryApi.ts +1 -1
  30. package/rest/apis/ReferenceDataApi.ts +1 -1
  31. package/rest/apis/SpecsApi.ts +1 -1
  32. package/rest/apis/WalletDataApi.ts +1 -1
  33. package/rest/models/index.ts +153 -496
  34. package/rest/runtime.ts +1 -1
  35. package/websocket/types.ts +63 -77
@@ -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}
@@ -19,7 +20,7 @@ export interface Account {
19
20
  */
20
21
  name: string;
21
22
  /**
22
- * Last update timestamp (milliseconds)
23
+ *
23
24
  * @type {number}
24
25
  * @memberof Account
25
26
  */
@@ -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}
@@ -44,7 +46,7 @@ export interface AccountBalance {
44
46
  */
45
47
  asset: string;
46
48
  /**
47
- * Sum of account net deposits (transfers, deposits and withdrawals) and realized pnl from closed positions. Realized pnl only applies to RUSD given it is the only settlement asset
49
+ *
48
50
  * @type {string}
49
51
  * @memberof AccountBalance
50
52
  */
@@ -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,25 +66,25 @@ 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
  */
70
73
  spotMarketSymbol: string;
71
74
  /**
72
- * Notional discount to the value of a collateral when used to satisfy the margin requirements; it does not imply any token conversion, but is rather an accounting adjustment.
75
+ *
73
76
  * @type {string}
74
77
  * @memberof AssetDefinition
75
78
  */
76
79
  priceHaircut: string;
77
80
  /**
78
- * Discount in the token price when liquidating collateral.
81
+ *
79
82
  * @type {string}
80
83
  * @memberof AssetDefinition
81
84
  */
82
85
  liquidationDiscount: string;
83
86
  /**
84
- * Configuration timestamp (milliseconds)
87
+ *
85
88
  * @type {number}
86
89
  * @memberof AssetDefinition
87
90
  */
@@ -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
- * Order status
117
- * @type {string}
121
+ *
122
+ * @type {OrderStatus}
118
123
  * @memberof CancelOrderResponse
119
124
  */
120
- status: CancelOrderResponseStatusEnum;
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,19 +212,19 @@ export interface CreateOrderRequest {
218
212
  */
219
213
  qty?: string;
220
214
  /**
221
- * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)
222
- * @type {string}
215
+ *
216
+ * @type {OrderType}
223
217
  * @memberof CreateOrderRequest
224
218
  */
225
- orderType: CreateOrderRequestOrderTypeEnum;
219
+ orderType: OrderType;
226
220
  /**
227
- * Order time in force, exclusively used for LIMIT orders
228
- * @type {string}
221
+ *
222
+ * @type {TimeInForce}
229
223
  * @memberof CreateOrderRequest
230
224
  */
231
- timeInForce?: CreateOrderRequestTimeInForceEnum;
225
+ timeInForce?: TimeInForce;
232
226
  /**
233
- * Trigger price, only for TP/SL orders
227
+ *
234
228
  * @type {string}
235
229
  * @memberof CreateOrderRequest
236
230
  */
@@ -254,51 +248,31 @@ export interface CreateOrderRequest {
254
248
  */
255
249
  nonce: string;
256
250
  /**
257
- * Signer wallet address
251
+ *
258
252
  * @type {string}
259
253
  * @memberof CreateOrderRequest
260
254
  */
261
255
  signerWallet: string;
262
256
  /**
263
- * Expiration timestamp (exclusively for IOC orders). The order will only be filled before this timestamp.
257
+ *
264
258
  * @type {number}
265
259
  * @memberof 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
- * Order status
298
- * @type {string}
271
+ *
272
+ * @type {OrderStatus}
299
273
  * @memberof CreateOrderResponse
300
274
  */
301
- status: CreateOrderResponseStatusEnum;
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}
@@ -344,67 +306,57 @@ export interface FeeTierParameters {
344
306
  */
345
307
  tierId: number;
346
308
  /**
347
- * Taker fee rate (fee will be qty * takerFee)
309
+ *
348
310
  * @type {string}
349
311
  * @memberof FeeTierParameters
350
312
  */
351
313
  takerFee: string;
352
314
  /**
353
- * Maker fee rate (fee will be qty * makerFee)
315
+ *
354
316
  * @type {string}
355
317
  * @memberof FeeTierParameters
356
318
  */
357
319
  makerFee: string;
358
320
  /**
359
- * 14-day volume level required this fee tier to be applied to a wallet
321
+ *
360
322
  * @type {string}
361
323
  * @memberof FeeTierParameters
362
324
  */
363
325
  volume14d: string;
364
326
  /**
365
- * Fee tier type (REGULAR = Standard tier, VIP = VIP tier)
366
- * @type {string}
327
+ *
328
+ * @type {TierType}
367
329
  * @memberof FeeTierParameters
368
330
  */
369
- tierType: FeeTierParametersTierTypeEnum;
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
- * OG user discount
341
+ *
390
342
  * @type {string}
391
343
  * @memberof GlobalFeeParameters
392
344
  */
393
345
  ogDiscount: string;
394
346
  /**
395
- * Referee discount
347
+ *
396
348
  * @type {string}
397
349
  * @memberof GlobalFeeParameters
398
350
  */
399
351
  refereeDiscount: string;
400
352
  /**
401
- * Referrer rebate
353
+ *
402
354
  * @type {string}
403
355
  * @memberof GlobalFeeParameters
404
356
  */
405
357
  referrerRebate: string;
406
358
  /**
407
- * Affiliate referrer rebate
359
+ *
408
360
  * @type {string}
409
361
  * @memberof GlobalFeeParameters
410
362
  */
@@ -416,20 +368,21 @@ 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
  */
424
377
  symbol: string;
425
378
  /**
426
- * Parameter determining the liquidity distribution along the AMM pricing curve, in particular expanding or contracting the max exposure parameter that would otherwise be determined by the capital available.
379
+ *
427
380
  * @type {string}
428
381
  * @memberof LiquidityParameters
429
382
  */
430
383
  depth: string;
431
384
  /**
432
- * Parameter determining the sensitivity of the dynamic funding rate to the size of the imbalances; higher multiplier means that the funding rate will diverge faster, all else being equal.
385
+ *
433
386
  * @type {string}
434
387
  * @memberof LiquidityParameters
435
388
  */
@@ -441,14 +394,15 @@ 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
  */
449
403
  symbol: string;
450
404
  /**
451
- * Numerical identifier for each market, only needed to generate signatures
405
+ *
452
406
  * @type {number}
453
407
  * @memberof MarketDefinition
454
408
  */
@@ -460,37 +414,37 @@ export interface MarketDefinition {
460
414
  */
461
415
  minOrderQty: string;
462
416
  /**
463
- * Minimum size increment
417
+ *
464
418
  * @type {string}
465
419
  * @memberof MarketDefinition
466
420
  */
467
421
  qtyStepSize: string;
468
422
  /**
469
- * Minimum price increment
423
+ *
470
424
  * @type {string}
471
425
  * @memberof MarketDefinition
472
426
  */
473
427
  tickSize: string;
474
428
  /**
475
- * Minimum percentage of notional that needs to be covered to avoid liquidation procedures for a given market; below this value, your account is subject to liquidation procedures. When cross margining, all requirements across markets are covered by the same balance, and all positions are subject to liquidations.
429
+ *
476
430
  * @type {string}
477
431
  * @memberof MarketDefinition
478
432
  */
479
433
  liquidationMarginParameter: string;
480
434
  /**
481
- * Minimum percentage of notional that needs to be covered post trade; if the account does not satisfy this requirement, trades will not get executed.
435
+ *
482
436
  * @type {string}
483
437
  * @memberof MarketDefinition
484
438
  */
485
439
  initialMarginParameter: string;
486
440
  /**
487
- * Maximum leverage allowed
441
+ *
488
442
  * @type {number}
489
443
  * @memberof MarketDefinition
490
444
  */
491
445
  maxLeverage: number;
492
446
  /**
493
- * Maximum one-sided open interest in units for a given market.
447
+ *
494
448
  * @type {string}
495
449
  * @memberof MarketDefinition
496
450
  */
@@ -502,56 +456,57 @@ 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
  */
510
465
  symbol: string;
511
466
  /**
512
- * Time when the market summary was last calculated (milliseconds)
467
+ *
513
468
  * @type {number}
514
469
  * @memberof MarketSummary
515
470
  */
516
471
  updatedAt: number;
517
472
  /**
518
- * Long open interest in lots
473
+ *
519
474
  * @type {string}
520
475
  * @memberof MarketSummary
521
476
  */
522
477
  longOiQty: string;
523
478
  /**
524
- * Short open interest in lots
479
+ *
525
480
  * @type {string}
526
481
  * @memberof MarketSummary
527
482
  */
528
483
  shortOiQty: string;
529
484
  /**
530
- * Total open interest quantity
485
+ *
531
486
  * @type {string}
532
487
  * @memberof MarketSummary
533
488
  */
534
489
  oiQty: string;
535
490
  /**
536
- * Current hourly funding rate
491
+ *
537
492
  * @type {string}
538
493
  * @memberof MarketSummary
539
494
  */
540
495
  fundingRate: string;
541
496
  /**
542
- * Current reference value of funding accrued by one unit of exposure; there is one funding value per market and per direction, with short v long funding values differing possibly due to Auto-Deleveraging (ADL)
497
+ *
543
498
  * @type {string}
544
499
  * @memberof MarketSummary
545
500
  */
546
501
  longFundingValue: string;
547
502
  /**
548
- * Current reference value of funding accrued by one unit of exposure; there is one funding value per market and per direction, with short v long funding values differing possibly due to Auto-Deleveraging (ADL)
503
+ *
549
504
  * @type {string}
550
505
  * @memberof MarketSummary
551
506
  */
552
507
  shortFundingValue: string;
553
508
  /**
554
- * Funding rate velocity
509
+ *
555
510
  * @type {string}
556
511
  * @memberof MarketSummary
557
512
  */
@@ -569,19 +524,19 @@ export interface MarketSummary {
569
524
  */
570
525
  pxChange24h?: string;
571
526
  /**
572
- * Last oracle price, at the moment of the last market summary update
527
+ *
573
528
  * @type {string}
574
529
  * @memberof MarketSummary
575
530
  */
576
531
  throttledOraclePrice?: string;
577
532
  /**
578
- * Last pool price, at the moment of the last market summary update
533
+ *
579
534
  * @type {string}
580
535
  * @memberof MarketSummary
581
536
  */
582
537
  throttledPoolPrice?: string;
583
538
  /**
584
- * Timestamp of the last price update (milliseconds)
539
+ *
585
540
  * @type {number}
586
541
  * @memberof MarketSummary
587
542
  */
@@ -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
  */
@@ -624,17 +580,17 @@ export interface Order {
624
580
  */
625
581
  qty?: string;
626
582
  /**
627
- * Executed quantity. Example: I request 1.0 BTCRUSDPERP and the order is filled with 0.2 BTCRUSDPERP, qty will stay at 1.0 and execQty will be 0.2.
583
+ *
628
584
  * @type {string}
629
585
  * @memberof Order
630
586
  */
631
587
  execQty?: string;
632
588
  /**
633
- * Order side (B = Buy/Bid, A = Ask/Sell)
634
- * @type {string}
589
+ *
590
+ * @type {Side}
635
591
  * @memberof Order
636
592
  */
637
- side: OrderSideEnum;
593
+ side: Side;
638
594
  /**
639
595
  *
640
596
  * @type {string}
@@ -642,23 +598,23 @@ export interface Order {
642
598
  */
643
599
  limitPx: string;
644
600
  /**
645
- * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)
646
- * @type {string}
601
+ *
602
+ * @type {OrderType}
647
603
  * @memberof Order
648
604
  */
649
- orderType: OrderOrderTypeEnum;
605
+ orderType: OrderType;
650
606
  /**
651
- * Price at which TP/SL orders will be triggered, should not be set for other order types.
607
+ *
652
608
  * @type {string}
653
609
  * @memberof Order
654
610
  */
655
611
  triggerPx?: string;
656
612
  /**
657
- * Order time in force, exclusively used for LIMIT orders
658
- * @type {string}
613
+ *
614
+ * @type {TimeInForce}
659
615
  * @memberof Order
660
616
  */
661
- timeInForce?: OrderTimeInForceEnum;
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,66 +622,25 @@ export interface Order {
666
622
  */
667
623
  reduceOnly?: boolean;
668
624
  /**
669
- * Order status
670
- * @type {string}
625
+ *
626
+ * @type {OrderStatus}
671
627
  * @memberof Order
672
628
  */
673
- status: OrderStatusEnum;
629
+ status: OrderStatus;
674
630
  /**
675
- * Creation timestamp (milliseconds)
631
+ *
676
632
  * @type {number}
677
633
  * @memberof Order
678
634
  */
679
635
  createdAt: number;
680
636
  /**
681
- * Last update timestamp (milliseconds)
637
+ *
682
638
  * @type {number}
683
639
  * @memberof Order
684
640
  */
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
@@ -753,31 +668,32 @@ export type OrderType = typeof OrderType[keyof typeof OrderType];
753
668
  /**
754
669
  *
755
670
  * @export
756
- * @interface PaginationParameters
671
+ * @interface PaginationMeta
757
672
  */
758
- export interface PaginationParameters {
673
+ export interface PaginationMeta {
674
+ [key: string]: any | any;
759
675
  /**
760
- * Number of items requested
676
+ *
761
677
  * @type {number}
762
- * @memberof PaginationParameters
678
+ * @memberof PaginationMeta
763
679
  */
764
680
  limit: number;
765
681
  /**
766
- * Number of items returned
682
+ *
767
683
  * @type {number}
768
- * @memberof PaginationParameters
684
+ * @memberof PaginationMeta
769
685
  */
770
686
  count: number;
771
687
  /**
772
- * Timestamp of last result, in milliseconds
688
+ *
773
689
  * @type {number}
774
- * @memberof PaginationParameters
690
+ * @memberof PaginationMeta
775
691
  */
776
692
  endTime?: number;
777
693
  /**
778
- * Timestamp of first result, in milliseconds
694
+ *
779
695
  * @type {number}
780
- * @memberof PaginationParameters
696
+ * @memberof PaginationMeta
781
697
  */
782
698
  startTime?: number;
783
699
  }
@@ -787,6 +703,7 @@ export interface PaginationParameters {
787
703
  * @interface PerpExecution
788
704
  */
789
705
  export interface PerpExecution {
706
+ [key: string]: any | any;
790
707
  /**
791
708
  *
792
709
  * @type {number}
@@ -794,7 +711,7 @@ export interface PerpExecution {
794
711
  */
795
712
  exchangeId: number;
796
713
  /**
797
- *
714
+ * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
798
715
  * @type {string}
799
716
  * @memberof PerpExecution
800
717
  */
@@ -812,11 +729,11 @@ export interface PerpExecution {
812
729
  */
813
730
  qty: string;
814
731
  /**
815
- * Order side (B = Buy/Bid, A = Ask/Sell)
816
- * @type {string}
732
+ *
733
+ * @type {Side}
817
734
  * @memberof PerpExecution
818
735
  */
819
- side: PerpExecutionSideEnum;
736
+ side: Side;
820
737
  /**
821
738
  *
822
739
  * @type {string}
@@ -830,182 +747,43 @@ export interface PerpExecution {
830
747
  */
831
748
  fee: string;
832
749
  /**
833
- * Type of execution
834
- * @type {string}
750
+ *
751
+ * @type {ExecutionType}
835
752
  * @memberof PerpExecution
836
753
  */
837
- type: PerpExecutionTypeEnum;
754
+ type: ExecutionType;
838
755
  /**
839
- * Execution timestamp (milliseconds)
756
+ *
840
757
  * @type {number}
841
758
  * @memberof PerpExecution
842
759
  */
843
760
  timestamp: number;
844
761
  /**
845
- * Execution sequence number, increases by 1 for every perp execution in reya chain
762
+ *
846
763
  * @type {number}
847
764
  * @memberof PerpExecution
848
765
  */
849
766
  sequenceNumber: number;
850
767
  }
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
768
  /**
873
769
  *
874
770
  * @export
875
771
  * @interface PerpExecutionList
876
772
  */
877
773
  export interface PerpExecutionList {
774
+ [key: string]: any | any;
878
775
  /**
879
776
  *
880
- * @type {Array<PerpExecutionListDataInner>}
777
+ * @type {Array<PerpExecution>}
881
778
  * @memberof PerpExecutionList
882
779
  */
883
- data: Array<PerpExecutionListDataInner>;
780
+ data: Array<PerpExecution>;
884
781
  /**
885
782
  *
886
- * @type {PerpExecutionListMeta}
783
+ * @type {PaginationMeta}
887
784
  * @memberof PerpExecutionList
888
785
  */
889
- meta: PerpExecutionListMeta;
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;
786
+ meta: PaginationMeta;
1009
787
  }
1010
788
  /**
1011
789
  *
@@ -1013,6 +791,7 @@ export interface PerpExecutionListMeta {
1013
791
  * @interface Position
1014
792
  */
1015
793
  export interface Position {
794
+ [key: string]: any | any;
1016
795
  /**
1017
796
  *
1018
797
  * @type {number}
@@ -1020,7 +799,7 @@ export interface Position {
1020
799
  */
1021
800
  exchangeId: number;
1022
801
  /**
1023
- *
802
+ * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
1024
803
  * @type {string}
1025
804
  * @memberof Position
1026
805
  */
@@ -1038,11 +817,11 @@ export interface Position {
1038
817
  */
1039
818
  qty: string;
1040
819
  /**
1041
- * Order side (B = Buy/Bid, A = Ask/Sell)
1042
- * @type {string}
820
+ *
821
+ * @type {Side}
1043
822
  * @memberof Position
1044
823
  */
1045
- side: PositionSideEnum;
824
+ side: Side;
1046
825
  /**
1047
826
  *
1048
827
  * @type {string}
@@ -1050,55 +829,45 @@ export interface Position {
1050
829
  */
1051
830
  avgEntryPrice: string;
1052
831
  /**
1053
- * Average of funding values at the entry times of currently open exposure, which serves as a baseline from which to compute the accrued funding in the position: units x (fundingValue - avgEntryFundingValue)
832
+ *
1054
833
  * @type {string}
1055
834
  * @memberof Position
1056
835
  */
1057
836
  avgEntryFundingValue: string;
1058
837
  /**
1059
- * Sequence number of last execution taken into account for the position.
838
+ *
1060
839
  * @type {number}
1061
840
  * @memberof Position
1062
841
  */
1063
842
  lastTradeSequenceNumber: number;
1064
843
  }
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
844
  /**
1077
845
  *
1078
846
  * @export
1079
847
  * @interface Price
1080
848
  */
1081
849
  export interface Price {
850
+ [key: string]: any | any;
1082
851
  /**
1083
- *
852
+ * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
1084
853
  * @type {string}
1085
854
  * @memberof Price
1086
855
  */
1087
856
  symbol: string;
1088
857
  /**
1089
- * Price given by the Stork feeds, used both as the peg price for prices on Reya, as well as Mark Prices. The Stork price feed is usually the perp prices across three major CEXs
858
+ *
1090
859
  * @type {string}
1091
860
  * @memberof Price
1092
861
  */
1093
862
  oraclePrice: string;
1094
863
  /**
1095
- * The price currently quoted by the AMM for zero volume, from which trades are priced (equivalent to mid price in an order book); a trade of any size will be move this price up or down depending on the direction.
864
+ *
1096
865
  * @type {string}
1097
866
  * @memberof Price
1098
867
  */
1099
868
  poolPrice?: string;
1100
869
  /**
1101
- * Last update timestamp (milliseconds)
870
+ *
1102
871
  * @type {number}
1103
872
  * @memberof Price
1104
873
  */
@@ -1110,12 +879,13 @@ export interface Price {
1110
879
  * @interface RequestError
1111
880
  */
1112
881
  export interface RequestError {
882
+ [key: string]: any | any;
1113
883
  /**
1114
- * Standardized error codes for API responses
1115
- * @type {string}
884
+ *
885
+ * @type {RequestErrorCode}
1116
886
  * @memberof RequestError
1117
887
  */
1118
- error: RequestErrorErrorEnum;
888
+ error: RequestErrorCode;
1119
889
  /**
1120
890
  * Human-readable error message
1121
891
  * @type {string}
@@ -1124,21 +894,6 @@ export interface RequestError {
1124
894
  message: string;
1125
895
  }
1126
896
 
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
897
  /**
1143
898
  * Standardized error codes for API responses
1144
899
  * @export
@@ -1159,12 +914,13 @@ export type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestError
1159
914
  * @interface ServerError
1160
915
  */
1161
916
  export interface ServerError {
917
+ [key: string]: any | any;
1162
918
  /**
1163
- * Standardized error codes for API responses
1164
- * @type {string}
919
+ *
920
+ * @type {ServerErrorCode}
1165
921
  * @memberof ServerError
1166
922
  */
1167
- error: ServerErrorErrorEnum;
923
+ error: ServerErrorCode;
1168
924
  /**
1169
925
  * Human-readable error message
1170
926
  * @type {string}
@@ -1173,16 +929,6 @@ export interface ServerError {
1173
929
  message: string;
1174
930
  }
1175
931
 
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
932
  /**
1187
933
  * Standardized error codes for API responses
1188
934
  * @export
@@ -1209,6 +955,7 @@ export type Side = typeof Side[keyof typeof Side];
1209
955
  * @interface SpotExecution
1210
956
  */
1211
957
  export interface SpotExecution {
958
+ [key: string]: any | any;
1212
959
  /**
1213
960
  *
1214
961
  * @type {number}
@@ -1216,7 +963,7 @@ export interface SpotExecution {
1216
963
  */
1217
964
  exchangeId: number;
1218
965
  /**
1219
- *
966
+ * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
1220
967
  * @type {string}
1221
968
  * @memberof SpotExecution
1222
969
  */
@@ -1228,11 +975,11 @@ export interface SpotExecution {
1228
975
  */
1229
976
  accountId: number;
1230
977
  /**
1231
- * Order side (B = Buy/Bid, A = Ask/Sell)
1232
- * @type {string}
978
+ *
979
+ * @type {Side}
1233
980
  * @memberof SpotExecution
1234
981
  */
1235
- side: SpotExecutionSideEnum;
982
+ side: Side;
1236
983
  /**
1237
984
  *
1238
985
  * @type {string}
@@ -1252,139 +999,48 @@ export interface SpotExecution {
1252
999
  */
1253
1000
  fee: string;
1254
1001
  /**
1255
- * Type of execution
1256
- * @type {string}
1002
+ *
1003
+ * @type {ExecutionType}
1257
1004
  * @memberof SpotExecution
1258
1005
  */
1259
- type: SpotExecutionTypeEnum;
1006
+ type: ExecutionType;
1260
1007
  /**
1261
- * Execution timestamp (milliseconds)
1008
+ *
1262
1009
  * @type {number}
1263
1010
  * @memberof SpotExecution
1264
1011
  */
1265
1012
  timestamp: number;
1266
1013
  }
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
1014
  /**
1289
1015
  *
1290
1016
  * @export
1291
1017
  * @interface SpotExecutionList
1292
1018
  */
1293
1019
  export interface SpotExecutionList {
1020
+ [key: string]: any | any;
1294
1021
  /**
1295
1022
  *
1296
- * @type {Array<SpotExecutionListDataInner>}
1023
+ * @type {Array<SpotExecution>}
1297
1024
  * @memberof SpotExecutionList
1298
1025
  */
1299
- data: Array<SpotExecutionListDataInner>;
1026
+ data: Array<SpotExecution>;
1300
1027
  /**
1301
1028
  *
1302
- * @type {PerpExecutionListMeta}
1029
+ * @type {PaginationMeta}
1303
1030
  * @memberof SpotExecutionList
1304
1031
  */
1305
- meta: PerpExecutionListMeta;
1306
- }
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;
1032
+ meta: PaginationMeta;
1367
1033
  }
1368
1034
 
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
-
1379
1035
  /**
1036
+ * Fee tier type (REGULAR = Standard tier, VIP = VIP tier)
1380
1037
  * @export
1381
1038
  */
1382
- export const SpotExecutionListDataInnerTypeEnum = {
1383
- ORDER_MATCH: 'ORDER_MATCH',
1384
- LIQUIDATION: 'LIQUIDATION',
1385
- ADL: 'ADL'
1039
+ export const TierType = {
1040
+ REGULAR: 'REGULAR',
1041
+ VIP: 'VIP'
1386
1042
  } as const;
1387
- export type SpotExecutionListDataInnerTypeEnum = typeof SpotExecutionListDataInnerTypeEnum[keyof typeof SpotExecutionListDataInnerTypeEnum];
1043
+ export type TierType = typeof TierType[keyof typeof TierType];
1388
1044
 
1389
1045
 
1390
1046
  /**
@@ -1403,8 +1059,9 @@ export type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];
1403
1059
  * @interface WalletConfiguration
1404
1060
  */
1405
1061
  export interface WalletConfiguration {
1062
+ [key: string]: any | any;
1406
1063
  /**
1407
- * Fee tier identifier
1064
+ *
1408
1065
  * @type {number}
1409
1066
  * @memberof WalletConfiguration
1410
1067
  */