@pear-protocol/types 2.22.1 → 2.24.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 (44) hide show
  1. package/dist/bundle.d.ts +1 -0
  2. package/dist/common/transaction-hash.d.ts +7 -0
  3. package/dist/copy/entities.d.ts +160 -10
  4. package/dist/copy/responses.d.ts +95 -11
  5. package/dist/execution/entities.d.ts +43 -43
  6. package/dist/execution/queries.d.ts +3 -2
  7. package/dist/execution/responses.d.ts +24 -24
  8. package/dist/fill/entities.d.ts +60 -1
  9. package/dist/fill/queries.d.ts +1 -0
  10. package/dist/fill/responses.d.ts +34 -4
  11. package/dist/index.js +668 -410
  12. package/dist/ladder/entities.d.ts +141 -24
  13. package/dist/ladder/payloads.d.ts +60 -24
  14. package/dist/ladder/queries.d.ts +2 -2
  15. package/dist/ladder/responses.d.ts +420 -69
  16. package/dist/notification/entities.d.ts +53 -6
  17. package/dist/notification/responses.d.ts +24 -2
  18. package/dist/order/entities.d.ts +3 -3
  19. package/dist/position/entities.d.ts +5 -5
  20. package/dist/position/responses.d.ts +4 -4
  21. package/dist/realtime/frames.d.ts +38 -6
  22. package/dist/realtime/public-events.d.ts +19 -3
  23. package/dist/rewards/entities.d.ts +18 -0
  24. package/dist/rewards/index.d.ts +1 -0
  25. package/dist/rewards/queries.d.ts +7 -0
  26. package/dist/rewards/responses.d.ts +54 -0
  27. package/dist/schedule/entities.d.ts +155 -19
  28. package/dist/schedule/index.d.ts +1 -0
  29. package/dist/schedule/queries.d.ts +3 -2
  30. package/dist/schedule/responses.d.ts +142 -19
  31. package/dist/sync/payloads.d.ts +56 -88
  32. package/dist/tca/responses.d.ts +12 -12
  33. package/dist/trade/payloads.d.ts +60 -24
  34. package/dist/trade/responses.d.ts +60 -60
  35. package/dist/traders/performance.d.ts +4 -0
  36. package/dist/traders/public.d.ts +537 -285
  37. package/dist/trigger/common/index.d.ts +8 -2
  38. package/dist/trigger/entities/conditions.d.ts +40 -0
  39. package/dist/trigger/entities/index.d.ts +339 -32
  40. package/dist/trigger/payloads/conditions.d.ts +70 -38
  41. package/dist/trigger/payloads/index.d.ts +408 -216
  42. package/dist/trigger/queries.d.ts +2 -2
  43. package/dist/trigger/responses.d.ts +218 -20
  44. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ExecutionIntent: z.ZodEnum<{
3
3
  OPEN: "OPEN";
4
- ADJUST: "ADJUST";
5
4
  CLOSE: "CLOSE";
5
+ ADJUST: "ADJUST";
6
6
  REVERSE: "REVERSE";
7
7
  }>;
8
8
  export type ExecutionIntent = z.infer<typeof ExecutionIntent>;
@@ -11,11 +11,11 @@ export declare const ExecutionOrderType: z.ZodEnum<{
11
11
  }>;
12
12
  export type ExecutionOrderType = z.infer<typeof ExecutionOrderType>;
13
13
  export declare const ExecutionStatus: z.ZodEnum<{
14
- FAILED: "FAILED";
15
14
  ACTIVE: "ACTIVE";
15
+ COMPLETED: "COMPLETED";
16
+ FAILED: "FAILED";
16
17
  CANCELLED: "CANCELLED";
17
18
  IDLE: "IDLE";
18
- COMPLETED: "COMPLETED";
19
19
  }>;
20
20
  export type ExecutionStatus = z.infer<typeof ExecutionStatus>;
