@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
@@ -51,7 +51,7 @@ export declare const ExternalPosition: z.ZodObject<{
51
51
  }, z.core.$strip>;
52
52
  export type ExternalPosition = z.output<typeof ExternalPosition>;
53
53
  /**
54
- * A single fill bound to a positionKey basket. Every fill carries a price/usd:
54
+ * A canonical source receipt shared by its position assignments. Every fill carries a price/usd:
55
55
  * real and gap/opening synthetics a genuine value, unpriceable gone-close
56
56
  * synthetics "0" (consumers treat 0-price as unpriceable).
57
57
  */
@@ -81,23 +81,25 @@ export declare const ApplicableFill: z.ZodObject<{
81
81
  tradeFee: z.ZodString;
82
82
  builderFee: z.ZodString;
83
83
  closedReason: z.ZodOptional<z.ZodEnum<{
84
- NETTED: "NETTED";
85
84
  USER: "USER";
86
85
  LIQUIDATED: "LIQUIDATED";
86
+ NETTED: "NETTED";
87
87
  }>>;
88
88
  liquidation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
89
  mark: z.ZodString;
90
- outcome: z.ZodOptional<z.ZodEnum<{
91
- CLOSED: "CLOSED";
92
- REDUCED: "REDUCED";
93
- }>>;
94
90
  }, z.core.$strip>>>;
95
- original: z.ZodOptional<z.ZodObject<{
96
- exchangeFillId: z.ZodString;
97
- quantity: z.ZodString;
98
- }, z.core.$strip>>;
99
91
  }, z.core.$strip>;
100
92
  export type ApplicableFill = z.output<typeof ApplicableFill>;
93
+ /** A positive share of one canonical receipt assigned to a position. */
94
+ export declare const ApplicableFillAssignment: z.ZodObject<{
95
+ exchangeFillId: z.ZodString;
96
+ quantity: z.ZodString;
97
+ liquidationOutcome: z.ZodOptional<z.ZodEnum<{
98
+ CLOSED: "CLOSED";
99
+ REDUCED: "REDUCED";
100
+ }>>;
101
+ }, z.core.$strip>;
102
+ export type ApplicableFillAssignment = z.output<typeof ApplicableFillAssignment>;
101
103
  /**
102
104
  * Position metadata for an applicable. Consumed ONLY when the apply step CREATES a
103
105
  * new position for the positionKey. On merge into an existing position it is
@@ -130,51 +132,17 @@ export declare const ApplicablePosition: z.ZodObject<{
130
132
  CLOSED: "CLOSED";
131
133
  }>;
132
134
  closedReason: z.ZodOptional<z.ZodEnum<{
133
- NETTED: "NETTED";
134
135
  USER: "USER";
135
136
  LIQUIDATED: "LIQUIDATED";
137
+ NETTED: "NETTED";
136
138
  }>>;
137
- fills: z.ZodArray<z.ZodObject<{
139
+ assignments: z.ZodArray<z.ZodObject<{
138
140
  exchangeFillId: z.ZodString;
139
- cloid: z.ZodNullable<z.ZodString>;
140
- connector: z.ZodEnum<{
141
- hyperliquid: "hyperliquid";
142
- binance: "binance";
143
- bybit: "bybit";
144
- okx: "okx";
145
- lighter: "lighter";
146
- lighter_rhc: "lighter_rhc";
147
- }>;
148
- symbol: z.ZodString;
149
- side: z.ZodEnum<{
150
- BUY: "BUY";
151
- SELL: "SELL";
152
- }>;
153
141
  quantity: z.ZodString;
154
- price: z.ZodString;
155
- usd: z.ZodString;
156
- timestamp: z.ZodNumber;
157
- reduceOnly: z.ZodBoolean;
158
- synthetic: z.ZodBoolean;
159
- isExternal: z.ZodBoolean;
160
- tradeFee: z.ZodString;
161
- builderFee: z.ZodString;
162
- closedReason: z.ZodOptional<z.ZodEnum<{
163
- NETTED: "NETTED";
164
- USER: "USER";
165
- LIQUIDATED: "LIQUIDATED";
142
+ liquidationOutcome: z.ZodOptional<z.ZodEnum<{
143
+ CLOSED: "CLOSED";
144
+ REDUCED: "REDUCED";
166
145
  }>>;
167
- liquidation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
168
- mark: z.ZodString;
169
- outcome: z.ZodOptional<z.ZodEnum<{
170
- CLOSED: "CLOSED";
171
- REDUCED: "REDUCED";
172
- }>>;
173
- }, z.core.$strip>>>;
174
- original: z.ZodOptional<z.ZodObject<{
175
- exchangeFillId: z.ZodString;
176
- quantity: z.ZodString;
177
- }, z.core.$strip>>;
178
146
  }, z.core.$strip>>;
179
147
  metadata: z.ZodObject<{
180
148
  initialExposureUSD: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
@@ -225,6 +193,40 @@ export type CreateApplicablesBulkFields = z.output<typeof CreateApplicablesBulkF
225
193
  *
226
194
  */
