@pear-protocol/types 2.7.0 → 2.9.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.
@@ -31,6 +31,39 @@ export declare const TradeLegPostOnly: z.ZodObject<{
31
31
  }>;
32
32
  amount: z.ZodString;
33
33
  }, z.core.$strip>;
34
+ /** Unknown keys are rejected so a misspelled price constraint never passes as an unbounded order. */
35
+ export declare const TradeLegWithMaxImpactPrice: z.ZodObject<{
36
+ id: z.ZodOptional<z.ZodString>;
37
+ symbol: z.ZodString;
38
+ side: z.ZodEnum<{
39
+ BUY: "BUY";
40
+ SELL: "SELL";
41
+ }>;
42
+ mode: z.ZodEnum<{
43
+ QUANTITY: "QUANTITY";
44
+ USD: "USD";
45
+ }>;
46
+ amount: z.ZodString;
47
+ reduceOnly: z.ZodBoolean;
48
+ limitPrice: z.ZodOptional<z.ZodNever>;
49
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strict>;
51
+ /** Unknown keys are rejected so a misspelled price constraint never passes as an unbounded order. */
52
+ export declare const TradeLegPostOnlyWithMaxImpactPrice: z.ZodObject<{
53
+ symbol: z.ZodString;
54
+ id: z.ZodOptional<z.ZodString>;
55
+ side: z.ZodEnum<{
56
+ BUY: "BUY";
57
+ SELL: "SELL";
58
+ }>;
59
+ mode: z.ZodEnum<{
60
+ QUANTITY: "QUANTITY";
61
+ USD: "USD";
62
+ }>;
63
+ amount: z.ZodString;
64
+ limitPrice: z.ZodOptional<z.ZodNever>;
65
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strict>;
34
67
  export type TradeLeg = z.infer<typeof TradeLeg>;
35
68
  export type TradeLegPostOnly = z.infer<typeof TradeLegPostOnly>;
36
69
  export {};
@@ -31,9 +31,20 @@ const TradeLegShape = z.object({
31
31
  */
32
32
  reduceOnly: z.boolean()
33
33
  });
34
+ const TradeLegMaxImpactPrice = {
35
+ /** Reject the former wire field instead of silently stripping a caller's price constraint. */
36
+ limitPrice: z.never({
37
+ error: "limitPrice is no longer supported; use maxImpactPrice instead."
38
+ }).optional(),
39
+ maxImpactPrice: UnsignedDecimalString.refine((value) => Number(value) > 0, "Max impact price must be positive").optional()
40
+ };
34
41
  const TradeLeg = TradeLegShape.superRefine(RefineLegIdMatchesSymbol);
35
42
  const TradeLegPostOnly = TradeLegShape.omit({
36
43
  reduceOnly: true
37
44
  }).superRefine(RefineLegIdMatchesSymbol);
45
+ const TradeLegWithMaxImpactPrice = TradeLegShape.extend(TradeLegMaxImpactPrice).strict().superRefine(RefineLegIdMatchesSymbol);
46
+ const TradeLegPostOnlyWithMaxImpactPrice = TradeLegShape.omit({
47
+ reduceOnly: true
48
+ }).extend(TradeLegMaxImpactPrice).strict().superRefine(RefineLegIdMatchesSymbol);
38
49
 
39
- export { TradeLeg, TradeLegPostOnly };
50
+ export { TradeLeg, TradeLegPostOnly, TradeLegPostOnlyWithMaxImpactPrice, TradeLegWithMaxImpactPrice };
@@ -18,6 +18,13 @@ export declare const ExecutionStatus: z.ZodEnum<{
18
18
  FAILED: "FAILED";
19
19
  }>;
20
20
  export type ExecutionStatus = z.infer<typeof ExecutionStatus>;
21
+ export declare const ExecutionFulfillment: z.ZodEnum<{
22
+ PENDING: "PENDING";
23
+ PARTIAL: "PARTIAL";
24
+ COMPLETE: "COMPLETE";
25
+ NONE: "NONE";
26
+ }>;
27
+ export type ExecutionFulfillment = z.infer<typeof ExecutionFulfillment>;
21
28
  export declare const ExecutionLegMode: z.ZodEnum<{
22
29
  QUANTITY: "QUANTITY";
23
30
  USD: "USD";
@@ -35,6 +42,7 @@ declare const ExecutionLeg: z.ZodObject<{
35
42
  USD: "USD";
36
43
  }>;
37
44
  amount: z.ZodString;
45
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
38
46
  reduceOnly: z.ZodBoolean;
39
47
  }, z.core.$strip>;
40
48
  export declare const BaseExecution: z.ZodObject<{
@@ -99,6 +107,12 @@ export declare const BaseExecution: z.ZodObject<{
99
107
  filledQuantity: z.ZodString;
100
108
  filledPrice: z.ZodOptional<z.ZodString>;
101
109
  }, z.core.$strip>], "type">>>;
110
+ fulfillment: z.ZodOptional<z.ZodEnum<{
111
+ PENDING: "PENDING";
112
+ PARTIAL: "PARTIAL";
113
+ COMPLETE: "COMPLETE";
114
+ NONE: "NONE";
115
+ }>>;
102
116
  }, z.core.$strip>;
103
117
  export declare const MarketOpenExecution: z.ZodObject<{
104
118
  id: z.ZodUUID;
@@ -153,8 +167,17 @@ export declare const MarketOpenExecution: z.ZodObject<{
153
167
  filledQuantity: z.ZodString;
154
168
  filledPrice: z.ZodOptional<z.ZodString>;
155
169
  }, z.core.$strip>], "type">>>;
170
+ fulfillment: z.ZodOptional<z.ZodEnum<{
171
+ PENDING: "PENDING";
172
+ PARTIAL: "PARTIAL";
173
+ COMPLETE: "COMPLETE";
174
+ NONE: "NONE";
175
+ }>>;
156
176
  intent: z.ZodLiteral<"OPEN">;
157
177
  orderType: z.ZodLiteral<"MARKET">;
178
+ position: z.ZodOptional<z.ZodObject<{
179
+ id: z.ZodUUID;
180
+ }, z.core.$strip>>;
158
181
  legs: z.ZodTuple<[z.ZodObject<{
159
182
  id: z.ZodOptional<z.ZodString>;
160
183
  symbol: z.ZodString;
@@ -167,6 +190,7 @@ export declare const MarketOpenExecution: z.ZodObject<{
167
190
  USD: "USD";
168
191
  }>;
169
192
  amount: z.ZodString;
193
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
170
194
  reduceOnly: z.ZodBoolean;
171
195
  }, z.core.$strip>], z.ZodObject<{
172
196
  id: z.ZodOptional<z.ZodString>;
@@ -180,6 +204,7 @@ export declare const MarketOpenExecution: z.ZodObject<{
180
204
  USD: "USD";
181
205
  }>;
182
206
  amount: z.ZodString;
207
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
183
208
  reduceOnly: z.ZodBoolean;
184
209
  }, z.core.$strip>>;
185
210
  }, z.core.$strip>;