21
21
  export declare const ExecutionFulfillment: z.ZodEnum<{
@@ -57,19 +57,19 @@ export declare const BaseExecution: z.ZodObject<{
57
57
  }>;
58
58
  intent: z.ZodEnum<{
59
59
  OPEN: "OPEN";
60
- ADJUST: "ADJUST";
61
60
  CLOSE: "CLOSE";
61
+ ADJUST: "ADJUST";
62
62
  REVERSE: "REVERSE";
63
63
  }>;
64
64
  orderType: z.ZodEnum<{
65
65
  MARKET: "MARKET";
66
66
  }>;
67
67
  status: z.ZodEnum<{
68
- FAILED: "FAILED";
69
68
  ACTIVE: "ACTIVE";
69
+ COMPLETED: "COMPLETED";
70
+ FAILED: "FAILED";
70
71
  CANCELLED: "CANCELLED";
71
72
  IDLE: "IDLE";
72
- COMPLETED: "COMPLETED";
73
73
  }>;
74
74
  error: z.ZodOptional<z.ZodString>;
75
75
  createdAt: z.ZodString;
@@ -85,10 +85,10 @@ export declare const BaseExecution: z.ZodObject<{
85
85
  lighter_rhc: "lighter_rhc";
86
86
  }>;
87
87
  status: z.ZodEnum<{
88
+ CANCELLED: "CANCELLED";
88
89
  PENDING: "PENDING";
89
90
  PARTIAL: "PARTIAL";
90
91
  FILLED: "FILLED";
91
- CANCELLED: "CANCELLED";
92
92
  REJECTED: "REJECTED";
93
93
  }>;
94
94
  error: z.ZodOptional<z.ZodString>;
@@ -125,11 +125,11 @@ export declare const MarketOpenExecution: z.ZodObject<{
125
125
  lighter_rhc: "lighter_rhc";
126
126
  }>;
127
127
  status: z.ZodEnum<{
128
- FAILED: "FAILED";
129
128
  ACTIVE: "ACTIVE";
129
+ COMPLETED: "COMPLETED";
130
+ FAILED: "FAILED";
130
131
  CANCELLED: "CANCELLED";
131
132
  IDLE: "IDLE";
132
- COMPLETED: "COMPLETED";
133
133
  }>;
134
134
  error: z.ZodOptional<z.ZodString>;
135
135
  createdAt: z.ZodString;
@@ -145,10 +145,10 @@ export declare const MarketOpenExecution: z.ZodObject<{
145
145
  lighter_rhc: "lighter_rhc";
146
146
  }>;
147
147
  status: z.ZodEnum<{
148
+ CANCELLED: "CANCELLED";
148
149
  PENDING: "PENDING";
149
150
  PARTIAL: "PARTIAL";
150
151
  FILLED: "FILLED";
151
- CANCELLED: "CANCELLED";
152
152
  REJECTED: "REJECTED";
153
153
  }>;
154
154
  error: z.ZodOptional<z.ZodString>;
@@ -219,11 +219,11 @@ export declare const MarketAdjustExecution: z.ZodObject<{
219
219
  lighter_rhc: "lighter_rhc";
220
220
  }>;
221
221
  status: z.ZodEnum<{
222
- FAILED: "FAILED";
223
222
  ACTIVE: "ACTIVE";
223
+ COMPLETED: "COMPLETED";
224
+ FAILED: "FAILED";
224
225
  CANCELLED: "CANCELLED";
225
226
  IDLE: "IDLE";
226
- COMPLETED: "COMPLETED";
227
227
  }>;
228
228
  error: z.ZodOptional<z.ZodString>;
229
229
  createdAt: z.ZodString;
@@ -239,10 +239,10 @@ export declare const MarketAdjustExecution: z.ZodObject<{
239
239
  lighter_rhc: "lighter_rhc";
240
240
  }>;
241
241
  status: z.ZodEnum<{
242
+ CANCELLED: "CANCELLED";
242
243
  PENDING: "PENDING";
243
244
  PARTIAL: "PARTIAL";
244
245
  FILLED: "FILLED";
245
- CANCELLED: "CANCELLED";
246
246
  REJECTED: "REJECTED";
247
247
  }>;
248
248
  error: z.ZodOptional<z.ZodString>;
@@ -314,11 +314,11 @@ export declare const MarketCloseExecution: z.ZodObject<{
314
314
  lighter_rhc: "lighter_rhc";
315
315
  }>;
316
316
  status: z.ZodEnum<{
317
- FAILED: "FAILED";
318
317
  ACTIVE: "ACTIVE";
318
+ COMPLETED: "COMPLETED";
319
+ FAILED: "FAILED";
319
320
  CANCELLED: "CANCELLED";
320
321
  IDLE: "IDLE";
321
- COMPLETED: "COMPLETED";
322
322
  }>;
323
323
  error: z.ZodOptional<z.ZodString>;
324
324
  createdAt: z.ZodString;
@@ -334,10 +334,10 @@ export declare const MarketCloseExecution: z.ZodObject<{
334
334
  lighter_rhc: "lighter_rhc";
335
335
  }>;
336
336
  status: z.ZodEnum<{
337
+ CANCELLED: "CANCELLED";
337
338
  PENDING: "PENDING";
338
339
  PARTIAL: "PARTIAL";
339
340
  FILLED: "FILLED";
340
- CANCELLED: "CANCELLED";
341
341
  REJECTED: "REJECTED";
342
342
  }>;
343
343
  error: z.ZodOptional<z.ZodString>;
@@ -380,11 +380,11 @@ export declare const MarketReverseExecution: z.ZodObject<{
380
380
  lighter_rhc: "lighter_rhc";
381
381
  }>;
382
382
  status: z.ZodEnum<{
383
- FAILED: "FAILED";
384
383
  ACTIVE: "ACTIVE";
384
+ COMPLETED: "COMPLETED";
385
+ FAILED: "FAILED";
385
386
  CANCELLED: "CANCELLED";
386
387
  IDLE: "IDLE";
387
- COMPLETED: "COMPLETED";
388
388
  }>;
389
389
  error: z.ZodOptional<z.ZodString>;
390
390
  createdAt: z.ZodString;
@@ -400,10 +400,10 @@ export declare const MarketReverseExecution: z.ZodObject<{
400
400
  lighter_rhc: "lighter_rhc";
401
401
  }>;
402
402
  status: z.ZodEnum<{
403
+ CANCELLED: "CANCELLED";
403
404
  PENDING: "PENDING";
404
405
  PARTIAL: "PARTIAL";
405
406
  FILLED: "FILLED";
406
- CANCELLED: "CANCELLED";
407
407
  REJECTED: "REJECTED";
408
408
  }>;
409
409
  error: z.ZodOptional<z.ZodString>;
@@ -446,11 +446,11 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
446
446
  lighter_rhc: "lighter_rhc";
447
447
  }>;
