@pear-protocol/types 0.0.17 → 0.0.19

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- declare const TriggerConditionRatioV1: z.ZodObject<{
3
- type: z.ZodLiteral<"ratio_v1">;
2
+ declare const Ratio: z.ZodObject<{
3
+ type: z.ZodLiteral<"ratio">;
4
4
  data: z.ZodObject<{
5
5
  priceSource: z.ZodEnum<{
6
6
  mid: "mid";
@@ -8,30 +8,30 @@ declare const TriggerConditionRatioV1: z.ZodObject<{
8
8
  }>;
9
9
  symbol_a: z.ZodString;
10
10
  symbol_b: z.ZodString;
11
- direction: z.ZodEnum<{
12
- ABOVE: "ABOVE";
13
- BELOW: "BELOW";
11
+ track: z.ZodEnum<{
12
+ PEAK: "PEAK";
13
+ TROUGH: "TROUGH";
14
14
  }>;
15
15
  threshold: z.ZodNumber;
16
16
  }, z.core.$strip>;
17
17
  }, z.core.$strip>;
18
- declare const TriggerConditionPriceV1: z.ZodObject<{
19
- type: z.ZodLiteral<"price_v1">;
18
+ declare const Price: z.ZodObject<{
19
+ type: z.ZodLiteral<"price">;
20
20
  data: z.ZodObject<{
21
21
  priceSource: z.ZodEnum<{
22
22
  mid: "mid";
23
23
  mark: "mark";
24
24
  }>;
25
25
  symbol: z.ZodString;
26
- direction: z.ZodEnum<{
27
- ABOVE: "ABOVE";
28
- BELOW: "BELOW";
26
+ track: z.ZodEnum<{
27
+ PEAK: "PEAK";
28
+ TROUGH: "TROUGH";
29
29
  }>;
30
30
  threshold: z.ZodNumber;
31
31
  }, z.core.$strip>;
32
32
  }, z.core.$strip>;
33
- declare const TriggerConditionIndexV1: z.ZodObject<{
34
- type: z.ZodLiteral<"index_v1">;
33
+ declare const WeightedRatio: z.ZodObject<{
34
+ type: z.ZodLiteral<"weighted_ratio">;
35
35
  data: z.ZodObject<{
36
36
  priceSource: z.ZodEnum<{
37
37
  mid: "mid";
@@ -39,127 +39,157 @@ declare const TriggerConditionIndexV1: z.ZodObject<{
39
39
  }>;
40
40
  basket: z.ZodArray<z.ZodObject<{
41
41
  symbol: z.ZodString;
42
+ side: z.ZodEnum<{
43
+ BUY: "BUY";
44
+ SELL: "SELL";
45
+ }>;
42
46
  weight: z.ZodNumber;
43
47
  }, z.core.$strip>>;
44
- direction: z.ZodEnum<{
45
- ABOVE: "ABOVE";
46
- BELOW: "BELOW";
48
+ track: z.ZodEnum<{
49
+ PEAK: "PEAK";
50
+ TROUGH: "TROUGH";
47
51
  }>;
48
52
  threshold: z.ZodNumber;
49
53
  }, z.core.$strip>;
50
54
  }, z.core.$strip>;
51
- declare const TriggerConditionWeightedRatioV1: z.ZodObject<{
52
- type: z.ZodLiteral<"weighted_ratio_v1">;
55
+ declare const Notional: z.ZodObject<{
56
+ type: z.ZodLiteral<"notional">;
53
57
  data: z.ZodObject<{
54
58
  priceSource: z.ZodEnum<{
55
59
  mid: "mid";
56
60
  mark: "mark";
57
61
  }>;
58
- basket: z.ZodArray<z.ZodObject<{
59
- symbol: z.ZodString;
60
- side: z.ZodEnum<{
61
- BUY: "BUY";
62
- SELL: "SELL";
63
- }>;
64
- weight: z.ZodNumber;
65
- }, z.core.$strip>>;
66
- direction: z.ZodEnum<{
67
- ABOVE: "ABOVE";
68
- BELOW: "BELOW";
62
+ track: z.ZodEnum<{
63
+ PEAK: "PEAK";
64
+ TROUGH: "TROUGH";
69
65
  }>;
70
66
  threshold: z.ZodNumber;
71
67
  }, z.core.$strip>;
72
68
  }, z.core.$strip>;
73
- declare const TriggerConditionPositionValueV1: z.ZodObject<{
74
- type: z.ZodLiteral<"position_value_v1">;
69
+ declare const Upnl: z.ZodObject<{
70
+ type: z.ZodLiteral<"upnl">;
75
71
  data: z.ZodObject<{
76
72
  priceSource: z.ZodEnum<{
77
73
  mid: "mid";
78
74
  mark: "mark";
79
75
  }>;
80
- direction: z.ZodEnum<{
81
- ABOVE: "ABOVE";
82
- BELOW: "BELOW";
76
+ track: z.ZodEnum<{
77
+ PEAK: "PEAK";
78
+ TROUGH: "TROUGH";
83
79
  }>;
84
80
  threshold: z.ZodNumber;
85
81
  }, z.core.$strip>;
86
82
  }, z.core.$strip>;
87
- declare const TriggerConditionPositionUPnLValueV1: z.ZodObject<{
88
- type: z.ZodLiteral<"position_upnl_value_v1">;
83
+ declare const UpnlBps: z.ZodObject<{
84
+ type: z.ZodLiteral<"upnl_bps">;
89
85
  data: z.ZodObject<{
90
86
  priceSource: z.ZodEnum<{
91
87
  mid: "mid";
92
88
  mark: "mark";
93
89
  }>;
94
- direction: z.ZodEnum<{
95
- ABOVE: "ABOVE";
96
- BELOW: "BELOW";
90
+ track: z.ZodEnum<{
91
+ PEAK: "PEAK";
92
+ TROUGH: "TROUGH";
97
93
  }>;
98
94
  threshold: z.ZodNumber;
99
95
  }, z.core.$strip>;
100
96
  }, z.core.$strip>;
101
- declare const TriggerConditionPositionUPnLPercentageV1: z.ZodObject<{
102
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
97
+ declare const RatioTrailing: z.ZodObject<{
98
+ type: z.ZodLiteral<"ratio_trailing">;
103
99
  data: z.ZodObject<{
104
100
  priceSource: z.ZodEnum<{
105
101
  mid: "mid";
106
102
  mark: "mark";
107
103
  }>;
108
- direction: z.ZodEnum<{
109
- ABOVE: "ABOVE";
110
- BELOW: "BELOW";
104
+ symbol_a: z.ZodString;
105
+ symbol_b: z.ZodString;
106
+ }, z.core.$strip>;
107
+ }, z.core.$strip>;
108
+ declare const PriceTrailing: z.ZodObject<{
109
+ type: z.ZodLiteral<"price_trailing">;
110
+ data: z.ZodObject<{
111
+ priceSource: z.ZodEnum<{
112
+ mid: "mid";
113
+ mark: "mark";
111
114
  }>;
112
- threshold_bps: z.ZodNumber;
115
+ symbol: z.ZodString;
113
116
  }, z.core.$strip>;
114
117
  }, z.core.$strip>;
115
- export declare const TriggerConditionOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
- type: z.ZodLiteral<"ratio_v1">;
118
+ declare const WeightedRatioTrailing: z.ZodObject<{
119
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
117
120
  data: z.ZodObject<{
118
121
  priceSource: z.ZodEnum<{
119
122
  mid: "mid";
120
123
  mark: "mark";
121
124
  }>;
122
- symbol_a: z.ZodString;
123
- symbol_b: z.ZodString;
124
- direction: z.ZodEnum<{
125
- ABOVE: "ABOVE";
126
- BELOW: "BELOW";
125
+ basket: z.ZodArray<z.ZodObject<{
126
+ symbol: z.ZodString;
127
+ side: z.ZodEnum<{
128
+ BUY: "BUY";
129
+ SELL: "SELL";
130
+ }>;
131
+ weight: z.ZodNumber;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>;
135
+ declare const NotionalTrailing: z.ZodObject<{
136
+ type: z.ZodLiteral<"notional_trailing">;
137
+ data: z.ZodObject<{
138
+ priceSource: z.ZodEnum<{
139
+ mid: "mid";
140
+ mark: "mark";
127
141
  }>;
128
- threshold: z.ZodNumber;
129
142
  }, z.core.$strip>;
130
- }, z.core.$strip>, z.ZodObject<{
131
- type: z.ZodLiteral<"price_v1">;
143
+ }, z.core.$strip>;
144
+ declare const UpnlTrailing: z.ZodObject<{
145
+ type: z.ZodLiteral<"upnl_trailing">;
132
146
  data: z.ZodObject<{
133
147
  priceSource: z.ZodEnum<{
134
148
  mid: "mid";
135
149
  mark: "mark";
136
150
  }>;
137
- symbol: z.ZodString;
138
- direction: z.ZodEnum<{
139
- ABOVE: "ABOVE";
140
- BELOW: "BELOW";
151
+ }, z.core.$strip>;
152
+ }, z.core.$strip>;
153
+ declare const UpnlBpsTrailing: z.ZodObject<{
154
+ type: z.ZodLiteral<"upnl_bps_trailing">;
155
+ data: z.ZodObject<{
156
+ priceSource: z.ZodEnum<{
157
+ mid: "mid";
158
+ mark: "mark";
159
+ }>;
160
+ }, z.core.$strip>;
161
+ }, z.core.$strip>;
162
+ export declare const TriggerConditionOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
163
+ type: z.ZodLiteral<"ratio">;
164
+ data: z.ZodObject<{
165
+ priceSource: z.ZodEnum<{
166
+ mid: "mid";
167
+ mark: "mark";
168
+ }>;
169
+ symbol_a: z.ZodString;
170
+ symbol_b: z.ZodString;
171
+ track: z.ZodEnum<{
172
+ PEAK: "PEAK";
173
+ TROUGH: "TROUGH";
141
174
  }>;
142
175
  threshold: z.ZodNumber;
143
176
  }, z.core.$strip>;
144
177
  }, z.core.$strip>, z.ZodObject<{
145
- type: z.ZodLiteral<"index_v1">;
178
+ type: z.ZodLiteral<"price">;
146
179
  data: z.ZodObject<{
147
180
  priceSource: z.ZodEnum<{
148
181
  mid: "mid";
149
182
  mark: "mark";
150
183
  }>;
151
- basket: z.ZodArray<z.ZodObject<{
152
- symbol: z.ZodString;
153
- weight: z.ZodNumber;
154
- }, z.core.$strip>>;
155
- direction: z.ZodEnum<{
156
- ABOVE: "ABOVE";
157
- BELOW: "BELOW";
184
+ symbol: z.ZodString;
185
+ track: z.ZodEnum<{
186
+ PEAK: "PEAK";
187
+ TROUGH: "TROUGH";
158
188
  }>;
159
189
  threshold: z.ZodNumber;
160
190
  }, z.core.$strip>;
161
191
  }, z.core.$strip>, z.ZodObject<{
162
- type: z.ZodLiteral<"weighted_ratio_v1">;
192
+ type: z.ZodLiteral<"weighted_ratio">;
163
193
  data: z.ZodObject<{
164
194
  priceSource: z.ZodEnum<{
165
195
  mid: "mid";
@@ -173,15 +203,15 @@ export declare const TriggerConditionOpen: z.ZodDiscriminatedUnion<[z.ZodObject<
173
203
  }>;
174
204
  weight: z.ZodNumber;
175
205
  }, z.core.$strip>>;
176
- direction: z.ZodEnum<{
177
- ABOVE: "ABOVE";
178
- BELOW: "BELOW";
206
+ track: z.ZodEnum<{
207
+ PEAK: "PEAK";
208
+ TROUGH: "TROUGH";
179
209
  }>;
180
210
  threshold: z.ZodNumber;
181
211
  }, z.core.$strip>;
182
212
  }, z.core.$strip>], "type">;
183
213
  export declare const TriggerConditionAdjust: z.ZodDiscriminatedUnion<[z.ZodObject<{
184
- type: z.ZodLiteral<"ratio_v1">;
214
+ type: z.ZodLiteral<"ratio">;
185
215
  data: z.ZodObject<{
186
216
  priceSource: z.ZodEnum<{
187
217
  mid: "mid";
@@ -189,45 +219,28 @@ export declare const TriggerConditionAdjust: z.ZodDiscriminatedUnion<[z.ZodObjec
189
219
  }>;
190
220
  symbol_a: z.ZodString;
191
221
  symbol_b: z.ZodString;
192
- direction: z.ZodEnum<{
193
- ABOVE: "ABOVE";
194
- BELOW: "BELOW";
222
+ track: z.ZodEnum<{
223
+ PEAK: "PEAK";
224
+ TROUGH: "TROUGH";
195
225
  }>;
196
226
  threshold: z.ZodNumber;
197
227
  }, z.core.$strip>;
198
228
  }, z.core.$strip>, z.ZodObject<{
199
- type: z.ZodLiteral<"price_v1">;
229
+ type: z.ZodLiteral<"price">;
200
230
  data: z.ZodObject<{
201
231
  priceSource: z.ZodEnum<{
202
232
  mid: "mid";
203
233
  mark: "mark";
204
234
  }>;
205
235
  symbol: z.ZodString;
206
- direction: z.ZodEnum<{
207
- ABOVE: "ABOVE";
208
- BELOW: "BELOW";
236
+ track: z.ZodEnum<{
237
+ PEAK: "PEAK";
238
+ TROUGH: "TROUGH";
209
239
  }>;
210
240
  threshold: z.ZodNumber;
211
241
  }, z.core.$strip>;
212
242
  }, z.core.$strip>, z.ZodObject<{
213
- type: z.ZodLiteral<"index_v1">;
214
- data: z.ZodObject<{
215
- priceSource: z.ZodEnum<{
216
- mid: "mid";
217
- mark: "mark";
218
- }>;
219
- basket: z.ZodArray<z.ZodObject<{
220
- symbol: z.ZodString;
221
- weight: z.ZodNumber;
222
- }, z.core.$strip>>;
223
- direction: z.ZodEnum<{
224
- ABOVE: "ABOVE";
225
- BELOW: "BELOW";
226
- }>;
227
- threshold: z.ZodNumber;
228
- }, z.core.$strip>;
229
- }, z.core.$strip>, z.ZodObject<{
230
- type: z.ZodLiteral<"weighted_ratio_v1">;
243
+ type: z.ZodLiteral<"weighted_ratio">;
231
244
  data: z.ZodObject<{
232
245
  priceSource: z.ZodEnum<{
233
246
  mid: "mid";
@@ -241,54 +254,54 @@ export declare const TriggerConditionAdjust: z.ZodDiscriminatedUnion<[z.ZodObjec
241
254
  }>;
242
255
  weight: z.ZodNumber;
243
256
  }, z.core.$strip>>;
244
- direction: z.ZodEnum<{
245
- ABOVE: "ABOVE";
246
- BELOW: "BELOW";
257
+ track: z.ZodEnum<{
258
+ PEAK: "PEAK";
259
+ TROUGH: "TROUGH";
247
260
  }>;
248
261
  threshold: z.ZodNumber;
249
262
  }, z.core.$strip>;
250
263
  }, z.core.$strip>, z.ZodObject<{
251
- type: z.ZodLiteral<"position_value_v1">;
264
+ type: z.ZodLiteral<"notional">;
252
265
  data: z.ZodObject<{
253
266
  priceSource: z.ZodEnum<{
254
267
  mid: "mid";
255
268
  mark: "mark";
256
269
  }>;
257
- direction: z.ZodEnum<{
258
- ABOVE: "ABOVE";
259
- BELOW: "BELOW";
270
+ track: z.ZodEnum<{
271
+ PEAK: "PEAK";
272
+ TROUGH: "TROUGH";
260
273
  }>;
261
274
  threshold: z.ZodNumber;
262
275
  }, z.core.$strip>;
263
276
  }, z.core.$strip>, z.ZodObject<{
264
- type: z.ZodLiteral<"position_upnl_value_v1">;
277
+ type: z.ZodLiteral<"upnl">;
265
278
  data: z.ZodObject<{
266
279
  priceSource: z.ZodEnum<{
267
280
  mid: "mid";
268
281
  mark: "mark";
269
282
  }>;
270
- direction: z.ZodEnum<{
271
- ABOVE: "ABOVE";
272
- BELOW: "BELOW";
283
+ track: z.ZodEnum<{
284
+ PEAK: "PEAK";
285
+ TROUGH: "TROUGH";
273
286
  }>;
274
287
  threshold: z.ZodNumber;
275
288
  }, z.core.$strip>;
276
289
  }, z.core.$strip>, z.ZodObject<{
277
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
290
+ type: z.ZodLiteral<"upnl_bps">;
278
291
  data: z.ZodObject<{
279
292
  priceSource: z.ZodEnum<{
280
293
  mid: "mid";
281
294
  mark: "mark";
282
295
  }>;
283
- direction: z.ZodEnum<{
284
- ABOVE: "ABOVE";
285
- BELOW: "BELOW";
296
+ track: z.ZodEnum<{
297
+ PEAK: "PEAK";
298
+ TROUGH: "TROUGH";
286
299
  }>;
287
- threshold_bps: z.ZodNumber;
300
+ threshold: z.ZodNumber;
288
301
  }, z.core.$strip>;
289
302
  }, z.core.$strip>], "type">;
290
303
  export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject<{
291
- type: z.ZodLiteral<"ratio_v1">;
304
+ type: z.ZodLiteral<"ratio">;
292
305
  data: z.ZodObject<{
293
306
  priceSource: z.ZodEnum<{
294
307
  mid: "mid";
@@ -296,28 +309,28 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
296
309
  }>;
297
310
  symbol_a: z.ZodString;
298
311
  symbol_b: z.ZodString;
299
- direction: z.ZodEnum<{
300
- ABOVE: "ABOVE";
301
- BELOW: "BELOW";
312
+ track: z.ZodEnum<{
313
+ PEAK: "PEAK";
314
+ TROUGH: "TROUGH";
302
315
  }>;
303
316
  threshold: z.ZodNumber;
304
317
  }, z.core.$strip>;
305
318
  }, z.core.$strip>, z.ZodObject<{
306
- type: z.ZodLiteral<"price_v1">;
319
+ type: z.ZodLiteral<"price">;
307
320
  data: z.ZodObject<{
308
321
  priceSource: z.ZodEnum<{
309
322
  mid: "mid";
310
323
  mark: "mark";
311
324
  }>;
312
325
  symbol: z.ZodString;
313
- direction: z.ZodEnum<{
314
- ABOVE: "ABOVE";
315
- BELOW: "BELOW";
326
+ track: z.ZodEnum<{
327
+ PEAK: "PEAK";
328
+ TROUGH: "TROUGH";
316
329
  }>;
317
330
  threshold: z.ZodNumber;
318
331
  }, z.core.$strip>;
319
332
  }, z.core.$strip>, z.ZodObject<{
320
- type: z.ZodLiteral<"index_v1">;
333
+ type: z.ZodLiteral<"weighted_ratio">;
321
334
  data: z.ZodObject<{
322
335
  priceSource: z.ZodEnum<{
323
336
  mid: "mid";
@@ -325,16 +338,78 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
325
338
  }>;
326
339
  basket: z.ZodArray<z.ZodObject<{
327
340
  symbol: z.ZodString;
341
+ side: z.ZodEnum<{
342
+ BUY: "BUY";
343
+ SELL: "SELL";
344
+ }>;
328
345
  weight: z.ZodNumber;
329
346
  }, z.core.$strip>>;
330
- direction: z.ZodEnum<{
331
- ABOVE: "ABOVE";
332
- BELOW: "BELOW";
347
+ track: z.ZodEnum<{
348
+ PEAK: "PEAK";
349
+ TROUGH: "TROUGH";
350
+ }>;
351
+ threshold: z.ZodNumber;
352
+ }, z.core.$strip>;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ type: z.ZodLiteral<"notional">;
355
+ data: z.ZodObject<{
356
+ priceSource: z.ZodEnum<{
357
+ mid: "mid";
358
+ mark: "mark";
359
+ }>;
360
+ track: z.ZodEnum<{
361
+ PEAK: "PEAK";
362
+ TROUGH: "TROUGH";
363
+ }>;
364
+ threshold: z.ZodNumber;
365
+ }, z.core.$strip>;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ type: z.ZodLiteral<"upnl">;
368
+ data: z.ZodObject<{
369
+ priceSource: z.ZodEnum<{
370
+ mid: "mid";
371
+ mark: "mark";
372
+ }>;
373
+ track: z.ZodEnum<{
374
+ PEAK: "PEAK";
375
+ TROUGH: "TROUGH";
333
376
  }>;
334
377
  threshold: z.ZodNumber;
335
378
  }, z.core.$strip>;
336
379
  }, z.core.$strip>, z.ZodObject<{
337
- type: z.ZodLiteral<"weighted_ratio_v1">;
380
+ type: z.ZodLiteral<"upnl_bps">;
381
+ data: z.ZodObject<{
382
+ priceSource: z.ZodEnum<{
383
+ mid: "mid";
384
+ mark: "mark";
385
+ }>;
386
+ track: z.ZodEnum<{
387
+ PEAK: "PEAK";
388
+ TROUGH: "TROUGH";
389
+ }>;
390
+ threshold: z.ZodNumber;
391
+ }, z.core.$strip>;
392
+ }, z.core.$strip>, z.ZodObject<{
393
+ type: z.ZodLiteral<"ratio_trailing">;
394
+ data: z.ZodObject<{
395
+ priceSource: z.ZodEnum<{
396
+ mid: "mid";
397
+ mark: "mark";
398
+ }>;
399
+ symbol_a: z.ZodString;
400
+ symbol_b: z.ZodString;
401
+ }, z.core.$strip>;
402
+ }, z.core.$strip>, z.ZodObject<{
403
+ type: z.ZodLiteral<"price_trailing">;
404
+ data: z.ZodObject<{
405
+ priceSource: z.ZodEnum<{
406
+ mid: "mid";
407
+ mark: "mark";
408
+ }>;
409
+ symbol: z.ZodString;
410
+ }, z.core.$strip>;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
338
413
  data: z.ZodObject<{
339
414
  priceSource: z.ZodEnum<{
340
415
  mid: "mid";
@@ -348,59 +423,44 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
348
423
  }>;
349
424
  weight: z.ZodNumber;
350
425
  }, z.core.$strip>>;
351
- direction: z.ZodEnum<{
352
- ABOVE: "ABOVE";
353
- BELOW: "BELOW";
354
- }>;
355
- threshold: z.ZodNumber;
356
426
  }, z.core.$strip>;
357
427
  }, z.core.$strip>, z.ZodObject<{
358
- type: z.ZodLiteral<"position_value_v1">;
428
+ type: z.ZodLiteral<"notional_trailing">;
359
429
  data: z.ZodObject<{
360
430
  priceSource: z.ZodEnum<{
361
431
  mid: "mid";
362
432
  mark: "mark";
363
433
  }>;
364
- direction: z.ZodEnum<{
365
- ABOVE: "ABOVE";
366
- BELOW: "BELOW";
367
- }>;
368
- threshold: z.ZodNumber;
369
434
  }, z.core.$strip>;
370
435
  }, z.core.$strip>, z.ZodObject<{
371
- type: z.ZodLiteral<"position_upnl_value_v1">;
436
+ type: z.ZodLiteral<"upnl_trailing">;
372
437
  data: z.ZodObject<{
373
438
  priceSource: z.ZodEnum<{
374
439
  mid: "mid";
375
440
  mark: "mark";
376
441
  }>;
377
- direction: z.ZodEnum<{
378
- ABOVE: "ABOVE";
379
- BELOW: "BELOW";
380
- }>;
381
- threshold: z.ZodNumber;
382
442
  }, z.core.$strip>;
383
443
  }, z.core.$strip>, z.ZodObject<{
384
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
444
+ type: z.ZodLiteral<"upnl_bps_trailing">;
385
445
  data: z.ZodObject<{
386
446
  priceSource: z.ZodEnum<{
387
447
  mid: "mid";
388
448
  mark: "mark";
389
449
  }>;
390
- direction: z.ZodEnum<{
391
- ABOVE: "ABOVE";
392
- BELOW: "BELOW";
393
- }>;
394
- threshold_bps: z.ZodNumber;
395
450
  }, z.core.$strip>;
396
451
  }, z.core.$strip>], "type">;
397
- export type TriggerConditionRatioV1 = z.output<typeof TriggerConditionRatioV1>;
398
- export type TriggerConditionPriceV1 = z.output<typeof TriggerConditionPriceV1>;
399
- export type TriggerConditionIndexV1 = z.output<typeof TriggerConditionIndexV1>;
400
- export type TriggerConditionWeightedRatioV1 = z.output<typeof TriggerConditionWeightedRatioV1>;
401
- export type TriggerConditionPositionValueV1 = z.output<typeof TriggerConditionPositionValueV1>;
402
- export type TriggerConditionPositionUPnLValueV1 = z.output<typeof TriggerConditionPositionUPnLValueV1>;
403
- export type TriggerConditionPositionUPnLPercentageV1 = z.output<typeof TriggerConditionPositionUPnLPercentageV1>;
452
+ export type TriggerConditionRatio = z.output<typeof Ratio>;
453
+ export type TriggerConditionPrice = z.output<typeof Price>;
454
+ export type TriggerConditionWeightedRatio = z.output<typeof WeightedRatio>;
455
+ export type TriggerConditionNotional = z.output<typeof Notional>;
456
+ export type TriggerConditionUpnl = z.output<typeof Upnl>;
457
+ export type TriggerConditionUpnlBps = z.output<typeof UpnlBps>;
458
+ export type TriggerConditionRatioTrailing = z.output<typeof RatioTrailing>;
459
+ export type TriggerConditionPriceTrailing = z.output<typeof PriceTrailing>;
460
+ export type TriggerConditionWeightedRatioTrailing = z.output<typeof WeightedRatioTrailing>;
461
+ export type TriggerConditionNotionalTrailing = z.output<typeof NotionalTrailing>;
462
+ export type TriggerConditionUpnlTrailing = z.output<typeof UpnlTrailing>;
463
+ export type TriggerConditionUpnlBpsTrailing = z.output<typeof UpnlBpsTrailing>;
404
464
  export type TriggerConditionOpen = z.output<typeof TriggerConditionOpen>;
405
465
  export type TriggerConditionAdjust = z.output<typeof TriggerConditionAdjust>;
406
466
  export type TriggerConditionClose = z.output<typeof TriggerConditionClose>;