@@ -236,6 +261,12 @@ export declare const MarketAdjustExecution: z.ZodObject<{
236
261
  filledQuantity: z.ZodString;
237
262
  filledPrice: z.ZodOptional<z.ZodString>;
238
263
  }, z.core.$strip>], "type">>>;
264
+ fulfillment: z.ZodOptional<z.ZodEnum<{
265
+ PENDING: "PENDING";
266
+ PARTIAL: "PARTIAL";
267
+ COMPLETE: "COMPLETE";
268
+ NONE: "NONE";
269
+ }>>;
239
270
  intent: z.ZodLiteral<"ADJUST">;
240
271
  orderType: z.ZodLiteral<"MARKET">;
241
272
  position: z.ZodOptional<z.ZodObject<{
@@ -254,6 +285,7 @@ export declare const MarketAdjustExecution: z.ZodObject<{
254
285
  USD: "USD";
255
286
  }>;
256
287
  amount: z.ZodString;
288
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
257
289
  reduceOnly: z.ZodBoolean;
258
290
  }, z.core.$strip>], z.ZodObject<{
259
291
  id: z.ZodOptional<z.ZodString>;
@@ -267,6 +299,7 @@ export declare const MarketAdjustExecution: z.ZodObject<{
267
299
  USD: "USD";
268
300
  }>;
269
301
  amount: z.ZodString;
302
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
270
303
  reduceOnly: z.ZodBoolean;
271
304
  }, z.core.$strip>>;
272
305
  }, z.core.$strip>;
@@ -323,6 +356,12 @@ export declare const MarketCloseExecution: z.ZodObject<{
323
356
  filledQuantity: z.ZodString;
324
357
  filledPrice: z.ZodOptional<z.ZodString>;
325
358
  }, z.core.$strip>], "type">>>;