448
448
  status: z.ZodEnum<{
449
- FAILED: "FAILED";
450
449
  ACTIVE: "ACTIVE";
450
+ COMPLETED: "COMPLETED";
451
+ FAILED: "FAILED";
451
452
  CANCELLED: "CANCELLED";
452
453
  IDLE: "IDLE";
453
- COMPLETED: "COMPLETED";
454
454
  }>;
455
455
  error: z.ZodOptional<z.ZodString>;
456
456
  createdAt: z.ZodString;
@@ -466,10 +466,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
466
466
  lighter_rhc: "lighter_rhc";
467
467
  }>;
468
468
  status: z.ZodEnum<{
469
+ CANCELLED: "CANCELLED";
469
470
  PENDING: "PENDING";
470
471
  PARTIAL: "PARTIAL";
471
472
  FILLED: "FILLED";
472
- CANCELLED: "CANCELLED";
473
473
  REJECTED: "REJECTED";
474
474
  }>;
475
475
  error: z.ZodOptional<z.ZodString>;
@@ -539,11 +539,11 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
539
539
  lighter_rhc: "lighter_rhc";
540
540
  }>;
541
541
  status: z.ZodEnum<{
542
- FAILED: "FAILED";
543
542
  ACTIVE: "ACTIVE";
543
+ COMPLETED: "COMPLETED";
544
+ FAILED: "FAILED";
544
545
  CANCELLED: "CANCELLED";
545
546
  IDLE: "IDLE";
546
- COMPLETED: "COMPLETED";
547
547
  }>;
548
548
  error: z.ZodOptional<z.ZodString>;
549
549
  createdAt: z.ZodString;
@@ -559,10 +559,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
559
559
  lighter_rhc: "lighter_rhc";
560
560
  }>;
561
561
  status: z.ZodEnum<{
562
+ CANCELLED: "CANCELLED";
562
563
  PENDING: "PENDING";
563
564
  PARTIAL: "PARTIAL";
564
565
  FILLED: "FILLED";
565
- CANCELLED: "CANCELLED";
566
566
  REJECTED: "REJECTED";
567
567
  }>;
568
568
  error: z.ZodOptional<z.ZodString>;
@@ -633,11 +633,11 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
633
633
  lighter_rhc: "lighter_rhc";