227
195
  export declare const CreateApplicablesRequest: z.ZodObject<{
196
+ fills: z.ZodArray<z.ZodObject<{
197
+ exchangeFillId: z.ZodString;
198
+ cloid: z.ZodNullable<z.ZodString>;
199
+ connector: z.ZodEnum<{
200
+ hyperliquid: "hyperliquid";
201
+ binance: "binance";
202
+ bybit: "bybit";
203
+ okx: "okx";
204
+ lighter: "lighter";
205
+ lighter_rhc: "lighter_rhc";
206
+ }>;
207
+ symbol: z.ZodString;
208
+ side: z.ZodEnum<{
209
+ BUY: "BUY";
210
+ SELL: "SELL";
211
+ }>;
212
+ quantity: z.ZodString;
213
+ price: z.ZodString;
214
+ usd: z.ZodString;
215
+ timestamp: z.ZodNumber;
216
+ reduceOnly: z.ZodBoolean;
217
+ synthetic: z.ZodBoolean;
218
+ isExternal: z.ZodBoolean;
219
+ tradeFee: z.ZodString;
220
+ builderFee: z.ZodString;
221
+ closedReason: z.ZodOptional<z.ZodEnum<{
222
+ USER: "USER";
223
+ LIQUIDATED: "LIQUIDATED";
224
+ NETTED: "NETTED";
225
+ }>>;
226
+ liquidation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
227
+ mark: z.ZodString;
228
+ }, z.core.$strip>>>;
229
+ }, z.core.$strip>>;
228
230
  applicables: z.ZodArray<z.ZodObject<{
229
231
  positionKey: z.ZodString;
230
232
  exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
@@ -238,51 +240,17 @@ export declare const CreateApplicablesRequest: z.ZodObject<{
238
240
  CLOSED: "CLOSED";
239
241
  }>;
240
242
  closedReason: z.ZodOptional<z.ZodEnum<{
241
- NETTED: "NETTED";
242
243
  USER: "USER";
243
244
  LIQUIDATED: "LIQUIDATED";
245
+ NETTED: "NETTED";
244
246
  }>>;
245
- fills: z.ZodArray<z.ZodObject<{
247
+ assignments: z.ZodArray<z.ZodObject<{
246
248
  exchangeFillId: z.ZodString;
247
- cloid: z.ZodNullable<z.ZodString>;
248
- connector: z.ZodEnum<{
249
- hyperliquid: "hyperliquid";
250
- binance: "binance";
251
- bybit: "bybit";
252
- okx: "okx";
253
- lighter: "lighter";
254
- lighter_rhc: "lighter_rhc";
255
- }>;
256
- symbol: z.ZodString;
257
- side: z.ZodEnum<{
258
- BUY: "BUY";
259
- SELL: "SELL";
260
- }>;
261
249
  quantity: z.ZodString;
262
- price: z.ZodString;
263
- usd: z.ZodString;
264
- timestamp: z.ZodNumber;
265
- reduceOnly: z.ZodBoolean;
266
- synthetic: z.ZodBoolean;
267
- isExternal: z.ZodBoolean;
268
- tradeFee: z.ZodString;
269
- builderFee: z.ZodString;
270
- closedReason: z.ZodOptional<z.ZodEnum<{
271
- NETTED: "NETTED";
272
- USER: "USER";
273
- LIQUIDATED: "LIQUIDATED";
250
+ liquidationOutcome: z.ZodOptional<z.ZodEnum<{
251
+ CLOSED: "CLOSED";
252
+ REDUCED: "REDUCED";
274
253
  }>>;
275
- liquidation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
276
- mark: z.ZodString;
277
- outcome: z.ZodOptional<z.ZodEnum<{
278
- CLOSED: "CLOSED";
279
- REDUCED: "REDUCED";
280
- }>>;
281
- }, z.core.$strip>>>;
282
- original: z.ZodOptional<z.ZodObject<{
283
- exchangeFillId: z.ZodString;
284
- quantity: z.ZodString;
285
- }, z.core.$strip>>;
286
254
  }, z.core.$strip>>;
287
255
  metadata: z.ZodObject<{
288
256
  initialExposureUSD: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
@@ -118,19 +118,19 @@ export type TcaExecutionSummaryLegResponse = z.output<typeof TcaExecutionSummary
118
118
  export declare const TcaExecutionSummaryContextResponse: z.ZodObject<{
119
119
  intent: z.ZodEnum<{
120
120
  OPEN: "OPEN";
121
- ADJUST: "ADJUST";
122
121
  CLOSE: "CLOSE";
122
+ ADJUST: "ADJUST";
123
123
  REVERSE: "REVERSE";
124
124
  }>;
125
125
  orderType: z.ZodEnum<{
126
126
  MARKET: "MARKET";
127
127
  }>;
128
128
  executionStatus: z.ZodEnum<{
129
- FAILED: "FAILED";
130
129
  ACTIVE: "ACTIVE";
130
+ COMPLETED: "COMPLETED";
131
+ FAILED: "FAILED";
131
132
  CANCELLED: "CANCELLED";
132
133
  IDLE: "IDLE";
133
- COMPLETED: "COMPLETED";
134
134
  }>;
135
135
  positionId: z.ZodOptional<z.ZodUUID>;
136
136
  scheduleId: z.ZodOptional<z.ZodUUID>;
@@ -160,19 +160,19 @@ export declare const TcaExecutionSummaryResponse: z.ZodObject<{
160
160
  executionContext: z.ZodOptional<z.ZodObject<{
161
161
  intent: z.ZodEnum<{
162
162
  OPEN: "OPEN";
163
- ADJUST: "ADJUST";
164
163
  CLOSE: "CLOSE";
164
+ ADJUST: "ADJUST";
165
165
  REVERSE: "REVERSE";
166
166
  }>;
167
167
  orderType: z.ZodEnum<{
168
168
  MARKET: "MARKET";
169
169
  }>;
170
170
  executionStatus: z.ZodEnum<{
171
- FAILED: "FAILED";
172
171
  ACTIVE: "ACTIVE";
172
+ COMPLETED: "COMPLETED";
173
+ FAILED: "FAILED";
173
174
  CANCELLED: "CANCELLED";
174
175
  IDLE: "IDLE";
175
- COMPLETED: "COMPLETED";
176
176
  }>;
177
177
  positionId: z.ZodOptional<z.ZodUUID>;
178
178
  scheduleId: z.ZodOptional<z.ZodUUID>;
@@ -215,19 +215,19 @@ export declare const TcaExecutionResponse: z.ZodObject<{
215
215
  executionContext: z.ZodOptional<z.ZodObject<{
216
216
  intent: z.ZodEnum<{
217
217
  OPEN: "OPEN";
218
- ADJUST: "ADJUST";
219
218
  CLOSE: "CLOSE";
219
+ ADJUST: "ADJUST";
220
220
  REVERSE: "REVERSE";
221
221
  }>;
222
222
  orderType: z.ZodEnum<{
223
223
  MARKET: "MARKET";
224
224
  }>;
225
225
  executionStatus: z.ZodEnum<{
226
- FAILED: "FAILED";
227
226
  ACTIVE: "ACTIVE";
227
+ COMPLETED: "COMPLETED";
228
+ FAILED: "FAILED";
228
229
  CANCELLED: "CANCELLED";
229
230
  IDLE: "IDLE";
230
- COMPLETED: "COMPLETED";
231
231
  }>;
232
232
  positionId: z.ZodOptional<z.ZodUUID>;
233
233
  scheduleId: z.ZodOptional<z.ZodUUID>;
@@ -438,19 +438,19 @@ export declare const TcaSummaryResponse: z.ZodObject<{
438
438
  executionContext: z.ZodOptional<z.ZodObject<{
439
439
  intent: z.ZodEnum<{
440
440
  OPEN: "OPEN";
441
- ADJUST: "ADJUST";
442
441
  CLOSE: "CLOSE";
442
+ ADJUST: "ADJUST";
443
443
  REVERSE: "REVERSE";
444
444
  }>;
445
445
  orderType: z.ZodEnum<{
446
446
  MARKET: "MARKET";
447
447
  }>;
448
448
  executionStatus: 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
  positionId: z.ZodOptional<z.ZodUUID>;
456
456
  scheduleId: z.ZodOptional<z.ZodUUID>;
@@ -38,6 +38,7 @@ export declare const CreateMarketOpen: z.ZodObject<{
38
38
  STOP_LOSS: "STOP_LOSS";
39
39
  TAKE_PROFIT: "TAKE_PROFIT";
40
40
  }>;
41
+ closePercent: z.ZodOptional<z.ZodNumber>;
41
42
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
42
43
  type: z.ZodLiteral<"notional">;
43
44
  data: z.ZodObject<{
@@ -46,8 +47,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
46
47
  mark: "mark";
47
48
  }>;
48
49
  threshold: z.ZodNumber;
49
- }, z.core.$strip>;
50
- }, z.core.$strip>, z.ZodObject<{
50
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
51
+ cancel: "cancel";
52
+ keep: "keep";
53
+ }>>;
54
+ }, z.core.$strict>;
55
+ }, z.core.$strict>, z.ZodObject<{
51
56
  type: z.ZodLiteral<"upnl">;
52
57
  data: z.ZodObject<{
53
58
  priceSource: z.ZodEnum<{
@@ -55,8 +60,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
55
60
  mark: "mark";
56
61
  }>;
57
62
  threshold: z.ZodNumber;
58
- }, z.core.$strip>;
59
- }, z.core.$strip>, z.ZodObject<{
63
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
64
+ cancel: "cancel";
65
+ keep: "keep";
66
+ }>>;
67
+ }, z.core.$strict>;
68
+ }, z.core.$strict>, z.ZodObject<{
60
69
  type: z.ZodLiteral<"upnl_bps">;
61
70
  data: z.ZodObject<{
62
71
  priceSource: z.ZodEnum<{
@@ -64,11 +73,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
64
73
  mark: "mark";
65
74
  }>;
66
75
  threshold: z.ZodNumber;
67
- }, z.core.$strip>;
68
- }, z.core.$strip>], "type">;
76
+ }, z.core.$strict>;
77
+ }, z.core.$strict>], "type">;
69
78
  }, z.core.$strip>, z.ZodObject<{
70
79
  intent: z.ZodLiteral<"CLOSE">;
71
80
  type: z.ZodLiteral<"MARKET">;
81
+ closePercent: z.ZodOptional<z.ZodNumber>;
72
82
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
73
83
  type: z.ZodLiteral<"notional_trailing">;
74
84
  data: z.ZodObject<{
@@ -76,24 +86,32 @@ export declare const CreateMarketOpen: z.ZodObject<{
76
86
  mid: "mid";
77
87
  mark: "mark";
78
88
  }>;
79
- }, z.core.$strip>;
80
- }, z.core.$strip>, z.ZodObject<{
89
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
90
+ cancel: "cancel";
91
+ keep: "keep";
92
+ }>>;
93
+ }, z.core.$strict>;
94
+ }, z.core.$strict>, z.ZodObject<{
81
95
  type: z.ZodLiteral<"upnl_trailing">;
82
96
  data: z.ZodObject<{
83
97
  priceSource: z.ZodEnum<{
84
98
  mid: "mid";
85
99
  mark: "mark";
86
100
  }>;
87
- }, z.core.$strip>;
88
- }, z.core.$strip>, z.ZodObject<{
101
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
102
+ cancel: "cancel";
103
+ keep: "keep";
104
+ }>>;
105
+ }, z.core.$strict>;
106
+ }, z.core.$strict>, z.ZodObject<{
89
107
  type: z.ZodLiteral<"upnl_bps_trailing">;
90
108
  data: z.ZodObject<{
91
109
  priceSource: z.ZodEnum<{
92
110
  mid: "mid";
93
111
  mark: "mark";
94
112
  }>;
95
- }, z.core.$strip>;
96
- }, z.core.$strip>], "type">;
113
+ }, z.core.$strict>;
114
+ }, z.core.$strict>], "type">;
97
115
  trailing: z.ZodObject<{
98
116
  mode: z.ZodEnum<{
99
117
  RELATIVE_BPS: "RELATIVE_BPS";
@@ -192,6 +210,7 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
192
210
  STOP_LOSS: "STOP_LOSS";
193
211
  TAKE_PROFIT: "TAKE_PROFIT";
194
212
  }>;
213
+ closePercent: z.ZodOptional<z.ZodNumber>;
195
214
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
196
215
  type: z.ZodLiteral<"notional">;
197
216
  data: z.ZodObject<{
@@ -200,8 +219,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
200
219
  mark: "mark";
201
220
  }>;
202
221
  threshold: z.ZodNumber;
203
- }, z.core.$strip>;
204
- }, z.core.$strip>, z.ZodObject<{
222
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
223
+ cancel: "cancel";
224
+ keep: "keep";
225
+ }>>;
226
+ }, z.core.$strict>;
227
+ }, z.core.$strict>, z.ZodObject<{
205
228
  type: z.ZodLiteral<"upnl">;
206
229
  data: z.ZodObject<{
207
230
  priceSource: z.ZodEnum<{
@@ -209,8 +232,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
232
  mark: "mark";
210
233
  }>;
211
234
  threshold: z.ZodNumber;
212
- }, z.core.$strip>;
213
- }, z.core.$strip>, z.ZodObject<{
235
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
236
+ cancel: "cancel";
237
+ keep: "keep";
238
+ }>>;
239
+ }, z.core.$strict>;
240
+ }, z.core.$strict>, z.ZodObject<{
214
241
  type: z.ZodLiteral<"upnl_bps">;
215
242
  data: z.ZodObject<{
216
243
  priceSource: z.ZodEnum<{
@@ -218,11 +245,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
218
245
  mark: "mark";
219
246
  }>;
220
247
  threshold: z.ZodNumber;
221
- }, z.core.$strip>;
222
- }, z.core.$strip>], "type">;
248
+ }, z.core.$strict>;
249
+ }, z.core.$strict>], "type">;
223
250
  }, z.core.$strip>, z.ZodObject<{
224
251
  intent: z.ZodLiteral<"CLOSE">;
225
252
  type: z.ZodLiteral<"MARKET">;
253
+ closePercent: z.ZodOptional<z.ZodNumber>;
226
254
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
255
  type: z.ZodLiteral<"notional_trailing">;
228
256
  data: z.ZodObject<{
@@ -230,24 +258,32 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
258
  mid: "mid";
231
259
  mark: "mark";
232
260
  }>;
233
- }, z.core.$strip>;
234
- }, z.core.$strip>, z.ZodObject<{
261
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
262
+ cancel: "cancel";
263
+ keep: "keep";
264
+ }>>;
265
+ }, z.core.$strict>;
266
+ }, z.core.$strict>, z.ZodObject<{
235
267
  type: z.ZodLiteral<"upnl_trailing">;
236
268
  data: z.ZodObject<{
237
269
  priceSource: z.ZodEnum<{
238
270
  mid: "mid";
239
271
  mark: "mark";
240
272
  }>;
241
- }, z.core.$strip>;
242
- }, z.core.$strip>, z.ZodObject<{
273
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
274
+ cancel: "cancel";
275
+ keep: "keep";
276
+ }>>;
277
+ }, z.core.$strict>;
278
+ }, z.core.$strict>, z.ZodObject<{
243
279
  type: z.ZodLiteral<"upnl_bps_trailing">;
244
280
  data: z.ZodObject<{
245
281
  priceSource: z.ZodEnum<{
246
282
  mid: "mid";
247
283
  mark: "mark";
248
284
  }>;
249
- }, z.core.$strip>;
250
- }, z.core.$strip>], "type">;
285
+ }, z.core.$strict>;
286
+ }, z.core.$strict>], "type">;
251
287
  trailing: z.ZodObject<{
252
288
  mode: z.ZodEnum<{
253
289
  RELATIVE_BPS: "RELATIVE_BPS";