359
+ fulfillment: z.ZodOptional<z.ZodEnum<{
360
+ PENDING: "PENDING";
361
+ PARTIAL: "PARTIAL";
362
+ COMPLETE: "COMPLETE";
363
+ NONE: "NONE";
364
+ }>>;
326
365
  intent: z.ZodLiteral<"CLOSE">;
327
366
  orderType: z.ZodLiteral<"MARKET">;
328
367
  position: z.ZodOptional<z.ZodObject<{
@@ -383,6 +422,12 @@ export declare const MarketReverseExecution: z.ZodObject<{
383
422
  filledQuantity: z.ZodString;
384
423
  filledPrice: z.ZodOptional<z.ZodString>;
385
424
  }, z.core.$strip>], "type">>>;
425
+ fulfillment: z.ZodOptional<z.ZodEnum<{
426
+ PENDING: "PENDING";
427
+ PARTIAL: "PARTIAL";
428
+ COMPLETE: "COMPLETE";
429
+ NONE: "NONE";
430
+ }>>;
386
431
  intent: z.ZodLiteral<"REVERSE">;
387
432
  orderType: z.ZodLiteral<"MARKET">;
388
433
  position: z.ZodOptional<z.ZodObject<{
@@ -443,8 +488,17 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
443
488
  filledQuantity: z.ZodString;
444
489
  filledPrice: z.ZodOptional<z.ZodString>;
445
490
  }, z.core.$strip>], "type">>>;
491
+ fulfillment: z.ZodOptional<z.ZodEnum<{
492
+ PENDING: "PENDING";
493
+ PARTIAL: "PARTIAL";
494
+ COMPLETE: "COMPLETE";
495
+ NONE: "NONE";
496
+ }>>;
446
497
  intent: z.ZodLiteral<"OPEN">;
447
498
  orderType: z.ZodLiteral<"MARKET">;
499
+ position: z.ZodOptional<z.ZodObject<{
500
+ id: z.ZodUUID;
501
+ }, z.core.$strip>>;
448
502
  legs: z.ZodTuple<[z.ZodObject<{
449
503
  id: z.ZodOptional<z.ZodString>;
450
504
  symbol: z.ZodString;
@@ -457,6 +511,7 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
457
511
  USD: "USD";
458
512
  }>;
459
513
  amount: z.ZodString;
514
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
460
515
  reduceOnly: z.ZodBoolean;
461
516
  }, z.core.$strip>], z.ZodObject<{
462
517
  id: z.ZodOptional<z.ZodString>;
@@ -470,6 +525,7 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
525
  USD: "USD";
471
526
  }>;
472
527
  amount: z.ZodString;
528
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
473
529
  reduceOnly: z.ZodBoolean;
474
530
  }, z.core.$strip>>;
475
531
  }, z.core.$strip>, z.ZodObject<{
@@ -525,6 +581,12 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
525
581
  filledQuantity: z.ZodString;
526
582
  filledPrice: z.ZodOptional<z.ZodString>;
527
583
  }, z.core.$strip>], "type">>>;
584
+ fulfillment: z.ZodOptional<z.ZodEnum<{
585
+ PENDING: "PENDING";
586
+ PARTIAL: "PARTIAL";
587
+ COMPLETE: "COMPLETE";
588
+ NONE: "NONE";
589
+ }>>;
528
590
  intent: z.ZodLiteral<"ADJUST">;
529
591
  orderType: z.ZodLiteral<"MARKET">;
530
592
  position: z.ZodOptional<z.ZodObject<{
@@ -543,6 +605,7 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
543
605
  USD: "USD";
544
606
  }>;
545
607
  amount: z.ZodString;
608
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
546
609
  reduceOnly: z.ZodBoolean;
547
610
  }, z.core.$strip>], z.ZodObject<{
548
611
  id: z.ZodOptional<z.ZodString>;
@@ -556,6 +619,7 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
556
619
  USD: "USD";
557
620
  }>;
558
621
  amount: z.ZodString;
622
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
559
623
  reduceOnly: z.ZodBoolean;
560
624
  }, z.core.$strip>>;
561
625
  }, z.core.$strip>, z.ZodObject<{
@@ -611,6 +675,12 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
611
675
  filledQuantity: z.ZodString;
612
676
  filledPrice: z.ZodOptional<z.ZodString>;
613
677
  }, z.core.$strip>], "type">>>;