634
634
  }>;
635
635
  status: z.ZodEnum<{
636
- FAILED: "FAILED";
637
636
  ACTIVE: "ACTIVE";
637
+ COMPLETED: "COMPLETED";
638
+ FAILED: "FAILED";
638
639
  CANCELLED: "CANCELLED";
639
640
  IDLE: "IDLE";
640
- COMPLETED: "COMPLETED";
641
641
  }>;
642
642
  error: z.ZodOptional<z.ZodString>;
643
643
  createdAt: z.ZodString;
@@ -653,10 +653,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
653
653
  lighter_rhc: "lighter_rhc";
654
654
  }>;
655
655
  status: z.ZodEnum<{
656
+ CANCELLED: "CANCELLED";
656
657
  PENDING: "PENDING";
657
658
  PARTIAL: "PARTIAL";
658
659
  FILLED: "FILLED";
659
- CANCELLED: "CANCELLED";
660
660
  REJECTED: "REJECTED";
661
661
  }>;
662
662
  error: z.ZodOptional<z.ZodString>;
@@ -698,11 +698,11 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
698
698
  lighter_rhc: "lighter_rhc";
699
699
  }>;
700
700
  status: z.ZodEnum<{
701
- FAILED: "FAILED";
702
701
  ACTIVE: "ACTIVE";
702
+ COMPLETED: "COMPLETED";
703
+ FAILED: "FAILED";
703
704
  CANCELLED: "CANCELLED";
704
705
  IDLE: "IDLE";
705
- COMPLETED: "COMPLETED";
706
706
  }>;
707
707
  error: z.ZodOptional<z.ZodString>;
708
708
  createdAt: z.ZodString;
@@ -718,10 +718,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
718
718
  lighter_rhc: "lighter_rhc";
719
719
  }>;
720
720
  status: z.ZodEnum<{
721
+ CANCELLED: "CANCELLED";
721
722
  PENDING: "PENDING";
722
723
  PARTIAL: "PARTIAL";
723
724
  FILLED: "FILLED";
724
- CANCELLED: "CANCELLED";
725
725
  REJECTED: "REJECTED";
726
726
  }>;
727
727
  error: z.ZodOptional<z.ZodString>;
@@ -764,11 +764,11 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
764
764
  lighter_rhc: "lighter_rhc";
765
765
  }>;
766
766
  status: z.ZodEnum<{
767
- FAILED: "FAILED";
768
767
  ACTIVE: "ACTIVE";
768
+ COMPLETED: "COMPLETED";
769
+ FAILED: "FAILED";
769
770
  CANCELLED: "CANCELLED";
770
771
  IDLE: "IDLE";
771
- COMPLETED: "COMPLETED";
772
772
  }>;
773
773
  error: z.ZodOptional<z.ZodString>;
774
774
  createdAt: z.ZodString;
@@ -784,10 +784,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
784
784
  lighter_rhc: "lighter_rhc";
785
785
  }>;
786
786
  status: z.ZodEnum<{
787
+ CANCELLED: "CANCELLED";
787
788
  PENDING: "PENDING";
788
789
  PARTIAL: "PARTIAL";
789
790
  FILLED: "FILLED";
790
- CANCELLED: "CANCELLED";
791
791
  REJECTED: "REJECTED";
792
792
  }>;
793
793
  error: z.ZodOptional<z.ZodString>;
@@ -857,11 +857,11 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
857
857
  lighter_rhc: "lighter_rhc";
858
858
  }>;
859
859
  status: z.ZodEnum<{
860
- FAILED: "FAILED";
861
860
  ACTIVE: "ACTIVE";
861
+ COMPLETED: "COMPLETED";
862
+ FAILED: "FAILED";
862
863
  CANCELLED: "CANCELLED";
863
864
  IDLE: "IDLE";
864
- COMPLETED: "COMPLETED";
865
865
  }>;
866
866
  error: z.ZodOptional<z.ZodString>;
867
867
  createdAt: z.ZodString;
@@ -877,10 +877,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
877
877
  lighter_rhc: "lighter_rhc";
878
878
  }>;
879
879
  status: z.ZodEnum<{
880
+ CANCELLED: "CANCELLED";
880
881
  PENDING: "PENDING";
881
882
  PARTIAL: "PARTIAL";
882
883
  FILLED: "FILLED";
883
- CANCELLED: "CANCELLED";
884
884
  REJECTED: "REJECTED";
885
885
  }>;
