@pear-protocol/types 2.0.0 → 2.2.0

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 (68) hide show
  1. package/dist/auth/api-keys.d.ts +1 -0
  2. package/dist/auth/api-keys.js +2 -1
  3. package/dist/auth/entities.d.ts +1 -0
  4. package/dist/auth/entities.js +2 -1
  5. package/dist/auth/response.d.ts +2 -0
  6. package/dist/bundle.d.ts +1 -0
  7. package/dist/bundle.js +1 -0
  8. package/dist/connector/index.d.ts +2 -0
  9. package/dist/connector/index.js +2 -1
  10. package/dist/execution/entities.d.ts +26 -0
  11. package/dist/execution/queries.d.ts +1 -0
  12. package/dist/execution/responses.d.ts +16 -0
  13. package/dist/fee/entities.d.ts +2 -0
  14. package/dist/fee/entities.js +2 -1
  15. package/dist/fee/queries.d.ts +1 -0
  16. package/dist/fill/entities.d.ts +1 -0
  17. package/dist/fill/queries.d.ts +1 -0
  18. package/dist/fill/responses.d.ts +2 -0
  19. package/dist/funding/queries.d.ts +1 -0
  20. package/dist/instrument/entities.d.ts +1 -0
  21. package/dist/instrument/queries.d.ts +1 -0
  22. package/dist/instrument/responses.d.ts +1 -0
  23. package/dist/ladder/entities.d.ts +16 -0
  24. package/dist/ladder/queries.d.ts +1 -0
  25. package/dist/ladder/responses.d.ts +48 -0
  26. package/dist/margin/index.d.ts +2 -0
  27. package/dist/margin/index.js +2 -0
  28. package/dist/margin/payloads.d.ts +7 -0
  29. package/dist/margin/payloads.js +20 -0
  30. package/dist/margin/response.d.ts +5 -0
  31. package/dist/margin/response.js +11 -0
  32. package/dist/market/entities.d.ts +2 -0
  33. package/dist/market/payloads.d.ts +1 -0
  34. package/dist/market/queries.d.ts +2 -0
  35. package/dist/market/responses.d.ts +2 -0
  36. package/dist/notification/entities.d.ts +24 -0
  37. package/dist/notification/responses.d.ts +12 -0
  38. package/dist/order/entities.d.ts +2 -0
  39. package/dist/position/entities.d.ts +3 -0
  40. package/dist/position/queries.d.ts +1 -0
  41. package/dist/position/responses.d.ts +5 -0
  42. package/dist/price/queries.d.ts +1 -0
  43. package/dist/schedule/entities.d.ts +10 -0
  44. package/dist/schedule/queries.d.ts +1 -0
  45. package/dist/schedule/responses.d.ts +8 -0
  46. package/dist/statistics/entities.d.ts +1 -0
  47. package/dist/statistics/queries.d.ts +5 -1
  48. package/dist/statistics/responses.d.ts +1 -0
  49. package/dist/sync/payloads.d.ts +13 -0
  50. package/dist/tca/responses.d.ts +10 -0
  51. package/dist/trade/entities.d.ts +3 -0
  52. package/dist/trade/responses.d.ts +42 -0
  53. package/dist/trade-accounts/entities.d.ts +5 -0
  54. package/dist/trade-accounts/entities.js +4 -0
  55. package/dist/trade-accounts/payloads.d.ts +33 -0
  56. package/dist/trade-accounts/payloads.js +20 -3
  57. package/dist/trade-accounts/response.d.ts +143 -0
  58. package/dist/trade-accounts/response.js +19 -2
  59. package/dist/trigger/entities/conditions.d.ts +4 -0
  60. package/dist/trigger/entities/index.d.ts +47 -0
  61. package/dist/trigger/payloads/conditions.d.ts +1 -0
  62. package/dist/trigger/payloads/index.d.ts +6 -0
  63. package/dist/trigger/queries.d.ts +1 -0
  64. package/dist/trigger/responses.d.ts +30 -0
  65. package/dist/users/entities.d.ts +1 -0
  66. package/dist/users/entities.js +2 -1
  67. package/dist/users/response.d.ts +1 -0
  68. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
8
8
  bybit: "bybit";
9
9
  okx: "okx";
10
10
  lighter: "lighter";
11
+ lighter_rhc: "lighter_rhc";
11
12
  }>;
12
13
  positionKey: z.ZodString;