678
+ fulfillment: z.ZodOptional<z.ZodEnum<{
679
+ PENDING: "PENDING";
680
+ PARTIAL: "PARTIAL";
681
+ COMPLETE: "COMPLETE";
682
+ NONE: "NONE";
683
+ }>>;
614
684
  intent: z.ZodLiteral<"CLOSE">;
615
685
  orderType: z.ZodLiteral<"MARKET">;
616
686
  position: z.ZodOptional<z.ZodObject<{
@@ -670,6 +740,12 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
670
740
  filledQuantity: z.ZodString;
671
741
  filledPrice: z.ZodOptional<z.ZodString>;
672
742
  }, z.core.$strip>], "type">>>;
743
+ fulfillment: z.ZodOptional<z.ZodEnum<{
744
+ PENDING: "PENDING";
745
+ PARTIAL: "PARTIAL";
746
+ COMPLETE: "COMPLETE";
747
+ NONE: "NONE";
748
+ }>>;
673
749
  intent: z.ZodLiteral<"REVERSE">;
674
750
  orderType: z.ZodLiteral<"MARKET">;
675
751
  position: z.ZodOptional<z.ZodObject<{
@@ -730,8 +806,17 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
730
806
  filledQuantity: z.ZodString;
731
807
  filledPrice: z.ZodOptional<z.ZodString>;
732
808
  }, z.core.$strip>], "type">>>;
809
+ fulfillment: z.ZodOptional<z.ZodEnum<{
810
+ PENDING: "PENDING";
811
+ PARTIAL: "PARTIAL";
812
+ COMPLETE: "COMPLETE";
813
+ NONE: "NONE";
814
+ }>>;
733
815
  intent: z.ZodLiteral<"OPEN">;
734
816
  orderType: z.ZodLiteral<"MARKET">;
817
+ position: z.ZodOptional<z.ZodObject<{
818
+ id: z.ZodUUID;
819
+ }, z.core.$strip>>;
735
820
  legs: z.ZodTuple<[z.ZodObject<{
736
821
  id: z.ZodOptional<z.ZodString>;
737
822
  symbol: z.ZodString;
@@ -744,6 +829,7 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
744
829
  USD: "USD";
745
830
  }>;
746
831
  amount: z.ZodString;
832
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
747
833
  reduceOnly: z.ZodBoolean;
748
834
  }, z.core.$strip>], z.ZodObject<{
749
835
  id: z.ZodOptional<z.ZodString>;
@@ -757,6 +843,7 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
757
843
  USD: "USD";
758
844
  }>;
759
845
  amount: z.ZodString;
846
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
760
847
  reduceOnly: z.ZodBoolean;
761
848
  }, z.core.$strip>>;
762
849
  }, z.core.$strip>, z.ZodObject<{
@@ -812,6 +899,12 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
812
899
  filledQuantity: z.ZodString;
813
900
  filledPrice: z.ZodOptional<z.ZodString>;
814
901
  }, z.core.$strip>], "type">>>;
902
+ fulfillment: z.ZodOptional<z.ZodEnum<{
903
+ PENDING: "PENDING";
904
+ PARTIAL: "PARTIAL";
905
+ COMPLETE: "COMPLETE";
906
+ NONE: "NONE";
907
+ }>>;
815
908
  intent: z.ZodLiteral<"ADJUST">;
816
909
  orderType: z.ZodLiteral<"MARKET">;
817
910
  position: z.ZodOptional<z.ZodObject<{
@@ -830,6 +923,7 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
830
923
  USD: "USD";
831
924
  }>;
832
925
  amount: z.ZodString;
926
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
833
927
  reduceOnly: z.ZodBoolean;
834
928
  }, z.core.$strip>], z.ZodObject<{
835
929
  id: z.ZodOptional<z.ZodString>;
@@ -843,6 +937,7 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
843
937
  USD: "USD";
844
938
  }>;
845
939
  amount: z.ZodString;
940
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
846
941
  reduceOnly: z.ZodBoolean;
847
942
  }, z.core.$strip>>;
848
943
  }, z.core.$strip>, z.ZodObject<{
@@ -898,6 +993,12 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
898
993
  filledQuantity: z.ZodString;
899
994
  filledPrice: z.ZodOptional<z.ZodString>;
900
995
  }, z.core.$strip>], "type">>>;