886
886
  error: z.ZodOptional<z.ZodString>;
@@ -951,11 +951,11 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
951
951
  lighter_rhc: "lighter_rhc";
952
952
  }>;
953
953
  status: z.ZodEnum<{
954
- FAILED: "FAILED";
955
954
  ACTIVE: "ACTIVE";
955
+ COMPLETED: "COMPLETED";
956
+ FAILED: "FAILED";
956
957
  CANCELLED: "CANCELLED";
957
958
  IDLE: "IDLE";
958
- COMPLETED: "COMPLETED";
959
959
  }>;
960
960
  error: z.ZodOptional<z.ZodString>;
961
961
  createdAt: z.ZodString;
@@ -971,10 +971,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
971
971
  lighter_rhc: "lighter_rhc";
972
972
  }>;
973
973
  status: z.ZodEnum<{
974
+ CANCELLED: "CANCELLED";
974
975
  PENDING: "PENDING";
975
976
  PARTIAL: "PARTIAL";
976
977
  FILLED: "FILLED";
977
- CANCELLED: "CANCELLED";
978
978
  REJECTED: "REJECTED";
979
979
  }>;
980
980
  error: z.ZodOptional<z.ZodString>;
@@ -1016,11 +1016,11 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
1016
1016
  lighter_rhc: "lighter_rhc";
1017
1017
  }>;
1018
1018
  status: z.ZodEnum<{
1019
- FAILED: "FAILED";
1020
1019
  ACTIVE: "ACTIVE";
1020
+ COMPLETED: "COMPLETED";
1021
+ FAILED: "FAILED";
1021
1022
  CANCELLED: "CANCELLED";
1022
1023
  IDLE: "IDLE";
1023
- COMPLETED: "COMPLETED";
1024
1024
  }>;
1025
1025
  error: z.ZodOptional<z.ZodString>;
1026
1026
  createdAt: z.ZodString;
@@ -1036,10 +1036,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
1036
1036
  lighter_rhc: "lighter_rhc";
1037
1037
  }>;
1038
1038
  status: z.ZodEnum<{
1039
+ CANCELLED: "CANCELLED";
1039
1040
  PENDING: "PENDING";
1040
1041
  PARTIAL: "PARTIAL";
1041
1042
  FILLED: "FILLED";
1042
- CANCELLED: "CANCELLED";
1043
1043
  REJECTED: "REJECTED";
1044
1044
  }>;
1045
1045
  error: z.ZodOptional<z.ZodString>;
@@ -10,10 +10,11 @@ export declare const ExecutionListParams: z.ZodObject<{
10
10
  lighter: "lighter";
11
11
  lighter_rhc: "lighter_rhc";
12
12
  }>>;
13
- status: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("ACTIVE" | "CANCELLED" | "COMPLETED")[] & any[]) | undefined, ("ACTIVE" | "CANCELLED" | "COMPLETED")[]>, z.ZodArray<z.ZodEnum<{
13
+ status: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED")[] & any[]) | undefined, ("ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED")[]>, z.ZodArray<z.ZodEnum<{
14
14
  ACTIVE: "ACTIVE";
15
- CANCELLED: "CANCELLED";
16
15
  COMPLETED: "COMPLETED";
16
+ FAILED: "FAILED";
17
+ CANCELLED: "CANCELLED";
17
18
  }>>>>;
18
19
  includeSchedule: z.ZodDefault<z.ZodOptional<z.ZodCoercedBoolean<boolean>>>;
19
20
  includeTriggers: z.ZodDefault<z.ZodOptional<z.ZodCoercedBoolean<boolean>>>;
@@ -13,11 +13,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
13
13
  lighter_rhc: "lighter_rhc";
14
14
  }>;
15
15
  status: z.ZodEnum<{
16
- FAILED: "FAILED";
17
16
  ACTIVE: "ACTIVE";
17
+ COMPLETED: "COMPLETED";
18
+ FAILED: "FAILED";
18
19
  CANCELLED: "CANCELLED";
19
20
  IDLE: "IDLE";
20
- COMPLETED: "COMPLETED";
21
21
  }>;
22
22
  error: z.ZodOptional<z.ZodString>;
23
23
  createdAt: z.ZodString;