13
14
  config: z.ZodObject<{
@@ -102,6 +103,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
102
103
  bybit: "bybit";
103
104
  okx: "okx";
104
105
  lighter: "lighter";
106
+ lighter_rhc: "lighter_rhc";
105
107
  }>;
106
108
  status: z.ZodEnum<{
107
109
  CANCELLED: "CANCELLED";
@@ -138,6 +140,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
138
140
  bybit: "bybit";
139
141
  okx: "okx";
140
142
  lighter: "lighter";
143
+ lighter_rhc: "lighter_rhc";
141
144
  }>;
142
145
  side: z.ZodEnum<{
143
146
  BUY: "BUY";
@@ -230,6 +233,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
230
233
  bybit: "bybit";
231
234
  okx: "okx";
232
235
  lighter: "lighter";
236
+ lighter_rhc: "lighter_rhc";
233
237
  }>;
234
238
  symbol: z.ZodString;
235
239
  track: z.ZodEnum<{
@@ -310,6 +314,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
310
314
  bybit: "bybit";
311
315
  okx: "okx";
312
316
  lighter: "lighter";
317
+ lighter_rhc: "lighter_rhc";
313
318
  }>;
314
319
  status: z.ZodEnum<{
315
320
  CANCELLED: "CANCELLED";
@@ -346,6 +351,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
346
351
  bybit: "bybit";
347
352
  okx: "okx";
348
353
  lighter: "lighter";
354
+ lighter_rhc: "lighter_rhc";
349
355
  }>;
350
356
  side: z.ZodEnum<{
351
357
  BUY: "BUY";
@@ -477,6 +483,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
477
483
  bybit: "bybit";
478
484
  okx: "okx";
479
485
  lighter: "lighter";
486
+ lighter_rhc: "lighter_rhc";
480
487
  }>;
481
488
  symbol: z.ZodString;
482
489
  track: z.ZodEnum<{
@@ -564,6 +571,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
564
571
  bybit: "bybit";
565
572
  okx: "okx";
566
573
  lighter: "lighter";
574
+ lighter_rhc: "lighter_rhc";
567
575
  }>;
568
576
  status: z.ZodEnum<{
569
577
  CANCELLED: "CANCELLED";
@@ -600,6 +608,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
600
608
  bybit: "bybit";
601
609
  okx: "okx";
602
610
  lighter: "lighter";
611
+ lighter_rhc: "lighter_rhc";
603
612
  }>;
604
613
  side: z.ZodEnum<{
605
614
  BUY: "BUY";
@@ -790,6 +799,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
790
799
  bybit: "bybit";
791
800
  okx: "okx";
792
801
  lighter: "lighter";
802
+ lighter_rhc: "lighter_rhc";
793
803
  }>;
794
804
  symbol: z.ZodString;
795
805
  track: z.ZodEnum<{
@@ -850,6 +860,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
850
860
  bybit: "bybit";
851
861
  okx: "okx";
852
862
  lighter: "lighter";
863
+ lighter_rhc: "lighter_rhc";
853
864
  }>;
854
865
  status: z.ZodEnum<{
855
866
  CANCELLED: "CANCELLED";
@@ -886,6 +897,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
886
897
  bybit: "bybit";
887
898
  okx: "okx";
888
899
  lighter: "lighter";
900
+ lighter_rhc: "lighter_rhc";
889
901
  }>;
890
902
  side: z.ZodEnum<{
891
903
  BUY: "BUY";
@@ -1018,6 +1030,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
1018
1030
  bybit: "bybit";
1019
1031
  okx: "okx";
1020
1032
  lighter: "lighter";
1033
+ lighter_rhc: "lighter_rhc";
1021
1034
  }>;
1022
1035
  symbol: z.ZodString;
1023
1036
  track: z.ZodEnum<{
@@ -1102,6 +1115,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
1102
1115
  bybit: "bybit";
1103
1116
  okx: "okx";
1104
1117
  lighter: "lighter";
1118
+ lighter_rhc: "lighter_rhc";
1105
1119
  }>;
1106
1120
  status: z.ZodEnum<{
1107
1121
  CANCELLED: "CANCELLED";
@@ -1138,6 +1152,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
1138
1152
  bybit: "bybit";
1139
1153
  okx: "okx";
1140
1154
  lighter: "lighter";
1155
+ lighter_rhc: "lighter_rhc";
1141
1156
  }>;
1142
1157
  side: z.ZodEnum<{
1143
1158
  BUY: "BUY";
@@ -1329,6 +1344,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
1329
1344
  bybit: "bybit";
1330
1345
  okx: "okx";
1331
1346
  lighter: "lighter";
1347
+ lighter_rhc: "lighter_rhc";
1332
1348
  }>;