996
+ fulfillment: z.ZodOptional<z.ZodEnum<{
997
+ PENDING: "PENDING";
998
+ PARTIAL: "PARTIAL";
999
+ COMPLETE: "COMPLETE";
1000
+ NONE: "NONE";
1001
+ }>>;
901
1002
  intent: z.ZodLiteral<"CLOSE">;
902
1003
  orderType: z.ZodLiteral<"MARKET">;
903
1004
  position: z.ZodOptional<z.ZodObject<{
@@ -957,6 +1058,12 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
957
1058
  filledQuantity: z.ZodString;
958
1059
  filledPrice: z.ZodOptional<z.ZodString>;
959
1060
  }, z.core.$strip>], "type">>>;
1061
+ fulfillment: z.ZodOptional<z.ZodEnum<{
1062
+ PENDING: "PENDING";
1063
+ PARTIAL: "PARTIAL";
1064
+ COMPLETE: "COMPLETE";
1065
+ NONE: "NONE";
1066
+ }>>;
960
1067
  intent: z.ZodLiteral<"REVERSE">;
961
1068
  orderType: z.ZodLiteral<"MARKET">;
962
1069
  position: z.ZodOptional<z.ZodObject<{
@@ -21,6 +21,12 @@ const ExecutionStatus = z.enum([
21
21
  "FAILED",
22
22
  "CANCELLED"
23
23
  ]);
24
+ const ExecutionFulfillment = z.enum([
25
+ "COMPLETE",
26
+ "PARTIAL",
27
+ "NONE",
28
+ "PENDING"
29
+ ]);
24
30
  const ExecutionLegMode = z.enum([
25
31
  "QUANTITY",
26
32
  "USD"
@@ -45,6 +51,10 @@ const ExecutionLeg = z.object({
45
51
  */
46
52
  amount: UnsignedDecimalString,
47
53
  /**
54
+ * Optional worst acceptable execution price; replaces the slippage-derived price when present
55
+ */
56
+ maxImpactPrice: UnsignedDecimalString.optional(),
57
+ /**
48
58
  * Reduce only flag
49
59
  */
50
60
  reduceOnly: z.boolean()
@@ -85,7 +95,12 @@ const BaseExecution = z.object({
85
95
  /**
86
96
  * Orders
87
97
  */
88
- orders: z.array(Order).optional()
98
+ orders: z.array(Order).optional(),
99
+ /**
100
+ * Filled-quantity outcome across this execution's orders; absent when the server does not
101
+ * publish it. It never claims venue-side certainty, only what the order rows report filled.
102
+ */
103
+ fulfillment: ExecutionFulfillment.optional()
89
104
  });
90
105
  const MarketOpenExecution = BaseExecution.extend({
91
106
  /**
@@ -97,6 +112,14 @@ const MarketOpenExecution = BaseExecution.extend({
97
112
  */
98
113
  orderType: z.literal("MARKET"),
99
114
  /**
115
+ * Position opened by this execution; absent when the position link was severed (a FAILED
116
+ * execution unlinks its position). Id only: an open carries no exposure snapshot, so read
117
+ * the position itself for its exposure.
118
+ */
119
+ position: Position.pick({
120
+ id: true
121
+ }).optional(),
122
+ /**
100
123
  * Requested legs
101
124
  */
102
125
  legs: z.tuple([
@@ -170,4 +193,4 @@ const Execution = z.discriminatedUnion("orderType", [
170
193
  MarketExecution
171
194
  ]);
172
195
 
173
- export { BaseExecution, Execution, ExecutionIntent, ExecutionLegMode, ExecutionOrderType, ExecutionStatus, MarketAdjustExecution, MarketCloseExecution, MarketExecution, MarketOpenExecution, MarketReverseExecution };
196
+ export { BaseExecution, Execution, ExecutionFulfillment, ExecutionIntent, ExecutionLegMode, ExecutionOrderType, ExecutionStatus, MarketAdjustExecution, MarketCloseExecution, MarketExecution, MarketOpenExecution, MarketReverseExecution };
@@ -55,8 +55,17 @@ export declare const ExecutionListResponse: z.ZodObject<{
55
55
  filledQuantity: z.ZodString;
56
56
  filledPrice: z.ZodOptional<z.ZodString>;
57
57
  }, z.core.$strip>], "type">>>;
58
+ fulfillment: z.ZodOptional<z.ZodEnum<{
59
+ PENDING: "PENDING";
60
+ PARTIAL: "PARTIAL";
61
+ COMPLETE: "COMPLETE";
62
+ NONE: "NONE";
63
+ }>>;
58
64
  intent: z.ZodLiteral<"OPEN">;
59
65
  orderType: z.ZodLiteral<"MARKET">;
66
+ position: z.ZodOptional<z.ZodObject<{
67
+ id: z.ZodUUID;
68
+ }, z.core.$strip>>;
60
69
  legs: z.ZodTuple<[z.ZodObject<{
61
70
  id: z.ZodOptional<z.ZodString>;
62
71
  symbol: z.ZodString;
@@ -69,6 +78,7 @@ export declare const ExecutionListResponse: z.ZodObject<{
69
78
  USD: "USD";
70
79
  }>;
71
80
  amount: z.ZodString;
81
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
72
82
  reduceOnly: z.ZodBoolean;
73
83
  }, z.core.$strip>], z.ZodObject<{
74
84
  id: z.ZodOptional<z.ZodString>;
@@ -82,6 +92,7 @@ export declare const ExecutionListResponse: z.ZodObject<{
82
92
  USD: "USD";
83
93
  }>;
84
94
  amount: z.ZodString;
95
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
85
96
  reduceOnly: z.ZodBoolean;
86
97
  }, z.core.$strip>>;
87
98
  }, z.core.$strip>, z.ZodObject<{
@@ -137,6 +148,12 @@ export declare const ExecutionListResponse: z.ZodObject<{
137
148
  filledQuantity: z.ZodString;
138
149
  filledPrice: z.ZodOptional<z.ZodString>;
139
150
  }, z.core.$strip>], "type">>>;
151
+ fulfillment: z.ZodOptional<z.ZodEnum<{
152
+ PENDING: "PENDING";
153
+ PARTIAL: "PARTIAL";
154
+ COMPLETE: "COMPLETE";
155
+ NONE: "NONE";
156
+ }>>;
140
157
  intent: z.ZodLiteral<"ADJUST">;
141
158
  orderType: z.ZodLiteral<"MARKET">;
142
159
  position: z.ZodOptional<z.ZodObject<{
@@ -155,6 +172,7 @@ export declare const ExecutionListResponse: z.ZodObject<{
155
172
  USD: "USD";
156
173
  }>;
157
174
  amount: z.ZodString;
175
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
158
176
  reduceOnly: z.ZodBoolean;
159
177
  }, z.core.$strip>], z.ZodObject<{
160
178
  id: z.ZodOptional<z.ZodString>;
@@ -168,6 +186,7 @@ export declare const ExecutionListResponse: z.ZodObject<{
168
186
  USD: "USD";
169
187
  }>;
170
188
  amount: z.ZodString;
189
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
171
190
  reduceOnly: z.ZodBoolean;
172
191
  }, z.core.$strip>>;
173
192
  }, z.core.$strip>, z.ZodObject<{
@@ -223,6 +242,12 @@ export declare const ExecutionListResponse: z.ZodObject<{
223
242
  filledQuantity: z.ZodString;
224
243
  filledPrice: z.ZodOptional<z.ZodString>;
225
244
  }, z.core.$strip>], "type">>>;
245
+ fulfillment: z.ZodOptional<z.ZodEnum<{
246
+ PENDING: "PENDING";
247
+ PARTIAL: "PARTIAL";
248
+ COMPLETE: "COMPLETE";
249
+ NONE: "NONE";
250
+ }>>;
226
251
  intent: z.ZodLiteral<"CLOSE">;
227
252
  orderType: z.ZodLiteral<"MARKET">;
228
253
  position: z.ZodOptional<z.ZodObject<{
@@ -282,6 +307,12 @@ export declare const ExecutionListResponse: z.ZodObject<{
282
307
  filledQuantity: z.ZodString;
283
308
  filledPrice: z.ZodOptional<z.ZodString>;
284
309
  }, z.core.$strip>], "type">>>;
310
+ fulfillment: z.ZodOptional<z.ZodEnum<{
311
+ PENDING: "PENDING";
312
+ PARTIAL: "PARTIAL";
313
+ COMPLETE: "COMPLETE";
314
+ NONE: "NONE";
315
+ }>>;
285
316
  intent: z.ZodLiteral<"REVERSE">;
286
317
  orderType: z.ZodLiteral<"MARKET">;
287
318
  position: z.ZodOptional<z.ZodObject<{
@@ -345,8 +376,17 @@ export declare const GetExecutionResponse: z.ZodObject<{
345
376
  filledQuantity: z.ZodString;
346
377
  filledPrice: z.ZodOptional<z.ZodString>;
347
378
  }, z.core.$strip>], "type">>>;
379
+ fulfillment: z.ZodOptional<z.ZodEnum<{
380
+ PENDING: "PENDING";
381
+ PARTIAL: "PARTIAL";
382
+ COMPLETE: "COMPLETE";
383
+ NONE: "NONE";
384
+ }>>;
348
385
  intent: z.ZodLiteral<"OPEN">;
349
386
  orderType: z.ZodLiteral<"MARKET">;
387
+ position: z.ZodOptional<z.ZodObject<{
388
+ id: z.ZodUUID;
389
+ }, z.core.$strip>>;
350
390
  legs: z.ZodTuple<[z.ZodObject<{
351
391
  id: z.ZodOptional<z.ZodString>;
352
392
  symbol: z.ZodString;
@@ -359,6 +399,7 @@ export declare const GetExecutionResponse: z.ZodObject<{
359
399
  USD: "USD";
360
400
  }>;
361
401
  amount: z.ZodString;
402
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
362
403
  reduceOnly: z.ZodBoolean;
363
404
  }, z.core.$strip>], z.ZodObject<{
364
405
  id: z.ZodOptional<z.ZodString>;
@@ -372,6 +413,7 @@ export declare const GetExecutionResponse: z.ZodObject<{
372
413
  USD: "USD";
373
414
  }>;
374
415
  amount: z.ZodString;
416
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
375
417
  reduceOnly: z.ZodBoolean;
376
418
  }, z.core.$strip>>;
377
419
  }, z.core.$strip>, z.ZodObject<{
@@ -427,6 +469,12 @@ export declare const GetExecutionResponse: z.ZodObject<{
427
469
  filledQuantity: z.ZodString;
428
470
  filledPrice: z.ZodOptional<z.ZodString>;
429
471
  }, z.core.$strip>], "type">>>;
472
+ fulfillment: z.ZodOptional<z.ZodEnum<{
473
+ PENDING: "PENDING";
474
+ PARTIAL: "PARTIAL";
475
+ COMPLETE: "COMPLETE";
476
+ NONE: "NONE";
477
+ }>>;
430
478
  intent: z.ZodLiteral<"ADJUST">;
431
479
  orderType: z.ZodLiteral<"MARKET">;
432
480
  position: z.ZodOptional<z.ZodObject<{
@@ -445,6 +493,7 @@ export declare const GetExecutionResponse: z.ZodObject<{
445
493
  USD: "USD";
446
494
  }>;
447
495
  amount: z.ZodString;
496
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
448
497
  reduceOnly: z.ZodBoolean;
449
498
  }, z.core.$strip>], z.ZodObject<{
450
499
  id: z.ZodOptional<z.ZodString>;
@@ -458,6 +507,7 @@ export declare const GetExecutionResponse: z.ZodObject<{
458
507
  USD: "USD";
459
508
  }>;
460
509
  amount: z.ZodString;
510
+ maxImpactPrice: z.ZodOptional<z.ZodString>;
461
511
  reduceOnly: z.ZodBoolean;
462
512
  }, z.core.$strip>>;
463
513
  }, z.core.$strip>, z.ZodObject<{
@@ -513,6 +563,12 @@ export declare const GetExecutionResponse: z.ZodObject<{
513
563
  filledQuantity: z.ZodString;
514
564
  filledPrice: z.ZodOptional<z.ZodString>;
515
565
  }, z.core.$strip>], "type">>>;
566
+ fulfillment: z.ZodOptional<z.ZodEnum<{
567
+ PENDING: "PENDING";
568
+ PARTIAL: "PARTIAL";
569
+ COMPLETE: "COMPLETE";
570
+ NONE: "NONE";
571
+ }>>;
516
572
  intent: z.ZodLiteral<"CLOSE">;
517
573
  orderType: z.ZodLiteral<"MARKET">;
518
574
  position: z.ZodOptional<z.ZodObject<{
@@ -572,6 +628,12 @@ export declare const GetExecutionResponse: z.ZodObject<{
572
628
  filledQuantity: z.ZodString;
573
629
  filledPrice: z.ZodOptional<z.ZodString>;
574
630
  }, z.core.$strip>], "type">>>;
631
+ fulfillment: z.ZodOptional<z.ZodEnum<{
632
+ PENDING: "PENDING";
633
+ PARTIAL: "PARTIAL";
634
+ COMPLETE: "COMPLETE";
635
+ NONE: "NONE";
636
+ }>>;
575
637
  intent: z.ZodLiteral<"REVERSE">;
576
638
  orderType: z.ZodLiteral<"MARKET">;
577
639
  position: z.ZodOptional<z.ZodObject<{
@@ -166,14 +166,14 @@ export declare const Ladder: z.ZodObject<{
166
166
  }, z.core.$strip>>;
167
167
  }, z.core.$strip>>>;
168
168
  bracketType: z.ZodEnum<{
169
+ NONE: "NONE";
169
170
  STOP_LOSS: "STOP_LOSS";
170
171
  TAKE_PROFIT: "TAKE_PROFIT";
171
- NONE: "NONE";
172
172
  }>;
173
173
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
174
+ NONE: "NONE";
174
175
  STOP_LOSS: "STOP_LOSS";
175
176
  TAKE_PROFIT: "TAKE_PROFIT";
176
- NONE: "NONE";
177
177
  }>>;
178
178
  createdAt: z.ZodString;
179
179
  updatedAt: z.ZodString;
@@ -377,14 +377,14 @@ export declare const Ladder: z.ZodObject<{
377
377
  }, z.core.$strip>>;
378
378
  }, z.core.$strip>>>;
