@pear-protocol/types 1.2.0 → 1.4.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.
@@ -0,0 +1,2260 @@
1
+ import { z } from 'zod';
2
+ export declare const CreateLadderResponse: z.ZodObject<{
3
+ ladder: z.ZodObject<{
4
+ id: z.ZodUUID;
5
+ connector: z.ZodEnum<{
6
+ hyperliquid: "hyperliquid";
7
+ binance: "binance";
8
+ bybit: "bybit";
9
+ okx: "okx";
10
+ lighter: "lighter";
11
+ }>;
12
+ positionKey: z.ZodString;
13
+ config: z.ZodObject<{
14
+ thresholdStart: z.ZodNumber;
15
+ thresholdEnd: z.ZodNumber;
16
+ levels: z.ZodInt;
17
+ weighting: z.ZodDefault<z.ZodLiteral<"EQUAL">>;
18
+ }, z.core.$strip>;
19
+ status: z.ZodEnum<{
20
+ CANCELLED: "CANCELLED";
21
+ ACTIVE: "ACTIVE";
22
+ COMPLETED: "COMPLETED";
23
+ }>;
24
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ id: z.ZodUUID;
26
+ tradeAccountId: z.ZodUUID;
27
+ connector: z.ZodEnum<{
28
+ hyperliquid: "hyperliquid";
29
+ binance: "binance";
30
+ bybit: "bybit";
31
+ okx: "okx";
32
+ lighter: "lighter";
33
+ }>;
34
+ status: z.ZodEnum<{
35
+ CANCELLED: "CANCELLED";
36
+ ACTIVE: "ACTIVE";
37
+ TRIGGERED: "TRIGGERED";
38
+ }>;
39
+ ladderId: z.ZodOptional<z.ZodUUID>;
40
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
41
+ triggeredAt: z.ZodOptional<z.ZodString>;
42
+ cancelledAt: z.ZodOptional<z.ZodString>;
43
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
44
+ USER: "USER";
45
+ POSITION_CLOSED: "POSITION_CLOSED";
46
+ SYSTEM: "SYSTEM";
47
+ POSITION_NETTED: "POSITION_NETTED";
48
+ POSITION_REVERSED: "POSITION_REVERSED";
49
+ }>>;
50
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodUUID;
52
+ cloid: z.ZodOptional<z.ZodString>;
53
+ exchangeFillId: z.ZodOptional<z.ZodString>;
54
+ status: z.ZodEnum<{
55
+ PROVISIONAL: "PROVISIONAL";
56
+ CONFIRMED: "CONFIRMED";
57
+ RECONCILED: "RECONCILED";
58
+ }>;
59
+ tradeAccountId: z.ZodUUID;
60
+ symbol: z.ZodString;
61
+ positionId: z.ZodUUID;
62
+ connector: z.ZodEnum<{
63
+ hyperliquid: "hyperliquid";
64
+ binance: "binance";
65
+ bybit: "bybit";
66
+ okx: "okx";
67
+ lighter: "lighter";
68
+ }>;
69
+ side: z.ZodEnum<{
70
+ BUY: "BUY";
71
+ SELL: "SELL";
72
+ }>;
73
+ reduceOnly: z.ZodBoolean;
74
+ isExternal: z.ZodBoolean;
75
+ quantity: z.ZodString;
76
+ price: z.ZodString;
77
+ usd: z.ZodString;
78
+ tradeFee: z.ZodOptional<z.ZodString>;
79
+ pearFee: z.ZodOptional<z.ZodString>;
80
+ timestamp: z.ZodString;
81
+ original: z.ZodOptional<z.ZodObject<{
82
+ exchangeFillId: z.ZodString;
83
+ quantity: z.ZodString;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>>>;
86
+ bracketType: z.ZodEnum<{
87
+ STOP_LOSS: "STOP_LOSS";
88
+ TAKE_PROFIT: "TAKE_PROFIT";
89
+ NONE: "NONE";
90
+ }>;
91
+ createdAt: z.ZodString;
92
+ updatedAt: z.ZodString;
93
+ intent: z.ZodLiteral<"OPEN">;
94
+ type: z.ZodLiteral<"MARKET">;
95
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ type: z.ZodLiteral<"ratio">;
97
+ data: z.ZodObject<{
98
+ priceSource: z.ZodEnum<{
99
+ mid: "mid";
100
+ mark: "mark";
101
+ }>;
102
+ symbol_a: z.ZodString;
103
+ symbol_b: z.ZodString;
104
+ track: z.ZodEnum<{
105
+ PEAK: "PEAK";
106
+ TROUGH: "TROUGH";
107
+ }>;
108
+ threshold: z.ZodNumber;
109
+ }, z.core.$strip>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ type: z.ZodLiteral<"price">;
112
+ data: z.ZodObject<{
113
+ priceSource: z.ZodEnum<{
114
+ mid: "mid";
115
+ mark: "mark";
116
+ }>;
117
+ symbol: z.ZodString;
118
+ track: z.ZodEnum<{
119
+ PEAK: "PEAK";
120
+ TROUGH: "TROUGH";
121
+ }>;
122
+ threshold: z.ZodNumber;
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ type: z.ZodLiteral<"weighted_ratio">;
126
+ data: z.ZodObject<{
127
+ priceSource: z.ZodEnum<{
128
+ mid: "mid";
129
+ mark: "mark";
130
+ }>;
131
+ basket: z.ZodArray<z.ZodObject<{
132
+ symbol: z.ZodString;
133
+ side: z.ZodEnum<{
134
+ BUY: "BUY";
135
+ SELL: "SELL";
136
+ }>;
137
+ weight: z.ZodNumber;
138
+ }, z.core.$strip>>;
139
+ track: z.ZodEnum<{
140
+ PEAK: "PEAK";
141
+ TROUGH: "TROUGH";
142
+ }>;
143
+ threshold: z.ZodNumber;
144
+ }, z.core.$strip>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ type: z.ZodLiteral<"funding_rate">;
147
+ data: z.ZodObject<{
148
+ connector: z.ZodEnum<{
149
+ hyperliquid: "hyperliquid";
150
+ binance: "binance";
151
+ bybit: "bybit";
152
+ okx: "okx";
153
+ lighter: "lighter";
154
+ }>;
155
+ symbol: z.ZodString;
156
+ track: z.ZodEnum<{
157
+ PEAK: "PEAK";
158
+ TROUGH: "TROUGH";
159
+ }>;
160
+ threshold: z.ZodNumber;
161
+ }, z.core.$strip>;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ type: z.ZodLiteral<"prediction_market">;
164
+ data: z.ZodObject<{
165
+ source: z.ZodEnum<{
166
+ kalshi: "kalshi";
167
+ polymarket: "polymarket";
168
+ }>;
169
+ marketKey: z.ZodString;
170
+ track: z.ZodEnum<{
171
+ PEAK: "PEAK";
172
+ TROUGH: "TROUGH";
173
+ }>;
174
+ threshold: z.ZodNumber;
175
+ }, z.core.$strip>;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ type: z.ZodLiteral<"btc_dominance">;
178
+ data: z.ZodObject<{
179
+ source: z.ZodLiteral<"coingecko">;
180
+ track: z.ZodEnum<{
181
+ PEAK: "PEAK";
182
+ TROUGH: "TROUGH";
183
+ }>;
184
+ threshold: z.ZodNumber;
185
+ }, z.core.$strip>;
186
+ }, z.core.$strip>], "type">;
187
+ context: z.ZodObject<{
188
+ type: z.ZodLiteral<"MARKET">;
189
+ legs: z.ZodTuple<[z.ZodObject<{
190
+ symbol: z.ZodString;
191
+ side: z.ZodEnum<{
192
+ BUY: "BUY";
193
+ SELL: "SELL";
194
+ }>;
195
+ mode: z.ZodEnum<{
196
+ QUANTITY: "QUANTITY";
197
+ USD: "USD";
198
+ }>;
199
+ amount: z.ZodString;
200
+ }, z.core.$strip>], z.ZodObject<{
201
+ symbol: z.ZodString;
202
+ side: z.ZodEnum<{
203
+ BUY: "BUY";
204
+ SELL: "SELL";
205
+ }>;
206
+ mode: z.ZodEnum<{
207
+ QUANTITY: "QUANTITY";
208
+ USD: "USD";
209
+ }>;
210
+ amount: z.ZodString;
211
+ }, z.core.$strip>>;
212
+ attachedTriggers: z.ZodArray<z.ZodObject<{
213
+ kind: z.ZodEnum<{
214
+ STATIC: "STATIC";
215
+ TRAILING: "TRAILING";
216
+ }>;
217
+ bracketType: z.ZodEnum<{
218
+ STOP_LOSS: "STOP_LOSS";
219
+ TAKE_PROFIT: "TAKE_PROFIT";
220
+ }>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strip>;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ id: z.ZodUUID;
225
+ tradeAccountId: z.ZodUUID;
226
+ connector: z.ZodEnum<{
227
+ hyperliquid: "hyperliquid";
228
+ binance: "binance";
229
+ bybit: "bybit";
230
+ okx: "okx";
231
+ lighter: "lighter";
232
+ }>;
233
+ status: z.ZodEnum<{
234
+ CANCELLED: "CANCELLED";
235
+ ACTIVE: "ACTIVE";
236
+ TRIGGERED: "TRIGGERED";
237
+ }>;
238
+ ladderId: z.ZodOptional<z.ZodUUID>;
239
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
240
+ triggeredAt: z.ZodOptional<z.ZodString>;
241
+ cancelledAt: z.ZodOptional<z.ZodString>;
242
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
243
+ USER: "USER";
244
+ POSITION_CLOSED: "POSITION_CLOSED";
245
+ SYSTEM: "SYSTEM";
246
+ POSITION_NETTED: "POSITION_NETTED";
247
+ POSITION_REVERSED: "POSITION_REVERSED";
248
+ }>>;
249
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ id: z.ZodUUID;
251
+ cloid: z.ZodOptional<z.ZodString>;
252
+ exchangeFillId: z.ZodOptional<z.ZodString>;
253
+ status: z.ZodEnum<{
254
+ PROVISIONAL: "PROVISIONAL";
255
+ CONFIRMED: "CONFIRMED";
256
+ RECONCILED: "RECONCILED";
257
+ }>;
258
+ tradeAccountId: z.ZodUUID;
259
+ symbol: z.ZodString;
260
+ positionId: z.ZodUUID;
261
+ connector: z.ZodEnum<{
262
+ hyperliquid: "hyperliquid";
263
+ binance: "binance";
264
+ bybit: "bybit";
265
+ okx: "okx";
266
+ lighter: "lighter";
267
+ }>;
268
+ side: z.ZodEnum<{
269
+ BUY: "BUY";
270
+ SELL: "SELL";
271
+ }>;
272
+ reduceOnly: z.ZodBoolean;
273
+ isExternal: z.ZodBoolean;
274
+ quantity: z.ZodString;
275
+ price: z.ZodString;
276
+ usd: z.ZodString;
277
+ tradeFee: z.ZodOptional<z.ZodString>;
278
+ pearFee: z.ZodOptional<z.ZodString>;
279
+ timestamp: z.ZodString;
280
+ original: z.ZodOptional<z.ZodObject<{
281
+ exchangeFillId: z.ZodString;
282
+ quantity: z.ZodString;
283
+ }, z.core.$strip>>;
284
+ }, z.core.$strip>>>;
285
+ bracketType: z.ZodEnum<{
286
+ STOP_LOSS: "STOP_LOSS";
287
+ TAKE_PROFIT: "TAKE_PROFIT";
288
+ NONE: "NONE";
289
+ }>;
290
+ createdAt: z.ZodString;
291
+ updatedAt: z.ZodString;
292
+ intent: z.ZodLiteral<"ADJUST">;
293
+ type: z.ZodLiteral<"MARKET">;
294
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
295
+ type: z.ZodLiteral<"ratio">;
296
+ data: z.ZodObject<{
297
+ priceSource: z.ZodEnum<{
298
+ mid: "mid";
299
+ mark: "mark";
300
+ }>;
301
+ symbol_a: z.ZodString;
302
+ symbol_b: z.ZodString;
303
+ track: z.ZodEnum<{
304
+ PEAK: "PEAK";
305
+ TROUGH: "TROUGH";
306
+ }>;
307
+ threshold: z.ZodNumber;
308
+ }, z.core.$strip>;
309
+ }, z.core.$strip>, z.ZodObject<{
310
+ type: z.ZodLiteral<"price">;
311
+ data: z.ZodObject<{
312
+ priceSource: z.ZodEnum<{
313
+ mid: "mid";
314
+ mark: "mark";
315
+ }>;
316
+ symbol: z.ZodString;
317
+ track: z.ZodEnum<{
318
+ PEAK: "PEAK";
319
+ TROUGH: "TROUGH";
320
+ }>;
321
+ threshold: z.ZodNumber;
322
+ }, z.core.$strip>;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ type: z.ZodLiteral<"weighted_ratio">;
325
+ data: z.ZodObject<{
326
+ priceSource: z.ZodEnum<{
327
+ mid: "mid";
328
+ mark: "mark";
329
+ }>;
330
+ basket: z.ZodArray<z.ZodObject<{
331
+ symbol: z.ZodString;
332
+ side: z.ZodEnum<{
333
+ BUY: "BUY";
334
+ SELL: "SELL";
335
+ }>;
336
+ weight: z.ZodNumber;
337
+ }, z.core.$strip>>;
338
+ track: z.ZodEnum<{
339
+ PEAK: "PEAK";
340
+ TROUGH: "TROUGH";
341
+ }>;
342
+ threshold: z.ZodNumber;
343
+ }, z.core.$strip>;
344
+ }, z.core.$strip>, z.ZodObject<{
345
+ type: z.ZodLiteral<"notional">;
346
+ data: z.ZodObject<{
347
+ priceSource: z.ZodEnum<{
348
+ mid: "mid";
349
+ mark: "mark";
350
+ }>;
351
+ track: z.ZodEnum<{
352
+ PEAK: "PEAK";
353
+ TROUGH: "TROUGH";
354
+ }>;
355
+ threshold: z.ZodNumber;
356
+ }, z.core.$strip>;
357
+ }, z.core.$strip>, z.ZodObject<{
358
+ type: z.ZodLiteral<"upnl">;
359
+ data: z.ZodObject<{
360
+ priceSource: z.ZodEnum<{
361
+ mid: "mid";
362
+ mark: "mark";
363
+ }>;
364
+ track: z.ZodEnum<{
365
+ PEAK: "PEAK";
366
+ TROUGH: "TROUGH";
367
+ }>;
368
+ threshold: z.ZodNumber;
369
+ }, z.core.$strip>;
370
+ }, z.core.$strip>, z.ZodObject<{
371
+ type: z.ZodLiteral<"upnl_bps">;
372
+ data: z.ZodObject<{
373
+ priceSource: z.ZodEnum<{
374
+ mid: "mid";
375
+ mark: "mark";
376
+ }>;
377
+ track: z.ZodEnum<{
378
+ PEAK: "PEAK";
379
+ TROUGH: "TROUGH";
380
+ }>;
381
+ threshold: z.ZodNumber;
382
+ }, z.core.$strip>;
383
+ }, z.core.$strip>, z.ZodObject<{
384
+ type: z.ZodLiteral<"funding_rate">;
385
+ data: z.ZodObject<{
386
+ connector: z.ZodEnum<{
387
+ hyperliquid: "hyperliquid";
388
+ binance: "binance";
389
+ bybit: "bybit";
390
+ okx: "okx";
391
+ lighter: "lighter";
392
+ }>;
393
+ symbol: z.ZodString;
394
+ track: z.ZodEnum<{
395
+ PEAK: "PEAK";
396
+ TROUGH: "TROUGH";
397
+ }>;
398
+ threshold: z.ZodNumber;
399
+ }, z.core.$strip>;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ type: z.ZodLiteral<"prediction_market">;
402
+ data: z.ZodObject<{
403
+ source: z.ZodEnum<{
404
+ kalshi: "kalshi";
405
+ polymarket: "polymarket";
406
+ }>;
407
+ marketKey: z.ZodString;
408
+ track: z.ZodEnum<{
409
+ PEAK: "PEAK";
410
+ TROUGH: "TROUGH";
411
+ }>;
412
+ threshold: z.ZodNumber;
413
+ }, z.core.$strip>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ type: z.ZodLiteral<"btc_dominance">;
416
+ data: z.ZodObject<{
417
+ source: z.ZodLiteral<"coingecko">;
418
+ track: z.ZodEnum<{
419
+ PEAK: "PEAK";
420
+ TROUGH: "TROUGH";
421
+ }>;
422
+ threshold: z.ZodNumber;
423
+ }, z.core.$strip>;
424
+ }, z.core.$strip>], "type">;
425
+ context: z.ZodObject<{
426
+ type: z.ZodLiteral<"MARKET">;
427
+ position: z.ZodObject<{
428
+ id: z.ZodUUID;
429
+ initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
430
+ }, z.core.$strip>;
431
+ legs: z.ZodTuple<[z.ZodObject<{
432
+ symbol: z.ZodString;
433
+ side: z.ZodEnum<{
434
+ BUY: "BUY";
435
+ SELL: "SELL";
436
+ }>;
437
+ mode: z.ZodEnum<{
438
+ QUANTITY: "QUANTITY";
439
+ USD: "USD";
440
+ }>;
441
+ amount: z.ZodString;
442
+ reduceOnly: z.ZodBoolean;
443
+ }, z.core.$strip>], z.ZodObject<{
444
+ symbol: z.ZodString;
445
+ side: z.ZodEnum<{
446
+ BUY: "BUY";
447
+ SELL: "SELL";
448
+ }>;
449
+ mode: z.ZodEnum<{
450
+ QUANTITY: "QUANTITY";
451
+ USD: "USD";
452
+ }>;
453
+ amount: z.ZodString;
454
+ reduceOnly: z.ZodBoolean;
455
+ }, z.core.$strip>>;
456
+ }, z.core.$strip>;
457
+ trailing: z.ZodOptional<z.ZodObject<{
458
+ mode: z.ZodEnum<{
459
+ RELATIVE_BPS: "RELATIVE_BPS";
460
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
461
+ }>;
462
+ deltaValue: z.ZodNumber;
463
+ activationValue: z.ZodOptional<z.ZodNumber>;
464
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
465
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
466
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
467
+ }, z.core.$strip>>;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ id: z.ZodUUID;
470
+ tradeAccountId: z.ZodUUID;
471
+ connector: z.ZodEnum<{
472
+ hyperliquid: "hyperliquid";
473
+ binance: "binance";
474
+ bybit: "bybit";
475
+ okx: "okx";
476
+ lighter: "lighter";
477
+ }>;
478
+ status: z.ZodEnum<{
479
+ CANCELLED: "CANCELLED";
480
+ ACTIVE: "ACTIVE";
481
+ TRIGGERED: "TRIGGERED";
482
+ }>;
483
+ ladderId: z.ZodOptional<z.ZodUUID>;
484
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
485
+ triggeredAt: z.ZodOptional<z.ZodString>;
486
+ cancelledAt: z.ZodOptional<z.ZodString>;
487
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
488
+ USER: "USER";
489
+ POSITION_CLOSED: "POSITION_CLOSED";
490
+ SYSTEM: "SYSTEM";
491
+ POSITION_NETTED: "POSITION_NETTED";
492
+ POSITION_REVERSED: "POSITION_REVERSED";
493
+ }>>;
494
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
495
+ id: z.ZodUUID;
496
+ cloid: z.ZodOptional<z.ZodString>;
497
+ exchangeFillId: z.ZodOptional<z.ZodString>;
498
+ status: z.ZodEnum<{
499
+ PROVISIONAL: "PROVISIONAL";
500
+ CONFIRMED: "CONFIRMED";
501
+ RECONCILED: "RECONCILED";
502
+ }>;
503
+ tradeAccountId: z.ZodUUID;
504
+ symbol: z.ZodString;
505
+ positionId: z.ZodUUID;
506
+ connector: z.ZodEnum<{
507
+ hyperliquid: "hyperliquid";
508
+ binance: "binance";
509
+ bybit: "bybit";
510
+ okx: "okx";
511
+ lighter: "lighter";
512
+ }>;
513
+ side: z.ZodEnum<{
514
+ BUY: "BUY";
515
+ SELL: "SELL";
516
+ }>;
517
+ reduceOnly: z.ZodBoolean;
518
+ isExternal: z.ZodBoolean;
519
+ quantity: z.ZodString;
520
+ price: z.ZodString;
521
+ usd: z.ZodString;
522
+ tradeFee: z.ZodOptional<z.ZodString>;
523
+ pearFee: z.ZodOptional<z.ZodString>;
524
+ timestamp: z.ZodString;
525
+ original: z.ZodOptional<z.ZodObject<{
526
+ exchangeFillId: z.ZodString;
527
+ quantity: z.ZodString;
528
+ }, z.core.$strip>>;
529
+ }, z.core.$strip>>>;
530
+ bracketType: z.ZodEnum<{
531
+ STOP_LOSS: "STOP_LOSS";
532
+ TAKE_PROFIT: "TAKE_PROFIT";
533
+ NONE: "NONE";
534
+ }>;
535
+ createdAt: z.ZodString;
536
+ updatedAt: z.ZodString;
537
+ intent: z.ZodLiteral<"CLOSE">;
538
+ type: z.ZodLiteral<"MARKET">;
539
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
540
+ type: z.ZodLiteral<"ratio">;
541
+ data: z.ZodObject<{
542
+ priceSource: z.ZodEnum<{
543
+ mid: "mid";
544
+ mark: "mark";
545
+ }>;
546
+ symbol_a: z.ZodString;
547
+ symbol_b: z.ZodString;
548
+ track: z.ZodEnum<{
549
+ PEAK: "PEAK";
550
+ TROUGH: "TROUGH";
551
+ }>;
552
+ threshold: z.ZodNumber;
553
+ }, z.core.$strip>;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ type: z.ZodLiteral<"price">;
556
+ data: z.ZodObject<{
557
+ priceSource: z.ZodEnum<{
558
+ mid: "mid";
559
+ mark: "mark";
560
+ }>;
561
+ symbol: z.ZodString;
562
+ track: z.ZodEnum<{
563
+ PEAK: "PEAK";
564
+ TROUGH: "TROUGH";
565
+ }>;
566
+ threshold: z.ZodNumber;
567
+ }, z.core.$strip>;
568
+ }, z.core.$strip>, z.ZodObject<{
569
+ type: z.ZodLiteral<"weighted_ratio">;
570
+ data: z.ZodObject<{
571
+ priceSource: z.ZodEnum<{
572
+ mid: "mid";
573
+ mark: "mark";
574
+ }>;
575
+ basket: z.ZodArray<z.ZodObject<{
576
+ symbol: z.ZodString;
577
+ side: z.ZodEnum<{
578
+ BUY: "BUY";
579
+ SELL: "SELL";
580
+ }>;
581
+ weight: z.ZodNumber;
582
+ }, z.core.$strip>>;
583
+ track: z.ZodEnum<{
584
+ PEAK: "PEAK";
585
+ TROUGH: "TROUGH";
586
+ }>;
587
+ threshold: z.ZodNumber;
588
+ }, z.core.$strip>;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ type: z.ZodLiteral<"notional">;
591
+ data: z.ZodObject<{
592
+ priceSource: z.ZodEnum<{
593
+ mid: "mid";
594
+ mark: "mark";
595
+ }>;
596
+ track: z.ZodEnum<{
597
+ PEAK: "PEAK";
598
+ TROUGH: "TROUGH";
599
+ }>;
600
+ threshold: z.ZodNumber;
601
+ }, z.core.$strip>;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ type: z.ZodLiteral<"upnl">;
604
+ data: z.ZodObject<{
605
+ priceSource: z.ZodEnum<{
606
+ mid: "mid";
607
+ mark: "mark";
608
+ }>;
609
+ track: z.ZodEnum<{
610
+ PEAK: "PEAK";
611
+ TROUGH: "TROUGH";
612
+ }>;
613
+ threshold: z.ZodNumber;
614
+ }, z.core.$strip>;
615
+ }, z.core.$strip>, z.ZodObject<{
616
+ type: z.ZodLiteral<"upnl_bps">;
617
+ data: z.ZodObject<{
618
+ priceSource: z.ZodEnum<{
619
+ mid: "mid";
620
+ mark: "mark";
621
+ }>;
622
+ track: z.ZodEnum<{
623
+ PEAK: "PEAK";
624
+ TROUGH: "TROUGH";
625
+ }>;
626
+ threshold: z.ZodNumber;
627
+ }, z.core.$strip>;
628
+ }, z.core.$strip>, z.ZodObject<{
629
+ type: z.ZodLiteral<"ratio_trailing">;
630
+ data: z.ZodObject<{
631
+ priceSource: z.ZodEnum<{
632
+ mid: "mid";
633
+ mark: "mark";
634
+ }>;
635
+ symbol_a: z.ZodString;
636
+ symbol_b: z.ZodString;
637
+ }, z.core.$strip>;
638
+ }, z.core.$strip>, z.ZodObject<{
639
+ type: z.ZodLiteral<"price_trailing">;
640
+ data: z.ZodObject<{
641
+ priceSource: z.ZodEnum<{
642
+ mid: "mid";
643
+ mark: "mark";
644
+ }>;
645
+ symbol: z.ZodString;
646
+ }, z.core.$strip>;
647
+ }, z.core.$strip>, z.ZodObject<{
648
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
649
+ data: z.ZodObject<{
650
+ priceSource: z.ZodEnum<{
651
+ mid: "mid";
652
+ mark: "mark";
653
+ }>;
654
+ basket: z.ZodArray<z.ZodObject<{
655
+ symbol: z.ZodString;
656
+ side: z.ZodEnum<{
657
+ BUY: "BUY";
658
+ SELL: "SELL";
659
+ }>;
660
+ weight: z.ZodNumber;
661
+ }, z.core.$strip>>;
662
+ }, z.core.$strip>;
663
+ }, z.core.$strip>, z.ZodObject<{
664
+ type: z.ZodLiteral<"notional_trailing">;
665
+ data: z.ZodObject<{
666
+ priceSource: z.ZodEnum<{
667
+ mid: "mid";
668
+ mark: "mark";
669
+ }>;
670
+ }, z.core.$strip>;
671
+ }, z.core.$strip>, z.ZodObject<{
672
+ type: z.ZodLiteral<"upnl_trailing">;
673
+ data: z.ZodObject<{
674
+ priceSource: z.ZodEnum<{
675
+ mid: "mid";
676
+ mark: "mark";
677
+ }>;
678
+ }, z.core.$strip>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ type: z.ZodLiteral<"upnl_bps_trailing">;
681
+ data: z.ZodObject<{
682
+ priceSource: z.ZodEnum<{
683
+ mid: "mid";
684
+ mark: "mark";
685
+ }>;
686
+ }, z.core.$strip>;
687
+ }, z.core.$strip>, z.ZodObject<{
688
+ type: z.ZodLiteral<"funding_rate">;
689
+ data: z.ZodObject<{
690
+ connector: z.ZodEnum<{
691
+ hyperliquid: "hyperliquid";
692
+ binance: "binance";
693
+ bybit: "bybit";
694
+ okx: "okx";
695
+ lighter: "lighter";
696
+ }>;
697
+ symbol: z.ZodString;
698
+ track: z.ZodEnum<{
699
+ PEAK: "PEAK";
700
+ TROUGH: "TROUGH";
701
+ }>;
702
+ threshold: z.ZodNumber;
703
+ }, z.core.$strip>;
704
+ }, z.core.$strip>, z.ZodObject<{
705
+ type: z.ZodLiteral<"prediction_market">;
706
+ data: z.ZodObject<{
707
+ source: z.ZodEnum<{
708
+ kalshi: "kalshi";
709
+ polymarket: "polymarket";
710
+ }>;
711
+ marketKey: z.ZodString;
712
+ track: z.ZodEnum<{
713
+ PEAK: "PEAK";
714
+ TROUGH: "TROUGH";
715
+ }>;
716
+ threshold: z.ZodNumber;
717
+ }, z.core.$strip>;
718
+ }, z.core.$strip>, z.ZodObject<{
719
+ type: z.ZodLiteral<"btc_dominance">;
720
+ data: z.ZodObject<{
721
+ source: z.ZodLiteral<"coingecko">;
722
+ track: z.ZodEnum<{
723
+ PEAK: "PEAK";
724
+ TROUGH: "TROUGH";
725
+ }>;
726
+ threshold: z.ZodNumber;
727
+ }, z.core.$strip>;
728
+ }, z.core.$strip>], "type">;
729
+ context: z.ZodObject<{
730
+ type: z.ZodLiteral<"MARKET">;
731
+ position: z.ZodObject<{
732
+ id: z.ZodUUID;
733
+ initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
734
+ }, z.core.$strip>;
735
+ }, z.core.$strip>;
736
+ trailing: z.ZodOptional<z.ZodObject<{
737
+ mode: z.ZodEnum<{
738
+ RELATIVE_BPS: "RELATIVE_BPS";
739
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
740
+ }>;
741
+ deltaValue: z.ZodNumber;
742
+ activationValue: z.ZodOptional<z.ZodNumber>;
743
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
744
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
745
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
746
+ }, z.core.$strip>>;
747
+ }, z.core.$strip>], "intent">], "type">>;
748
+ createdAt: z.ZodString;
749
+ updatedAt: z.ZodString;
750
+ }, z.core.$strip>;
751
+ }, z.core.$strip>;
752
+ export type CreateLadderResponse = z.output<typeof CreateLadderResponse>;
753
+ export declare const LadderResponse: z.ZodObject<{
754
+ ladder: z.ZodObject<{
755
+ id: z.ZodUUID;
756
+ connector: z.ZodEnum<{
757
+ hyperliquid: "hyperliquid";
758
+ binance: "binance";
759
+ bybit: "bybit";
760
+ okx: "okx";
761
+ lighter: "lighter";
762
+ }>;
763
+ positionKey: z.ZodString;
764
+ config: z.ZodObject<{
765
+ thresholdStart: z.ZodNumber;
766
+ thresholdEnd: z.ZodNumber;
767
+ levels: z.ZodInt;
768
+ weighting: z.ZodDefault<z.ZodLiteral<"EQUAL">>;
769
+ }, z.core.$strip>;
770
+ status: z.ZodEnum<{
771
+ CANCELLED: "CANCELLED";
772
+ ACTIVE: "ACTIVE";
773
+ COMPLETED: "COMPLETED";
774
+ }>;
775
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
776
+ id: z.ZodUUID;
777
+ tradeAccountId: z.ZodUUID;
778
+ connector: z.ZodEnum<{
779
+ hyperliquid: "hyperliquid";
780
+ binance: "binance";
781
+ bybit: "bybit";
782
+ okx: "okx";
783
+ lighter: "lighter";
784
+ }>;
785
+ status: z.ZodEnum<{
786
+ CANCELLED: "CANCELLED";
787
+ ACTIVE: "ACTIVE";
788
+ TRIGGERED: "TRIGGERED";
789
+ }>;
790
+ ladderId: z.ZodOptional<z.ZodUUID>;
791
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
792
+ triggeredAt: z.ZodOptional<z.ZodString>;
793
+ cancelledAt: z.ZodOptional<z.ZodString>;
794
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
795
+ USER: "USER";
796
+ POSITION_CLOSED: "POSITION_CLOSED";
797
+ SYSTEM: "SYSTEM";
798
+ POSITION_NETTED: "POSITION_NETTED";
799
+ POSITION_REVERSED: "POSITION_REVERSED";
800
+ }>>;
801
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
802
+ id: z.ZodUUID;
803
+ cloid: z.ZodOptional<z.ZodString>;
804
+ exchangeFillId: z.ZodOptional<z.ZodString>;
805
+ status: z.ZodEnum<{
806
+ PROVISIONAL: "PROVISIONAL";
807
+ CONFIRMED: "CONFIRMED";
808
+ RECONCILED: "RECONCILED";
809
+ }>;
810
+ tradeAccountId: z.ZodUUID;
811
+ symbol: z.ZodString;
812
+ positionId: z.ZodUUID;
813
+ connector: z.ZodEnum<{
814
+ hyperliquid: "hyperliquid";
815
+ binance: "binance";
816
+ bybit: "bybit";
817
+ okx: "okx";
818
+ lighter: "lighter";
819
+ }>;
820
+ side: z.ZodEnum<{
821
+ BUY: "BUY";
822
+ SELL: "SELL";
823
+ }>;
824
+ reduceOnly: z.ZodBoolean;
825
+ isExternal: z.ZodBoolean;
826
+ quantity: z.ZodString;
827
+ price: z.ZodString;
828
+ usd: z.ZodString;
829
+ tradeFee: z.ZodOptional<z.ZodString>;
830
+ pearFee: z.ZodOptional<z.ZodString>;
831
+ timestamp: z.ZodString;
832
+ original: z.ZodOptional<z.ZodObject<{
833
+ exchangeFillId: z.ZodString;
834
+ quantity: z.ZodString;
835
+ }, z.core.$strip>>;
836
+ }, z.core.$strip>>>;
837
+ bracketType: z.ZodEnum<{
838
+ STOP_LOSS: "STOP_LOSS";
839
+ TAKE_PROFIT: "TAKE_PROFIT";
840
+ NONE: "NONE";
841
+ }>;
842
+ createdAt: z.ZodString;
843
+ updatedAt: z.ZodString;
844
+ intent: z.ZodLiteral<"OPEN">;
845
+ type: z.ZodLiteral<"MARKET">;
846
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
847
+ type: z.ZodLiteral<"ratio">;
848
+ data: z.ZodObject<{
849
+ priceSource: z.ZodEnum<{
850
+ mid: "mid";
851
+ mark: "mark";
852
+ }>;
853
+ symbol_a: z.ZodString;
854
+ symbol_b: z.ZodString;
855
+ track: z.ZodEnum<{
856
+ PEAK: "PEAK";
857
+ TROUGH: "TROUGH";
858
+ }>;
859
+ threshold: z.ZodNumber;
860
+ }, z.core.$strip>;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ type: z.ZodLiteral<"price">;
863
+ data: z.ZodObject<{
864
+ priceSource: z.ZodEnum<{
865
+ mid: "mid";
866
+ mark: "mark";
867
+ }>;
868
+ symbol: z.ZodString;
869
+ track: z.ZodEnum<{
870
+ PEAK: "PEAK";
871
+ TROUGH: "TROUGH";
872
+ }>;
873
+ threshold: z.ZodNumber;
874
+ }, z.core.$strip>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ type: z.ZodLiteral<"weighted_ratio">;
877
+ data: z.ZodObject<{
878
+ priceSource: z.ZodEnum<{
879
+ mid: "mid";
880
+ mark: "mark";
881
+ }>;
882
+ basket: z.ZodArray<z.ZodObject<{
883
+ symbol: z.ZodString;
884
+ side: z.ZodEnum<{
885
+ BUY: "BUY";
886
+ SELL: "SELL";
887
+ }>;
888
+ weight: z.ZodNumber;
889
+ }, z.core.$strip>>;
890
+ track: z.ZodEnum<{
891
+ PEAK: "PEAK";
892
+ TROUGH: "TROUGH";
893
+ }>;
894
+ threshold: z.ZodNumber;
895
+ }, z.core.$strip>;
896
+ }, z.core.$strip>, z.ZodObject<{
897
+ type: z.ZodLiteral<"funding_rate">;
898
+ data: z.ZodObject<{
899
+ connector: z.ZodEnum<{
900
+ hyperliquid: "hyperliquid";
901
+ binance: "binance";
902
+ bybit: "bybit";
903
+ okx: "okx";
904
+ lighter: "lighter";
905
+ }>;
906
+ symbol: z.ZodString;
907
+ track: z.ZodEnum<{
908
+ PEAK: "PEAK";
909
+ TROUGH: "TROUGH";
910
+ }>;
911
+ threshold: z.ZodNumber;
912
+ }, z.core.$strip>;
913
+ }, z.core.$strip>, z.ZodObject<{
914
+ type: z.ZodLiteral<"prediction_market">;
915
+ data: z.ZodObject<{
916
+ source: z.ZodEnum<{
917
+ kalshi: "kalshi";
918
+ polymarket: "polymarket";
919
+ }>;
920
+ marketKey: z.ZodString;
921
+ track: z.ZodEnum<{
922
+ PEAK: "PEAK";
923
+ TROUGH: "TROUGH";
924
+ }>;
925
+ threshold: z.ZodNumber;
926
+ }, z.core.$strip>;
927
+ }, z.core.$strip>, z.ZodObject<{
928
+ type: z.ZodLiteral<"btc_dominance">;
929
+ data: z.ZodObject<{
930
+ source: z.ZodLiteral<"coingecko">;
931
+ track: z.ZodEnum<{
932
+ PEAK: "PEAK";
933
+ TROUGH: "TROUGH";
934
+ }>;
935
+ threshold: z.ZodNumber;
936
+ }, z.core.$strip>;
937
+ }, z.core.$strip>], "type">;
938
+ context: z.ZodObject<{
939
+ type: z.ZodLiteral<"MARKET">;
940
+ legs: z.ZodTuple<[z.ZodObject<{
941
+ symbol: z.ZodString;
942
+ side: z.ZodEnum<{
943
+ BUY: "BUY";
944
+ SELL: "SELL";
945
+ }>;
946
+ mode: z.ZodEnum<{
947
+ QUANTITY: "QUANTITY";
948
+ USD: "USD";
949
+ }>;
950
+ amount: z.ZodString;
951
+ }, z.core.$strip>], z.ZodObject<{
952
+ symbol: z.ZodString;
953
+ side: z.ZodEnum<{
954
+ BUY: "BUY";
955
+ SELL: "SELL";
956
+ }>;
957
+ mode: z.ZodEnum<{
958
+ QUANTITY: "QUANTITY";
959
+ USD: "USD";
960
+ }>;
961
+ amount: z.ZodString;
962
+ }, z.core.$strip>>;
963
+ attachedTriggers: z.ZodArray<z.ZodObject<{
964
+ kind: z.ZodEnum<{
965
+ STATIC: "STATIC";
966
+ TRAILING: "TRAILING";
967
+ }>;
968
+ bracketType: z.ZodEnum<{
969
+ STOP_LOSS: "STOP_LOSS";
970
+ TAKE_PROFIT: "TAKE_PROFIT";
971
+ }>;
972
+ }, z.core.$strip>>;
973
+ }, z.core.$strip>;
974
+ }, z.core.$strip>, z.ZodObject<{
975
+ id: z.ZodUUID;
976
+ tradeAccountId: z.ZodUUID;
977
+ connector: z.ZodEnum<{
978
+ hyperliquid: "hyperliquid";
979
+ binance: "binance";
980
+ bybit: "bybit";
981
+ okx: "okx";
982
+ lighter: "lighter";
983
+ }>;
984
+ status: z.ZodEnum<{
985
+ CANCELLED: "CANCELLED";
986
+ ACTIVE: "ACTIVE";
987
+ TRIGGERED: "TRIGGERED";
988
+ }>;
989
+ ladderId: z.ZodOptional<z.ZodUUID>;
990
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
991
+ triggeredAt: z.ZodOptional<z.ZodString>;
992
+ cancelledAt: z.ZodOptional<z.ZodString>;
993
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
994
+ USER: "USER";
995
+ POSITION_CLOSED: "POSITION_CLOSED";
996
+ SYSTEM: "SYSTEM";
997
+ POSITION_NETTED: "POSITION_NETTED";
998
+ POSITION_REVERSED: "POSITION_REVERSED";
999
+ }>>;
1000
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
1001
+ id: z.ZodUUID;
1002
+ cloid: z.ZodOptional<z.ZodString>;
1003
+ exchangeFillId: z.ZodOptional<z.ZodString>;
1004
+ status: z.ZodEnum<{
1005
+ PROVISIONAL: "PROVISIONAL";
1006
+ CONFIRMED: "CONFIRMED";
1007
+ RECONCILED: "RECONCILED";
1008
+ }>;
1009
+ tradeAccountId: z.ZodUUID;
1010
+ symbol: z.ZodString;
1011
+ positionId: z.ZodUUID;
1012
+ connector: z.ZodEnum<{
1013
+ hyperliquid: "hyperliquid";
1014
+ binance: "binance";
1015
+ bybit: "bybit";
1016
+ okx: "okx";
1017
+ lighter: "lighter";
1018
+ }>;
1019
+ side: z.ZodEnum<{
1020
+ BUY: "BUY";
1021
+ SELL: "SELL";
1022
+ }>;
1023
+ reduceOnly: z.ZodBoolean;
1024
+ isExternal: z.ZodBoolean;
1025
+ quantity: z.ZodString;
1026
+ price: z.ZodString;
1027
+ usd: z.ZodString;
1028
+ tradeFee: z.ZodOptional<z.ZodString>;
1029
+ pearFee: z.ZodOptional<z.ZodString>;
1030
+ timestamp: z.ZodString;
1031
+ original: z.ZodOptional<z.ZodObject<{
1032
+ exchangeFillId: z.ZodString;
1033
+ quantity: z.ZodString;
1034
+ }, z.core.$strip>>;
1035
+ }, z.core.$strip>>>;
1036
+ bracketType: z.ZodEnum<{
1037
+ STOP_LOSS: "STOP_LOSS";
1038
+ TAKE_PROFIT: "TAKE_PROFIT";
1039
+ NONE: "NONE";
1040
+ }>;
1041
+ createdAt: z.ZodString;
1042
+ updatedAt: z.ZodString;
1043
+ intent: z.ZodLiteral<"ADJUST">;
1044
+ type: z.ZodLiteral<"MARKET">;
1045
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1046
+ type: z.ZodLiteral<"ratio">;
1047
+ data: z.ZodObject<{
1048
+ priceSource: z.ZodEnum<{
1049
+ mid: "mid";
1050
+ mark: "mark";
1051
+ }>;
1052
+ symbol_a: z.ZodString;
1053
+ symbol_b: z.ZodString;
1054
+ track: z.ZodEnum<{
1055
+ PEAK: "PEAK";
1056
+ TROUGH: "TROUGH";
1057
+ }>;
1058
+ threshold: z.ZodNumber;
1059
+ }, z.core.$strip>;
1060
+ }, z.core.$strip>, z.ZodObject<{
1061
+ type: z.ZodLiteral<"price">;
1062
+ data: z.ZodObject<{
1063
+ priceSource: z.ZodEnum<{
1064
+ mid: "mid";
1065
+ mark: "mark";
1066
+ }>;
1067
+ symbol: z.ZodString;
1068
+ track: z.ZodEnum<{
1069
+ PEAK: "PEAK";
1070
+ TROUGH: "TROUGH";
1071
+ }>;
1072
+ threshold: z.ZodNumber;
1073
+ }, z.core.$strip>;
1074
+ }, z.core.$strip>, z.ZodObject<{
1075
+ type: z.ZodLiteral<"weighted_ratio">;
1076
+ data: z.ZodObject<{
1077
+ priceSource: z.ZodEnum<{
1078
+ mid: "mid";
1079
+ mark: "mark";
1080
+ }>;
1081
+ basket: z.ZodArray<z.ZodObject<{
1082
+ symbol: z.ZodString;
1083
+ side: z.ZodEnum<{
1084
+ BUY: "BUY";
1085
+ SELL: "SELL";
1086
+ }>;
1087
+ weight: z.ZodNumber;
1088
+ }, z.core.$strip>>;
1089
+ track: z.ZodEnum<{
1090
+ PEAK: "PEAK";
1091
+ TROUGH: "TROUGH";
1092
+ }>;
1093
+ threshold: z.ZodNumber;
1094
+ }, z.core.$strip>;
1095
+ }, z.core.$strip>, z.ZodObject<{
1096
+ type: z.ZodLiteral<"notional">;
1097
+ data: z.ZodObject<{
1098
+ priceSource: z.ZodEnum<{
1099
+ mid: "mid";
1100
+ mark: "mark";
1101
+ }>;
1102
+ track: z.ZodEnum<{
1103
+ PEAK: "PEAK";
1104
+ TROUGH: "TROUGH";
1105
+ }>;
1106
+ threshold: z.ZodNumber;
1107
+ }, z.core.$strip>;
1108
+ }, z.core.$strip>, z.ZodObject<{
1109
+ type: z.ZodLiteral<"upnl">;
1110
+ data: z.ZodObject<{
1111
+ priceSource: z.ZodEnum<{
1112
+ mid: "mid";
1113
+ mark: "mark";
1114
+ }>;
1115
+ track: z.ZodEnum<{
1116
+ PEAK: "PEAK";
1117
+ TROUGH: "TROUGH";
1118
+ }>;
1119
+ threshold: z.ZodNumber;
1120
+ }, z.core.$strip>;
1121
+ }, z.core.$strip>, z.ZodObject<{
1122
+ type: z.ZodLiteral<"upnl_bps">;
1123
+ data: z.ZodObject<{
1124
+ priceSource: z.ZodEnum<{
1125
+ mid: "mid";
1126
+ mark: "mark";
1127
+ }>;
1128
+ track: z.ZodEnum<{
1129
+ PEAK: "PEAK";
1130
+ TROUGH: "TROUGH";
1131
+ }>;
1132
+ threshold: z.ZodNumber;
1133
+ }, z.core.$strip>;
1134
+ }, z.core.$strip>, z.ZodObject<{
1135
+ type: z.ZodLiteral<"funding_rate">;
1136
+ data: z.ZodObject<{
1137
+ connector: z.ZodEnum<{
1138
+ hyperliquid: "hyperliquid";
1139
+ binance: "binance";
1140
+ bybit: "bybit";
1141
+ okx: "okx";
1142
+ lighter: "lighter";
1143
+ }>;
1144
+ symbol: z.ZodString;
1145
+ track: z.ZodEnum<{
1146
+ PEAK: "PEAK";
1147
+ TROUGH: "TROUGH";
1148
+ }>;
1149
+ threshold: z.ZodNumber;
1150
+ }, z.core.$strip>;
1151
+ }, z.core.$strip>, z.ZodObject<{
1152
+ type: z.ZodLiteral<"prediction_market">;
1153
+ data: z.ZodObject<{
1154
+ source: z.ZodEnum<{
1155
+ kalshi: "kalshi";
1156
+ polymarket: "polymarket";
1157
+ }>;
1158
+ marketKey: z.ZodString;
1159
+ track: z.ZodEnum<{
1160
+ PEAK: "PEAK";
1161
+ TROUGH: "TROUGH";
1162
+ }>;
1163
+ threshold: z.ZodNumber;
1164
+ }, z.core.$strip>;
1165
+ }, z.core.$strip>, z.ZodObject<{
1166
+ type: z.ZodLiteral<"btc_dominance">;
1167
+ data: z.ZodObject<{
1168
+ source: z.ZodLiteral<"coingecko">;
1169
+ track: z.ZodEnum<{
1170
+ PEAK: "PEAK";
1171
+ TROUGH: "TROUGH";
1172
+ }>;
1173
+ threshold: z.ZodNumber;
1174
+ }, z.core.$strip>;
1175
+ }, z.core.$strip>], "type">;
1176
+ context: z.ZodObject<{
1177
+ type: z.ZodLiteral<"MARKET">;
1178
+ position: z.ZodObject<{
1179
+ id: z.ZodUUID;
1180
+ initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
1181
+ }, z.core.$strip>;
1182
+ legs: z.ZodTuple<[z.ZodObject<{
1183
+ symbol: z.ZodString;
1184
+ side: z.ZodEnum<{
1185
+ BUY: "BUY";
1186
+ SELL: "SELL";
1187
+ }>;
1188
+ mode: z.ZodEnum<{
1189
+ QUANTITY: "QUANTITY";
1190
+ USD: "USD";
1191
+ }>;
1192
+ amount: z.ZodString;
1193
+ reduceOnly: z.ZodBoolean;
1194
+ }, z.core.$strip>], z.ZodObject<{
1195
+ symbol: z.ZodString;
1196
+ side: z.ZodEnum<{
1197
+ BUY: "BUY";
1198
+ SELL: "SELL";
1199
+ }>;
1200
+ mode: z.ZodEnum<{
1201
+ QUANTITY: "QUANTITY";
1202
+ USD: "USD";
1203
+ }>;
1204
+ amount: z.ZodString;
1205
+ reduceOnly: z.ZodBoolean;
1206
+ }, z.core.$strip>>;
1207
+ }, z.core.$strip>;
1208
+ trailing: z.ZodOptional<z.ZodObject<{
1209
+ mode: z.ZodEnum<{
1210
+ RELATIVE_BPS: "RELATIVE_BPS";
1211
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1212
+ }>;
1213
+ deltaValue: z.ZodNumber;
1214
+ activationValue: z.ZodOptional<z.ZodNumber>;
1215
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
1216
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
1217
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
1218
+ }, z.core.$strip>>;
1219
+ }, z.core.$strip>, z.ZodObject<{
1220
+ id: z.ZodUUID;
1221
+ tradeAccountId: z.ZodUUID;
1222
+ connector: z.ZodEnum<{
1223
+ hyperliquid: "hyperliquid";
1224
+ binance: "binance";
1225
+ bybit: "bybit";
1226
+ okx: "okx";
1227
+ lighter: "lighter";
1228
+ }>;
1229
+ status: z.ZodEnum<{
1230
+ CANCELLED: "CANCELLED";
1231
+ ACTIVE: "ACTIVE";
1232
+ TRIGGERED: "TRIGGERED";
1233
+ }>;
1234
+ ladderId: z.ZodOptional<z.ZodUUID>;
1235
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
1236
+ triggeredAt: z.ZodOptional<z.ZodString>;
1237
+ cancelledAt: z.ZodOptional<z.ZodString>;
1238
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
1239
+ USER: "USER";
1240
+ POSITION_CLOSED: "POSITION_CLOSED";
1241
+ SYSTEM: "SYSTEM";
1242
+ POSITION_NETTED: "POSITION_NETTED";
1243
+ POSITION_REVERSED: "POSITION_REVERSED";
1244
+ }>>;
1245
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
1246
+ id: z.ZodUUID;
1247
+ cloid: z.ZodOptional<z.ZodString>;
1248
+ exchangeFillId: z.ZodOptional<z.ZodString>;
1249
+ status: z.ZodEnum<{
1250
+ PROVISIONAL: "PROVISIONAL";
1251
+ CONFIRMED: "CONFIRMED";
1252
+ RECONCILED: "RECONCILED";
1253
+ }>;
1254
+ tradeAccountId: z.ZodUUID;
1255
+ symbol: z.ZodString;
1256
+ positionId: z.ZodUUID;
1257
+ connector: z.ZodEnum<{
1258
+ hyperliquid: "hyperliquid";
1259
+ binance: "binance";
1260
+ bybit: "bybit";
1261
+ okx: "okx";
1262
+ lighter: "lighter";
1263
+ }>;
1264
+ side: z.ZodEnum<{
1265
+ BUY: "BUY";
1266
+ SELL: "SELL";
1267
+ }>;
1268
+ reduceOnly: z.ZodBoolean;
1269
+ isExternal: z.ZodBoolean;
1270
+ quantity: z.ZodString;
1271
+ price: z.ZodString;
1272
+ usd: z.ZodString;
1273
+ tradeFee: z.ZodOptional<z.ZodString>;
1274
+ pearFee: z.ZodOptional<z.ZodString>;
1275
+ timestamp: z.ZodString;
1276
+ original: z.ZodOptional<z.ZodObject<{
1277
+ exchangeFillId: z.ZodString;
1278
+ quantity: z.ZodString;
1279
+ }, z.core.$strip>>;
1280
+ }, z.core.$strip>>>;
1281
+ bracketType: z.ZodEnum<{
1282
+ STOP_LOSS: "STOP_LOSS";
1283
+ TAKE_PROFIT: "TAKE_PROFIT";
1284
+ NONE: "NONE";
1285
+ }>;
1286
+ createdAt: z.ZodString;
1287
+ updatedAt: z.ZodString;
1288
+ intent: z.ZodLiteral<"CLOSE">;
1289
+ type: z.ZodLiteral<"MARKET">;
1290
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1291
+ type: z.ZodLiteral<"ratio">;
1292
+ data: z.ZodObject<{
1293
+ priceSource: z.ZodEnum<{
1294
+ mid: "mid";
1295
+ mark: "mark";
1296
+ }>;
1297
+ symbol_a: z.ZodString;
1298
+ symbol_b: z.ZodString;
1299
+ track: z.ZodEnum<{
1300
+ PEAK: "PEAK";
1301
+ TROUGH: "TROUGH";
1302
+ }>;
1303
+ threshold: z.ZodNumber;
1304
+ }, z.core.$strip>;
1305
+ }, z.core.$strip>, z.ZodObject<{
1306
+ type: z.ZodLiteral<"price">;
1307
+ data: z.ZodObject<{
1308
+ priceSource: z.ZodEnum<{
1309
+ mid: "mid";
1310
+ mark: "mark";
1311
+ }>;
1312
+ symbol: z.ZodString;
1313
+ track: z.ZodEnum<{
1314
+ PEAK: "PEAK";
1315
+ TROUGH: "TROUGH";
1316
+ }>;
1317
+ threshold: z.ZodNumber;
1318
+ }, z.core.$strip>;
1319
+ }, z.core.$strip>, z.ZodObject<{
1320
+ type: z.ZodLiteral<"weighted_ratio">;
1321
+ data: z.ZodObject<{
1322
+ priceSource: z.ZodEnum<{
1323
+ mid: "mid";
1324
+ mark: "mark";
1325
+ }>;
1326
+ basket: z.ZodArray<z.ZodObject<{
1327
+ symbol: z.ZodString;
1328
+ side: z.ZodEnum<{
1329
+ BUY: "BUY";
1330
+ SELL: "SELL";
1331
+ }>;
1332
+ weight: z.ZodNumber;
1333
+ }, z.core.$strip>>;
1334
+ track: z.ZodEnum<{
1335
+ PEAK: "PEAK";
1336
+ TROUGH: "TROUGH";
1337
+ }>;
1338
+ threshold: z.ZodNumber;
1339
+ }, z.core.$strip>;
1340
+ }, z.core.$strip>, z.ZodObject<{
1341
+ type: z.ZodLiteral<"notional">;
1342
+ data: z.ZodObject<{
1343
+ priceSource: z.ZodEnum<{
1344
+ mid: "mid";
1345
+ mark: "mark";
1346
+ }>;
1347
+ track: z.ZodEnum<{
1348
+ PEAK: "PEAK";
1349
+ TROUGH: "TROUGH";
1350
+ }>;
1351
+ threshold: z.ZodNumber;
1352
+ }, z.core.$strip>;
1353
+ }, z.core.$strip>, z.ZodObject<{
1354
+ type: z.ZodLiteral<"upnl">;
1355
+ data: z.ZodObject<{
1356
+ priceSource: z.ZodEnum<{
1357
+ mid: "mid";
1358
+ mark: "mark";
1359
+ }>;
1360
+ track: z.ZodEnum<{
1361
+ PEAK: "PEAK";
1362
+ TROUGH: "TROUGH";
1363
+ }>;
1364
+ threshold: z.ZodNumber;
1365
+ }, z.core.$strip>;
1366
+ }, z.core.$strip>, z.ZodObject<{
1367
+ type: z.ZodLiteral<"upnl_bps">;
1368
+ data: z.ZodObject<{
1369
+ priceSource: z.ZodEnum<{
1370
+ mid: "mid";
1371
+ mark: "mark";
1372
+ }>;
1373
+ track: z.ZodEnum<{
1374
+ PEAK: "PEAK";
1375
+ TROUGH: "TROUGH";
1376
+ }>;
1377
+ threshold: z.ZodNumber;
1378
+ }, z.core.$strip>;
1379
+ }, z.core.$strip>, z.ZodObject<{
1380
+ type: z.ZodLiteral<"ratio_trailing">;
1381
+ data: z.ZodObject<{
1382
+ priceSource: z.ZodEnum<{
1383
+ mid: "mid";
1384
+ mark: "mark";
1385
+ }>;
1386
+ symbol_a: z.ZodString;
1387
+ symbol_b: z.ZodString;
1388
+ }, z.core.$strip>;
1389
+ }, z.core.$strip>, z.ZodObject<{
1390
+ type: z.ZodLiteral<"price_trailing">;
1391
+ data: z.ZodObject<{
1392
+ priceSource: z.ZodEnum<{
1393
+ mid: "mid";
1394
+ mark: "mark";
1395
+ }>;
1396
+ symbol: z.ZodString;
1397
+ }, z.core.$strip>;
1398
+ }, z.core.$strip>, z.ZodObject<{
1399
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
1400
+ data: z.ZodObject<{
1401
+ priceSource: z.ZodEnum<{
1402
+ mid: "mid";
1403
+ mark: "mark";
1404
+ }>;
1405
+ basket: z.ZodArray<z.ZodObject<{
1406
+ symbol: z.ZodString;
1407
+ side: z.ZodEnum<{
1408
+ BUY: "BUY";
1409
+ SELL: "SELL";
1410
+ }>;
1411
+ weight: z.ZodNumber;
1412
+ }, z.core.$strip>>;
1413
+ }, z.core.$strip>;
1414
+ }, z.core.$strip>, z.ZodObject<{
1415
+ type: z.ZodLiteral<"notional_trailing">;
1416
+ data: z.ZodObject<{
1417
+ priceSource: z.ZodEnum<{
1418
+ mid: "mid";
1419
+ mark: "mark";
1420
+ }>;
1421
+ }, z.core.$strip>;
1422
+ }, z.core.$strip>, z.ZodObject<{
1423
+ type: z.ZodLiteral<"upnl_trailing">;
1424
+ data: z.ZodObject<{
1425
+ priceSource: z.ZodEnum<{
1426
+ mid: "mid";
1427
+ mark: "mark";
1428
+ }>;
1429
+ }, z.core.$strip>;
1430
+ }, z.core.$strip>, z.ZodObject<{
1431
+ type: z.ZodLiteral<"upnl_bps_trailing">;
1432
+ data: z.ZodObject<{
1433
+ priceSource: z.ZodEnum<{
1434
+ mid: "mid";
1435
+ mark: "mark";
1436
+ }>;
1437
+ }, z.core.$strip>;
1438
+ }, z.core.$strip>, z.ZodObject<{
1439
+ type: z.ZodLiteral<"funding_rate">;
1440
+ data: z.ZodObject<{
1441
+ connector: z.ZodEnum<{
1442
+ hyperliquid: "hyperliquid";
1443
+ binance: "binance";
1444
+ bybit: "bybit";
1445
+ okx: "okx";
1446
+ lighter: "lighter";
1447
+ }>;
1448
+ symbol: z.ZodString;
1449
+ track: z.ZodEnum<{
1450
+ PEAK: "PEAK";
1451
+ TROUGH: "TROUGH";
1452
+ }>;
1453
+ threshold: z.ZodNumber;
1454
+ }, z.core.$strip>;
1455
+ }, z.core.$strip>, z.ZodObject<{
1456
+ type: z.ZodLiteral<"prediction_market">;
1457
+ data: z.ZodObject<{
1458
+ source: z.ZodEnum<{
1459
+ kalshi: "kalshi";
1460
+ polymarket: "polymarket";
1461
+ }>;
1462
+ marketKey: z.ZodString;
1463
+ track: z.ZodEnum<{
1464
+ PEAK: "PEAK";
1465
+ TROUGH: "TROUGH";
1466
+ }>;
1467
+ threshold: z.ZodNumber;
1468
+ }, z.core.$strip>;
1469
+ }, z.core.$strip>, z.ZodObject<{
1470
+ type: z.ZodLiteral<"btc_dominance">;
1471
+ data: z.ZodObject<{
1472
+ source: z.ZodLiteral<"coingecko">;
1473
+ track: z.ZodEnum<{
1474
+ PEAK: "PEAK";
1475
+ TROUGH: "TROUGH";
1476
+ }>;
1477
+ threshold: z.ZodNumber;
1478
+ }, z.core.$strip>;
1479
+ }, z.core.$strip>], "type">;
1480
+ context: z.ZodObject<{
1481
+ type: z.ZodLiteral<"MARKET">;
1482
+ position: z.ZodObject<{
1483
+ id: z.ZodUUID;
1484
+ initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
1485
+ }, z.core.$strip>;
1486
+ }, z.core.$strip>;
1487
+ trailing: z.ZodOptional<z.ZodObject<{
1488
+ mode: z.ZodEnum<{
1489
+ RELATIVE_BPS: "RELATIVE_BPS";
1490
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1491
+ }>;
1492
+ deltaValue: z.ZodNumber;
1493
+ activationValue: z.ZodOptional<z.ZodNumber>;
1494
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
1495
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
1496
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
1497
+ }, z.core.$strip>>;
1498
+ }, z.core.$strip>], "intent">], "type">>;
1499
+ createdAt: z.ZodString;
1500
+ updatedAt: z.ZodString;
1501
+ }, z.core.$strip>;
1502
+ }, z.core.$strip>;
1503
+ export type LadderResponse = z.output<typeof LadderResponse>;
1504
+ export declare const LadderListResponse: z.ZodObject<{
1505
+ limit: z.ZodNumber;
1506
+ nextCursor: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
1507
+ ladders: z.ZodArray<z.ZodObject<{
1508
+ id: z.ZodUUID;
1509
+ connector: z.ZodEnum<{
1510
+ hyperliquid: "hyperliquid";
1511
+ binance: "binance";
1512
+ bybit: "bybit";
1513
+ okx: "okx";
1514
+ lighter: "lighter";
1515
+ }>;
1516
+ positionKey: z.ZodString;
1517
+ config: z.ZodObject<{
1518
+ thresholdStart: z.ZodNumber;
1519
+ thresholdEnd: z.ZodNumber;
1520
+ levels: z.ZodInt;
1521
+ weighting: z.ZodDefault<z.ZodLiteral<"EQUAL">>;
1522
+ }, z.core.$strip>;
1523
+ status: z.ZodEnum<{
1524
+ CANCELLED: "CANCELLED";
1525
+ ACTIVE: "ACTIVE";
1526
+ COMPLETED: "COMPLETED";
1527
+ }>;
1528
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1529
+ id: z.ZodUUID;
1530
+ tradeAccountId: z.ZodUUID;
1531
+ connector: z.ZodEnum<{
1532
+ hyperliquid: "hyperliquid";
1533
+ binance: "binance";
1534
+ bybit: "bybit";
1535
+ okx: "okx";
1536
+ lighter: "lighter";
1537
+ }>;
1538
+ status: z.ZodEnum<{
1539
+ CANCELLED: "CANCELLED";
1540
+ ACTIVE: "ACTIVE";
1541
+ TRIGGERED: "TRIGGERED";
1542
+ }>;
1543
+ ladderId: z.ZodOptional<z.ZodUUID>;
1544
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
1545
+ triggeredAt: z.ZodOptional<z.ZodString>;
1546
+ cancelledAt: z.ZodOptional<z.ZodString>;
1547
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
1548
+ USER: "USER";
1549
+ POSITION_CLOSED: "POSITION_CLOSED";
1550
+ SYSTEM: "SYSTEM";
1551
+ POSITION_NETTED: "POSITION_NETTED";
1552
+ POSITION_REVERSED: "POSITION_REVERSED";
1553
+ }>>;
1554
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
1555
+ id: z.ZodUUID;
1556
+ cloid: z.ZodOptional<z.ZodString>;
1557
+ exchangeFillId: z.ZodOptional<z.ZodString>;
1558
+ status: z.ZodEnum<{
1559
+ PROVISIONAL: "PROVISIONAL";
1560
+ CONFIRMED: "CONFIRMED";
1561
+ RECONCILED: "RECONCILED";
1562
+ }>;
1563
+ tradeAccountId: z.ZodUUID;
1564
+ symbol: z.ZodString;
1565
+ positionId: z.ZodUUID;
1566
+ connector: z.ZodEnum<{
1567
+ hyperliquid: "hyperliquid";
1568
+ binance: "binance";
1569
+ bybit: "bybit";
1570
+ okx: "okx";
1571
+ lighter: "lighter";
1572
+ }>;
1573
+ side: z.ZodEnum<{
1574
+ BUY: "BUY";
1575
+ SELL: "SELL";
1576
+ }>;
1577
+ reduceOnly: z.ZodBoolean;
1578
+ isExternal: z.ZodBoolean;
1579
+ quantity: z.ZodString;
1580
+ price: z.ZodString;
1581
+ usd: z.ZodString;
1582
+ tradeFee: z.ZodOptional<z.ZodString>;
1583
+ pearFee: z.ZodOptional<z.ZodString>;
1584
+ timestamp: z.ZodString;
1585
+ original: z.ZodOptional<z.ZodObject<{
1586
+ exchangeFillId: z.ZodString;
1587
+ quantity: z.ZodString;
1588
+ }, z.core.$strip>>;
1589
+ }, z.core.$strip>>>;
1590
+ bracketType: z.ZodEnum<{
1591
+ STOP_LOSS: "STOP_LOSS";
1592
+ TAKE_PROFIT: "TAKE_PROFIT";
1593
+ NONE: "NONE";
1594
+ }>;
1595
+ createdAt: z.ZodString;
1596
+ updatedAt: z.ZodString;
1597
+ intent: z.ZodLiteral<"OPEN">;
1598
+ type: z.ZodLiteral<"MARKET">;
1599
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1600
+ type: z.ZodLiteral<"ratio">;
1601
+ data: z.ZodObject<{
1602
+ priceSource: z.ZodEnum<{
1603
+ mid: "mid";
1604
+ mark: "mark";
1605
+ }>;
1606
+ symbol_a: z.ZodString;
1607
+ symbol_b: z.ZodString;
1608
+ track: z.ZodEnum<{
1609
+ PEAK: "PEAK";
1610
+ TROUGH: "TROUGH";
1611
+ }>;
1612
+ threshold: z.ZodNumber;
1613
+ }, z.core.$strip>;
1614
+ }, z.core.$strip>, z.ZodObject<{
1615
+ type: z.ZodLiteral<"price">;
1616
+ data: z.ZodObject<{
1617
+ priceSource: z.ZodEnum<{
1618
+ mid: "mid";
1619
+ mark: "mark";
1620
+ }>;
1621
+ symbol: z.ZodString;
1622
+ track: z.ZodEnum<{
1623
+ PEAK: "PEAK";
1624
+ TROUGH: "TROUGH";
1625
+ }>;
1626
+ threshold: z.ZodNumber;
1627
+ }, z.core.$strip>;
1628
+ }, z.core.$strip>, z.ZodObject<{
1629
+ type: z.ZodLiteral<"weighted_ratio">;
1630
+ data: z.ZodObject<{
1631
+ priceSource: z.ZodEnum<{
1632
+ mid: "mid";
1633
+ mark: "mark";
1634
+ }>;
1635
+ basket: z.ZodArray<z.ZodObject<{
1636
+ symbol: z.ZodString;
1637
+ side: z.ZodEnum<{
1638
+ BUY: "BUY";
1639
+ SELL: "SELL";
1640
+ }>;
1641
+ weight: z.ZodNumber;
1642
+ }, z.core.$strip>>;
1643
+ track: z.ZodEnum<{
1644
+ PEAK: "PEAK";
1645
+ TROUGH: "TROUGH";
1646
+ }>;
1647
+ threshold: z.ZodNumber;
1648
+ }, z.core.$strip>;
1649
+ }, z.core.$strip>, z.ZodObject<{
1650
+ type: z.ZodLiteral<"funding_rate">;
1651
+ data: z.ZodObject<{
1652
+ connector: z.ZodEnum<{
1653
+ hyperliquid: "hyperliquid";
1654
+ binance: "binance";
1655
+ bybit: "bybit";
1656
+ okx: "okx";
1657
+ lighter: "lighter";
1658
+ }>;
1659
+ symbol: z.ZodString;
1660
+ track: z.ZodEnum<{
1661
+ PEAK: "PEAK";
1662
+ TROUGH: "TROUGH";
1663
+ }>;
1664
+ threshold: z.ZodNumber;
1665
+ }, z.core.$strip>;
1666
+ }, z.core.$strip>, z.ZodObject<{
1667
+ type: z.ZodLiteral<"prediction_market">;
1668
+ data: z.ZodObject<{
1669
+ source: z.ZodEnum<{
1670
+ kalshi: "kalshi";
1671
+ polymarket: "polymarket";
1672
+ }>;
1673
+ marketKey: z.ZodString;
1674
+ track: z.ZodEnum<{
1675
+ PEAK: "PEAK";
1676
+ TROUGH: "TROUGH";
1677
+ }>;
1678
+ threshold: z.ZodNumber;
1679
+ }, z.core.$strip>;
1680
+ }, z.core.$strip>, z.ZodObject<{
1681
+ type: z.ZodLiteral<"btc_dominance">;
1682
+ data: z.ZodObject<{
1683
+ source: z.ZodLiteral<"coingecko">;
1684
+ track: z.ZodEnum<{
1685
+ PEAK: "PEAK";
1686
+ TROUGH: "TROUGH";
1687
+ }>;
1688
+ threshold: z.ZodNumber;
1689
+ }, z.core.$strip>;
1690
+ }, z.core.$strip>], "type">;
1691
+ context: z.ZodObject<{
1692
+ type: z.ZodLiteral<"MARKET">;
1693
+ legs: z.ZodTuple<[z.ZodObject<{
1694
+ symbol: z.ZodString;
1695
+ side: z.ZodEnum<{
1696
+ BUY: "BUY";
1697
+ SELL: "SELL";
1698
+ }>;
1699
+ mode: z.ZodEnum<{
1700
+ QUANTITY: "QUANTITY";
1701
+ USD: "USD";
1702
+ }>;
1703
+ amount: z.ZodString;
1704
+ }, z.core.$strip>], z.ZodObject<{
1705
+ symbol: z.ZodString;
1706
+ side: z.ZodEnum<{
1707
+ BUY: "BUY";
1708
+ SELL: "SELL";
1709
+ }>;
1710
+ mode: z.ZodEnum<{
1711
+ QUANTITY: "QUANTITY";
1712
+ USD: "USD";
1713
+ }>;
1714
+ amount: z.ZodString;
1715
+ }, z.core.$strip>>;
1716
+ attachedTriggers: z.ZodArray<z.ZodObject<{
1717
+ kind: z.ZodEnum<{
1718
+ STATIC: "STATIC";
1719
+ TRAILING: "TRAILING";
1720
+ }>;
1721
+ bracketType: z.ZodEnum<{
1722
+ STOP_LOSS: "STOP_LOSS";
1723
+ TAKE_PROFIT: "TAKE_PROFIT";
1724
+ }>;
1725
+ }, z.core.$strip>>;
1726
+ }, z.core.$strip>;
1727
+ }, z.core.$strip>, z.ZodObject<{
1728
+ id: z.ZodUUID;
1729
+ tradeAccountId: z.ZodUUID;
1730
+ connector: z.ZodEnum<{
1731
+ hyperliquid: "hyperliquid";
1732
+ binance: "binance";
1733
+ bybit: "bybit";
1734
+ okx: "okx";
1735
+ lighter: "lighter";
1736
+ }>;
1737
+ status: z.ZodEnum<{
1738
+ CANCELLED: "CANCELLED";
1739
+ ACTIVE: "ACTIVE";
1740
+ TRIGGERED: "TRIGGERED";
1741
+ }>;
1742
+ ladderId: z.ZodOptional<z.ZodUUID>;
1743
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
1744
+ triggeredAt: z.ZodOptional<z.ZodString>;
1745
+ cancelledAt: z.ZodOptional<z.ZodString>;
1746
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
1747
+ USER: "USER";
1748
+ POSITION_CLOSED: "POSITION_CLOSED";
1749
+ SYSTEM: "SYSTEM";
1750
+ POSITION_NETTED: "POSITION_NETTED";
1751
+ POSITION_REVERSED: "POSITION_REVERSED";
1752
+ }>>;
1753
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
1754
+ id: z.ZodUUID;
1755
+ cloid: z.ZodOptional<z.ZodString>;
1756
+ exchangeFillId: z.ZodOptional<z.ZodString>;
1757
+ status: z.ZodEnum<{
1758
+ PROVISIONAL: "PROVISIONAL";
1759
+ CONFIRMED: "CONFIRMED";
1760
+ RECONCILED: "RECONCILED";
1761
+ }>;
1762
+ tradeAccountId: z.ZodUUID;
1763
+ symbol: z.ZodString;
1764
+ positionId: z.ZodUUID;
1765
+ connector: z.ZodEnum<{
1766
+ hyperliquid: "hyperliquid";
1767
+ binance: "binance";
1768
+ bybit: "bybit";
1769
+ okx: "okx";
1770
+ lighter: "lighter";
1771
+ }>;
1772
+ side: z.ZodEnum<{
1773
+ BUY: "BUY";
1774
+ SELL: "SELL";
1775
+ }>;
1776
+ reduceOnly: z.ZodBoolean;
1777
+ isExternal: z.ZodBoolean;
1778
+ quantity: z.ZodString;
1779
+ price: z.ZodString;
1780
+ usd: z.ZodString;
1781
+ tradeFee: z.ZodOptional<z.ZodString>;
1782
+ pearFee: z.ZodOptional<z.ZodString>;
1783
+ timestamp: z.ZodString;
1784
+ original: z.ZodOptional<z.ZodObject<{
1785
+ exchangeFillId: z.ZodString;
1786
+ quantity: z.ZodString;
1787
+ }, z.core.$strip>>;
1788
+ }, z.core.$strip>>>;
1789
+ bracketType: z.ZodEnum<{
1790
+ STOP_LOSS: "STOP_LOSS";
1791
+ TAKE_PROFIT: "TAKE_PROFIT";
1792
+ NONE: "NONE";
1793
+ }>;
1794
+ createdAt: z.ZodString;
1795
+ updatedAt: z.ZodString;
1796
+ intent: z.ZodLiteral<"ADJUST">;
1797
+ type: z.ZodLiteral<"MARKET">;
1798
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1799
+ type: z.ZodLiteral<"ratio">;
1800
+ data: z.ZodObject<{
1801
+ priceSource: z.ZodEnum<{
1802
+ mid: "mid";
1803
+ mark: "mark";
1804
+ }>;
1805
+ symbol_a: z.ZodString;
1806
+ symbol_b: z.ZodString;
1807
+ track: z.ZodEnum<{
1808
+ PEAK: "PEAK";
1809
+ TROUGH: "TROUGH";
1810
+ }>;
1811
+ threshold: z.ZodNumber;
1812
+ }, z.core.$strip>;
1813
+ }, z.core.$strip>, z.ZodObject<{
1814
+ type: z.ZodLiteral<"price">;
1815
+ data: z.ZodObject<{
1816
+ priceSource: z.ZodEnum<{
1817
+ mid: "mid";
1818
+ mark: "mark";
1819
+ }>;
1820
+ symbol: z.ZodString;
1821
+ track: z.ZodEnum<{
1822
+ PEAK: "PEAK";
1823
+ TROUGH: "TROUGH";
1824
+ }>;
1825
+ threshold: z.ZodNumber;
1826
+ }, z.core.$strip>;
1827
+ }, z.core.$strip>, z.ZodObject<{
1828
+ type: z.ZodLiteral<"weighted_ratio">;
1829
+ data: z.ZodObject<{
1830
+ priceSource: z.ZodEnum<{
1831
+ mid: "mid";
1832
+ mark: "mark";
1833
+ }>;
1834
+ basket: z.ZodArray<z.ZodObject<{
1835
+ symbol: z.ZodString;
1836
+ side: z.ZodEnum<{
1837
+ BUY: "BUY";
1838
+ SELL: "SELL";
1839
+ }>;
1840
+ weight: z.ZodNumber;
1841
+ }, z.core.$strip>>;
1842
+ track: z.ZodEnum<{
1843
+ PEAK: "PEAK";
1844
+ TROUGH: "TROUGH";
1845
+ }>;
1846
+ threshold: z.ZodNumber;
1847
+ }, z.core.$strip>;
1848
+ }, z.core.$strip>, z.ZodObject<{
1849
+ type: z.ZodLiteral<"notional">;
1850
+ data: z.ZodObject<{
1851
+ priceSource: z.ZodEnum<{
1852
+ mid: "mid";
1853
+ mark: "mark";
1854
+ }>;
1855
+ track: z.ZodEnum<{
1856
+ PEAK: "PEAK";
1857
+ TROUGH: "TROUGH";
1858
+ }>;
1859
+ threshold: z.ZodNumber;
1860
+ }, z.core.$strip>;
1861
+ }, z.core.$strip>, z.ZodObject<{
1862
+ type: z.ZodLiteral<"upnl">;
1863
+ data: z.ZodObject<{
1864
+ priceSource: z.ZodEnum<{
1865
+ mid: "mid";
1866
+ mark: "mark";
1867
+ }>;
1868
+ track: z.ZodEnum<{
1869
+ PEAK: "PEAK";
1870
+ TROUGH: "TROUGH";
1871
+ }>;
1872
+ threshold: z.ZodNumber;
1873
+ }, z.core.$strip>;
1874
+ }, z.core.$strip>, z.ZodObject<{
1875
+ type: z.ZodLiteral<"upnl_bps">;
1876
+ data: z.ZodObject<{
1877
+ priceSource: z.ZodEnum<{
1878
+ mid: "mid";
1879
+ mark: "mark";
1880
+ }>;
1881
+ track: z.ZodEnum<{
1882
+ PEAK: "PEAK";
1883
+ TROUGH: "TROUGH";
1884
+ }>;
1885
+ threshold: z.ZodNumber;
1886
+ }, z.core.$strip>;
1887
+ }, z.core.$strip>, z.ZodObject<{
1888
+ type: z.ZodLiteral<"funding_rate">;
1889
+ data: z.ZodObject<{
1890
+ connector: z.ZodEnum<{
1891
+ hyperliquid: "hyperliquid";
1892
+ binance: "binance";
1893
+ bybit: "bybit";
1894
+ okx: "okx";
1895
+ lighter: "lighter";
1896
+ }>;
1897
+ symbol: z.ZodString;
1898
+ track: z.ZodEnum<{
1899
+ PEAK: "PEAK";
1900
+ TROUGH: "TROUGH";
1901
+ }>;
1902
+ threshold: z.ZodNumber;
1903
+ }, z.core.$strip>;
1904
+ }, z.core.$strip>, z.ZodObject<{
1905
+ type: z.ZodLiteral<"prediction_market">;
1906
+ data: z.ZodObject<{
1907
+ source: z.ZodEnum<{
1908
+ kalshi: "kalshi";
1909
+ polymarket: "polymarket";
1910
+ }>;
1911
+ marketKey: z.ZodString;
1912
+ track: z.ZodEnum<{
1913
+ PEAK: "PEAK";
1914
+ TROUGH: "TROUGH";
1915
+ }>;
1916
+ threshold: z.ZodNumber;
1917
+ }, z.core.$strip>;
1918
+ }, z.core.$strip>, z.ZodObject<{
1919
+ type: z.ZodLiteral<"btc_dominance">;
1920
+ data: z.ZodObject<{
1921
+ source: z.ZodLiteral<"coingecko">;
1922
+ track: z.ZodEnum<{
1923
+ PEAK: "PEAK";
1924
+ TROUGH: "TROUGH";
1925
+ }>;
1926
+ threshold: z.ZodNumber;
1927
+ }, z.core.$strip>;
1928
+ }, z.core.$strip>], "type">;
1929
+ context: z.ZodObject<{
1930
+ type: z.ZodLiteral<"MARKET">;
1931
+ position: z.ZodObject<{
1932
+ id: z.ZodUUID;
1933
+ initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
1934
+ }, z.core.$strip>;
1935
+ legs: z.ZodTuple<[z.ZodObject<{
1936
+ symbol: z.ZodString;
1937
+ side: z.ZodEnum<{
1938
+ BUY: "BUY";
1939
+ SELL: "SELL";
1940
+ }>;
1941
+ mode: z.ZodEnum<{
1942
+ QUANTITY: "QUANTITY";
1943
+ USD: "USD";
1944
+ }>;
1945
+ amount: z.ZodString;
1946
+ reduceOnly: z.ZodBoolean;
1947
+ }, z.core.$strip>], z.ZodObject<{
1948
+ symbol: z.ZodString;
1949
+ side: z.ZodEnum<{
1950
+ BUY: "BUY";
1951
+ SELL: "SELL";
1952
+ }>;
1953
+ mode: z.ZodEnum<{
1954
+ QUANTITY: "QUANTITY";
1955
+ USD: "USD";
1956
+ }>;
1957
+ amount: z.ZodString;
1958
+ reduceOnly: z.ZodBoolean;
1959
+ }, z.core.$strip>>;
1960
+ }, z.core.$strip>;
1961
+ trailing: z.ZodOptional<z.ZodObject<{
1962
+ mode: z.ZodEnum<{
1963
+ RELATIVE_BPS: "RELATIVE_BPS";
1964
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1965
+ }>;
1966
+ deltaValue: z.ZodNumber;
1967
+ activationValue: z.ZodOptional<z.ZodNumber>;
1968
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
1969
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
1970
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
1971
+ }, z.core.$strip>>;
1972
+ }, z.core.$strip>, z.ZodObject<{
1973
+ id: z.ZodUUID;
1974
+ tradeAccountId: z.ZodUUID;
1975
+ connector: z.ZodEnum<{
1976
+ hyperliquid: "hyperliquid";
1977
+ binance: "binance";
1978
+ bybit: "bybit";
1979
+ okx: "okx";
1980
+ lighter: "lighter";
1981
+ }>;
1982
+ status: z.ZodEnum<{
1983
+ CANCELLED: "CANCELLED";
1984
+ ACTIVE: "ACTIVE";
1985
+ TRIGGERED: "TRIGGERED";
1986
+ }>;
1987
+ ladderId: z.ZodOptional<z.ZodUUID>;
1988
+ ladderIndex: z.ZodOptional<z.ZodNumber>;
1989
+ triggeredAt: z.ZodOptional<z.ZodString>;
1990
+ cancelledAt: z.ZodOptional<z.ZodString>;
1991
+ cancelledReason: z.ZodOptional<z.ZodEnum<{
1992
+ USER: "USER";
1993
+ POSITION_CLOSED: "POSITION_CLOSED";
1994
+ SYSTEM: "SYSTEM";
1995
+ POSITION_NETTED: "POSITION_NETTED";
1996
+ POSITION_REVERSED: "POSITION_REVERSED";
1997
+ }>>;
1998
+ fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
1999
+ id: z.ZodUUID;
2000
+ cloid: z.ZodOptional<z.ZodString>;
2001
+ exchangeFillId: z.ZodOptional<z.ZodString>;
2002
+ status: z.ZodEnum<{
2003
+ PROVISIONAL: "PROVISIONAL";
2004
+ CONFIRMED: "CONFIRMED";
2005
+ RECONCILED: "RECONCILED";
2006
+ }>;
2007
+ tradeAccountId: z.ZodUUID;
2008
+ symbol: z.ZodString;
2009
+ positionId: z.ZodUUID;
2010
+ connector: z.ZodEnum<{
2011
+ hyperliquid: "hyperliquid";
2012
+ binance: "binance";
2013
+ bybit: "bybit";
2014
+ okx: "okx";
2015
+ lighter: "lighter";
2016
+ }>;
2017
+ side: z.ZodEnum<{
2018
+ BUY: "BUY";
2019
+ SELL: "SELL";
2020
+ }>;
2021
+ reduceOnly: z.ZodBoolean;
2022
+ isExternal: z.ZodBoolean;
2023
+ quantity: z.ZodString;
2024
+ price: z.ZodString;
2025
+ usd: z.ZodString;
2026
+ tradeFee: z.ZodOptional<z.ZodString>;
2027
+ pearFee: z.ZodOptional<z.ZodString>;
2028
+ timestamp: z.ZodString;
2029
+ original: z.ZodOptional<z.ZodObject<{
2030
+ exchangeFillId: z.ZodString;
2031
+ quantity: z.ZodString;
2032
+ }, z.core.$strip>>;
2033
+ }, z.core.$strip>>>;
2034
+ bracketType: z.ZodEnum<{
2035
+ STOP_LOSS: "STOP_LOSS";
2036
+ TAKE_PROFIT: "TAKE_PROFIT";
2037
+ NONE: "NONE";
2038
+ }>;
2039
+ createdAt: z.ZodString;
2040
+ updatedAt: z.ZodString;
2041
+ intent: z.ZodLiteral<"CLOSE">;
2042
+ type: z.ZodLiteral<"MARKET">;
2043
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
2044
+ type: z.ZodLiteral<"ratio">;
2045
+ data: z.ZodObject<{
2046
+ priceSource: z.ZodEnum<{
2047
+ mid: "mid";
2048
+ mark: "mark";
2049
+ }>;
2050
+ symbol_a: z.ZodString;
2051
+ symbol_b: z.ZodString;
2052
+ track: z.ZodEnum<{
2053
+ PEAK: "PEAK";
2054
+ TROUGH: "TROUGH";
2055
+ }>;
2056
+ threshold: z.ZodNumber;
2057
+ }, z.core.$strip>;
2058
+ }, z.core.$strip>, z.ZodObject<{
2059
+ type: z.ZodLiteral<"price">;
2060
+ data: z.ZodObject<{
2061
+ priceSource: z.ZodEnum<{
2062
+ mid: "mid";
2063
+ mark: "mark";
2064
+ }>;
2065
+ symbol: z.ZodString;
2066
+ track: z.ZodEnum<{
2067
+ PEAK: "PEAK";
2068
+ TROUGH: "TROUGH";
2069
+ }>;
2070
+ threshold: z.ZodNumber;
2071
+ }, z.core.$strip>;
2072
+ }, z.core.$strip>, z.ZodObject<{
2073
+ type: z.ZodLiteral<"weighted_ratio">;
2074
+ data: z.ZodObject<{
2075
+ priceSource: z.ZodEnum<{
2076
+ mid: "mid";
2077
+ mark: "mark";
2078
+ }>;
2079
+ basket: z.ZodArray<z.ZodObject<{
2080
+ symbol: z.ZodString;
2081
+ side: z.ZodEnum<{
2082
+ BUY: "BUY";
2083
+ SELL: "SELL";
2084
+ }>;
2085
+ weight: z.ZodNumber;
2086
+ }, z.core.$strip>>;
2087
+ track: z.ZodEnum<{
2088
+ PEAK: "PEAK";
2089
+ TROUGH: "TROUGH";
2090
+ }>;
2091
+ threshold: z.ZodNumber;
2092
+ }, z.core.$strip>;
2093
+ }, z.core.$strip>, z.ZodObject<{
2094
+ type: z.ZodLiteral<"notional">;
2095
+ data: z.ZodObject<{
2096
+ priceSource: z.ZodEnum<{
2097
+ mid: "mid";
2098
+ mark: "mark";
2099
+ }>;
2100
+ track: z.ZodEnum<{
2101
+ PEAK: "PEAK";
2102
+ TROUGH: "TROUGH";
2103
+ }>;
2104
+ threshold: z.ZodNumber;
2105
+ }, z.core.$strip>;
2106
+ }, z.core.$strip>, z.ZodObject<{
2107
+ type: z.ZodLiteral<"upnl">;
2108
+ data: z.ZodObject<{
2109
+ priceSource: z.ZodEnum<{
2110
+ mid: "mid";
2111
+ mark: "mark";
2112
+ }>;
2113
+ track: z.ZodEnum<{
2114
+ PEAK: "PEAK";
2115
+ TROUGH: "TROUGH";
2116
+ }>;
2117
+ threshold: z.ZodNumber;
2118
+ }, z.core.$strip>;
2119
+ }, z.core.$strip>, z.ZodObject<{
2120
+ type: z.ZodLiteral<"upnl_bps">;
2121
+ data: z.ZodObject<{
2122
+ priceSource: z.ZodEnum<{
2123
+ mid: "mid";
2124
+ mark: "mark";
2125
+ }>;
2126
+ track: z.ZodEnum<{
2127
+ PEAK: "PEAK";
2128
+ TROUGH: "TROUGH";
2129
+ }>;
2130
+ threshold: z.ZodNumber;
2131
+ }, z.core.$strip>;
2132
+ }, z.core.$strip>, z.ZodObject<{
2133
+ type: z.ZodLiteral<"ratio_trailing">;
2134
+ data: z.ZodObject<{
2135
+ priceSource: z.ZodEnum<{
2136
+ mid: "mid";
2137
+ mark: "mark";
2138
+ }>;
2139
+ symbol_a: z.ZodString;
2140
+ symbol_b: z.ZodString;
2141
+ }, z.core.$strip>;
2142
+ }, z.core.$strip>, z.ZodObject<{
2143
+ type: z.ZodLiteral<"price_trailing">;
2144
+ data: z.ZodObject<{
2145
+ priceSource: z.ZodEnum<{
2146
+ mid: "mid";
2147
+ mark: "mark";
2148
+ }>;
2149
+ symbol: z.ZodString;
2150
+ }, z.core.$strip>;
2151
+ }, z.core.$strip>, z.ZodObject<{
2152
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
2153
+ data: z.ZodObject<{
2154
+ priceSource: z.ZodEnum<{
2155
+ mid: "mid";
2156
+ mark: "mark";
2157
+ }>;
2158
+ basket: z.ZodArray<z.ZodObject<{
2159
+ symbol: z.ZodString;
2160
+ side: z.ZodEnum<{
2161
+ BUY: "BUY";
2162
+ SELL: "SELL";
2163
+ }>;
2164
+ weight: z.ZodNumber;
2165
+ }, z.core.$strip>>;
2166
+ }, z.core.$strip>;
2167
+ }, z.core.$strip>, z.ZodObject<{
2168
+ type: z.ZodLiteral<"notional_trailing">;
2169
+ data: z.ZodObject<{
2170
+ priceSource: z.ZodEnum<{
2171
+ mid: "mid";
2172
+ mark: "mark";
2173
+ }>;
2174
+ }, z.core.$strip>;
2175
+ }, z.core.$strip>, z.ZodObject<{
2176
+ type: z.ZodLiteral<"upnl_trailing">;
2177
+ data: z.ZodObject<{
2178
+ priceSource: z.ZodEnum<{
2179
+ mid: "mid";
2180
+ mark: "mark";
2181
+ }>;
2182
+ }, z.core.$strip>;
2183
+ }, z.core.$strip>, z.ZodObject<{
2184
+ type: z.ZodLiteral<"upnl_bps_trailing">;
2185
+ data: z.ZodObject<{
2186
+ priceSource: z.ZodEnum<{
2187
+ mid: "mid";
2188
+ mark: "mark";
2189
+ }>;
2190
+ }, z.core.$strip>;
2191
+ }, z.core.$strip>, z.ZodObject<{
2192
+ type: z.ZodLiteral<"funding_rate">;
2193
+ data: z.ZodObject<{
2194
+ connector: z.ZodEnum<{
2195
+ hyperliquid: "hyperliquid";
2196
+ binance: "binance";
2197
+ bybit: "bybit";
2198
+ okx: "okx";
2199
+ lighter: "lighter";
2200
+ }>;
2201
+ symbol: z.ZodString;
2202
+ track: z.ZodEnum<{
2203
+ PEAK: "PEAK";
2204
+ TROUGH: "TROUGH";
2205
+ }>;
2206
+ threshold: z.ZodNumber;
2207
+ }, z.core.$strip>;
2208
+ }, z.core.$strip>, z.ZodObject<{
2209
+ type: z.ZodLiteral<"prediction_market">;
2210
+ data: z.ZodObject<{
2211
+ source: z.ZodEnum<{
2212
+ kalshi: "kalshi";
2213
+ polymarket: "polymarket";
2214
+ }>;
2215
+ marketKey: z.ZodString;
2216
+ track: z.ZodEnum<{
2217
+ PEAK: "PEAK";
2218
+ TROUGH: "TROUGH";
2219
+ }>;
2220
+ threshold: z.ZodNumber;
2221
+ }, z.core.$strip>;
2222
+ }, z.core.$strip>, z.ZodObject<{
2223
+ type: z.ZodLiteral<"btc_dominance">;
2224
+ data: z.ZodObject<{
2225
+ source: z.ZodLiteral<"coingecko">;
2226
+ track: z.ZodEnum<{
2227
+ PEAK: "PEAK";
2228
+ TROUGH: "TROUGH";
2229
+ }>;
2230
+ threshold: z.ZodNumber;
2231
+ }, z.core.$strip>;
2232
+ }, z.core.$strip>], "type">;
2233
+ context: z.ZodObject<{
2234
+ type: z.ZodLiteral<"MARKET">;
2235
+ position: z.ZodObject<{
2236
+ id: z.ZodUUID;
2237
+ initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
2238
+ }, z.core.$strip>;
2239
+ }, z.core.$strip>;
2240
+ trailing: z.ZodOptional<z.ZodObject<{
2241
+ mode: z.ZodEnum<{
2242
+ RELATIVE_BPS: "RELATIVE_BPS";
2243
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
2244
+ }>;
2245
+ deltaValue: z.ZodNumber;
2246
+ activationValue: z.ZodOptional<z.ZodNumber>;
2247
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
2248
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
2249
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
2250
+ }, z.core.$strip>>;
2251
+ }, z.core.$strip>], "intent">], "type">>;
2252
+ createdAt: z.ZodString;
2253
+ updatedAt: z.ZodString;
2254
+ }, z.core.$strip>>;
2255
+ }, z.core.$strip>;
2256
+ export type LadderListResponse = z.output<typeof LadderListResponse>;
2257
+ export declare const CancelLadderResponse: z.ZodObject<{
2258
+ id: z.ZodUUID;
2259
+ }, z.core.$strip>;
2260
+ export type CancelLadderResponse = z.output<typeof CancelLadderResponse>;