@@ -33,10 +33,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
33
33
  lighter_rhc: "lighter_rhc";
34
34
  }>;
35
35
  status: z.ZodEnum<{
36
+ CANCELLED: "CANCELLED";
36
37
  PENDING: "PENDING";
37
38
  PARTIAL: "PARTIAL";
38
39
  FILLED: "FILLED";
39
- CANCELLED: "CANCELLED";
40
40
  REJECTED: "REJECTED";
41
41
  }>;
42
42
  error: z.ZodOptional<z.ZodString>;
@@ -106,11 +106,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
106
106
  lighter_rhc: "lighter_rhc";
107
107
  }>;
108
108
  status: z.ZodEnum<{
109
- FAILED: "FAILED";
110
109
  ACTIVE: "ACTIVE";
110
+ COMPLETED: "COMPLETED";
111
+ FAILED: "FAILED";
111
112
  CANCELLED: "CANCELLED";
112
113
  IDLE: "IDLE";
113
- COMPLETED: "COMPLETED";
114
114
  }>;
115
115
  error: z.ZodOptional<z.ZodString>;
116
116
  createdAt: z.ZodString;
@@ -126,10 +126,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
126
126
  lighter_rhc: "lighter_rhc";
127
127
  }>;
128
128
  status: z.ZodEnum<{
129
+ CANCELLED: "CANCELLED";
129
130
  PENDING: "PENDING";
130
131
  PARTIAL: "PARTIAL";
131
132
  FILLED: "FILLED";
132
- CANCELLED: "CANCELLED";
133
133
  REJECTED: "REJECTED";
134
134
  }>;
135
135
  error: z.ZodOptional<z.ZodString>;
@@ -200,11 +200,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
200
200
  lighter_rhc: "lighter_rhc";
201
201
  }>;
202
202
  status: z.ZodEnum<{
203
- FAILED: "FAILED";
204
203
  ACTIVE: "ACTIVE";
204
+ COMPLETED: "COMPLETED";
205
+ FAILED: "FAILED";
205
206
  CANCELLED: "CANCELLED";
206
207
  IDLE: "IDLE";
207
- COMPLETED: "COMPLETED";
208
208
  }>;
209
209
  error: z.ZodOptional<z.ZodString>;
210
210
  createdAt: z.ZodString;
@@ -220,10 +220,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
220
220
  lighter_rhc: "lighter_rhc";
221
221
  }>;
222
222
  status: z.ZodEnum<{
223
+ CANCELLED: "CANCELLED";
223
224
  PENDING: "PENDING";
224
225
  PARTIAL: "PARTIAL";
225
226
  FILLED: "FILLED";
226
- CANCELLED: "CANCELLED";
227
227
  REJECTED: "REJECTED";
228
228
  }>;
229
229
  error: z.ZodOptional<z.ZodString>;
@@ -265,11 +265,11 @@ export declare const ExecutionListResponse: z.ZodObject<{
265
265
  lighter_rhc: "lighter_rhc";
266
266
  }>;
267
267
  status: z.ZodEnum<{
268
- FAILED: "FAILED";
269
268
  ACTIVE: "ACTIVE";
269
+ COMPLETED: "COMPLETED";
270
+ FAILED: "FAILED";
270
271
  CANCELLED: "CANCELLED";
271
272
  IDLE: "IDLE";
272
- COMPLETED: "COMPLETED";
273
273
  }>;
274
274
  error: z.ZodOptional<z.ZodString>;
275
275
  createdAt: z.ZodString;
@@ -285,10 +285,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
285
285
  lighter_rhc: "lighter_rhc";
286
286
  }>;
287
287
  status: z.ZodEnum<{
288
+ CANCELLED: "CANCELLED";
288
289
  PENDING: "PENDING";
289
290
  PARTIAL: "PARTIAL";
290
291
  FILLED: "FILLED";
291
- CANCELLED: "CANCELLED";
292
292
  REJECTED: "REJECTED";
293
293
  }>;
294
294
  error: z.ZodOptional<z.ZodString>;
@@ -334,11 +334,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
334
334
  lighter_rhc: "lighter_rhc";
335
335
  }>;
336
336
  status: z.ZodEnum<{
337
- FAILED: "FAILED";
338
337
  ACTIVE: "ACTIVE";
338
+ COMPLETED: "COMPLETED";
339
+ FAILED: "FAILED";
339
340
  CANCELLED: "CANCELLED";
340
341
  IDLE: "IDLE";
341
- COMPLETED: "COMPLETED";
342
342
  }>;