379
379
  bracketType: z.ZodEnum<{
380
+ NONE: "NONE";
380
381
  STOP_LOSS: "STOP_LOSS";
381
382
  TAKE_PROFIT: "TAKE_PROFIT";
382
- NONE: "NONE";
383
383
  }>;
384
384
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
385
+ NONE: "NONE";
385
386
  STOP_LOSS: "STOP_LOSS";
386
387
  TAKE_PROFIT: "TAKE_PROFIT";
387
- NONE: "NONE";
388
388
  }>>;
389
389
  createdAt: z.ZodString;
390
390
  updatedAt: z.ZodString;
@@ -634,14 +634,14 @@ export declare const Ladder: z.ZodObject<{
634
634
  }, z.core.$strip>>;
635
635
  }, z.core.$strip>>>;
636
636
  bracketType: z.ZodEnum<{
637
+ NONE: "NONE";
637
638
  STOP_LOSS: "STOP_LOSS";
638
639
  TAKE_PROFIT: "TAKE_PROFIT";
639
- NONE: "NONE";
640
640
  }>;
641
641
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
642
+ NONE: "NONE";
642
643
  STOP_LOSS: "STOP_LOSS";
643
644
  TAKE_PROFIT: "TAKE_PROFIT";
644
- NONE: "NONE";
645
645
  }>>;