1333
1349
  symbol: z.ZodString;
1334
1350
  track: z.ZodEnum<{
@@ -1401,6 +1417,7 @@ export declare const LadderResponse: z.ZodObject<{
1401
1417
  bybit: "bybit";
1402
1418
  okx: "okx";
1403
1419
  lighter: "lighter";
1420
+ lighter_rhc: "lighter_rhc";
1404
1421
  }>;
1405
1422
  positionKey: z.ZodString;
1406
1423
  config: z.ZodObject<{
@@ -1495,6 +1512,7 @@ export declare const LadderResponse: z.ZodObject<{
1495
1512
  bybit: "bybit";
1496
1513
  okx: "okx";
1497
1514
  lighter: "lighter";
1515
+ lighter_rhc: "lighter_rhc";
1498
1516
  }>;
1499
1517
  status: z.ZodEnum<{
1500
1518
  CANCELLED: "CANCELLED";
@@ -1531,6 +1549,7 @@ export declare const LadderResponse: z.ZodObject<{
1531
1549
  bybit: "bybit";
1532
1550
  okx: "okx";
1533
1551
  lighter: "lighter";
1552
+ lighter_rhc: "lighter_rhc";
1534
1553
  }>;
1535
1554
  side: z.ZodEnum<{
1536
1555
  BUY: "BUY";
@@ -1623,6 +1642,7 @@ export declare const LadderResponse: z.ZodObject<{
1623
1642
  bybit: "bybit";
1624
1643
  okx: "okx";
1625
1644
  lighter: "lighter";
1645
+ lighter_rhc: "lighter_rhc";
1626
1646
  }>;
1627
1647
  symbol: z.ZodString;
1628
1648
  track: z.ZodEnum<{
@@ -1703,6 +1723,7 @@ export declare const LadderResponse: z.ZodObject<{
1703
1723
  bybit: "bybit";
1704
1724
  okx: "okx";
1705
1725
  lighter: "lighter";
1726
+ lighter_rhc: "lighter_rhc";
1706
1727
  }>;
1707
1728
  status: z.ZodEnum<{
1708
1729
  CANCELLED: "CANCELLED";
@@ -1739,6 +1760,7 @@ export declare const LadderResponse: z.ZodObject<{
1739
1760
  bybit: "bybit";
1740
1761
  okx: "okx";
1741
1762
  lighter: "lighter";
1763
+ lighter_rhc: "lighter_rhc";
1742
1764
  }>;
1743
1765
  side: z.ZodEnum<{
1744
1766
  BUY: "BUY";
@@ -1870,6 +1892,7 @@ export declare const LadderResponse: z.ZodObject<{
1870
1892
  bybit: "bybit";
1871
1893
  okx: "okx";
1872
1894
  lighter: "lighter";
1895
+ lighter_rhc: "lighter_rhc";
1873
1896
  }>;
1874
1897
  symbol: z.ZodString;
1875
1898
  track: z.ZodEnum<{
@@ -1957,6 +1980,7 @@ export declare const LadderResponse: z.ZodObject<{
1957
1980
  bybit: "bybit";
1958
1981
  okx: "okx";
1959
1982
  lighter: "lighter";
1983
+ lighter_rhc: "lighter_rhc";
1960
1984
  }>;
1961
1985
  status: z.ZodEnum<{
1962
1986
  CANCELLED: "CANCELLED";
@@ -1993,6 +2017,7 @@ export declare const LadderResponse: z.ZodObject<{
1993
2017
  bybit: "bybit";
1994
2018
  okx: "okx";
1995
2019
  lighter: "lighter";
2020
+ lighter_rhc: "lighter_rhc";
1996
2021
  }>;
1997
2022
  side: z.ZodEnum<{
1998
2023
  BUY: "BUY";
@@ -2183,6 +2208,7 @@ export declare const LadderResponse: z.ZodObject<{
2183
2208
  bybit: "bybit";
2184
2209
  okx: "okx";
2185
2210
  lighter: "lighter";
2211
+ lighter_rhc: "lighter_rhc";
2186
2212
  }>;
2187
2213
  symbol: z.ZodString;
2188
2214
  track: z.ZodEnum<{
@@ -2243,6 +2269,7 @@ export declare const LadderResponse: z.ZodObject<{
2243
2269
  bybit: "bybit";
2244
2270
  okx: "okx";
2245
2271
  lighter: "lighter";
2272
+ lighter_rhc: "lighter_rhc";
2246
2273
  }>;
2247
2274
  status: z.ZodEnum<{
2248
2275
  CANCELLED: "CANCELLED";
@@ -2279,6 +2306,7 @@ export declare const LadderResponse: z.ZodObject<{
2279
2306
  bybit: "bybit";
2280
2307
  okx: "okx";
2281
2308
  lighter: "lighter";
2309
+ lighter_rhc: "lighter_rhc";
2282
2310
  }>;
2283
2311
  side: z.ZodEnum<{
2284
2312
  BUY: "BUY";
@@ -2411,6 +2439,7 @@ export declare const LadderResponse: z.ZodObject<{
2411
2439
  bybit: "bybit";
2412
2440
  okx: "okx";
2413
2441
  lighter: "lighter";
2442
+ lighter_rhc: "lighter_rhc";
2414
2443
  }>;
2415
2444
  symbol: z.ZodString;
2416
2445
  track: z.ZodEnum<{
@@ -2495,6 +2524,7 @@ export declare const LadderResponse: z.ZodObject<{
2495
2524
  bybit: "bybit";
2496
2525
  okx: "okx";
2497
2526
  lighter: "lighter";
2527
+ lighter_rhc: "lighter_rhc";
2498
2528
  }>;
2499
2529
  status: z.ZodEnum<{
2500
2530
  CANCELLED: "CANCELLED";
@@ -2531,6 +2561,7 @@ export declare const LadderResponse: z.ZodObject<{
2531
2561
  bybit: "bybit";
2532
2562
  okx: "okx";
2533
2563
  lighter: "lighter";
2564
+ lighter_rhc: "lighter_rhc";
2534
2565
  }>;
2535
2566
  side: z.ZodEnum<{
2536
2567
  BUY: "BUY";
@@ -2722,6 +2753,7 @@ export declare const LadderResponse: z.ZodObject<{
2722
2753
  bybit: "bybit";
2723
2754
  okx: "okx";
2724
2755
  lighter: "lighter";
2756
+ lighter_rhc: "lighter_rhc";
2725
2757
  }>;
2726
2758
  symbol: z.ZodString;
2727
2759
  track: z.ZodEnum<{
@@ -2796,6 +2828,7 @@ export declare const LadderListResponse: z.ZodObject<{
2796
2828
  bybit: "bybit";
2797
2829
  okx: "okx";
2798
2830
  lighter: "lighter";
2831
+ lighter_rhc: "lighter_rhc";
2799
2832
  }>;
2800
2833
  positionKey: z.ZodString;
2801
2834
  config: z.ZodObject<{
@@ -2890,6 +2923,7 @@ export declare const LadderListResponse: z.ZodObject<{
2890
2923
  bybit: "bybit";
2891
2924
  okx: "okx";
2892
2925
  lighter: "lighter";
2926
+ lighter_rhc: "lighter_rhc";
2893
2927
  }>;
2894
2928
  status: z.ZodEnum<{
2895
2929
  CANCELLED: "CANCELLED";
@@ -2926,6 +2960,7 @@ export declare const LadderListResponse: z.ZodObject<{
2926
2960
  bybit: "bybit";
2927
2961
  okx: "okx";
2928
2962
  lighter: "lighter";
2963
+ lighter_rhc: "lighter_rhc";
2929
2964
  }>;
2930
2965
  side: z.ZodEnum<{
2931
2966
  BUY: "BUY";
@@ -3018,6 +3053,7 @@ export declare const LadderListResponse: z.ZodObject<{
3018
3053
  bybit: "bybit";
3019
3054
  okx: "okx";
3020
3055
  lighter: "lighter";
3056
+ lighter_rhc: "lighter_rhc";
3021
3057
  }>;
3022
3058
  symbol: z.ZodString;
3023
3059
  track: z.ZodEnum<{
@@ -3098,6 +3134,7 @@ export declare const LadderListResponse: z.ZodObject<{
3098
3134
  bybit: "bybit";
3099
3135
  okx: "okx";
3100
3136
  lighter: "lighter";
3137
+ lighter_rhc: "lighter_rhc";
3101
3138
  }>;
3102
3139
  status: z.ZodEnum<{
3103
3140
  CANCELLED: "CANCELLED";
@@ -3134,6 +3171,7 @@ export declare const LadderListResponse: z.ZodObject<{
3134
3171
  bybit: "bybit";
3135
3172
  okx: "okx";
3136
3173
  lighter: "lighter";
3174
+ lighter_rhc: "lighter_rhc";
3137
3175
  }>;
3138
3176
  side: z.ZodEnum<{
3139
3177
  BUY: "BUY";
@@ -3265,6 +3303,7 @@ export declare const LadderListResponse: z.ZodObject<{
3265
3303
  bybit: "bybit";
3266
3304
  okx: "okx";
3267
3305
  lighter: "lighter";
3306
+ lighter_rhc: "lighter_rhc";
3268
3307
  }>;
3269
3308
  symbol: z.ZodString;
3270
3309
  track: z.ZodEnum<{
@@ -3352,6 +3391,7 @@ export declare const LadderListResponse: z.ZodObject<{
3352
3391
  bybit: "bybit";
3353
3392
  okx: "okx";
3354
3393
  lighter: "lighter";
3394
+ lighter_rhc: "lighter_rhc";
3355
3395
  }>;
3356
3396
  status: z.ZodEnum<{
3357
3397
  CANCELLED: "CANCELLED";
@@ -3388,6 +3428,7 @@ export declare const LadderListResponse: z.ZodObject<{
3388
3428
  bybit: "bybit";
3389
3429
  okx: "okx";
3390
3430
  lighter: "lighter";
3431
+ lighter_rhc: "lighter_rhc";
3391
3432
  }>;
3392
3433
  side: z.ZodEnum<{
3393
3434
  BUY: "BUY";
@@ -3578,6 +3619,7 @@ export declare const LadderListResponse: z.ZodObject<{
3578
3619
  bybit: "bybit";
3579
3620
  okx: "okx";
3580
3621
  lighter: "lighter";
3622
+ lighter_rhc: "lighter_rhc";
3581
3623
  }>;
3582
3624
  symbol: z.ZodString;
3583
3625
  track: z.ZodEnum<{
@@ -3638,6 +3680,7 @@ export declare const LadderListResponse: z.ZodObject<{
3638
3680
  bybit: "bybit";
3639
3681
  okx: "okx";
3640
3682
  lighter: "lighter";
3683
+ lighter_rhc: "lighter_rhc";
3641
3684
  }>;
3642
3685
  status: z.ZodEnum<{
3643
3686
  CANCELLED: "CANCELLED";
@@ -3674,6 +3717,7 @@ export declare const LadderListResponse: z.ZodObject<{
3674
3717
  bybit: "bybit";
3675
3718
  okx: "okx";
3676
3719
  lighter: "lighter";
3720
+ lighter_rhc: "lighter_rhc";
3677
3721
  }>;
3678
3722
  side: z.ZodEnum<{
3679
3723
  BUY: "BUY";
@@ -3806,6 +3850,7 @@ export declare const LadderListResponse: z.ZodObject<{
3806
3850
  bybit: "bybit";
3807
3851
  okx: "okx";
3808
3852
  lighter: "lighter";
3853
+ lighter_rhc: "lighter_rhc";
3809
3854
  }>;
3810
3855
  symbol: z.ZodString;
3811
3856
  track: z.ZodEnum<{
@@ -3890,6 +3935,7 @@ export declare const LadderListResponse: z.ZodObject<{
3890
3935
  bybit: "bybit";
3891
3936
  okx: "okx";
3892
3937
  lighter: "lighter";
3938
+ lighter_rhc: "lighter_rhc";
3893
3939
  }>;
3894
3940
  status: z.ZodEnum<{
3895
3941
  CANCELLED: "CANCELLED";
@@ -3926,6 +3972,7 @@ export declare const LadderListResponse: z.ZodObject<{
3926
3972
  bybit: "bybit";
3927
3973
  okx: "okx";
3928
3974
  lighter: "lighter";
3975
+ lighter_rhc: "lighter_rhc";
3929
3976
  }>;
3930
3977
  side: z.ZodEnum<{
3931
3978
  BUY: "BUY";
@@ -4117,6 +4164,7 @@ export declare const LadderListResponse: z.ZodObject<{
4117
4164
  bybit: "bybit";
4118
4165
  okx: "okx";
4119
4166
  lighter: "lighter";
4167
+ lighter_rhc: "lighter_rhc";
4120
4168
  }>;
4121
4169
  symbol: z.ZodString;
4122
4170
  track: z.ZodEnum<{
@@ -0,0 +1,2 @@
1
+ export * from './payloads';
2
+ export * from './response';
@@ -0,0 +1,2 @@
1
+ export * from './payloads';
2
+ export * from './response';
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const AdjustIsolatedMargin: z.ZodObject<{
3
+ symbol: z.ZodString;
4
+ amount: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
5
+ idempotencyKey: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export type AdjustIsolatedMargin = z.infer<typeof AdjustIsolatedMargin>;
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { SignedDecimalString } from '../common/schema';
3
+ import { InstrumentId } from '../instrument/entities';
4
+
5
+ const AdjustIsolatedMargin = z.object({
6
+ symbol: InstrumentId,
7
+ /**
8
+ * Signed margin movement in USD: `"+50"` adds 50 to the position, `"-50"` removes 50 from it.
9
+ * The sign is required, so a movement can never mean the opposite of what was intended.
10
+ */
11
+ amount: SignedDecimalString.refine((amount) => Number(amount) !== 0, "Amount must not be zero"),
12
+ /**
13
+ * Optional caller-supplied idempotency key, scoped to the trade account. A retry carrying the
14
+ * same key attaches to the first attempt and receives its outcome instead of moving the margin
15
+ * again. Omitted, the server mints one; either way it is returned as `adjustmentId`.
16
+ */
17
+ idempotencyKey: z.string().min(1).max(128).optional()
18
+ });
19
+
20
+ export { AdjustIsolatedMargin };
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const AdjustIsolatedMarginResponse: z.ZodObject<{
3
+ adjustmentId: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type AdjustIsolatedMarginResponse = z.infer<typeof AdjustIsolatedMarginResponse>;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+
3
+ const AdjustIsolatedMarginResponse = z.object({
4
+ /**
5
+ * The caller's `idempotencyKey` when supplied, otherwise a server-minted UUID. Reusing it as the
6
+ * request key replays this movement's outcome.
7
+ */
8
+ adjustmentId: z.string().min(1).max(128)
9
+ });
10
+
11
+ export { AdjustIsolatedMarginResponse };
@@ -6,6 +6,7 @@ export declare const Market: z.ZodObject<{
6
6
  bybit: "bybit";
7
7
  okx: "okx";
8
8
  lighter: "lighter";
9
+ lighter_rhc: "lighter_rhc";
9
10
  }>;
10
11
  instrumentId: z.ZodString;
11
12
  displaySymbol: z.ZodString;
@@ -34,6 +35,7 @@ export declare const BasketMarket: z.ZodObject<{
34
35
  bybit: "bybit";
35
36
  okx: "okx";
36
37
  lighter: "lighter";
38
+ lighter_rhc: "lighter_rhc";
37
39
  }>;
38
40
  basketKey: z.ZodString;
39
41
  displaySymbol: z.ZodString;
@@ -15,6 +15,7 @@ export declare const MarketBasketPositionCountsPayload: z.ZodObject<{
15
15
  bybit: "bybit";
16
16
  okx: "okx";
17
17
  lighter: "lighter";
18
+ lighter_rhc: "lighter_rhc";
18
19
  }>>>;
19
20
  basketKeys: z.ZodArray<z.ZodString>;
20
21
  }, z.core.$strip>;
@@ -6,6 +6,7 @@ export declare const MarketsQueryParams: z.ZodObject<{
6
6
  bybit: "bybit";
7
7
  okx: "okx";
8
8
  lighter: "lighter";
9
+ lighter_rhc: "lighter_rhc";
9
10
  }>;
10
11
  scope: z.ZodDefault<z.ZodEnum<{
11
12
  tradable: "tradable";
@@ -23,6 +24,7 @@ export declare const MarketBasketsQueryParams: z.ZodObject<{
23
24
  bybit: "bybit";
24
25
  okx: "okx";
25
26
  lighter: "lighter";
27
+ lighter_rhc: "lighter_rhc";
26
28
  }>;
27
29
  scope: z.ZodDefault<z.ZodEnum<{
28
30
  tradable: "tradable";
@@ -7,6 +7,7 @@ export declare const MarketsResponse: z.ZodObject<{
7
7
  bybit: "bybit";
8
8
  okx: "okx";
9
9
  lighter: "lighter";
10
+ lighter_rhc: "lighter_rhc";
10
11
  }>;
11
12
  instrumentId: z.ZodString;
12
13
  displaySymbol: z.ZodString;
@@ -45,6 +46,7 @@ export declare const MarketBasketsResponse: z.ZodObject<{
45
46
  bybit: "bybit";
46
47
  okx: "okx";
47
48
  lighter: "lighter";
49
+ lighter_rhc: "lighter_rhc";
48
50
  }>;
49
51
  basketKey: z.ZodString;
50
52
  displaySymbol: z.ZodString;
@@ -87,6 +87,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
87
87
  bybit: "bybit";
88
88
  okx: "okx";
89
89
  lighter: "lighter";
90
+ lighter_rhc: "lighter_rhc";
90
91
  }>;
91
92
  }, z.core.$strip>, z.ZodObject<{
92
93
  legs: z.ZodArray<z.ZodObject<{
@@ -129,6 +130,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
129
130
  bybit: "bybit";
130
131
  okx: "okx";
131
132
  lighter: "lighter";
133
+ lighter_rhc: "lighter_rhc";
132
134
  }>;
133
135
  }, z.core.$strip>, z.ZodObject<{
134
136
  legs: z.ZodArray<z.ZodObject<{
@@ -167,6 +169,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
167
169
  bybit: "bybit";
168
170
  okx: "okx";
169
171
  lighter: "lighter";
172
+ lighter_rhc: "lighter_rhc";
170
173
  }>;
171
174
  }, z.core.$strip>, z.ZodObject<{
172
175
  legs: z.ZodArray<z.ZodObject<{
@@ -204,6 +207,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
204
207
  bybit: "bybit";
205
208
  okx: "okx";
206
209
  lighter: "lighter";
210
+ lighter_rhc: "lighter_rhc";
207
211
  }>;
208
212
  }, z.core.$strip>, z.ZodObject<{
209
213
  legs: z.ZodArray<z.ZodObject<{
@@ -223,6 +227,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
223
227
  bybit: "bybit";
224
228
  okx: "okx";
225
229
  lighter: "lighter";
230
+ lighter_rhc: "lighter_rhc";
226
231
  }>;
227
232
  discarded: z.ZodArray<z.ZodObject<{
228
233
  bracketType: z.ZodEnum<{
@@ -275,6 +280,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
275
280
  bybit: "bybit";
276
281
  okx: "okx";
277
282
  lighter: "lighter";
283
+ lighter_rhc: "lighter_rhc";
278
284
  }>;
279
285
  weightSource: z.ZodEnum<{
280
286
  INITIAL_WEIGHT: "INITIAL_WEIGHT";
@@ -303,6 +309,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
303
309
  bybit: "bybit";
304
310
  okx: "okx";
305
311
  lighter: "lighter";
312
+ lighter_rhc: "lighter_rhc";
306
313
  }>;
307
314
  weightSource: z.ZodEnum<{
308
315
  INITIAL_WEIGHT: "INITIAL_WEIGHT";
@@ -332,6 +339,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
332
339
  bybit: "bybit";
333
340
  okx: "okx";
334
341
  lighter: "lighter";
342
+ lighter_rhc: "lighter_rhc";
335
343
  }>;
336
344
  weightSource: z.ZodEnum<{
337
345
  INITIAL_WEIGHT: "INITIAL_WEIGHT";
@@ -355,6 +363,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
355
363
  bybit: "bybit";
356
364
  okx: "okx";
357
365
  lighter: "lighter";
366
+ lighter_rhc: "lighter_rhc";
358
367
  }>;
359
368
  type: z.ZodLiteral<"trigger_twap_started">;
360
369
  scheduleId: z.ZodUUID;
@@ -375,6 +384,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
375
384
  bybit: "bybit";
376
385
  okx: "okx";
377
386
  lighter: "lighter";
387
+ lighter_rhc: "lighter_rhc";
378
388
  }>;
379
389
  type: z.ZodLiteral<"trigger_twap_skipped">;
380
390
  reason: z.ZodString;
@@ -395,6 +405,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
395
405
  bybit: "bybit";
396
406
  okx: "okx";
397
407
  lighter: "lighter";
408
+ lighter_rhc: "lighter_rhc";
398
409
  }>;
399
410
  type: z.ZodLiteral<"trigger_twap_failed">;
400
411
  scheduleId: z.ZodOptional<z.ZodUUID>;
@@ -416,6 +427,7 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
416
427
  bybit: "bybit";
417
428
  okx: "okx";
418
429
  lighter: "lighter";
430
+ lighter_rhc: "lighter_rhc";
419
431
  }>;
420
432
  type: z.ZodLiteral<"trigger_twap_position_changed">;
421
433
  scheduleId: z.ZodUUID;
@@ -488,6 +500,7 @@ export declare const Notification: z.ZodObject<{
488
500
  bybit: "bybit";
489
501
  okx: "okx";
490
502
  lighter: "lighter";
503
+ lighter_rhc: "lighter_rhc";
491
504
  }>;
492
505
  }, z.core.$strip>, z.ZodObject<{
493
506
  legs: z.ZodArray<z.ZodObject<{
@@ -530,6 +543,7 @@ export declare const Notification: z.ZodObject<{
530
543
  bybit: "bybit";
531
544
  okx: "okx";
532
545
  lighter: "lighter";
546
+ lighter_rhc: "lighter_rhc";
533
547
  }>;
534
548
  }, z.core.$strip>, z.ZodObject<{
535
549
  legs: z.ZodArray<z.ZodObject<{
@@ -568,6 +582,7 @@ export declare const Notification: z.ZodObject<{
568
582
  bybit: "bybit";
569
583
  okx: "okx";
570
584
  lighter: "lighter";
585
+ lighter_rhc: "lighter_rhc";
571
586
  }>;
572
587
  }, z.core.$strip>, z.ZodObject<{
573
588
  legs: z.ZodArray<z.ZodObject<{
@@ -605,6 +620,7 @@ export declare const Notification: z.ZodObject<{
605
620
  bybit: "bybit";
606
621
  okx: "okx";
607
622
  lighter: "lighter";
623
+ lighter_rhc: "lighter_rhc";
608
624
  }>;
609
625
  }, z.core.$strip>, z.ZodObject<{
610
626
  legs: z.ZodArray<z.ZodObject<{
@@ -624,6 +640,7 @@ export declare const Notification: z.ZodObject<{
624
640
  bybit: "bybit";
625
641
  okx: "okx";
626
642
  lighter: "lighter";
643
+ lighter_rhc: "lighter_rhc";
627
644
  }>;
628
645
  discarded: z.ZodArray<z.ZodObject<{
629
646
  bracketType: z.ZodEnum<{
@@ -676,6 +693,7 @@ export declare const Notification: z.ZodObject<{
676
693
  bybit: "bybit";
677
694
  okx: "okx";
678
695
  lighter: "lighter";
696
+ lighter_rhc: "lighter_rhc";
679
697
  }>;
680
698
  weightSource: z.ZodEnum<{
681
699
  INITIAL_WEIGHT: "INITIAL_WEIGHT";
@@ -704,6 +722,7 @@ export declare const Notification: z.ZodObject<{
704
722
  bybit: "bybit";
705
723
  okx: "okx";
706
724
  lighter: "lighter";
725
+ lighter_rhc: "lighter_rhc";
707
726
  }>;
708
727
  weightSource: z.ZodEnum<{
709
728
  INITIAL_WEIGHT: "INITIAL_WEIGHT";
@@ -733,6 +752,7 @@ export declare const Notification: z.ZodObject<{
733
752
  bybit: "bybit";
734
753
  okx: "okx";
735
754
  lighter: "lighter";
755
+ lighter_rhc: "lighter_rhc";
736
756
  }>;
737
757
  weightSource: z.ZodEnum<{
738
758
  INITIAL_WEIGHT: "INITIAL_WEIGHT";
@@ -756,6 +776,7 @@ export declare const Notification: z.ZodObject<{
756
776
  bybit: "bybit";
757
777
  okx: "okx";
758
778
  lighter: "lighter";
779
+ lighter_rhc: "lighter_rhc";
759
780
  }>;
760
781
  type: z.ZodLiteral<"trigger_twap_started">;
761
782
  scheduleId: z.ZodUUID;
@@ -776,6 +797,7 @@ export declare const Notification: z.ZodObject<{
776
797
  bybit: "bybit";
777
798
  okx: "okx";
778
799
  lighter: "lighter";
800
+ lighter_rhc: "lighter_rhc";
779
801
  }>;
780
802
  type: z.ZodLiteral<"trigger_twap_skipped">;
781
803
  reason: z.ZodString;
@@ -796,6 +818,7 @@ export declare const Notification: z.ZodObject<{
796
818
  bybit: "bybit";
797
819
  okx: "okx";
798
820
  lighter: "lighter";
821
+ lighter_rhc: "lighter_rhc";
799
822
  }>;
800
823
  type: z.ZodLiteral<"trigger_twap_failed">;
801
824
  scheduleId: z.ZodOptional<z.ZodUUID>;
@@ -817,6 +840,7 @@ export declare const Notification: z.ZodObject<{
817
840
  bybit: "bybit";
818
841
  okx: "okx";
819
842
  lighter: "lighter";
843
+ lighter_rhc: "lighter_rhc";
820
844
  }>;
821
845
  type: z.ZodLiteral<"trigger_twap_position_changed">;
822
846
  scheduleId: z.ZodUUID;