343
343
  error: z.ZodOptional<z.ZodString>;
344
344
  createdAt: z.ZodString;
@@ -354,10 +354,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
354
354
  lighter_rhc: "lighter_rhc";
355
355
  }>;
356
356
  status: z.ZodEnum<{
357
+ CANCELLED: "CANCELLED";
357
358
  PENDING: "PENDING";
358
359
  PARTIAL: "PARTIAL";
359
360
  FILLED: "FILLED";
360
- CANCELLED: "CANCELLED";
361
361
  REJECTED: "REJECTED";
362
362
  }>;
363
363
  error: z.ZodOptional<z.ZodString>;
@@ -427,11 +427,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
427
427
  lighter_rhc: "lighter_rhc";
428
428
  }>;
429
429
  status: z.ZodEnum<{
430
- FAILED: "FAILED";
431
430
  ACTIVE: "ACTIVE";
431
+ COMPLETED: "COMPLETED";
432
+ FAILED: "FAILED";
432
433
  CANCELLED: "CANCELLED";
433
434
  IDLE: "IDLE";
434
- COMPLETED: "COMPLETED";
435
435
  }>;
436
436
  error: z.ZodOptional<z.ZodString>;
437
437
  createdAt: z.ZodString;
@@ -447,10 +447,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
447
447
  lighter_rhc: "lighter_rhc";
448
448
  }>;
449
449
  status: z.ZodEnum<{
450
+ CANCELLED: "CANCELLED";
450
451
  PENDING: "PENDING";
451
452
  PARTIAL: "PARTIAL";
452
453
  FILLED: "FILLED";
453
- CANCELLED: "CANCELLED";
454
454
  REJECTED: "REJECTED";
455
455
  }>;
456
456
  error: z.ZodOptional<z.ZodString>;
@@ -521,11 +521,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
521
521
  lighter_rhc: "lighter_rhc";
522
522
  }>;
523
523
  status: z.ZodEnum<{
524
- FAILED: "FAILED";
525
524
  ACTIVE: "ACTIVE";
525
+ COMPLETED: "COMPLETED";
526
+ FAILED: "FAILED";
526
527
  CANCELLED: "CANCELLED";
527
528
  IDLE: "IDLE";
528
- COMPLETED: "COMPLETED";
529
529
  }>;
530
530
  error: z.ZodOptional<z.ZodString>;
531
531
  createdAt: z.ZodString;
@@ -541,10 +541,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
541
541
  lighter_rhc: "lighter_rhc";
542
542
  }>;
543
543
  status: z.ZodEnum<{
544
+ CANCELLED: "CANCELLED";
544
545
  PENDING: "PENDING";
545
546
  PARTIAL: "PARTIAL";
546
547
  FILLED: "FILLED";
547
- CANCELLED: "CANCELLED";
548
548
  REJECTED: "REJECTED";
549
549
  }>;
550
550
  error: z.ZodOptional<z.ZodString>;
@@ -586,11 +586,11 @@ export declare const GetExecutionResponse: z.ZodObject<{
586
586
  lighter_rhc: "lighter_rhc";
587
587
  }>;
588
588
  status: z.ZodEnum<{
589
- FAILED: "FAILED";
590
589
  ACTIVE: "ACTIVE";
590
+ COMPLETED: "COMPLETED";
591
+ FAILED: "FAILED";
591
592
  CANCELLED: "CANCELLED";
592
593
  IDLE: "IDLE";
593
- COMPLETED: "COMPLETED";
594
594
  }>;
595
595
  error: z.ZodOptional<z.ZodString>;
596
596
  createdAt: z.ZodString;
@@ -606,10 +606,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
606
606
  lighter_rhc: "lighter_rhc";
607
607
  }>;
608
608
  status: z.ZodEnum<{
609
+ CANCELLED: "CANCELLED";
609
610
  PENDING: "PENDING";
610
611
  PARTIAL: "PARTIAL";
611
612
  FILLED: "FILLED";
612
- CANCELLED: "CANCELLED";
613
613
  REJECTED: "REJECTED";
614
614
  }>;
615
615
  error: z.ZodOptional<z.ZodString>;