646
646
  createdAt: z.ZodString;
647
647
  updatedAt: z.ZodString;
@@ -923,14 +923,14 @@ export declare const Ladder: z.ZodObject<{
923
923
  }, z.core.$strip>>;
924
924
  }, z.core.$strip>>>;
925
925
  bracketType: z.ZodEnum<{
926
+ NONE: "NONE";
926
927
  STOP_LOSS: "STOP_LOSS";
927
928
  TAKE_PROFIT: "TAKE_PROFIT";
928
- NONE: "NONE";
929
929
  }>;
930
930
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
931
+ NONE: "NONE";
931
932
  STOP_LOSS: "STOP_LOSS";
932
933
  TAKE_PROFIT: "TAKE_PROFIT";
933
- NONE: "NONE";
934
934
  }>>;
935
935
  createdAt: z.ZodString;
936
936
  updatedAt: z.ZodString;
@@ -1178,14 +1178,14 @@ export declare const Ladder: z.ZodObject<{
1178
1178
  }, z.core.$strip>>;
1179
1179
  }, z.core.$strip>>>;
1180
1180
  bracketType: z.ZodEnum<{
1181
+ NONE: "NONE";
1181
1182
  STOP_LOSS: "STOP_LOSS";
1182
1183
  TAKE_PROFIT: "TAKE_PROFIT";
1183
- NONE: "NONE";
1184
1184
  }>;
1185
1185
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1186
+ NONE: "NONE";
1186
1187
  STOP_LOSS: "STOP_LOSS";
1187
1188
  TAKE_PROFIT: "TAKE_PROFIT";
1188
- NONE: "NONE";
1189
1189
  }>>;
1190
1190
  createdAt: z.ZodString;
1191
1191
  updatedAt: z.ZodString;