@pear-protocol/types 2.23.0 → 2.25.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.
- package/dist/copy/entities.d.ts +162 -10
- package/dist/copy/responses.d.ts +96 -11
- package/dist/execution/entities.d.ts +260 -43
- package/dist/execution/queries.d.ts +3 -2
- package/dist/execution/responses.d.ts +144 -24
- package/dist/fill/entities.d.ts +60 -1
- package/dist/fill/queries.d.ts +1 -0
- package/dist/fill/responses.d.ts +34 -4
- package/dist/index.js +743 -411
- package/dist/ladder/entities.d.ts +141 -24
- package/dist/ladder/payloads.d.ts +60 -24
- package/dist/ladder/queries.d.ts +2 -2
- package/dist/ladder/responses.d.ts +420 -69
- package/dist/leverage/payloads.d.ts +6 -1
- package/dist/notification/entities.d.ts +209 -7
- package/dist/notification/responses.d.ts +99 -2
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +5 -5
- package/dist/position/responses.d.ts +4 -4
- package/dist/realtime/frames.d.ts +38 -6
- package/dist/realtime/public-events.d.ts +19 -3
- package/dist/rewards/entities.d.ts +18 -0
- package/dist/rewards/index.d.ts +1 -0
- package/dist/rewards/queries.d.ts +7 -0
- package/dist/rewards/responses.d.ts +52 -0
- package/dist/schedule/entities.d.ts +155 -19
- package/dist/schedule/index.d.ts +1 -0
- package/dist/schedule/queries.d.ts +3 -2
- package/dist/schedule/responses.d.ts +142 -19
- package/dist/sync/payloads.d.ts +56 -88
- package/dist/tca/responses.d.ts +12 -12
- package/dist/trade/payloads.d.ts +60 -24
- package/dist/trade/responses.d.ts +360 -60
- package/dist/traders/performance.d.ts +4 -0
- package/dist/traders/public.d.ts +537 -285
- package/dist/trigger/common/index.d.ts +8 -2
- package/dist/trigger/entities/conditions.d.ts +40 -0
- package/dist/trigger/entities/index.d.ts +339 -32
- package/dist/trigger/payloads/conditions.d.ts +70 -38
- package/dist/trigger/payloads/index.d.ts +408 -216
- package/dist/trigger/queries.d.ts +2 -2
- package/dist/trigger/responses.d.ts +218 -20
- package/dist/users/entities.d.ts +1 -0
- package/dist/users/payloads.d.ts +1 -0
- package/dist/users/response.d.ts +2 -0
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
status: z.ZodEnum<{
|
|
21
21
|
ACTIVE: "ACTIVE";
|
|
22
|
-
CANCELLED: "CANCELLED";
|
|
23
22
|
COMPLETED: "COMPLETED";
|
|
23
|
+
CANCELLED: "CANCELLED";
|
|
24
24
|
}>;
|
|
25
25
|
attachTriggers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
26
26
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -29,6 +29,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
29
29
|
STOP_LOSS: "STOP_LOSS";
|
|
30
30
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
31
31
|
}>;
|
|
32
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
32
33
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
34
|
type: z.ZodLiteral<"notional">;
|
|
34
35
|
data: z.ZodObject<{
|
|
@@ -37,8 +38,12 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
37
38
|
mark: "mark";
|
|
38
39
|
}>;
|
|
39
40
|
threshold: z.ZodNumber;
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
cancel: "cancel";
|
|
43
|
+
keep: "keep";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
47
|
type: z.ZodLiteral<"upnl">;
|
|
43
48
|
data: z.ZodObject<{
|
|
44
49
|
priceSource: z.ZodEnum<{
|
|
@@ -46,8 +51,12 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
46
51
|
mark: "mark";
|
|
47
52
|
}>;
|
|
48
53
|
threshold: z.ZodNumber;
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
55
|
+
cancel: "cancel";
|
|
56
|
+
keep: "keep";
|
|
57
|
+
}>>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
60
|
type: z.ZodLiteral<"upnl_bps">;
|
|
52
61
|
data: z.ZodObject<{
|
|
53
62
|
priceSource: z.ZodEnum<{
|
|
@@ -55,11 +64,12 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
55
64
|
mark: "mark";
|
|
56
65
|
}>;
|
|
57
66
|
threshold: z.ZodNumber;
|
|
58
|
-
}, z.core.$
|
|
59
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
}, z.core.$strict>], "type">;
|
|
60
69
|
}, z.core.$strip>, z.ZodObject<{
|
|
61
70
|
intent: z.ZodLiteral<"CLOSE">;
|
|
62
71
|
type: z.ZodLiteral<"MARKET">;
|
|
72
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
63
73
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
64
74
|
type: z.ZodLiteral<"notional_trailing">;
|
|
65
75
|
data: z.ZodObject<{
|
|
@@ -67,24 +77,32 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
67
77
|
mid: "mid";
|
|
68
78
|
mark: "mark";
|
|
69
79
|
}>;
|
|
70
|
-
|
|
71
|
-
|
|
80
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
81
|
+
cancel: "cancel";
|
|
82
|
+
keep: "keep";
|
|
83
|
+
}>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
86
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
73
87
|
data: z.ZodObject<{
|
|
74
88
|
priceSource: z.ZodEnum<{
|
|
75
89
|
mid: "mid";
|
|
76
90
|
mark: "mark";
|
|
77
91
|
}>;
|
|
78
|
-
|
|
79
|
-
|
|
92
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
93
|
+
cancel: "cancel";
|
|
94
|
+
keep: "keep";
|
|
95
|
+
}>>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
98
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
81
99
|
data: z.ZodObject<{
|
|
82
100
|
priceSource: z.ZodEnum<{
|
|
83
101
|
mid: "mid";
|
|
84
102
|
mark: "mark";
|
|
85
103
|
}>;
|
|
86
|
-
}, z.core.$
|
|
87
|
-
}, z.core.$
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
}, z.core.$strict>], "type">;
|
|
88
106
|
trailing: z.ZodObject<{
|
|
89
107
|
mode: z.ZodEnum<{
|
|
90
108
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -116,12 +134,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
116
134
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
117
135
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
118
136
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
119
|
-
USER: "USER";
|
|
120
137
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
138
|
+
USER: "USER";
|
|
121
139
|
SYSTEM: "SYSTEM";
|
|
122
140
|
POSITION_NETTED: "POSITION_NETTED";
|
|
123
141
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
124
142
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
143
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
125
144
|
}>>;
|
|
126
145
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
146
|
id: z.ZodUUID;
|
|
@@ -134,7 +153,9 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
134
153
|
}>;
|
|
135
154
|
tradeAccountId: z.ZodUUID;
|
|
136
155
|
symbol: z.ZodString;
|
|
137
|
-
|
|
156
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
157
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
158
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
138
159
|
connector: z.ZodEnum<{
|
|
139
160
|
hyperliquid: "hyperliquid";
|
|
140
161
|
binance: "binance";
|
|
@@ -160,6 +181,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
160
181
|
exchangeFillId: z.ZodString;
|
|
161
182
|
quantity: z.ZodString;
|
|
162
183
|
}, z.core.$strip>>;
|
|
184
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
185
|
+
positionId: z.ZodUUID;
|
|
186
|
+
quantity: z.ZodString;
|
|
187
|
+
usd: z.ZodString;
|
|
188
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
189
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
163
191
|
}, z.core.$strip>>>;
|
|
164
192
|
bracketType: z.ZodEnum<{
|
|
165
193
|
NONE: "NONE";
|
|
@@ -328,12 +356,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
328
356
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
329
357
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
330
358
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
331
|
-
USER: "USER";
|
|
332
359
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
360
|
+
USER: "USER";
|
|
333
361
|
SYSTEM: "SYSTEM";
|
|
334
362
|
POSITION_NETTED: "POSITION_NETTED";
|
|
335
363
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
336
364
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
365
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
337
366
|
}>>;
|
|
338
367
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
368
|
id: z.ZodUUID;
|
|
@@ -346,7 +375,9 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
346
375
|
}>;
|
|
347
376
|
tradeAccountId: z.ZodUUID;
|
|
348
377
|
symbol: z.ZodString;
|
|
349
|
-
|
|
378
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
379
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
380
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
350
381
|
connector: z.ZodEnum<{
|
|
351
382
|
hyperliquid: "hyperliquid";
|
|
352
383
|
binance: "binance";
|
|
@@ -372,6 +403,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
372
403
|
exchangeFillId: z.ZodString;
|
|
373
404
|
quantity: z.ZodString;
|
|
374
405
|
}, z.core.$strip>>;
|
|
406
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
407
|
+
positionId: z.ZodUUID;
|
|
408
|
+
quantity: z.ZodString;
|
|
409
|
+
usd: z.ZodString;
|
|
410
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
411
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$strip>>;
|
|
375
413
|
}, z.core.$strip>>>;
|
|
376
414
|
bracketType: z.ZodEnum<{
|
|
377
415
|
NONE: "NONE";
|
|
@@ -449,6 +487,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
449
487
|
TROUGH: "TROUGH";
|
|
450
488
|
}>;
|
|
451
489
|
threshold: z.ZodNumber;
|
|
490
|
+
onPositionResize: z.ZodEnum<{
|
|
491
|
+
cancel: "cancel";
|
|
492
|
+
keep: "keep";
|
|
493
|
+
}>;
|
|
452
494
|
}, z.core.$strip>;
|
|
453
495
|
}, z.core.$strip>, z.ZodObject<{
|
|
454
496
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -462,6 +504,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
462
504
|
TROUGH: "TROUGH";
|
|
463
505
|
}>;
|
|
464
506
|
threshold: z.ZodNumber;
|
|
507
|
+
onPositionResize: z.ZodEnum<{
|
|
508
|
+
cancel: "cancel";
|
|
509
|
+
keep: "keep";
|
|
510
|
+
}>;
|
|
465
511
|
}, z.core.$strip>;
|
|
466
512
|
}, z.core.$strip>, z.ZodObject<{
|
|
467
513
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -586,12 +632,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
586
632
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
587
633
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
588
634
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
589
|
-
USER: "USER";
|
|
590
635
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
636
|
+
USER: "USER";
|
|
591
637
|
SYSTEM: "SYSTEM";
|
|
592
638
|
POSITION_NETTED: "POSITION_NETTED";
|
|
593
639
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
594
640
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
641
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
595
642
|
}>>;
|
|
596
643
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
597
644
|
id: z.ZodUUID;
|
|
@@ -604,7 +651,9 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
604
651
|
}>;
|
|
605
652
|
tradeAccountId: z.ZodUUID;
|
|
606
653
|
symbol: z.ZodString;
|
|
607
|
-
|
|
654
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
655
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
656
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
608
657
|
connector: z.ZodEnum<{
|
|
609
658
|
hyperliquid: "hyperliquid";
|
|
610
659
|
binance: "binance";
|
|
@@ -630,6 +679,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
630
679
|
exchangeFillId: z.ZodString;
|
|
631
680
|
quantity: z.ZodString;
|
|
632
681
|
}, z.core.$strip>>;
|
|
682
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
683
|
+
positionId: z.ZodUUID;
|
|
684
|
+
quantity: z.ZodString;
|
|
685
|
+
usd: z.ZodString;
|
|
686
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
687
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$strip>>;
|
|
633
689
|
}, z.core.$strip>>>;
|
|
634
690
|
bracketType: z.ZodEnum<{
|
|
635
691
|
NONE: "NONE";
|
|
@@ -707,6 +763,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
707
763
|
TROUGH: "TROUGH";
|
|
708
764
|
}>;
|
|
709
765
|
threshold: z.ZodNumber;
|
|
766
|
+
onPositionResize: z.ZodEnum<{
|
|
767
|
+
cancel: "cancel";
|
|
768
|
+
keep: "keep";
|
|
769
|
+
}>;
|
|
710
770
|
}, z.core.$strip>;
|
|
711
771
|
}, z.core.$strip>, z.ZodObject<{
|
|
712
772
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -720,6 +780,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
720
780
|
TROUGH: "TROUGH";
|
|
721
781
|
}>;
|
|
722
782
|
threshold: z.ZodNumber;
|
|
783
|
+
onPositionResize: z.ZodEnum<{
|
|
784
|
+
cancel: "cancel";
|
|
785
|
+
keep: "keep";
|
|
786
|
+
}>;
|
|
723
787
|
}, z.core.$strip>;
|
|
724
788
|
}, z.core.$strip>, z.ZodObject<{
|
|
725
789
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -776,6 +840,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
776
840
|
mid: "mid";
|
|
777
841
|
mark: "mark";
|
|
778
842
|
}>;
|
|
843
|
+
onPositionResize: z.ZodEnum<{
|
|
844
|
+
cancel: "cancel";
|
|
845
|
+
keep: "keep";
|
|
846
|
+
}>;
|
|
779
847
|
}, z.core.$strip>;
|
|
780
848
|
}, z.core.$strip>, z.ZodObject<{
|
|
781
849
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -784,6 +852,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
784
852
|
mid: "mid";
|
|
785
853
|
mark: "mark";
|
|
786
854
|
}>;
|
|
855
|
+
onPositionResize: z.ZodEnum<{
|
|
856
|
+
cancel: "cancel";
|
|
857
|
+
keep: "keep";
|
|
858
|
+
}>;
|
|
787
859
|
}, z.core.$strip>;
|
|
788
860
|
}, z.core.$strip>, z.ZodObject<{
|
|
789
861
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -836,6 +908,7 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
836
908
|
threshold: z.ZodNumber;
|
|
837
909
|
}, z.core.$strip>;
|
|
838
910
|
}, z.core.$strip>], "type">;
|
|
911
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
839
912
|
context: z.ZodObject<{
|
|
840
913
|
type: z.ZodLiteral<"MARKET">;
|
|
841
914
|
position: z.ZodObject<{
|
|
@@ -876,12 +949,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
876
949
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
877
950
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
878
951
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
879
|
-
USER: "USER";
|
|
880
952
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
953
|
+
USER: "USER";
|
|
881
954
|
SYSTEM: "SYSTEM";
|
|
882
955
|
POSITION_NETTED: "POSITION_NETTED";
|
|
883
956
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
884
957
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
958
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
885
959
|
}>>;
|
|
886
960
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
887
961
|
id: z.ZodUUID;
|
|
@@ -894,7 +968,9 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
894
968
|
}>;
|
|
895
969
|
tradeAccountId: z.ZodUUID;
|
|
896
970
|
symbol: z.ZodString;
|
|
897
|
-
|
|
971
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
972
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
973
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
898
974
|
connector: z.ZodEnum<{
|
|
899
975
|
hyperliquid: "hyperliquid";
|
|
900
976
|
binance: "binance";
|
|
@@ -920,6 +996,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
920
996
|
exchangeFillId: z.ZodString;
|
|
921
997
|
quantity: z.ZodString;
|
|
922
998
|
}, z.core.$strip>>;
|
|
999
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
1000
|
+
positionId: z.ZodUUID;
|
|
1001
|
+
quantity: z.ZodString;
|
|
1002
|
+
usd: z.ZodString;
|
|
1003
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
}, z.core.$strip>>;
|
|
923
1006
|
}, z.core.$strip>>>;
|
|
924
1007
|
bracketType: z.ZodEnum<{
|
|
925
1008
|
NONE: "NONE";
|
|
@@ -998,6 +1081,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
998
1081
|
TROUGH: "TROUGH";
|
|
999
1082
|
}>;
|
|
1000
1083
|
threshold: z.ZodNumber;
|
|
1084
|
+
onPositionResize: z.ZodEnum<{
|
|
1085
|
+
cancel: "cancel";
|
|
1086
|
+
keep: "keep";
|
|
1087
|
+
}>;
|
|
1001
1088
|
}, z.core.$strip>;
|
|
1002
1089
|
}, z.core.$strip>, z.ZodObject<{
|
|
1003
1090
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -1011,6 +1098,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1011
1098
|
TROUGH: "TROUGH";
|
|
1012
1099
|
}>;
|
|
1013
1100
|
threshold: z.ZodNumber;
|
|
1101
|
+
onPositionResize: z.ZodEnum<{
|
|
1102
|
+
cancel: "cancel";
|
|
1103
|
+
keep: "keep";
|
|
1104
|
+
}>;
|
|
1014
1105
|
}, z.core.$strip>;
|
|
1015
1106
|
}, z.core.$strip>, z.ZodObject<{
|
|
1016
1107
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -1132,12 +1223,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1132
1223
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1133
1224
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1134
1225
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1135
|
-
USER: "USER";
|
|
1136
1226
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1227
|
+
USER: "USER";
|
|
1137
1228
|
SYSTEM: "SYSTEM";
|
|
1138
1229
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1139
1230
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1140
1231
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1232
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1141
1233
|
}>>;
|
|
1142
1234
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1143
1235
|
id: z.ZodUUID;
|
|
@@ -1150,7 +1242,9 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1150
1242
|
}>;
|
|
1151
1243
|
tradeAccountId: z.ZodUUID;
|
|
1152
1244
|
symbol: z.ZodString;
|
|
1153
|
-
|
|
1245
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
1246
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1247
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
1154
1248
|
connector: z.ZodEnum<{
|
|
1155
1249
|
hyperliquid: "hyperliquid";
|
|
1156
1250
|
binance: "binance";
|
|
@@ -1176,6 +1270,13 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1176
1270
|
exchangeFillId: z.ZodString;
|
|
1177
1271
|
quantity: z.ZodString;
|
|
1178
1272
|
}, z.core.$strip>>;
|
|
1273
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
1274
|
+
positionId: z.ZodUUID;
|
|
1275
|
+
quantity: z.ZodString;
|
|
1276
|
+
usd: z.ZodString;
|
|
1277
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1278
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1279
|
+
}, z.core.$strip>>;
|
|
1179
1280
|
}, z.core.$strip>>>;
|
|
1180
1281
|
bracketType: z.ZodEnum<{
|
|
1181
1282
|
NONE: "NONE";
|
|
@@ -1254,6 +1355,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1254
1355
|
TROUGH: "TROUGH";
|
|
1255
1356
|
}>;
|
|
1256
1357
|
threshold: z.ZodNumber;
|
|
1358
|
+
onPositionResize: z.ZodEnum<{
|
|
1359
|
+
cancel: "cancel";
|
|
1360
|
+
keep: "keep";
|
|
1361
|
+
}>;
|
|
1257
1362
|
}, z.core.$strip>;
|
|
1258
1363
|
}, z.core.$strip>, z.ZodObject<{
|
|
1259
1364
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -1267,6 +1372,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1267
1372
|
TROUGH: "TROUGH";
|
|
1268
1373
|
}>;
|
|
1269
1374
|
threshold: z.ZodNumber;
|
|
1375
|
+
onPositionResize: z.ZodEnum<{
|
|
1376
|
+
cancel: "cancel";
|
|
1377
|
+
keep: "keep";
|
|
1378
|
+
}>;
|
|
1270
1379
|
}, z.core.$strip>;
|
|
1271
1380
|
}, z.core.$strip>, z.ZodObject<{
|
|
1272
1381
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -1323,6 +1432,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1323
1432
|
mid: "mid";
|
|
1324
1433
|
mark: "mark";
|
|
1325
1434
|
}>;
|
|
1435
|
+
onPositionResize: z.ZodEnum<{
|
|
1436
|
+
cancel: "cancel";
|
|
1437
|
+
keep: "keep";
|
|
1438
|
+
}>;
|
|
1326
1439
|
}, z.core.$strip>;
|
|
1327
1440
|
}, z.core.$strip>, z.ZodObject<{
|
|
1328
1441
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -1331,6 +1444,10 @@ export declare const CreateLadderResponse: z.ZodObject<{
|
|
|
1331
1444
|
mid: "mid";
|
|
1332
1445
|
mark: "mark";
|
|
1333
1446
|
}>;
|
|
1447
|
+
onPositionResize: z.ZodEnum<{
|
|
1448
|
+
cancel: "cancel";
|
|
1449
|
+
keep: "keep";
|
|
1450
|
+
}>;
|
|
1334
1451
|
}, z.core.$strip>;
|
|
1335
1452
|
}, z.core.$strip>, z.ZodObject<{
|
|
1336
1453
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -1433,8 +1550,8 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1433
1550
|
}, z.core.$strip>;
|
|
1434
1551
|
status: z.ZodEnum<{
|
|
1435
1552
|
ACTIVE: "ACTIVE";
|
|
1436
|
-
CANCELLED: "CANCELLED";
|
|
1437
1553
|
COMPLETED: "COMPLETED";
|
|
1554
|
+
CANCELLED: "CANCELLED";
|
|
1438
1555
|
}>;
|
|
1439
1556
|
attachTriggers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1440
1557
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -1443,6 +1560,7 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1443
1560
|
STOP_LOSS: "STOP_LOSS";
|
|
1444
1561
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1445
1562
|
}>;
|
|
1563
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1446
1564
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1447
1565
|
type: z.ZodLiteral<"notional">;
|
|
1448
1566
|
data: z.ZodObject<{
|
|
@@ -1451,8 +1569,12 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1451
1569
|
mark: "mark";
|
|
1452
1570
|
}>;
|
|
1453
1571
|
threshold: z.ZodNumber;
|
|
1454
|
-
|
|
1455
|
-
|
|
1572
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1573
|
+
cancel: "cancel";
|
|
1574
|
+
keep: "keep";
|
|
1575
|
+
}>>;
|
|
1576
|
+
}, z.core.$strict>;
|
|
1577
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1456
1578
|
type: z.ZodLiteral<"upnl">;
|
|
1457
1579
|
data: z.ZodObject<{
|
|
1458
1580
|
priceSource: z.ZodEnum<{
|
|
@@ -1460,8 +1582,12 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1460
1582
|
mark: "mark";
|
|
1461
1583
|
}>;
|
|
1462
1584
|
threshold: z.ZodNumber;
|
|
1463
|
-
|
|
1464
|
-
|
|
1585
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1586
|
+
cancel: "cancel";
|
|
1587
|
+
keep: "keep";
|
|
1588
|
+
}>>;
|
|
1589
|
+
}, z.core.$strict>;
|
|
1590
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1465
1591
|
type: z.ZodLiteral<"upnl_bps">;
|
|
1466
1592
|
data: z.ZodObject<{
|
|
1467
1593
|
priceSource: z.ZodEnum<{
|
|
@@ -1469,11 +1595,12 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1469
1595
|
mark: "mark";
|
|
1470
1596
|
}>;
|
|
1471
1597
|
threshold: z.ZodNumber;
|
|
1472
|
-
}, z.core.$
|
|
1473
|
-
}, z.core.$
|
|
1598
|
+
}, z.core.$strict>;
|
|
1599
|
+
}, z.core.$strict>], "type">;
|
|
1474
1600
|
}, z.core.$strip>, z.ZodObject<{
|
|
1475
1601
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1476
1602
|
type: z.ZodLiteral<"MARKET">;
|
|
1603
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1477
1604
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1478
1605
|
type: z.ZodLiteral<"notional_trailing">;
|
|
1479
1606
|
data: z.ZodObject<{
|
|
@@ -1481,24 +1608,32 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1481
1608
|
mid: "mid";
|
|
1482
1609
|
mark: "mark";
|
|
1483
1610
|
}>;
|
|
1484
|
-
|
|
1485
|
-
|
|
1611
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1612
|
+
cancel: "cancel";
|
|
1613
|
+
keep: "keep";
|
|
1614
|
+
}>>;
|
|
1615
|
+
}, z.core.$strict>;
|
|
1616
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1486
1617
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
1487
1618
|
data: z.ZodObject<{
|
|
1488
1619
|
priceSource: z.ZodEnum<{
|
|
1489
1620
|
mid: "mid";
|
|
1490
1621
|
mark: "mark";
|
|
1491
1622
|
}>;
|
|
1492
|
-
|
|
1493
|
-
|
|
1623
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1624
|
+
cancel: "cancel";
|
|
1625
|
+
keep: "keep";
|
|
1626
|
+
}>>;
|
|
1627
|
+
}, z.core.$strict>;
|
|
1628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1494
1629
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1495
1630
|
data: z.ZodObject<{
|
|
1496
1631
|
priceSource: z.ZodEnum<{
|
|
1497
1632
|
mid: "mid";
|
|
1498
1633
|
mark: "mark";
|
|
1499
1634
|
}>;
|
|
1500
|
-
}, z.core.$
|
|
1501
|
-
}, z.core.$
|
|
1635
|
+
}, z.core.$strict>;
|
|
1636
|
+
}, z.core.$strict>], "type">;
|
|
1502
1637
|
trailing: z.ZodObject<{
|
|
1503
1638
|
mode: z.ZodEnum<{
|
|
1504
1639
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -1530,12 +1665,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1530
1665
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1531
1666
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1532
1667
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1533
|
-
USER: "USER";
|
|
1534
1668
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1669
|
+
USER: "USER";
|
|
1535
1670
|
SYSTEM: "SYSTEM";
|
|
1536
1671
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1537
1672
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1538
1673
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1674
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1539
1675
|
}>>;
|
|
1540
1676
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1541
1677
|
id: z.ZodUUID;
|
|
@@ -1548,7 +1684,9 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1548
1684
|
}>;
|
|
1549
1685
|
tradeAccountId: z.ZodUUID;
|
|
1550
1686
|
symbol: z.ZodString;
|
|
1551
|
-
|
|
1687
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
1688
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1689
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
1552
1690
|
connector: z.ZodEnum<{
|
|
1553
1691
|
hyperliquid: "hyperliquid";
|
|
1554
1692
|
binance: "binance";
|
|
@@ -1574,6 +1712,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1574
1712
|
exchangeFillId: z.ZodString;
|
|
1575
1713
|
quantity: z.ZodString;
|
|
1576
1714
|
}, z.core.$strip>>;
|
|
1715
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
1716
|
+
positionId: z.ZodUUID;
|
|
1717
|
+
quantity: z.ZodString;
|
|
1718
|
+
usd: z.ZodString;
|
|
1719
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1720
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
}, z.core.$strip>>;
|
|
1577
1722
|
}, z.core.$strip>>>;
|
|
1578
1723
|
bracketType: z.ZodEnum<{
|
|
1579
1724
|
NONE: "NONE";
|
|
@@ -1742,12 +1887,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1742
1887
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1743
1888
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1744
1889
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1745
|
-
USER: "USER";
|
|
1746
1890
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1891
|
+
USER: "USER";
|
|
1747
1892
|
SYSTEM: "SYSTEM";
|
|
1748
1893
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1749
1894
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1750
1895
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1896
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1751
1897
|
}>>;
|
|
1752
1898
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1753
1899
|
id: z.ZodUUID;
|
|
@@ -1760,7 +1906,9 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1760
1906
|
}>;
|
|
1761
1907
|
tradeAccountId: z.ZodUUID;
|
|
1762
1908
|
symbol: z.ZodString;
|
|
1763
|
-
|
|
1909
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
1910
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1911
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
1764
1912
|
connector: z.ZodEnum<{
|
|
1765
1913
|
hyperliquid: "hyperliquid";
|
|
1766
1914
|
binance: "binance";
|
|
@@ -1786,6 +1934,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1786
1934
|
exchangeFillId: z.ZodString;
|
|
1787
1935
|
quantity: z.ZodString;
|
|
1788
1936
|
}, z.core.$strip>>;
|
|
1937
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
1938
|
+
positionId: z.ZodUUID;
|
|
1939
|
+
quantity: z.ZodString;
|
|
1940
|
+
usd: z.ZodString;
|
|
1941
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1942
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1943
|
+
}, z.core.$strip>>;
|
|
1789
1944
|
}, z.core.$strip>>>;
|
|
1790
1945
|
bracketType: z.ZodEnum<{
|
|
1791
1946
|
NONE: "NONE";
|
|
@@ -1863,6 +2018,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1863
2018
|
TROUGH: "TROUGH";
|
|
1864
2019
|
}>;
|
|
1865
2020
|
threshold: z.ZodNumber;
|
|
2021
|
+
onPositionResize: z.ZodEnum<{
|
|
2022
|
+
cancel: "cancel";
|
|
2023
|
+
keep: "keep";
|
|
2024
|
+
}>;
|
|
1866
2025
|
}, z.core.$strip>;
|
|
1867
2026
|
}, z.core.$strip>, z.ZodObject<{
|
|
1868
2027
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -1876,6 +2035,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
1876
2035
|
TROUGH: "TROUGH";
|
|
1877
2036
|
}>;
|
|
1878
2037
|
threshold: z.ZodNumber;
|
|
2038
|
+
onPositionResize: z.ZodEnum<{
|
|
2039
|
+
cancel: "cancel";
|
|
2040
|
+
keep: "keep";
|
|
2041
|
+
}>;
|
|
1879
2042
|
}, z.core.$strip>;
|
|
1880
2043
|
}, z.core.$strip>, z.ZodObject<{
|
|
1881
2044
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2000,12 +2163,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2000
2163
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2001
2164
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2002
2165
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2003
|
-
USER: "USER";
|
|
2004
2166
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2167
|
+
USER: "USER";
|
|
2005
2168
|
SYSTEM: "SYSTEM";
|
|
2006
2169
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2007
2170
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2008
2171
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2172
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2009
2173
|
}>>;
|
|
2010
2174
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2011
2175
|
id: z.ZodUUID;
|
|
@@ -2018,7 +2182,9 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2018
2182
|
}>;
|
|
2019
2183
|
tradeAccountId: z.ZodUUID;
|
|
2020
2184
|
symbol: z.ZodString;
|
|
2021
|
-
|
|
2185
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
2186
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
2187
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
2022
2188
|
connector: z.ZodEnum<{
|
|
2023
2189
|
hyperliquid: "hyperliquid";
|
|
2024
2190
|
binance: "binance";
|
|
@@ -2044,6 +2210,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2044
2210
|
exchangeFillId: z.ZodString;
|
|
2045
2211
|
quantity: z.ZodString;
|
|
2046
2212
|
}, z.core.$strip>>;
|
|
2213
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
2214
|
+
positionId: z.ZodUUID;
|
|
2215
|
+
quantity: z.ZodString;
|
|
2216
|
+
usd: z.ZodString;
|
|
2217
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
2219
|
+
}, z.core.$strip>>;
|
|
2047
2220
|
}, z.core.$strip>>>;
|
|
2048
2221
|
bracketType: z.ZodEnum<{
|
|
2049
2222
|
NONE: "NONE";
|
|
@@ -2121,6 +2294,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2121
2294
|
TROUGH: "TROUGH";
|
|
2122
2295
|
}>;
|
|
2123
2296
|
threshold: z.ZodNumber;
|
|
2297
|
+
onPositionResize: z.ZodEnum<{
|
|
2298
|
+
cancel: "cancel";
|
|
2299
|
+
keep: "keep";
|
|
2300
|
+
}>;
|
|
2124
2301
|
}, z.core.$strip>;
|
|
2125
2302
|
}, z.core.$strip>, z.ZodObject<{
|
|
2126
2303
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -2134,6 +2311,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2134
2311
|
TROUGH: "TROUGH";
|
|
2135
2312
|
}>;
|
|
2136
2313
|
threshold: z.ZodNumber;
|
|
2314
|
+
onPositionResize: z.ZodEnum<{
|
|
2315
|
+
cancel: "cancel";
|
|
2316
|
+
keep: "keep";
|
|
2317
|
+
}>;
|
|
2137
2318
|
}, z.core.$strip>;
|
|
2138
2319
|
}, z.core.$strip>, z.ZodObject<{
|
|
2139
2320
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2190,6 +2371,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2190
2371
|
mid: "mid";
|
|
2191
2372
|
mark: "mark";
|
|
2192
2373
|
}>;
|
|
2374
|
+
onPositionResize: z.ZodEnum<{
|
|
2375
|
+
cancel: "cancel";
|
|
2376
|
+
keep: "keep";
|
|
2377
|
+
}>;
|
|
2193
2378
|
}, z.core.$strip>;
|
|
2194
2379
|
}, z.core.$strip>, z.ZodObject<{
|
|
2195
2380
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -2198,6 +2383,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2198
2383
|
mid: "mid";
|
|
2199
2384
|
mark: "mark";
|
|
2200
2385
|
}>;
|
|
2386
|
+
onPositionResize: z.ZodEnum<{
|
|
2387
|
+
cancel: "cancel";
|
|
2388
|
+
keep: "keep";
|
|
2389
|
+
}>;
|
|
2201
2390
|
}, z.core.$strip>;
|
|
2202
2391
|
}, z.core.$strip>, z.ZodObject<{
|
|
2203
2392
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -2250,6 +2439,7 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2250
2439
|
threshold: z.ZodNumber;
|
|
2251
2440
|
}, z.core.$strip>;
|
|
2252
2441
|
}, z.core.$strip>], "type">;
|
|
2442
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
2253
2443
|
context: z.ZodObject<{
|
|
2254
2444
|
type: z.ZodLiteral<"MARKET">;
|
|
2255
2445
|
position: z.ZodObject<{
|
|
@@ -2290,12 +2480,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2290
2480
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2291
2481
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2292
2482
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2293
|
-
USER: "USER";
|
|
2294
2483
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2484
|
+
USER: "USER";
|
|
2295
2485
|
SYSTEM: "SYSTEM";
|
|
2296
2486
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2297
2487
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2298
2488
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2489
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2299
2490
|
}>>;
|
|
2300
2491
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2301
2492
|
id: z.ZodUUID;
|
|
@@ -2308,7 +2499,9 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2308
2499
|
}>;
|
|
2309
2500
|
tradeAccountId: z.ZodUUID;
|
|
2310
2501
|
symbol: z.ZodString;
|
|
2311
|
-
|
|
2502
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
2503
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
2504
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
2312
2505
|
connector: z.ZodEnum<{
|
|
2313
2506
|
hyperliquid: "hyperliquid";
|
|
2314
2507
|
binance: "binance";
|
|
@@ -2334,6 +2527,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2334
2527
|
exchangeFillId: z.ZodString;
|
|
2335
2528
|
quantity: z.ZodString;
|
|
2336
2529
|
}, z.core.$strip>>;
|
|
2530
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
2531
|
+
positionId: z.ZodUUID;
|
|
2532
|
+
quantity: z.ZodString;
|
|
2533
|
+
usd: z.ZodString;
|
|
2534
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
}, z.core.$strip>>;
|
|
2337
2537
|
}, z.core.$strip>>>;
|
|
2338
2538
|
bracketType: z.ZodEnum<{
|
|
2339
2539
|
NONE: "NONE";
|
|
@@ -2412,6 +2612,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2412
2612
|
TROUGH: "TROUGH";
|
|
2413
2613
|
}>;
|
|
2414
2614
|
threshold: z.ZodNumber;
|
|
2615
|
+
onPositionResize: z.ZodEnum<{
|
|
2616
|
+
cancel: "cancel";
|
|
2617
|
+
keep: "keep";
|
|
2618
|
+
}>;
|
|
2415
2619
|
}, z.core.$strip>;
|
|
2416
2620
|
}, z.core.$strip>, z.ZodObject<{
|
|
2417
2621
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -2425,6 +2629,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2425
2629
|
TROUGH: "TROUGH";
|
|
2426
2630
|
}>;
|
|
2427
2631
|
threshold: z.ZodNumber;
|
|
2632
|
+
onPositionResize: z.ZodEnum<{
|
|
2633
|
+
cancel: "cancel";
|
|
2634
|
+
keep: "keep";
|
|
2635
|
+
}>;
|
|
2428
2636
|
}, z.core.$strip>;
|
|
2429
2637
|
}, z.core.$strip>, z.ZodObject<{
|
|
2430
2638
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2546,12 +2754,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2546
2754
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2547
2755
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2548
2756
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2549
|
-
USER: "USER";
|
|
2550
2757
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2758
|
+
USER: "USER";
|
|
2551
2759
|
SYSTEM: "SYSTEM";
|
|
2552
2760
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2553
2761
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2554
2762
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2763
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2555
2764
|
}>>;
|
|
2556
2765
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2557
2766
|
id: z.ZodUUID;
|
|
@@ -2564,7 +2773,9 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2564
2773
|
}>;
|
|
2565
2774
|
tradeAccountId: z.ZodUUID;
|
|
2566
2775
|
symbol: z.ZodString;
|
|
2567
|
-
|
|
2776
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
2777
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
2778
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
2568
2779
|
connector: z.ZodEnum<{
|
|
2569
2780
|
hyperliquid: "hyperliquid";
|
|
2570
2781
|
binance: "binance";
|
|
@@ -2590,6 +2801,13 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2590
2801
|
exchangeFillId: z.ZodString;
|
|
2591
2802
|
quantity: z.ZodString;
|
|
2592
2803
|
}, z.core.$strip>>;
|
|
2804
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
2805
|
+
positionId: z.ZodUUID;
|
|
2806
|
+
quantity: z.ZodString;
|
|
2807
|
+
usd: z.ZodString;
|
|
2808
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
2810
|
+
}, z.core.$strip>>;
|
|
2593
2811
|
}, z.core.$strip>>>;
|
|
2594
2812
|
bracketType: z.ZodEnum<{
|
|
2595
2813
|
NONE: "NONE";
|
|
@@ -2668,6 +2886,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2668
2886
|
TROUGH: "TROUGH";
|
|
2669
2887
|
}>;
|
|
2670
2888
|
threshold: z.ZodNumber;
|
|
2889
|
+
onPositionResize: z.ZodEnum<{
|
|
2890
|
+
cancel: "cancel";
|
|
2891
|
+
keep: "keep";
|
|
2892
|
+
}>;
|
|
2671
2893
|
}, z.core.$strip>;
|
|
2672
2894
|
}, z.core.$strip>, z.ZodObject<{
|
|
2673
2895
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -2681,6 +2903,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2681
2903
|
TROUGH: "TROUGH";
|
|
2682
2904
|
}>;
|
|
2683
2905
|
threshold: z.ZodNumber;
|
|
2906
|
+
onPositionResize: z.ZodEnum<{
|
|
2907
|
+
cancel: "cancel";
|
|
2908
|
+
keep: "keep";
|
|
2909
|
+
}>;
|
|
2684
2910
|
}, z.core.$strip>;
|
|
2685
2911
|
}, z.core.$strip>, z.ZodObject<{
|
|
2686
2912
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2737,6 +2963,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2737
2963
|
mid: "mid";
|
|
2738
2964
|
mark: "mark";
|
|
2739
2965
|
}>;
|
|
2966
|
+
onPositionResize: z.ZodEnum<{
|
|
2967
|
+
cancel: "cancel";
|
|
2968
|
+
keep: "keep";
|
|
2969
|
+
}>;
|
|
2740
2970
|
}, z.core.$strip>;
|
|
2741
2971
|
}, z.core.$strip>, z.ZodObject<{
|
|
2742
2972
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -2745,6 +2975,10 @@ export declare const LadderResponse: z.ZodObject<{
|
|
|
2745
2975
|
mid: "mid";
|
|
2746
2976
|
mark: "mark";
|
|
2747
2977
|
}>;
|
|
2978
|
+
onPositionResize: z.ZodEnum<{
|
|
2979
|
+
cancel: "cancel";
|
|
2980
|
+
keep: "keep";
|
|
2981
|
+
}>;
|
|
2748
2982
|
}, z.core.$strip>;
|
|
2749
2983
|
}, z.core.$strip>, z.ZodObject<{
|
|
2750
2984
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -2849,8 +3083,8 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2849
3083
|
}, z.core.$strip>;
|
|
2850
3084
|
status: z.ZodEnum<{
|
|
2851
3085
|
ACTIVE: "ACTIVE";
|
|
2852
|
-
CANCELLED: "CANCELLED";
|
|
2853
3086
|
COMPLETED: "COMPLETED";
|
|
3087
|
+
CANCELLED: "CANCELLED";
|
|
2854
3088
|
}>;
|
|
2855
3089
|
attachTriggers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2856
3090
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -2859,6 +3093,7 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2859
3093
|
STOP_LOSS: "STOP_LOSS";
|
|
2860
3094
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2861
3095
|
}>;
|
|
3096
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
2862
3097
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2863
3098
|
type: z.ZodLiteral<"notional">;
|
|
2864
3099
|
data: z.ZodObject<{
|
|
@@ -2867,8 +3102,12 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2867
3102
|
mark: "mark";
|
|
2868
3103
|
}>;
|
|
2869
3104
|
threshold: z.ZodNumber;
|
|
2870
|
-
|
|
2871
|
-
|
|
3105
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
3106
|
+
cancel: "cancel";
|
|
3107
|
+
keep: "keep";
|
|
3108
|
+
}>>;
|
|
3109
|
+
}, z.core.$strict>;
|
|
3110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2872
3111
|
type: z.ZodLiteral<"upnl">;
|
|
2873
3112
|
data: z.ZodObject<{
|
|
2874
3113
|
priceSource: z.ZodEnum<{
|
|
@@ -2876,8 +3115,12 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2876
3115
|
mark: "mark";
|
|
2877
3116
|
}>;
|
|
2878
3117
|
threshold: z.ZodNumber;
|
|
2879
|
-
|
|
2880
|
-
|
|
3118
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
3119
|
+
cancel: "cancel";
|
|
3120
|
+
keep: "keep";
|
|
3121
|
+
}>>;
|
|
3122
|
+
}, z.core.$strict>;
|
|
3123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2881
3124
|
type: z.ZodLiteral<"upnl_bps">;
|
|
2882
3125
|
data: z.ZodObject<{
|
|
2883
3126
|
priceSource: z.ZodEnum<{
|
|
@@ -2885,11 +3128,12 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2885
3128
|
mark: "mark";
|
|
2886
3129
|
}>;
|
|
2887
3130
|
threshold: z.ZodNumber;
|
|
2888
|
-
}, z.core.$
|
|
2889
|
-
}, z.core.$
|
|
3131
|
+
}, z.core.$strict>;
|
|
3132
|
+
}, z.core.$strict>], "type">;
|
|
2890
3133
|
}, z.core.$strip>, z.ZodObject<{
|
|
2891
3134
|
intent: z.ZodLiteral<"CLOSE">;
|
|
2892
3135
|
type: z.ZodLiteral<"MARKET">;
|
|
3136
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
2893
3137
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2894
3138
|
type: z.ZodLiteral<"notional_trailing">;
|
|
2895
3139
|
data: z.ZodObject<{
|
|
@@ -2897,24 +3141,32 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2897
3141
|
mid: "mid";
|
|
2898
3142
|
mark: "mark";
|
|
2899
3143
|
}>;
|
|
2900
|
-
|
|
2901
|
-
|
|
3144
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
3145
|
+
cancel: "cancel";
|
|
3146
|
+
keep: "keep";
|
|
3147
|
+
}>>;
|
|
3148
|
+
}, z.core.$strict>;
|
|
3149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2902
3150
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
2903
3151
|
data: z.ZodObject<{
|
|
2904
3152
|
priceSource: z.ZodEnum<{
|
|
2905
3153
|
mid: "mid";
|
|
2906
3154
|
mark: "mark";
|
|
2907
3155
|
}>;
|
|
2908
|
-
|
|
2909
|
-
|
|
3156
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
3157
|
+
cancel: "cancel";
|
|
3158
|
+
keep: "keep";
|
|
3159
|
+
}>>;
|
|
3160
|
+
}, z.core.$strict>;
|
|
3161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2910
3162
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
2911
3163
|
data: z.ZodObject<{
|
|
2912
3164
|
priceSource: z.ZodEnum<{
|
|
2913
3165
|
mid: "mid";
|
|
2914
3166
|
mark: "mark";
|
|
2915
3167
|
}>;
|
|
2916
|
-
}, z.core.$
|
|
2917
|
-
}, z.core.$
|
|
3168
|
+
}, z.core.$strict>;
|
|
3169
|
+
}, z.core.$strict>], "type">;
|
|
2918
3170
|
trailing: z.ZodObject<{
|
|
2919
3171
|
mode: z.ZodEnum<{
|
|
2920
3172
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -2946,12 +3198,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2946
3198
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2947
3199
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2948
3200
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2949
|
-
USER: "USER";
|
|
2950
3201
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3202
|
+
USER: "USER";
|
|
2951
3203
|
SYSTEM: "SYSTEM";
|
|
2952
3204
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2953
3205
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2954
3206
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3207
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2955
3208
|
}>>;
|
|
2956
3209
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2957
3210
|
id: z.ZodUUID;
|
|
@@ -2964,7 +3217,9 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2964
3217
|
}>;
|
|
2965
3218
|
tradeAccountId: z.ZodUUID;
|
|
2966
3219
|
symbol: z.ZodString;
|
|
2967
|
-
|
|
3220
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
3221
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
3222
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
2968
3223
|
connector: z.ZodEnum<{
|
|
2969
3224
|
hyperliquid: "hyperliquid";
|
|
2970
3225
|
binance: "binance";
|
|
@@ -2990,6 +3245,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
2990
3245
|
exchangeFillId: z.ZodString;
|
|
2991
3246
|
quantity: z.ZodString;
|
|
2992
3247
|
}, z.core.$strip>>;
|
|
3248
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
3249
|
+
positionId: z.ZodUUID;
|
|
3250
|
+
quantity: z.ZodString;
|
|
3251
|
+
usd: z.ZodString;
|
|
3252
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
3253
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
3254
|
+
}, z.core.$strip>>;
|
|
2993
3255
|
}, z.core.$strip>>>;
|
|
2994
3256
|
bracketType: z.ZodEnum<{
|
|
2995
3257
|
NONE: "NONE";
|
|
@@ -3158,12 +3420,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3158
3420
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3159
3421
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3160
3422
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3161
|
-
USER: "USER";
|
|
3162
3423
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3424
|
+
USER: "USER";
|
|
3163
3425
|
SYSTEM: "SYSTEM";
|
|
3164
3426
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3165
3427
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3166
3428
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3429
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3167
3430
|
}>>;
|
|
3168
3431
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3169
3432
|
id: z.ZodUUID;
|
|
@@ -3176,7 +3439,9 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3176
3439
|
}>;
|
|
3177
3440
|
tradeAccountId: z.ZodUUID;
|
|
3178
3441
|
symbol: z.ZodString;
|
|
3179
|
-
|
|
3442
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
3443
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
3444
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
3180
3445
|
connector: z.ZodEnum<{
|
|
3181
3446
|
hyperliquid: "hyperliquid";
|
|
3182
3447
|
binance: "binance";
|
|
@@ -3202,6 +3467,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3202
3467
|
exchangeFillId: z.ZodString;
|
|
3203
3468
|
quantity: z.ZodString;
|
|
3204
3469
|
}, z.core.$strip>>;
|
|
3470
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
3471
|
+
positionId: z.ZodUUID;
|
|
3472
|
+
quantity: z.ZodString;
|
|
3473
|
+
usd: z.ZodString;
|
|
3474
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
3475
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
3476
|
+
}, z.core.$strip>>;
|
|
3205
3477
|
}, z.core.$strip>>>;
|
|
3206
3478
|
bracketType: z.ZodEnum<{
|
|
3207
3479
|
NONE: "NONE";
|
|
@@ -3279,6 +3551,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3279
3551
|
TROUGH: "TROUGH";
|
|
3280
3552
|
}>;
|
|
3281
3553
|
threshold: z.ZodNumber;
|
|
3554
|
+
onPositionResize: z.ZodEnum<{
|
|
3555
|
+
cancel: "cancel";
|
|
3556
|
+
keep: "keep";
|
|
3557
|
+
}>;
|
|
3282
3558
|
}, z.core.$strip>;
|
|
3283
3559
|
}, z.core.$strip>, z.ZodObject<{
|
|
3284
3560
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -3292,6 +3568,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3292
3568
|
TROUGH: "TROUGH";
|
|
3293
3569
|
}>;
|
|
3294
3570
|
threshold: z.ZodNumber;
|
|
3571
|
+
onPositionResize: z.ZodEnum<{
|
|
3572
|
+
cancel: "cancel";
|
|
3573
|
+
keep: "keep";
|
|
3574
|
+
}>;
|
|
3295
3575
|
}, z.core.$strip>;
|
|
3296
3576
|
}, z.core.$strip>, z.ZodObject<{
|
|
3297
3577
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3416,12 +3696,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3416
3696
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3417
3697
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3418
3698
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3419
|
-
USER: "USER";
|
|
3420
3699
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3700
|
+
USER: "USER";
|
|
3421
3701
|
SYSTEM: "SYSTEM";
|
|
3422
3702
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3423
3703
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3424
3704
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3705
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3425
3706
|
}>>;
|
|
3426
3707
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3427
3708
|
id: z.ZodUUID;
|
|
@@ -3434,7 +3715,9 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3434
3715
|
}>;
|
|
3435
3716
|
tradeAccountId: z.ZodUUID;
|
|
3436
3717
|
symbol: z.ZodString;
|
|
3437
|
-
|
|
3718
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
3719
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
3720
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
3438
3721
|
connector: z.ZodEnum<{
|
|
3439
3722
|
hyperliquid: "hyperliquid";
|
|
3440
3723
|
binance: "binance";
|
|
@@ -3460,6 +3743,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3460
3743
|
exchangeFillId: z.ZodString;
|
|
3461
3744
|
quantity: z.ZodString;
|
|
3462
3745
|
}, z.core.$strip>>;
|
|
3746
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
3747
|
+
positionId: z.ZodUUID;
|
|
3748
|
+
quantity: z.ZodString;
|
|
3749
|
+
usd: z.ZodString;
|
|
3750
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
3751
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
3752
|
+
}, z.core.$strip>>;
|
|
3463
3753
|
}, z.core.$strip>>>;
|
|
3464
3754
|
bracketType: z.ZodEnum<{
|
|
3465
3755
|
NONE: "NONE";
|
|
@@ -3537,6 +3827,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3537
3827
|
TROUGH: "TROUGH";
|
|
3538
3828
|
}>;
|
|
3539
3829
|
threshold: z.ZodNumber;
|
|
3830
|
+
onPositionResize: z.ZodEnum<{
|
|
3831
|
+
cancel: "cancel";
|
|
3832
|
+
keep: "keep";
|
|
3833
|
+
}>;
|
|
3540
3834
|
}, z.core.$strip>;
|
|
3541
3835
|
}, z.core.$strip>, z.ZodObject<{
|
|
3542
3836
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -3550,6 +3844,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3550
3844
|
TROUGH: "TROUGH";
|
|
3551
3845
|
}>;
|
|
3552
3846
|
threshold: z.ZodNumber;
|
|
3847
|
+
onPositionResize: z.ZodEnum<{
|
|
3848
|
+
cancel: "cancel";
|
|
3849
|
+
keep: "keep";
|
|
3850
|
+
}>;
|
|
3553
3851
|
}, z.core.$strip>;
|
|
3554
3852
|
}, z.core.$strip>, z.ZodObject<{
|
|
3555
3853
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3606,6 +3904,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3606
3904
|
mid: "mid";
|
|
3607
3905
|
mark: "mark";
|
|
3608
3906
|
}>;
|
|
3907
|
+
onPositionResize: z.ZodEnum<{
|
|
3908
|
+
cancel: "cancel";
|
|
3909
|
+
keep: "keep";
|
|
3910
|
+
}>;
|
|
3609
3911
|
}, z.core.$strip>;
|
|
3610
3912
|
}, z.core.$strip>, z.ZodObject<{
|
|
3611
3913
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -3614,6 +3916,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3614
3916
|
mid: "mid";
|
|
3615
3917
|
mark: "mark";
|
|
3616
3918
|
}>;
|
|
3919
|
+
onPositionResize: z.ZodEnum<{
|
|
3920
|
+
cancel: "cancel";
|
|
3921
|
+
keep: "keep";
|
|
3922
|
+
}>;
|
|
3617
3923
|
}, z.core.$strip>;
|
|
3618
3924
|
}, z.core.$strip>, z.ZodObject<{
|
|
3619
3925
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -3666,6 +3972,7 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3666
3972
|
threshold: z.ZodNumber;
|
|
3667
3973
|
}, z.core.$strip>;
|
|
3668
3974
|
}, z.core.$strip>], "type">;
|
|
3975
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
3669
3976
|
context: z.ZodObject<{
|
|
3670
3977
|
type: z.ZodLiteral<"MARKET">;
|
|
3671
3978
|
position: z.ZodObject<{
|
|
@@ -3706,12 +4013,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3706
4013
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3707
4014
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3708
4015
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3709
|
-
USER: "USER";
|
|
3710
4016
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4017
|
+
USER: "USER";
|
|
3711
4018
|
SYSTEM: "SYSTEM";
|
|
3712
4019
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3713
4020
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3714
4021
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4022
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3715
4023
|
}>>;
|
|
3716
4024
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3717
4025
|
id: z.ZodUUID;
|
|
@@ -3724,7 +4032,9 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3724
4032
|
}>;
|
|
3725
4033
|
tradeAccountId: z.ZodUUID;
|
|
3726
4034
|
symbol: z.ZodString;
|
|
3727
|
-
|
|
4035
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
4036
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
4037
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
3728
4038
|
connector: z.ZodEnum<{
|
|
3729
4039
|
hyperliquid: "hyperliquid";
|
|
3730
4040
|
binance: "binance";
|
|
@@ -3750,6 +4060,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3750
4060
|
exchangeFillId: z.ZodString;
|
|
3751
4061
|
quantity: z.ZodString;
|
|
3752
4062
|
}, z.core.$strip>>;
|
|
4063
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
4064
|
+
positionId: z.ZodUUID;
|
|
4065
|
+
quantity: z.ZodString;
|
|
4066
|
+
usd: z.ZodString;
|
|
4067
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
4068
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
4069
|
+
}, z.core.$strip>>;
|
|
3753
4070
|
}, z.core.$strip>>>;
|
|
3754
4071
|
bracketType: z.ZodEnum<{
|
|
3755
4072
|
NONE: "NONE";
|
|
@@ -3828,6 +4145,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3828
4145
|
TROUGH: "TROUGH";
|
|
3829
4146
|
}>;
|
|
3830
4147
|
threshold: z.ZodNumber;
|
|
4148
|
+
onPositionResize: z.ZodEnum<{
|
|
4149
|
+
cancel: "cancel";
|
|
4150
|
+
keep: "keep";
|
|
4151
|
+
}>;
|
|
3831
4152
|
}, z.core.$strip>;
|
|
3832
4153
|
}, z.core.$strip>, z.ZodObject<{
|
|
3833
4154
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -3841,6 +4162,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3841
4162
|
TROUGH: "TROUGH";
|
|
3842
4163
|
}>;
|
|
3843
4164
|
threshold: z.ZodNumber;
|
|
4165
|
+
onPositionResize: z.ZodEnum<{
|
|
4166
|
+
cancel: "cancel";
|
|
4167
|
+
keep: "keep";
|
|
4168
|
+
}>;
|
|
3844
4169
|
}, z.core.$strip>;
|
|
3845
4170
|
}, z.core.$strip>, z.ZodObject<{
|
|
3846
4171
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3962,12 +4287,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3962
4287
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3963
4288
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3964
4289
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3965
|
-
USER: "USER";
|
|
3966
4290
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4291
|
+
USER: "USER";
|
|
3967
4292
|
SYSTEM: "SYSTEM";
|
|
3968
4293
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3969
4294
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3970
4295
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4296
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3971
4297
|
}>>;
|
|
3972
4298
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3973
4299
|
id: z.ZodUUID;
|
|
@@ -3980,7 +4306,9 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
3980
4306
|
}>;
|
|
3981
4307
|
tradeAccountId: z.ZodUUID;
|
|
3982
4308
|
symbol: z.ZodString;
|
|
3983
|
-
|
|
4309
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
4310
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
4311
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
3984
4312
|
connector: z.ZodEnum<{
|
|
3985
4313
|
hyperliquid: "hyperliquid";
|
|
3986
4314
|
binance: "binance";
|
|
@@ -4006,6 +4334,13 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
4006
4334
|
exchangeFillId: z.ZodString;
|
|
4007
4335
|
quantity: z.ZodString;
|
|
4008
4336
|
}, z.core.$strip>>;
|
|
4337
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
4338
|
+
positionId: z.ZodUUID;
|
|
4339
|
+
quantity: z.ZodString;
|
|
4340
|
+
usd: z.ZodString;
|
|
4341
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
4342
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
4343
|
+
}, z.core.$strip>>;
|
|
4009
4344
|
}, z.core.$strip>>>;
|
|
4010
4345
|
bracketType: z.ZodEnum<{
|
|
4011
4346
|
NONE: "NONE";
|
|
@@ -4084,6 +4419,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
4084
4419
|
TROUGH: "TROUGH";
|
|
4085
4420
|
}>;
|
|
4086
4421
|
threshold: z.ZodNumber;
|
|
4422
|
+
onPositionResize: z.ZodEnum<{
|
|
4423
|
+
cancel: "cancel";
|
|
4424
|
+
keep: "keep";
|
|
4425
|
+
}>;
|
|
4087
4426
|
}, z.core.$strip>;
|
|
4088
4427
|
}, z.core.$strip>, z.ZodObject<{
|
|
4089
4428
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -4097,6 +4436,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
4097
4436
|
TROUGH: "TROUGH";
|
|
4098
4437
|
}>;
|
|
4099
4438
|
threshold: z.ZodNumber;
|
|
4439
|
+
onPositionResize: z.ZodEnum<{
|
|
4440
|
+
cancel: "cancel";
|
|
4441
|
+
keep: "keep";
|
|
4442
|
+
}>;
|
|
4100
4443
|
}, z.core.$strip>;
|
|
4101
4444
|
}, z.core.$strip>, z.ZodObject<{
|
|
4102
4445
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -4153,6 +4496,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
4153
4496
|
mid: "mid";
|
|
4154
4497
|
mark: "mark";
|
|
4155
4498
|
}>;
|
|
4499
|
+
onPositionResize: z.ZodEnum<{
|
|
4500
|
+
cancel: "cancel";
|
|
4501
|
+
keep: "keep";
|
|
4502
|
+
}>;
|
|
4156
4503
|
}, z.core.$strip>;
|
|
4157
4504
|
}, z.core.$strip>, z.ZodObject<{
|
|
4158
4505
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -4161,6 +4508,10 @@ export declare const LadderListResponse: z.ZodObject<{
|
|
|
4161
4508
|
mid: "mid";
|
|
4162
4509
|
mark: "mark";
|
|
4163
4510
|
}>;
|
|
4511
|
+
onPositionResize: z.ZodEnum<{
|
|
4512
|
+
cancel: "cancel";
|
|
4513
|
+
keep: "keep";
|
|
4514
|
+
}>;
|
|
4164
4515
|
}, z.core.$strip>;
|
|
4165
4516
|
}, z.core.$strip>, z.ZodObject<{
|
|
4166
4517
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|