@@ -5,6 +5,14 @@ export declare const FillStatus: z.ZodEnum<{
5
5
  RECONCILED: "RECONCILED";
6
6
  }>;
7
7
  export type FillStatus = z.output<typeof FillStatus>;
8
+ export declare const FillAssignment: z.ZodObject<{
9
+ positionId: z.ZodUUID;
10
+ quantity: z.ZodString;
11
+ usd: z.ZodString;
12
+ tradeFee: z.ZodOptional<z.ZodString>;
13
+ pearFee: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export type FillAssignment = z.output<typeof FillAssignment>;
8
16
  export declare const Fill: z.ZodObject<{
9
17
  id: z.ZodUUID;
10
18
  cloid: z.ZodOptional<z.ZodString>;
@@ -16,7 +24,9 @@ export declare const Fill: z.ZodObject<{
16
24
  }>;
17
25
  tradeAccountId: z.ZodUUID;
18
26
  symbol: z.ZodString;
19
- positionId: z.ZodUUID;
27
+ executionId: z.ZodOptional<z.ZodUUID>;
28
+ scheduleId: z.ZodOptional<z.ZodUUID>;
29
+ triggerId: z.ZodOptional<z.ZodUUID>;
20
30
  connector: z.ZodEnum<{
21
31
  hyperliquid: "hyperliquid";
22
32
  binance: "binance";
@@ -42,5 +52,54 @@ export declare const Fill: z.ZodObject<{
42
52
  exchangeFillId: z.ZodString;
43
53
  quantity: z.ZodString;
44
54
  }, z.core.$strip>>;
55
+ assignments: z.ZodArray<z.ZodObject<{
56
+ positionId: z.ZodUUID;
57
+ quantity: z.ZodString;
58
+ usd: z.ZodString;
59
+ tradeFee: z.ZodOptional<z.ZodString>;
60
+ pearFee: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>>;
45
62
  }, z.core.$strip>;
46
63
  export type Fill = z.output<typeof Fill>;
64
+ export declare const PositionFill: z.ZodObject<{
65
+ id: z.ZodUUID;
66
+ cloid: z.ZodOptional<z.ZodString>;
67
+ exchangeFillId: z.ZodOptional<z.ZodString>;
68
+ status: z.ZodEnum<{
69
+ PROVISIONAL: "PROVISIONAL";
70
+ CONFIRMED: "CONFIRMED";
71
+ RECONCILED: "RECONCILED";
72
+ }>;
73
+ tradeAccountId: z.ZodUUID;
74
+ symbol: z.ZodString;
75
+ executionId: z.ZodOptional<z.ZodUUID>;
76
+ scheduleId: z.ZodOptional<z.ZodUUID>;
77
+ triggerId: z.ZodOptional<z.ZodUUID>;
78
+ connector: z.ZodEnum<{
79
+ hyperliquid: "hyperliquid";
80
+ binance: "binance";
81
+ bybit: "bybit";
82
+ okx: "okx";
83
+ lighter: "lighter";
84
+ lighter_rhc: "lighter_rhc";
85
+ }>;
86
+ side: z.ZodEnum<{
87
+ BUY: "BUY";
88
+ SELL: "SELL";
89
+ }>;
90
+ reduceOnly: z.ZodBoolean;
91
+ isExternal: z.ZodBoolean;
92
+ synthetic: z.ZodBoolean;
93
+ quantity: z.ZodString;
94
+ price: z.ZodString;
95
+ usd: z.ZodString;
96
+ tradeFee: z.ZodOptional<z.ZodString>;
97
+ pearFee: z.ZodOptional<z.ZodString>;
98
+ timestamp: z.ZodString;
99
+ original: z.ZodOptional<z.ZodObject<{
100
+ exchangeFillId: z.ZodString;
101
+ quantity: z.ZodString;
102
+ }, z.core.$strip>>;
103
+ positionId: z.ZodUUID;
104
+ }, z.core.$strip>;
105
+ export type PositionFill = z.output<typeof PositionFill>;
@@ -13,4 +13,5 @@ export declare const FillListParams: z.ZodObject<{
13
13
  }>>;
14
14
  orderBy: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"timestamp">, z.ZodLiteral<"-timestamp">]>>;
15
15
  }, z.core.$strip>;
16
+ export type FillListParamsInput = z.input<typeof FillListParams>;
16
17
  export type FillListParams = z.output<typeof FillListParams>;