@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
package/dist/traders/public.d.ts
CHANGED
|
@@ -84,12 +84,12 @@ export declare const PublicClosedPosition: z.ZodObject<{
|
|
|
84
84
|
lighter: "lighter";
|
|
85
85
|
lighter_rhc: "lighter_rhc";
|
|
86
86
|
}>;
|
|
87
|
-
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
88
87
|
positionId: z.ZodUUID;
|
|
88
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
89
89
|
closedReason: z.ZodOptional<z.ZodEnum<{
|
|
90
|
-
NETTED: "NETTED";
|
|
91
90
|
USER: "USER";
|
|
92
91
|
LIQUIDATED: "LIQUIDATED";
|
|
92
|
+
NETTED: "NETTED";
|
|
93
93
|
}>>;
|
|
94
94
|
closedAt: z.ZodString;
|
|
95
95
|
grossPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
@@ -123,12 +123,12 @@ export declare const PublicTraderClosedPositionsResponse: z.ZodObject<{
|
|
|
123
123
|
lighter: "lighter";
|
|
124
124
|
lighter_rhc: "lighter_rhc";
|
|
125
125
|
}>;
|
|
126
|
-
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
127
126
|
positionId: z.ZodUUID;
|
|
127
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
128
128
|
closedReason: z.ZodOptional<z.ZodEnum<{
|
|
129
|
-
NETTED: "NETTED";
|
|
130
129
|
USER: "USER";
|
|
131
130
|
LIQUIDATED: "LIQUIDATED";
|
|
131
|
+
NETTED: "NETTED";
|
|
132
132
|
}>>;
|
|
133
133
|
closedAt: z.ZodString;
|
|
134
134
|
grossPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
@@ -167,13 +167,23 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
167
167
|
lighter_rhc: "lighter_rhc";
|
|
168
168
|
}>;
|
|
169
169
|
updatedAt: z.ZodString;
|
|
170
|
+
intent: z.ZodLiteral<"OPEN">;
|
|
171
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
172
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
173
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
174
|
+
USER: "USER";
|
|
175
|
+
SYSTEM: "SYSTEM";
|
|
176
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
177
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
178
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
179
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
180
|
+
}>>;
|
|
170
181
|
bracketType: z.ZodEnum<{
|
|
171
182
|
NONE: "NONE";
|
|
172
183
|
STOP_LOSS: "STOP_LOSS";
|
|
173
184
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
174
185
|
}>;
|
|
175
186
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
176
|
-
intent: z.ZodLiteral<"OPEN">;
|
|
177
187
|
semanticBracketType: z.ZodEnum<{
|
|
178
188
|
NONE: "NONE";
|
|
179
189
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -182,15 +192,6 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
182
192
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
183
193
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
184
194
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
185
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
186
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
187
|
-
USER: "USER";
|
|
188
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
189
|
-
SYSTEM: "SYSTEM";
|
|
190
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
191
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
192
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
193
|
-
}>>;
|
|
194
195
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
195
196
|
type: z.ZodLiteral<"ratio">;
|
|
196
197
|
data: z.ZodObject<{
|
|
@@ -340,13 +341,23 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
340
341
|
lighter_rhc: "lighter_rhc";
|
|
341
342
|
}>;
|
|
342
343
|
updatedAt: z.ZodString;
|
|
344
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
345
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
346
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
348
|
+
USER: "USER";
|
|
349
|
+
SYSTEM: "SYSTEM";
|
|
350
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
351
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
352
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
353
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
354
|
+
}>>;
|
|
343
355
|
bracketType: z.ZodEnum<{
|
|
344
356
|
NONE: "NONE";
|
|
345
357
|
STOP_LOSS: "STOP_LOSS";
|
|
346
358
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
347
359
|
}>;
|
|
348
360
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
349
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
350
361
|
semanticBracketType: z.ZodEnum<{
|
|
351
362
|
NONE: "NONE";
|
|
352
363
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -355,15 +366,6 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
355
366
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
356
367
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
357
368
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
358
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
359
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
360
|
-
USER: "USER";
|
|
361
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
362
|
-
SYSTEM: "SYSTEM";
|
|
363
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
364
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
365
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
366
|
-
}>>;
|
|
367
369
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
368
370
|
type: z.ZodLiteral<"ratio">;
|
|
369
371
|
data: z.ZodObject<{
|
|
@@ -426,6 +428,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
426
428
|
TROUGH: "TROUGH";
|
|
427
429
|
}>;
|
|
428
430
|
threshold: z.ZodNumber;
|
|
431
|
+
onPositionResize: z.ZodEnum<{
|
|
432
|
+
cancel: "cancel";
|
|
433
|
+
keep: "keep";
|
|
434
|
+
}>;
|
|
429
435
|
}, z.core.$strip>;
|
|
430
436
|
}, z.core.$strip>, z.ZodObject<{
|
|
431
437
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -439,6 +445,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
439
445
|
TROUGH: "TROUGH";
|
|
440
446
|
}>;
|
|
441
447
|
threshold: z.ZodNumber;
|
|
448
|
+
onPositionResize: z.ZodEnum<{
|
|
449
|
+
cancel: "cancel";
|
|
450
|
+
keep: "keep";
|
|
451
|
+
}>;
|
|
442
452
|
}, z.core.$strip>;
|
|
443
453
|
}, z.core.$strip>, z.ZodObject<{
|
|
444
454
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -559,13 +569,23 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
559
569
|
lighter_rhc: "lighter_rhc";
|
|
560
570
|
}>;
|
|
561
571
|
updatedAt: z.ZodString;
|
|
572
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
573
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
574
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
575
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
576
|
+
USER: "USER";
|
|
577
|
+
SYSTEM: "SYSTEM";
|
|
578
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
579
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
580
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
581
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
582
|
+
}>>;
|
|
562
583
|
bracketType: z.ZodEnum<{
|
|
563
584
|
NONE: "NONE";
|
|
564
585
|
STOP_LOSS: "STOP_LOSS";
|
|
565
586
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
566
587
|
}>;
|
|
567
588
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
568
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
569
589
|
semanticBracketType: z.ZodEnum<{
|
|
570
590
|
NONE: "NONE";
|
|
571
591
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -574,15 +594,6 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
574
594
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
575
595
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
576
596
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
577
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
578
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
579
|
-
USER: "USER";
|
|
580
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
581
|
-
SYSTEM: "SYSTEM";
|
|
582
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
583
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
584
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
585
|
-
}>>;
|
|
586
597
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
587
598
|
type: z.ZodLiteral<"ratio">;
|
|
588
599
|
data: z.ZodObject<{
|
|
@@ -645,6 +656,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
645
656
|
TROUGH: "TROUGH";
|
|
646
657
|
}>;
|
|
647
658
|
threshold: z.ZodNumber;
|
|
659
|
+
onPositionResize: z.ZodEnum<{
|
|
660
|
+
cancel: "cancel";
|
|
661
|
+
keep: "keep";
|
|
662
|
+
}>;
|
|
648
663
|
}, z.core.$strip>;
|
|
649
664
|
}, z.core.$strip>, z.ZodObject<{
|
|
650
665
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -658,6 +673,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
658
673
|
TROUGH: "TROUGH";
|
|
659
674
|
}>;
|
|
660
675
|
threshold: z.ZodNumber;
|
|
676
|
+
onPositionResize: z.ZodEnum<{
|
|
677
|
+
cancel: "cancel";
|
|
678
|
+
keep: "keep";
|
|
679
|
+
}>;
|
|
661
680
|
}, z.core.$strip>;
|
|
662
681
|
}, z.core.$strip>, z.ZodObject<{
|
|
663
682
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -714,6 +733,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
714
733
|
mid: "mid";
|
|
715
734
|
mark: "mark";
|
|
716
735
|
}>;
|
|
736
|
+
onPositionResize: z.ZodEnum<{
|
|
737
|
+
cancel: "cancel";
|
|
738
|
+
keep: "keep";
|
|
739
|
+
}>;
|
|
717
740
|
}, z.core.$strip>;
|
|
718
741
|
}, z.core.$strip>, z.ZodObject<{
|
|
719
742
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -722,6 +745,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
722
745
|
mid: "mid";
|
|
723
746
|
mark: "mark";
|
|
724
747
|
}>;
|
|
748
|
+
onPositionResize: z.ZodEnum<{
|
|
749
|
+
cancel: "cancel";
|
|
750
|
+
keep: "keep";
|
|
751
|
+
}>;
|
|
725
752
|
}, z.core.$strip>;
|
|
726
753
|
}, z.core.$strip>, z.ZodObject<{
|
|
727
754
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -811,13 +838,23 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
811
838
|
}>;
|
|
812
839
|
updatedAt: z.ZodString;
|
|
813
840
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
841
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
842
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
843
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
844
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
845
|
+
USER: "USER";
|
|
846
|
+
SYSTEM: "SYSTEM";
|
|
847
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
848
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
849
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
850
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
851
|
+
}>>;
|
|
814
852
|
bracketType: z.ZodEnum<{
|
|
815
853
|
NONE: "NONE";
|
|
816
854
|
STOP_LOSS: "STOP_LOSS";
|
|
817
855
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
818
856
|
}>;
|
|
819
857
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
820
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
821
858
|
semanticBracketType: z.ZodEnum<{
|
|
822
859
|
NONE: "NONE";
|
|
823
860
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -826,15 +863,6 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
826
863
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
827
864
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
828
865
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
829
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
830
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
831
|
-
USER: "USER";
|
|
832
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
833
|
-
SYSTEM: "SYSTEM";
|
|
834
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
835
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
836
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
837
|
-
}>>;
|
|
838
866
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
839
867
|
type: z.ZodLiteral<"ratio">;
|
|
840
868
|
data: z.ZodObject<{
|
|
@@ -897,6 +925,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
897
925
|
TROUGH: "TROUGH";
|
|
898
926
|
}>;
|
|
899
927
|
threshold: z.ZodNumber;
|
|
928
|
+
onPositionResize: z.ZodEnum<{
|
|
929
|
+
cancel: "cancel";
|
|
930
|
+
keep: "keep";
|
|
931
|
+
}>;
|
|
900
932
|
}, z.core.$strip>;
|
|
901
933
|
}, z.core.$strip>, z.ZodObject<{
|
|
902
934
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -910,6 +942,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
910
942
|
TROUGH: "TROUGH";
|
|
911
943
|
}>;
|
|
912
944
|
threshold: z.ZodNumber;
|
|
945
|
+
onPositionResize: z.ZodEnum<{
|
|
946
|
+
cancel: "cancel";
|
|
947
|
+
keep: "keep";
|
|
948
|
+
}>;
|
|
913
949
|
}, z.core.$strip>;
|
|
914
950
|
}, z.core.$strip>, z.ZodObject<{
|
|
915
951
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -1028,13 +1064,23 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
1028
1064
|
}>;
|
|
1029
1065
|
updatedAt: z.ZodString;
|
|
1030
1066
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1067
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
1068
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1070
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1071
|
+
USER: "USER";
|
|
1072
|
+
SYSTEM: "SYSTEM";
|
|
1073
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1074
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1075
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1076
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1077
|
+
}>>;
|
|
1031
1078
|
bracketType: z.ZodEnum<{
|
|
1032
1079
|
NONE: "NONE";
|
|
1033
1080
|
STOP_LOSS: "STOP_LOSS";
|
|
1034
1081
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1035
1082
|
}>;
|
|
1036
1083
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1037
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
1038
1084
|
semanticBracketType: z.ZodEnum<{
|
|
1039
1085
|
NONE: "NONE";
|
|
1040
1086
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -1043,15 +1089,6 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
1043
1089
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1044
1090
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1045
1091
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1046
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1047
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1048
|
-
USER: "USER";
|
|
1049
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1050
|
-
SYSTEM: "SYSTEM";
|
|
1051
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
1052
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1053
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1054
|
-
}>>;
|
|
1055
1092
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1056
1093
|
type: z.ZodLiteral<"ratio">;
|
|
1057
1094
|
data: z.ZodObject<{
|
|
@@ -1114,6 +1151,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
1114
1151
|
TROUGH: "TROUGH";
|
|
1115
1152
|
}>;
|
|
1116
1153
|
threshold: z.ZodNumber;
|
|
1154
|
+
onPositionResize: z.ZodEnum<{
|
|
1155
|
+
cancel: "cancel";
|
|
1156
|
+
keep: "keep";
|
|
1157
|
+
}>;
|
|
1117
1158
|
}, z.core.$strip>;
|
|
1118
1159
|
}, z.core.$strip>, z.ZodObject<{
|
|
1119
1160
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -1127,6 +1168,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
1127
1168
|
TROUGH: "TROUGH";
|
|
1128
1169
|
}>;
|
|
1129
1170
|
threshold: z.ZodNumber;
|
|
1171
|
+
onPositionResize: z.ZodEnum<{
|
|
1172
|
+
cancel: "cancel";
|
|
1173
|
+
keep: "keep";
|
|
1174
|
+
}>;
|
|
1130
1175
|
}, z.core.$strip>;
|
|
1131
1176
|
}, z.core.$strip>, z.ZodObject<{
|
|
1132
1177
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -1183,6 +1228,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
1183
1228
|
mid: "mid";
|
|
1184
1229
|
mark: "mark";
|
|
1185
1230
|
}>;
|
|
1231
|
+
onPositionResize: z.ZodEnum<{
|
|
1232
|
+
cancel: "cancel";
|
|
1233
|
+
keep: "keep";
|
|
1234
|
+
}>;
|
|
1186
1235
|
}, z.core.$strip>;
|
|
1187
1236
|
}, z.core.$strip>, z.ZodObject<{
|
|
1188
1237
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -1191,6 +1240,10 @@ export declare const PublicTrigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
1191
1240
|
mid: "mid";
|
|
1192
1241
|
mark: "mark";
|
|
1193
1242
|
}>;
|
|
1243
|
+
onPositionResize: z.ZodEnum<{
|
|
1244
|
+
cancel: "cancel";
|
|
1245
|
+
keep: "keep";
|
|
1246
|
+
}>;
|
|
1194
1247
|
}, z.core.$strip>;
|
|
1195
1248
|
}, z.core.$strip>, z.ZodObject<{
|
|
1196
1249
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -1273,10 +1326,10 @@ export declare const PublicSchedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1273
1326
|
id: z.ZodUUID;
|
|
1274
1327
|
createdAt: z.ZodString;
|
|
1275
1328
|
status: z.ZodEnum<{
|
|
1276
|
-
FAILED: "FAILED";
|
|
1277
1329
|
ACTIVE: "ACTIVE";
|
|
1278
|
-
CANCELLED: "CANCELLED";
|
|
1279
1330
|
COMPLETED: "COMPLETED";
|
|
1331
|
+
FAILED: "FAILED";
|
|
1332
|
+
CANCELLED: "CANCELLED";
|
|
1280
1333
|
}>;
|
|
1281
1334
|
connector: z.ZodEnum<{
|
|
1282
1335
|
hyperliquid: "hyperliquid";
|
|
@@ -1296,40 +1349,41 @@ export declare const PublicSchedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1296
1349
|
weight: z.ZodNumber;
|
|
1297
1350
|
}, z.core.$strip>>;
|
|
1298
1351
|
updatedAt: z.ZodString;
|
|
1299
|
-
|
|
1352
|
+
strategy: z.ZodLiteral<"TWAP">;
|
|
1300
1353
|
intent: z.ZodLiteral<"OPEN">;
|
|
1354
|
+
executionType: z.ZodEnum<{
|
|
1355
|
+
MARKET: "MARKET";
|
|
1356
|
+
}>;
|
|
1357
|
+
positionKey: z.ZodString;
|
|
1358
|
+
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
startAt: z.ZodString;
|
|
1360
|
+
endAt: z.ZodString;
|
|
1301
1361
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1302
1362
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1303
|
-
USER: "USER";
|
|
1304
1363
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1364
|
+
USER: "USER";
|
|
1305
1365
|
SYSTEM: "SYSTEM";
|
|
1306
1366
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1307
1367
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1308
1368
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1309
1369
|
}>>;
|
|
1370
|
+
failedAt: z.ZodOptional<z.ZodString>;
|
|
1310
1371
|
sliceIntervalSec: z.ZodNumber;
|
|
1372
|
+
sliceCount: z.ZodNumber;
|
|
1311
1373
|
randomization: z.ZodObject<{
|
|
1312
1374
|
timingJitterBps: z.ZodInt;
|
|
1313
1375
|
sizeJitterBps: z.ZodInt;
|
|
1314
1376
|
}, z.core.$strip>;
|
|
1315
1377
|
targetNotional: z.ZodString;
|
|
1316
|
-
strategy: z.ZodLiteral<"TWAP">;
|
|
1317
|
-
executionType: z.ZodEnum<{
|
|
1318
|
-
MARKET: "MARKET";
|
|
1319
|
-
}>;
|
|
1320
|
-
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
1321
|
-
startAt: z.ZodString;
|
|
1322
|
-
endAt: z.ZodString;
|
|
1323
|
-
sliceCount: z.ZodNumber;
|
|
1324
1378
|
remainingNotional: z.ZodString;
|
|
1325
1379
|
}, z.core.$strip>, z.ZodObject<{
|
|
1326
1380
|
id: z.ZodUUID;
|
|
1327
1381
|
createdAt: z.ZodString;
|
|
1328
1382
|
status: z.ZodEnum<{
|
|
1329
|
-
FAILED: "FAILED";
|
|
1330
1383
|
ACTIVE: "ACTIVE";
|
|
1331
|
-
CANCELLED: "CANCELLED";
|
|
1332
1384
|
COMPLETED: "COMPLETED";
|
|
1385
|
+
FAILED: "FAILED";
|
|
1386
|
+
CANCELLED: "CANCELLED";
|
|
1333
1387
|
}>;
|
|
1334
1388
|
connector: z.ZodEnum<{
|
|
1335
1389
|
hyperliquid: "hyperliquid";
|
|
@@ -1341,31 +1395,32 @@ export declare const PublicSchedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1341
1395
|
}>;
|
|
1342
1396
|
updatedAt: z.ZodString;
|
|
1343
1397
|
positionId: z.ZodUUID;
|
|
1344
|
-
|
|
1398
|
+
strategy: z.ZodLiteral<"TWAP">;
|
|
1345
1399
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1400
|
+
executionType: z.ZodEnum<{
|
|
1401
|
+
MARKET: "MARKET";
|
|
1402
|
+
}>;
|
|
1403
|
+
positionKey: z.ZodString;
|
|
1404
|
+
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
startAt: z.ZodString;
|
|
1406
|
+
endAt: z.ZodString;
|
|
1346
1407
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1347
1408
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1348
|
-
USER: "USER";
|
|
1349
1409
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1410
|
+
USER: "USER";
|
|
1350
1411
|
SYSTEM: "SYSTEM";
|
|
1351
1412
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1352
1413
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1353
1414
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1354
1415
|
}>>;
|
|
1355
|
-
|
|
1416
|
+
failedAt: z.ZodOptional<z.ZodString>;
|
|
1356
1417
|
sliceIntervalSec: z.ZodNumber;
|
|
1418
|
+
sliceCount: z.ZodNumber;
|
|
1357
1419
|
randomization: z.ZodObject<{
|
|
1358
1420
|
timingJitterBps: z.ZodInt;
|
|
1359
1421
|
sizeJitterBps: z.ZodInt;
|
|
1360
1422
|
}, z.core.$strip>;
|
|
1361
|
-
|
|
1362
|
-
executionType: z.ZodEnum<{
|
|
1363
|
-
MARKET: "MARKET";
|
|
1364
|
-
}>;
|
|
1365
|
-
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
1366
|
-
startAt: z.ZodString;
|
|
1367
|
-
endAt: z.ZodString;
|
|
1368
|
-
sliceCount: z.ZodNumber;
|
|
1423
|
+
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1369
1424
|
}, z.core.$strip>], "intent">;
|
|
1370
1425
|
export type PublicSchedule = z.output<typeof PublicSchedule>;
|
|
1371
1426
|
export declare const PublicLadder: z.ZodObject<{
|
|
@@ -1373,8 +1428,8 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1373
1428
|
createdAt: z.ZodString;
|
|
1374
1429
|
status: z.ZodEnum<{
|
|
1375
1430
|
ACTIVE: "ACTIVE";
|
|
1376
|
-
CANCELLED: "CANCELLED";
|
|
1377
1431
|
COMPLETED: "COMPLETED";
|
|
1432
|
+
CANCELLED: "CANCELLED";
|
|
1378
1433
|
}>;
|
|
1379
1434
|
connector: z.ZodEnum<{
|
|
1380
1435
|
hyperliquid: "hyperliquid";
|
|
@@ -1393,6 +1448,7 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1393
1448
|
STOP_LOSS: "STOP_LOSS";
|
|
1394
1449
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1395
1450
|
}>;
|
|
1451
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1396
1452
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1397
1453
|
type: z.ZodLiteral<"notional">;
|
|
1398
1454
|
data: z.ZodObject<{
|
|
@@ -1401,8 +1457,12 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1401
1457
|
mark: "mark";
|
|
1402
1458
|
}>;
|
|
1403
1459
|
threshold: z.ZodNumber;
|
|
1404
|
-
|
|
1405
|
-
|
|
1460
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1461
|
+
cancel: "cancel";
|
|
1462
|
+
keep: "keep";
|
|
1463
|
+
}>>;
|
|
1464
|
+
}, z.core.$strict>;
|
|
1465
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1406
1466
|
type: z.ZodLiteral<"upnl">;
|
|
1407
1467
|
data: z.ZodObject<{
|
|
1408
1468
|
priceSource: z.ZodEnum<{
|
|
@@ -1410,8 +1470,12 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1410
1470
|
mark: "mark";
|
|
1411
1471
|
}>;
|
|
1412
1472
|
threshold: z.ZodNumber;
|
|
1413
|
-
|
|
1414
|
-
|
|
1473
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1474
|
+
cancel: "cancel";
|
|
1475
|
+
keep: "keep";
|
|
1476
|
+
}>>;
|
|
1477
|
+
}, z.core.$strict>;
|
|
1478
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1415
1479
|
type: z.ZodLiteral<"upnl_bps">;
|
|
1416
1480
|
data: z.ZodObject<{
|
|
1417
1481
|
priceSource: z.ZodEnum<{
|
|
@@ -1419,11 +1483,12 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1419
1483
|
mark: "mark";
|
|
1420
1484
|
}>;
|
|
1421
1485
|
threshold: z.ZodNumber;
|
|
1422
|
-
}, z.core.$
|
|
1423
|
-
}, z.core.$
|
|
1486
|
+
}, z.core.$strict>;
|
|
1487
|
+
}, z.core.$strict>], "type">;
|
|
1424
1488
|
}, z.core.$strip>, z.ZodObject<{
|
|
1425
1489
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1426
1490
|
type: z.ZodLiteral<"MARKET">;
|
|
1491
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1427
1492
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1428
1493
|
type: z.ZodLiteral<"notional_trailing">;
|
|
1429
1494
|
data: z.ZodObject<{
|
|
@@ -1431,24 +1496,32 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1431
1496
|
mid: "mid";
|
|
1432
1497
|
mark: "mark";
|
|
1433
1498
|
}>;
|
|
1434
|
-
|
|
1435
|
-
|
|
1499
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1500
|
+
cancel: "cancel";
|
|
1501
|
+
keep: "keep";
|
|
1502
|
+
}>>;
|
|
1503
|
+
}, z.core.$strict>;
|
|
1504
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1436
1505
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
1437
1506
|
data: z.ZodObject<{
|
|
1438
1507
|
priceSource: z.ZodEnum<{
|
|
1439
1508
|
mid: "mid";
|
|
1440
1509
|
mark: "mark";
|
|
1441
1510
|
}>;
|
|
1442
|
-
|
|
1443
|
-
|
|
1511
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1512
|
+
cancel: "cancel";
|
|
1513
|
+
keep: "keep";
|
|
1514
|
+
}>>;
|
|
1515
|
+
}, z.core.$strict>;
|
|
1516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1444
1517
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1445
1518
|
data: z.ZodObject<{
|
|
1446
1519
|
priceSource: z.ZodEnum<{
|
|
1447
1520
|
mid: "mid";
|
|
1448
1521
|
mark: "mark";
|
|
1449
1522
|
}>;
|
|
1450
|
-
}, z.core.$
|
|
1451
|
-
}, z.core.$
|
|
1523
|
+
}, z.core.$strict>;
|
|
1524
|
+
}, z.core.$strict>], "type">;
|
|
1452
1525
|
trailing: z.ZodObject<{
|
|
1453
1526
|
mode: z.ZodEnum<{
|
|
1454
1527
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -1482,13 +1555,23 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1482
1555
|
lighter_rhc: "lighter_rhc";
|
|
1483
1556
|
}>;
|
|
1484
1557
|
updatedAt: z.ZodString;
|
|
1558
|
+
intent: z.ZodLiteral<"OPEN">;
|
|
1559
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1561
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1562
|
+
USER: "USER";
|
|
1563
|
+
SYSTEM: "SYSTEM";
|
|
1564
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1565
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1566
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1567
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1568
|
+
}>>;
|
|
1485
1569
|
bracketType: z.ZodEnum<{
|
|
1486
1570
|
NONE: "NONE";
|
|
1487
1571
|
STOP_LOSS: "STOP_LOSS";
|
|
1488
1572
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1489
1573
|
}>;
|
|
1490
1574
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1491
|
-
intent: z.ZodLiteral<"OPEN">;
|
|
1492
1575
|
semanticBracketType: z.ZodEnum<{
|
|
1493
1576
|
NONE: "NONE";
|
|
1494
1577
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -1497,15 +1580,6 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1497
1580
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1498
1581
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1499
1582
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1500
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1501
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1502
|
-
USER: "USER";
|
|
1503
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1504
|
-
SYSTEM: "SYSTEM";
|
|
1505
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
1506
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1507
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1508
|
-
}>>;
|
|
1509
1583
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1510
1584
|
type: z.ZodLiteral<"ratio">;
|
|
1511
1585
|
data: z.ZodObject<{
|
|
@@ -1655,13 +1729,23 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1655
1729
|
lighter_rhc: "lighter_rhc";
|
|
1656
1730
|
}>;
|
|
1657
1731
|
updatedAt: z.ZodString;
|
|
1732
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
1733
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1735
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1736
|
+
USER: "USER";
|
|
1737
|
+
SYSTEM: "SYSTEM";
|
|
1738
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1739
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1740
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1741
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1742
|
+
}>>;
|
|
1658
1743
|
bracketType: z.ZodEnum<{
|
|
1659
1744
|
NONE: "NONE";
|
|
1660
1745
|
STOP_LOSS: "STOP_LOSS";
|
|
1661
1746
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1662
1747
|
}>;
|
|
1663
1748
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1664
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
1665
1749
|
semanticBracketType: z.ZodEnum<{
|
|
1666
1750
|
NONE: "NONE";
|
|
1667
1751
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -1670,15 +1754,6 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1670
1754
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1671
1755
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1672
1756
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1673
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1674
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1675
|
-
USER: "USER";
|
|
1676
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1677
|
-
SYSTEM: "SYSTEM";
|
|
1678
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
1679
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1680
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1681
|
-
}>>;
|
|
1682
1757
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1683
1758
|
type: z.ZodLiteral<"ratio">;
|
|
1684
1759
|
data: z.ZodObject<{
|
|
@@ -1741,6 +1816,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1741
1816
|
TROUGH: "TROUGH";
|
|
1742
1817
|
}>;
|
|
1743
1818
|
threshold: z.ZodNumber;
|
|
1819
|
+
onPositionResize: z.ZodEnum<{
|
|
1820
|
+
cancel: "cancel";
|
|
1821
|
+
keep: "keep";
|
|
1822
|
+
}>;
|
|
1744
1823
|
}, z.core.$strip>;
|
|
1745
1824
|
}, z.core.$strip>, z.ZodObject<{
|
|
1746
1825
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -1754,6 +1833,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1754
1833
|
TROUGH: "TROUGH";
|
|
1755
1834
|
}>;
|
|
1756
1835
|
threshold: z.ZodNumber;
|
|
1836
|
+
onPositionResize: z.ZodEnum<{
|
|
1837
|
+
cancel: "cancel";
|
|
1838
|
+
keep: "keep";
|
|
1839
|
+
}>;
|
|
1757
1840
|
}, z.core.$strip>;
|
|
1758
1841
|
}, z.core.$strip>, z.ZodObject<{
|
|
1759
1842
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -1874,13 +1957,23 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1874
1957
|
lighter_rhc: "lighter_rhc";
|
|
1875
1958
|
}>;
|
|
1876
1959
|
updatedAt: z.ZodString;
|
|
1960
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
1961
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1963
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1964
|
+
USER: "USER";
|
|
1965
|
+
SYSTEM: "SYSTEM";
|
|
1966
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1967
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1968
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1969
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
1970
|
+
}>>;
|
|
1877
1971
|
bracketType: z.ZodEnum<{
|
|
1878
1972
|
NONE: "NONE";
|
|
1879
1973
|
STOP_LOSS: "STOP_LOSS";
|
|
1880
1974
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1881
1975
|
}>;
|
|
1882
1976
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1883
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
1884
1977
|
semanticBracketType: z.ZodEnum<{
|
|
1885
1978
|
NONE: "NONE";
|
|
1886
1979
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -1889,15 +1982,6 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1889
1982
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1890
1983
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1891
1984
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1892
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1893
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1894
|
-
USER: "USER";
|
|
1895
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1896
|
-
SYSTEM: "SYSTEM";
|
|
1897
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
1898
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1899
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1900
|
-
}>>;
|
|
1901
1985
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1902
1986
|
type: z.ZodLiteral<"ratio">;
|
|
1903
1987
|
data: z.ZodObject<{
|
|
@@ -1960,6 +2044,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1960
2044
|
TROUGH: "TROUGH";
|
|
1961
2045
|
}>;
|
|
1962
2046
|
threshold: z.ZodNumber;
|
|
2047
|
+
onPositionResize: z.ZodEnum<{
|
|
2048
|
+
cancel: "cancel";
|
|
2049
|
+
keep: "keep";
|
|
2050
|
+
}>;
|
|
1963
2051
|
}, z.core.$strip>;
|
|
1964
2052
|
}, z.core.$strip>, z.ZodObject<{
|
|
1965
2053
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -1973,6 +2061,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
1973
2061
|
TROUGH: "TROUGH";
|
|
1974
2062
|
}>;
|
|
1975
2063
|
threshold: z.ZodNumber;
|
|
2064
|
+
onPositionResize: z.ZodEnum<{
|
|
2065
|
+
cancel: "cancel";
|
|
2066
|
+
keep: "keep";
|
|
2067
|
+
}>;
|
|
1976
2068
|
}, z.core.$strip>;
|
|
1977
2069
|
}, z.core.$strip>, z.ZodObject<{
|
|
1978
2070
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2029,6 +2121,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2029
2121
|
mid: "mid";
|
|
2030
2122
|
mark: "mark";
|
|
2031
2123
|
}>;
|
|
2124
|
+
onPositionResize: z.ZodEnum<{
|
|
2125
|
+
cancel: "cancel";
|
|
2126
|
+
keep: "keep";
|
|
2127
|
+
}>;
|
|
2032
2128
|
}, z.core.$strip>;
|
|
2033
2129
|
}, z.core.$strip>, z.ZodObject<{
|
|
2034
2130
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -2037,6 +2133,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2037
2133
|
mid: "mid";
|
|
2038
2134
|
mark: "mark";
|
|
2039
2135
|
}>;
|
|
2136
|
+
onPositionResize: z.ZodEnum<{
|
|
2137
|
+
cancel: "cancel";
|
|
2138
|
+
keep: "keep";
|
|
2139
|
+
}>;
|
|
2040
2140
|
}, z.core.$strip>;
|
|
2041
2141
|
}, z.core.$strip>, z.ZodObject<{
|
|
2042
2142
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -2126,13 +2226,23 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2126
2226
|
}>;
|
|
2127
2227
|
updatedAt: z.ZodString;
|
|
2128
2228
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
2229
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
2230
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2231
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2232
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2233
|
+
USER: "USER";
|
|
2234
|
+
SYSTEM: "SYSTEM";
|
|
2235
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
2236
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2237
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2238
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2239
|
+
}>>;
|
|
2129
2240
|
bracketType: z.ZodEnum<{
|
|
2130
2241
|
NONE: "NONE";
|
|
2131
2242
|
STOP_LOSS: "STOP_LOSS";
|
|
2132
2243
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2133
2244
|
}>;
|
|
2134
2245
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
2135
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
2136
2246
|
semanticBracketType: z.ZodEnum<{
|
|
2137
2247
|
NONE: "NONE";
|
|
2138
2248
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -2141,15 +2251,6 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2141
2251
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
2142
2252
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
2143
2253
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2144
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2145
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2146
|
-
USER: "USER";
|
|
2147
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2148
|
-
SYSTEM: "SYSTEM";
|
|
2149
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
2150
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2151
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2152
|
-
}>>;
|
|
2153
2254
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2154
2255
|
type: z.ZodLiteral<"ratio">;
|
|
2155
2256
|
data: z.ZodObject<{
|
|
@@ -2212,6 +2313,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2212
2313
|
TROUGH: "TROUGH";
|
|
2213
2314
|
}>;
|
|
2214
2315
|
threshold: z.ZodNumber;
|
|
2316
|
+
onPositionResize: z.ZodEnum<{
|
|
2317
|
+
cancel: "cancel";
|
|
2318
|
+
keep: "keep";
|
|
2319
|
+
}>;
|
|
2215
2320
|
}, z.core.$strip>;
|
|
2216
2321
|
}, z.core.$strip>, z.ZodObject<{
|
|
2217
2322
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -2225,6 +2330,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2225
2330
|
TROUGH: "TROUGH";
|
|
2226
2331
|
}>;
|
|
2227
2332
|
threshold: z.ZodNumber;
|
|
2333
|
+
onPositionResize: z.ZodEnum<{
|
|
2334
|
+
cancel: "cancel";
|
|
2335
|
+
keep: "keep";
|
|
2336
|
+
}>;
|
|
2228
2337
|
}, z.core.$strip>;
|
|
2229
2338
|
}, z.core.$strip>, z.ZodObject<{
|
|
2230
2339
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2343,13 +2452,23 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2343
2452
|
}>;
|
|
2344
2453
|
updatedAt: z.ZodString;
|
|
2345
2454
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
2455
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
2456
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2457
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2458
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2459
|
+
USER: "USER";
|
|
2460
|
+
SYSTEM: "SYSTEM";
|
|
2461
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
2462
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2463
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2464
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2465
|
+
}>>;
|
|
2346
2466
|
bracketType: z.ZodEnum<{
|
|
2347
2467
|
NONE: "NONE";
|
|
2348
2468
|
STOP_LOSS: "STOP_LOSS";
|
|
2349
2469
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2350
2470
|
}>;
|
|
2351
2471
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
2352
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
2353
2472
|
semanticBracketType: z.ZodEnum<{
|
|
2354
2473
|
NONE: "NONE";
|
|
2355
2474
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -2358,15 +2477,6 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2358
2477
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
2359
2478
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
2360
2479
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2361
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2362
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2363
|
-
USER: "USER";
|
|
2364
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2365
|
-
SYSTEM: "SYSTEM";
|
|
2366
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
2367
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2368
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2369
|
-
}>>;
|
|
2370
2480
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2371
2481
|
type: z.ZodLiteral<"ratio">;
|
|
2372
2482
|
data: z.ZodObject<{
|
|
@@ -2429,6 +2539,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2429
2539
|
TROUGH: "TROUGH";
|
|
2430
2540
|
}>;
|
|
2431
2541
|
threshold: z.ZodNumber;
|
|
2542
|
+
onPositionResize: z.ZodEnum<{
|
|
2543
|
+
cancel: "cancel";
|
|
2544
|
+
keep: "keep";
|
|
2545
|
+
}>;
|
|
2432
2546
|
}, z.core.$strip>;
|
|
2433
2547
|
}, z.core.$strip>, z.ZodObject<{
|
|
2434
2548
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -2442,6 +2556,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2442
2556
|
TROUGH: "TROUGH";
|
|
2443
2557
|
}>;
|
|
2444
2558
|
threshold: z.ZodNumber;
|
|
2559
|
+
onPositionResize: z.ZodEnum<{
|
|
2560
|
+
cancel: "cancel";
|
|
2561
|
+
keep: "keep";
|
|
2562
|
+
}>;
|
|
2445
2563
|
}, z.core.$strip>;
|
|
2446
2564
|
}, z.core.$strip>, z.ZodObject<{
|
|
2447
2565
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -2498,6 +2616,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2498
2616
|
mid: "mid";
|
|
2499
2617
|
mark: "mark";
|
|
2500
2618
|
}>;
|
|
2619
|
+
onPositionResize: z.ZodEnum<{
|
|
2620
|
+
cancel: "cancel";
|
|
2621
|
+
keep: "keep";
|
|
2622
|
+
}>;
|
|
2501
2623
|
}, z.core.$strip>;
|
|
2502
2624
|
}, z.core.$strip>, z.ZodObject<{
|
|
2503
2625
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -2506,6 +2628,10 @@ export declare const PublicLadder: z.ZodObject<{
|
|
|
2506
2628
|
mid: "mid";
|
|
2507
2629
|
mark: "mark";
|
|
2508
2630
|
}>;
|
|
2631
|
+
onPositionResize: z.ZodEnum<{
|
|
2632
|
+
cancel: "cancel";
|
|
2633
|
+
keep: "keep";
|
|
2634
|
+
}>;
|
|
2509
2635
|
}, z.core.$strip>;
|
|
2510
2636
|
}, z.core.$strip>, z.ZodObject<{
|
|
2511
2637
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -2670,13 +2796,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
2670
2796
|
lighter_rhc: "lighter_rhc";
|
|
2671
2797
|
}>;
|
|
2672
2798
|
updatedAt: z.ZodString;
|
|
2799
|
+
intent: z.ZodLiteral<"OPEN">;
|
|
2800
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2801
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2802
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2803
|
+
USER: "USER";
|
|
2804
|
+
SYSTEM: "SYSTEM";
|
|
2805
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
2806
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2807
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2808
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2809
|
+
}>>;
|
|
2673
2810
|
bracketType: z.ZodEnum<{
|
|
2674
2811
|
NONE: "NONE";
|
|
2675
2812
|
STOP_LOSS: "STOP_LOSS";
|
|
2676
2813
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2677
2814
|
}>;
|
|
2678
2815
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
2679
|
-
intent: z.ZodLiteral<"OPEN">;
|
|
2680
2816
|
semanticBracketType: z.ZodEnum<{
|
|
2681
2817
|
NONE: "NONE";
|
|
2682
2818
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -2685,15 +2821,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
2685
2821
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
2686
2822
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
2687
2823
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2688
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2689
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2690
|
-
USER: "USER";
|
|
2691
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2692
|
-
SYSTEM: "SYSTEM";
|
|
2693
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
2694
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2695
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2696
|
-
}>>;
|
|
2697
2824
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2698
2825
|
type: z.ZodLiteral<"ratio">;
|
|
2699
2826
|
data: z.ZodObject<{
|
|
@@ -2843,30 +2970,31 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
2843
2970
|
lighter_rhc: "lighter_rhc";
|
|
2844
2971
|
}>;
|
|
2845
2972
|
updatedAt: z.ZodString;
|
|
2846
|
-
bracketType: z.ZodEnum<{
|
|
2847
|
-
NONE: "NONE";
|
|
2848
|
-
STOP_LOSS: "STOP_LOSS";
|
|
2849
|
-
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2850
|
-
}>;
|
|
2851
|
-
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
2852
2973
|
intent: z.ZodLiteral<"ADJUST">;
|
|
2853
|
-
semanticBracketType: z.ZodEnum<{
|
|
2854
|
-
NONE: "NONE";
|
|
2855
|
-
STOP_LOSS: "STOP_LOSS";
|
|
2856
|
-
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2857
|
-
}>;
|
|
2858
|
-
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
2859
|
-
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
2860
|
-
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2861
2974
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
2862
2975
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
2863
|
-
USER: "USER";
|
|
2864
2976
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2977
|
+
USER: "USER";
|
|
2865
2978
|
SYSTEM: "SYSTEM";
|
|
2866
2979
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2867
2980
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2868
2981
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2982
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
2869
2983
|
}>>;
|
|
2984
|
+
bracketType: z.ZodEnum<{
|
|
2985
|
+
NONE: "NONE";
|
|
2986
|
+
STOP_LOSS: "STOP_LOSS";
|
|
2987
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2988
|
+
}>;
|
|
2989
|
+
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
2990
|
+
semanticBracketType: z.ZodEnum<{
|
|
2991
|
+
NONE: "NONE";
|
|
2992
|
+
STOP_LOSS: "STOP_LOSS";
|
|
2993
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2994
|
+
}>;
|
|
2995
|
+
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
2996
|
+
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
2997
|
+
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
2870
2998
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2871
2999
|
type: z.ZodLiteral<"ratio">;
|
|
2872
3000
|
data: z.ZodObject<{
|
|
@@ -2929,6 +3057,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
2929
3057
|
TROUGH: "TROUGH";
|
|
2930
3058
|
}>;
|
|
2931
3059
|
threshold: z.ZodNumber;
|
|
3060
|
+
onPositionResize: z.ZodEnum<{
|
|
3061
|
+
cancel: "cancel";
|
|
3062
|
+
keep: "keep";
|
|
3063
|
+
}>;
|
|
2932
3064
|
}, z.core.$strip>;
|
|
2933
3065
|
}, z.core.$strip>, z.ZodObject<{
|
|
2934
3066
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -2942,6 +3074,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
2942
3074
|
TROUGH: "TROUGH";
|
|
2943
3075
|
}>;
|
|
2944
3076
|
threshold: z.ZodNumber;
|
|
3077
|
+
onPositionResize: z.ZodEnum<{
|
|
3078
|
+
cancel: "cancel";
|
|
3079
|
+
keep: "keep";
|
|
3080
|
+
}>;
|
|
2945
3081
|
}, z.core.$strip>;
|
|
2946
3082
|
}, z.core.$strip>, z.ZodObject<{
|
|
2947
3083
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3062,13 +3198,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3062
3198
|
lighter_rhc: "lighter_rhc";
|
|
3063
3199
|
}>;
|
|
3064
3200
|
updatedAt: z.ZodString;
|
|
3201
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
3202
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3203
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3204
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3205
|
+
USER: "USER";
|
|
3206
|
+
SYSTEM: "SYSTEM";
|
|
3207
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
3208
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3209
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3210
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3211
|
+
}>>;
|
|
3065
3212
|
bracketType: z.ZodEnum<{
|
|
3066
3213
|
NONE: "NONE";
|
|
3067
3214
|
STOP_LOSS: "STOP_LOSS";
|
|
3068
3215
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3069
3216
|
}>;
|
|
3070
3217
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
3071
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
3072
3218
|
semanticBracketType: z.ZodEnum<{
|
|
3073
3219
|
NONE: "NONE";
|
|
3074
3220
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -3077,15 +3223,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3077
3223
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
3078
3224
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
3079
3225
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3080
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3081
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3082
|
-
USER: "USER";
|
|
3083
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3084
|
-
SYSTEM: "SYSTEM";
|
|
3085
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
3086
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3087
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3088
|
-
}>>;
|
|
3089
3226
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3090
3227
|
type: z.ZodLiteral<"ratio">;
|
|
3091
3228
|
data: z.ZodObject<{
|
|
@@ -3148,6 +3285,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3148
3285
|
TROUGH: "TROUGH";
|
|
3149
3286
|
}>;
|
|
3150
3287
|
threshold: z.ZodNumber;
|
|
3288
|
+
onPositionResize: z.ZodEnum<{
|
|
3289
|
+
cancel: "cancel";
|
|
3290
|
+
keep: "keep";
|
|
3291
|
+
}>;
|
|
3151
3292
|
}, z.core.$strip>;
|
|
3152
3293
|
}, z.core.$strip>, z.ZodObject<{
|
|
3153
3294
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -3161,6 +3302,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3161
3302
|
TROUGH: "TROUGH";
|
|
3162
3303
|
}>;
|
|
3163
3304
|
threshold: z.ZodNumber;
|
|
3305
|
+
onPositionResize: z.ZodEnum<{
|
|
3306
|
+
cancel: "cancel";
|
|
3307
|
+
keep: "keep";
|
|
3308
|
+
}>;
|
|
3164
3309
|
}, z.core.$strip>;
|
|
3165
3310
|
}, z.core.$strip>, z.ZodObject<{
|
|
3166
3311
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3217,6 +3362,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3217
3362
|
mid: "mid";
|
|
3218
3363
|
mark: "mark";
|
|
3219
3364
|
}>;
|
|
3365
|
+
onPositionResize: z.ZodEnum<{
|
|
3366
|
+
cancel: "cancel";
|
|
3367
|
+
keep: "keep";
|
|
3368
|
+
}>;
|
|
3220
3369
|
}, z.core.$strip>;
|
|
3221
3370
|
}, z.core.$strip>, z.ZodObject<{
|
|
3222
3371
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -3225,6 +3374,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3225
3374
|
mid: "mid";
|
|
3226
3375
|
mark: "mark";
|
|
3227
3376
|
}>;
|
|
3377
|
+
onPositionResize: z.ZodEnum<{
|
|
3378
|
+
cancel: "cancel";
|
|
3379
|
+
keep: "keep";
|
|
3380
|
+
}>;
|
|
3228
3381
|
}, z.core.$strip>;
|
|
3229
3382
|
}, z.core.$strip>, z.ZodObject<{
|
|
3230
3383
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -3314,13 +3467,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3314
3467
|
}>;
|
|
3315
3468
|
updatedAt: z.ZodString;
|
|
3316
3469
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
3470
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
3471
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3472
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3473
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3474
|
+
USER: "USER";
|
|
3475
|
+
SYSTEM: "SYSTEM";
|
|
3476
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
3477
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3478
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3479
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3480
|
+
}>>;
|
|
3317
3481
|
bracketType: z.ZodEnum<{
|
|
3318
3482
|
NONE: "NONE";
|
|
3319
3483
|
STOP_LOSS: "STOP_LOSS";
|
|
3320
3484
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3321
3485
|
}>;
|
|
3322
3486
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
3323
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
3324
3487
|
semanticBracketType: z.ZodEnum<{
|
|
3325
3488
|
NONE: "NONE";
|
|
3326
3489
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -3329,15 +3492,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3329
3492
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
3330
3493
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
3331
3494
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3332
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3333
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3334
|
-
USER: "USER";
|
|
3335
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3336
|
-
SYSTEM: "SYSTEM";
|
|
3337
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
3338
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3339
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3340
|
-
}>>;
|
|
3341
3495
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3342
3496
|
type: z.ZodLiteral<"ratio">;
|
|
3343
3497
|
data: z.ZodObject<{
|
|
@@ -3400,6 +3554,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3400
3554
|
TROUGH: "TROUGH";
|
|
3401
3555
|
}>;
|
|
3402
3556
|
threshold: z.ZodNumber;
|
|
3557
|
+
onPositionResize: z.ZodEnum<{
|
|
3558
|
+
cancel: "cancel";
|
|
3559
|
+
keep: "keep";
|
|
3560
|
+
}>;
|
|
3403
3561
|
}, z.core.$strip>;
|
|
3404
3562
|
}, z.core.$strip>, z.ZodObject<{
|
|
3405
3563
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -3413,6 +3571,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3413
3571
|
TROUGH: "TROUGH";
|
|
3414
3572
|
}>;
|
|
3415
3573
|
threshold: z.ZodNumber;
|
|
3574
|
+
onPositionResize: z.ZodEnum<{
|
|
3575
|
+
cancel: "cancel";
|
|
3576
|
+
keep: "keep";
|
|
3577
|
+
}>;
|
|
3416
3578
|
}, z.core.$strip>;
|
|
3417
3579
|
}, z.core.$strip>, z.ZodObject<{
|
|
3418
3580
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3531,13 +3693,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3531
3693
|
}>;
|
|
3532
3694
|
updatedAt: z.ZodString;
|
|
3533
3695
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
3696
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
3697
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3698
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3699
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3700
|
+
USER: "USER";
|
|
3701
|
+
SYSTEM: "SYSTEM";
|
|
3702
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
3703
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3704
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3705
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
3706
|
+
}>>;
|
|
3534
3707
|
bracketType: z.ZodEnum<{
|
|
3535
3708
|
NONE: "NONE";
|
|
3536
3709
|
STOP_LOSS: "STOP_LOSS";
|
|
3537
3710
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3538
3711
|
}>;
|
|
3539
3712
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
3540
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
3541
3713
|
semanticBracketType: z.ZodEnum<{
|
|
3542
3714
|
NONE: "NONE";
|
|
3543
3715
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -3546,15 +3718,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3546
3718
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
3547
3719
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
3548
3720
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
3549
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3550
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3551
|
-
USER: "USER";
|
|
3552
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3553
|
-
SYSTEM: "SYSTEM";
|
|
3554
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
3555
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3556
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3557
|
-
}>>;
|
|
3558
3721
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3559
3722
|
type: z.ZodLiteral<"ratio">;
|
|
3560
3723
|
data: z.ZodObject<{
|
|
@@ -3617,6 +3780,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3617
3780
|
TROUGH: "TROUGH";
|
|
3618
3781
|
}>;
|
|
3619
3782
|
threshold: z.ZodNumber;
|
|
3783
|
+
onPositionResize: z.ZodEnum<{
|
|
3784
|
+
cancel: "cancel";
|
|
3785
|
+
keep: "keep";
|
|
3786
|
+
}>;
|
|
3620
3787
|
}, z.core.$strip>;
|
|
3621
3788
|
}, z.core.$strip>, z.ZodObject<{
|
|
3622
3789
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -3630,6 +3797,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3630
3797
|
TROUGH: "TROUGH";
|
|
3631
3798
|
}>;
|
|
3632
3799
|
threshold: z.ZodNumber;
|
|
3800
|
+
onPositionResize: z.ZodEnum<{
|
|
3801
|
+
cancel: "cancel";
|
|
3802
|
+
keep: "keep";
|
|
3803
|
+
}>;
|
|
3633
3804
|
}, z.core.$strip>;
|
|
3634
3805
|
}, z.core.$strip>, z.ZodObject<{
|
|
3635
3806
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -3686,6 +3857,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3686
3857
|
mid: "mid";
|
|
3687
3858
|
mark: "mark";
|
|
3688
3859
|
}>;
|
|
3860
|
+
onPositionResize: z.ZodEnum<{
|
|
3861
|
+
cancel: "cancel";
|
|
3862
|
+
keep: "keep";
|
|
3863
|
+
}>;
|
|
3689
3864
|
}, z.core.$strip>;
|
|
3690
3865
|
}, z.core.$strip>, z.ZodObject<{
|
|
3691
3866
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -3694,6 +3869,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3694
3869
|
mid: "mid";
|
|
3695
3870
|
mark: "mark";
|
|
3696
3871
|
}>;
|
|
3872
|
+
onPositionResize: z.ZodEnum<{
|
|
3873
|
+
cancel: "cancel";
|
|
3874
|
+
keep: "keep";
|
|
3875
|
+
}>;
|
|
3697
3876
|
}, z.core.$strip>;
|
|
3698
3877
|
}, z.core.$strip>, z.ZodObject<{
|
|
3699
3878
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -3775,10 +3954,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3775
3954
|
id: z.ZodUUID;
|
|
3776
3955
|
createdAt: z.ZodString;
|
|
3777
3956
|
status: z.ZodEnum<{
|
|
3778
|
-
FAILED: "FAILED";
|
|
3779
3957
|
ACTIVE: "ACTIVE";
|
|
3780
|
-
CANCELLED: "CANCELLED";
|
|
3781
3958
|
COMPLETED: "COMPLETED";
|
|
3959
|
+
FAILED: "FAILED";
|
|
3960
|
+
CANCELLED: "CANCELLED";
|
|
3782
3961
|
}>;
|
|
3783
3962
|
connector: z.ZodEnum<{
|
|
3784
3963
|
hyperliquid: "hyperliquid";
|
|
@@ -3798,40 +3977,41 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3798
3977
|
weight: z.ZodNumber;
|
|
3799
3978
|
}, z.core.$strip>>;
|
|
3800
3979
|
updatedAt: z.ZodString;
|
|
3801
|
-
|
|
3980
|
+
strategy: z.ZodLiteral<"TWAP">;
|
|
3802
3981
|
intent: z.ZodLiteral<"OPEN">;
|
|
3982
|
+
executionType: z.ZodEnum<{
|
|
3983
|
+
MARKET: "MARKET";
|
|
3984
|
+
}>;
|
|
3985
|
+
positionKey: z.ZodString;
|
|
3986
|
+
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
3987
|
+
startAt: z.ZodString;
|
|
3988
|
+
endAt: z.ZodString;
|
|
3803
3989
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3804
3990
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3805
|
-
USER: "USER";
|
|
3806
3991
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3992
|
+
USER: "USER";
|
|
3807
3993
|
SYSTEM: "SYSTEM";
|
|
3808
3994
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3809
3995
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3810
3996
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3811
3997
|
}>>;
|
|
3998
|
+
failedAt: z.ZodOptional<z.ZodString>;
|
|
3812
3999
|
sliceIntervalSec: z.ZodNumber;
|
|
4000
|
+
sliceCount: z.ZodNumber;
|
|
3813
4001
|
randomization: z.ZodObject<{
|
|
3814
4002
|
timingJitterBps: z.ZodInt;
|
|
3815
4003
|
sizeJitterBps: z.ZodInt;
|
|
3816
4004
|
}, z.core.$strip>;
|
|
3817
4005
|
targetNotional: z.ZodString;
|
|
3818
|
-
strategy: z.ZodLiteral<"TWAP">;
|
|
3819
|
-
executionType: z.ZodEnum<{
|
|
3820
|
-
MARKET: "MARKET";
|
|
3821
|
-
}>;
|
|
3822
|
-
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
3823
|
-
startAt: z.ZodString;
|
|
3824
|
-
endAt: z.ZodString;
|
|
3825
|
-
sliceCount: z.ZodNumber;
|
|
3826
4006
|
remainingNotional: z.ZodString;
|
|
3827
4007
|
}, z.core.$strip>, z.ZodObject<{
|
|
3828
4008
|
id: z.ZodUUID;
|
|
3829
4009
|
createdAt: z.ZodString;
|
|
3830
4010
|
status: z.ZodEnum<{
|
|
3831
|
-
FAILED: "FAILED";
|
|
3832
4011
|
ACTIVE: "ACTIVE";
|
|
3833
|
-
CANCELLED: "CANCELLED";
|
|
3834
4012
|
COMPLETED: "COMPLETED";
|
|
4013
|
+
FAILED: "FAILED";
|
|
4014
|
+
CANCELLED: "CANCELLED";
|
|
3835
4015
|
}>;
|
|
3836
4016
|
connector: z.ZodEnum<{
|
|
3837
4017
|
hyperliquid: "hyperliquid";
|
|
@@ -3843,39 +4023,40 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3843
4023
|
}>;
|
|
3844
4024
|
updatedAt: z.ZodString;
|
|
3845
4025
|
positionId: z.ZodUUID;
|
|
3846
|
-
|
|
4026
|
+
strategy: z.ZodLiteral<"TWAP">;
|
|
3847
4027
|
intent: z.ZodLiteral<"CLOSE">;
|
|
4028
|
+
executionType: z.ZodEnum<{
|
|
4029
|
+
MARKET: "MARKET";
|
|
4030
|
+
}>;
|
|
4031
|
+
positionKey: z.ZodString;
|
|
4032
|
+
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
4033
|
+
startAt: z.ZodString;
|
|
4034
|
+
endAt: z.ZodString;
|
|
3848
4035
|
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
3849
4036
|
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
3850
|
-
USER: "USER";
|
|
3851
4037
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4038
|
+
USER: "USER";
|
|
3852
4039
|
SYSTEM: "SYSTEM";
|
|
3853
4040
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3854
4041
|
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3855
4042
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3856
4043
|
}>>;
|
|
3857
|
-
|
|
4044
|
+
failedAt: z.ZodOptional<z.ZodString>;
|
|
3858
4045
|
sliceIntervalSec: z.ZodNumber;
|
|
4046
|
+
sliceCount: z.ZodNumber;
|
|
3859
4047
|
randomization: z.ZodObject<{
|
|
3860
4048
|
timingJitterBps: z.ZodInt;
|
|
3861
4049
|
sizeJitterBps: z.ZodInt;
|
|
3862
4050
|
}, z.core.$strip>;
|
|
3863
|
-
|
|
3864
|
-
executionType: z.ZodEnum<{
|
|
3865
|
-
MARKET: "MARKET";
|
|
3866
|
-
}>;
|
|
3867
|
-
lastSliceAt: z.ZodOptional<z.ZodString>;
|
|
3868
|
-
startAt: z.ZodString;
|
|
3869
|
-
endAt: z.ZodString;
|
|
3870
|
-
sliceCount: z.ZodNumber;
|
|
4051
|
+
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
3871
4052
|
}, z.core.$strip>], "intent">>;
|
|
3872
4053
|
ladders: z.ZodArray<z.ZodObject<{
|
|
3873
4054
|
id: z.ZodUUID;
|
|
3874
4055
|
createdAt: z.ZodString;
|
|
3875
4056
|
status: z.ZodEnum<{
|
|
3876
4057
|
ACTIVE: "ACTIVE";
|
|
3877
|
-
CANCELLED: "CANCELLED";
|
|
3878
4058
|
COMPLETED: "COMPLETED";
|
|
4059
|
+
CANCELLED: "CANCELLED";
|
|
3879
4060
|
}>;
|
|
3880
4061
|
connector: z.ZodEnum<{
|
|
3881
4062
|
hyperliquid: "hyperliquid";
|
|
@@ -3894,6 +4075,7 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3894
4075
|
STOP_LOSS: "STOP_LOSS";
|
|
3895
4076
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3896
4077
|
}>;
|
|
4078
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
3897
4079
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3898
4080
|
type: z.ZodLiteral<"notional">;
|
|
3899
4081
|
data: z.ZodObject<{
|
|
@@ -3902,8 +4084,12 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3902
4084
|
mark: "mark";
|
|
3903
4085
|
}>;
|
|
3904
4086
|
threshold: z.ZodNumber;
|
|
3905
|
-
|
|
3906
|
-
|
|
4087
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
4088
|
+
cancel: "cancel";
|
|
4089
|
+
keep: "keep";
|
|
4090
|
+
}>>;
|
|
4091
|
+
}, z.core.$strict>;
|
|
4092
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3907
4093
|
type: z.ZodLiteral<"upnl">;
|
|
3908
4094
|
data: z.ZodObject<{
|
|
3909
4095
|
priceSource: z.ZodEnum<{
|
|
@@ -3911,8 +4097,12 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3911
4097
|
mark: "mark";
|
|
3912
4098
|
}>;
|
|
3913
4099
|
threshold: z.ZodNumber;
|
|
3914
|
-
|
|
3915
|
-
|
|
4100
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
4101
|
+
cancel: "cancel";
|
|
4102
|
+
keep: "keep";
|
|
4103
|
+
}>>;
|
|
4104
|
+
}, z.core.$strict>;
|
|
4105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3916
4106
|
type: z.ZodLiteral<"upnl_bps">;
|
|
3917
4107
|
data: z.ZodObject<{
|
|
3918
4108
|
priceSource: z.ZodEnum<{
|
|
@@ -3920,11 +4110,12 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3920
4110
|
mark: "mark";
|
|
3921
4111
|
}>;
|
|
3922
4112
|
threshold: z.ZodNumber;
|
|
3923
|
-
}, z.core.$
|
|
3924
|
-
}, z.core.$
|
|
4113
|
+
}, z.core.$strict>;
|
|
4114
|
+
}, z.core.$strict>], "type">;
|
|
3925
4115
|
}, z.core.$strip>, z.ZodObject<{
|
|
3926
4116
|
intent: z.ZodLiteral<"CLOSE">;
|
|
3927
4117
|
type: z.ZodLiteral<"MARKET">;
|
|
4118
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
3928
4119
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3929
4120
|
type: z.ZodLiteral<"notional_trailing">;
|
|
3930
4121
|
data: z.ZodObject<{
|
|
@@ -3932,24 +4123,32 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3932
4123
|
mid: "mid";
|
|
3933
4124
|
mark: "mark";
|
|
3934
4125
|
}>;
|
|
3935
|
-
|
|
3936
|
-
|
|
4126
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
4127
|
+
cancel: "cancel";
|
|
4128
|
+
keep: "keep";
|
|
4129
|
+
}>>;
|
|
4130
|
+
}, z.core.$strict>;
|
|
4131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3937
4132
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
3938
4133
|
data: z.ZodObject<{
|
|
3939
4134
|
priceSource: z.ZodEnum<{
|
|
3940
4135
|
mid: "mid";
|
|
3941
4136
|
mark: "mark";
|
|
3942
4137
|
}>;
|
|
3943
|
-
|
|
3944
|
-
|
|
4138
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
4139
|
+
cancel: "cancel";
|
|
4140
|
+
keep: "keep";
|
|
4141
|
+
}>>;
|
|
4142
|
+
}, z.core.$strict>;
|
|
4143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3945
4144
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
3946
4145
|
data: z.ZodObject<{
|
|
3947
4146
|
priceSource: z.ZodEnum<{
|
|
3948
4147
|
mid: "mid";
|
|
3949
4148
|
mark: "mark";
|
|
3950
4149
|
}>;
|
|
3951
|
-
}, z.core.$
|
|
3952
|
-
}, z.core.$
|
|
4150
|
+
}, z.core.$strict>;
|
|
4151
|
+
}, z.core.$strict>], "type">;
|
|
3953
4152
|
trailing: z.ZodObject<{
|
|
3954
4153
|
mode: z.ZodEnum<{
|
|
3955
4154
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -3983,13 +4182,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3983
4182
|
lighter_rhc: "lighter_rhc";
|
|
3984
4183
|
}>;
|
|
3985
4184
|
updatedAt: z.ZodString;
|
|
4185
|
+
intent: z.ZodLiteral<"OPEN">;
|
|
4186
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4187
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4188
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4189
|
+
USER: "USER";
|
|
4190
|
+
SYSTEM: "SYSTEM";
|
|
4191
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
4192
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4193
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4194
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
4195
|
+
}>>;
|
|
3986
4196
|
bracketType: z.ZodEnum<{
|
|
3987
4197
|
NONE: "NONE";
|
|
3988
4198
|
STOP_LOSS: "STOP_LOSS";
|
|
3989
4199
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3990
4200
|
}>;
|
|
3991
4201
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
3992
|
-
intent: z.ZodLiteral<"OPEN">;
|
|
3993
4202
|
semanticBracketType: z.ZodEnum<{
|
|
3994
4203
|
NONE: "NONE";
|
|
3995
4204
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -3998,15 +4207,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
3998
4207
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
3999
4208
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
4000
4209
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
4001
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4002
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4003
|
-
USER: "USER";
|
|
4004
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4005
|
-
SYSTEM: "SYSTEM";
|
|
4006
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
4007
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4008
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4009
|
-
}>>;
|
|
4010
4210
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4011
4211
|
type: z.ZodLiteral<"ratio">;
|
|
4012
4212
|
data: z.ZodObject<{
|
|
@@ -4156,13 +4356,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4156
4356
|
lighter_rhc: "lighter_rhc";
|
|
4157
4357
|
}>;
|
|
4158
4358
|
updatedAt: z.ZodString;
|
|
4359
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
4360
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4361
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4362
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4363
|
+
USER: "USER";
|
|
4364
|
+
SYSTEM: "SYSTEM";
|
|
4365
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
4366
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4367
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4368
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
4369
|
+
}>>;
|
|
4159
4370
|
bracketType: z.ZodEnum<{
|
|
4160
4371
|
NONE: "NONE";
|
|
4161
4372
|
STOP_LOSS: "STOP_LOSS";
|
|
4162
4373
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
4163
4374
|
}>;
|
|
4164
4375
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
4165
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
4166
4376
|
semanticBracketType: z.ZodEnum<{
|
|
4167
4377
|
NONE: "NONE";
|
|
4168
4378
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -4171,15 +4381,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4171
4381
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
4172
4382
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
4173
4383
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
4174
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4175
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4176
|
-
USER: "USER";
|
|
4177
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4178
|
-
SYSTEM: "SYSTEM";
|
|
4179
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
4180
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4181
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4182
|
-
}>>;
|
|
4183
4384
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4184
4385
|
type: z.ZodLiteral<"ratio">;
|
|
4185
4386
|
data: z.ZodObject<{
|
|
@@ -4242,6 +4443,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4242
4443
|
TROUGH: "TROUGH";
|
|
4243
4444
|
}>;
|
|
4244
4445
|
threshold: z.ZodNumber;
|
|
4446
|
+
onPositionResize: z.ZodEnum<{
|
|
4447
|
+
cancel: "cancel";
|
|
4448
|
+
keep: "keep";
|
|
4449
|
+
}>;
|
|
4245
4450
|
}, z.core.$strip>;
|
|
4246
4451
|
}, z.core.$strip>, z.ZodObject<{
|
|
4247
4452
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -4255,6 +4460,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4255
4460
|
TROUGH: "TROUGH";
|
|
4256
4461
|
}>;
|
|
4257
4462
|
threshold: z.ZodNumber;
|
|
4463
|
+
onPositionResize: z.ZodEnum<{
|
|
4464
|
+
cancel: "cancel";
|
|
4465
|
+
keep: "keep";
|
|
4466
|
+
}>;
|
|
4258
4467
|
}, z.core.$strip>;
|
|
4259
4468
|
}, z.core.$strip>, z.ZodObject<{
|
|
4260
4469
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -4375,13 +4584,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4375
4584
|
lighter_rhc: "lighter_rhc";
|
|
4376
4585
|
}>;
|
|
4377
4586
|
updatedAt: z.ZodString;
|
|
4587
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
4588
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4589
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4590
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4591
|
+
USER: "USER";
|
|
4592
|
+
SYSTEM: "SYSTEM";
|
|
4593
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
4594
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4595
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4596
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
4597
|
+
}>>;
|
|
4378
4598
|
bracketType: z.ZodEnum<{
|
|
4379
4599
|
NONE: "NONE";
|
|
4380
4600
|
STOP_LOSS: "STOP_LOSS";
|
|
4381
4601
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
4382
4602
|
}>;
|
|
4383
4603
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
4384
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
4385
4604
|
semanticBracketType: z.ZodEnum<{
|
|
4386
4605
|
NONE: "NONE";
|
|
4387
4606
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -4390,15 +4609,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4390
4609
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
4391
4610
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
4392
4611
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
4393
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4394
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4395
|
-
USER: "USER";
|
|
4396
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4397
|
-
SYSTEM: "SYSTEM";
|
|
4398
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
4399
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4400
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4401
|
-
}>>;
|
|
4402
4612
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4403
4613
|
type: z.ZodLiteral<"ratio">;
|
|
4404
4614
|
data: z.ZodObject<{
|
|
@@ -4461,6 +4671,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4461
4671
|
TROUGH: "TROUGH";
|
|
4462
4672
|
}>;
|
|
4463
4673
|
threshold: z.ZodNumber;
|
|
4674
|
+
onPositionResize: z.ZodEnum<{
|
|
4675
|
+
cancel: "cancel";
|
|
4676
|
+
keep: "keep";
|
|
4677
|
+
}>;
|
|
4464
4678
|
}, z.core.$strip>;
|
|
4465
4679
|
}, z.core.$strip>, z.ZodObject<{
|
|
4466
4680
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -4474,6 +4688,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4474
4688
|
TROUGH: "TROUGH";
|
|
4475
4689
|
}>;
|
|
4476
4690
|
threshold: z.ZodNumber;
|
|
4691
|
+
onPositionResize: z.ZodEnum<{
|
|
4692
|
+
cancel: "cancel";
|
|
4693
|
+
keep: "keep";
|
|
4694
|
+
}>;
|
|
4477
4695
|
}, z.core.$strip>;
|
|
4478
4696
|
}, z.core.$strip>, z.ZodObject<{
|
|
4479
4697
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -4530,6 +4748,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4530
4748
|
mid: "mid";
|
|
4531
4749
|
mark: "mark";
|
|
4532
4750
|
}>;
|
|
4751
|
+
onPositionResize: z.ZodEnum<{
|
|
4752
|
+
cancel: "cancel";
|
|
4753
|
+
keep: "keep";
|
|
4754
|
+
}>;
|
|
4533
4755
|
}, z.core.$strip>;
|
|
4534
4756
|
}, z.core.$strip>, z.ZodObject<{
|
|
4535
4757
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -4538,6 +4760,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4538
4760
|
mid: "mid";
|
|
4539
4761
|
mark: "mark";
|
|
4540
4762
|
}>;
|
|
4763
|
+
onPositionResize: z.ZodEnum<{
|
|
4764
|
+
cancel: "cancel";
|
|
4765
|
+
keep: "keep";
|
|
4766
|
+
}>;
|
|
4541
4767
|
}, z.core.$strip>;
|
|
4542
4768
|
}, z.core.$strip>, z.ZodObject<{
|
|
4543
4769
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
@@ -4627,13 +4853,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4627
4853
|
}>;
|
|
4628
4854
|
updatedAt: z.ZodString;
|
|
4629
4855
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
4856
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
4857
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4858
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4859
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4860
|
+
USER: "USER";
|
|
4861
|
+
SYSTEM: "SYSTEM";
|
|
4862
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
4863
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4864
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4865
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
4866
|
+
}>>;
|
|
4630
4867
|
bracketType: z.ZodEnum<{
|
|
4631
4868
|
NONE: "NONE";
|
|
4632
4869
|
STOP_LOSS: "STOP_LOSS";
|
|
4633
4870
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
4634
4871
|
}>;
|
|
4635
4872
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
4636
|
-
intent: z.ZodLiteral<"ADJUST">;
|
|
4637
4873
|
semanticBracketType: z.ZodEnum<{
|
|
4638
4874
|
NONE: "NONE";
|
|
4639
4875
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -4642,15 +4878,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4642
4878
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
4643
4879
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
4644
4880
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
4645
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4646
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4647
|
-
USER: "USER";
|
|
4648
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4649
|
-
SYSTEM: "SYSTEM";
|
|
4650
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
4651
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4652
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4653
|
-
}>>;
|
|
4654
4881
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4655
4882
|
type: z.ZodLiteral<"ratio">;
|
|
4656
4883
|
data: z.ZodObject<{
|
|
@@ -4713,6 +4940,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4713
4940
|
TROUGH: "TROUGH";
|
|
4714
4941
|
}>;
|
|
4715
4942
|
threshold: z.ZodNumber;
|
|
4943
|
+
onPositionResize: z.ZodEnum<{
|
|
4944
|
+
cancel: "cancel";
|
|
4945
|
+
keep: "keep";
|
|
4946
|
+
}>;
|
|
4716
4947
|
}, z.core.$strip>;
|
|
4717
4948
|
}, z.core.$strip>, z.ZodObject<{
|
|
4718
4949
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -4726,6 +4957,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4726
4957
|
TROUGH: "TROUGH";
|
|
4727
4958
|
}>;
|
|
4728
4959
|
threshold: z.ZodNumber;
|
|
4960
|
+
onPositionResize: z.ZodEnum<{
|
|
4961
|
+
cancel: "cancel";
|
|
4962
|
+
keep: "keep";
|
|
4963
|
+
}>;
|
|
4729
4964
|
}, z.core.$strip>;
|
|
4730
4965
|
}, z.core.$strip>, z.ZodObject<{
|
|
4731
4966
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -4844,13 +5079,23 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4844
5079
|
}>;
|
|
4845
5080
|
updatedAt: z.ZodString;
|
|
4846
5081
|
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
5082
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
5083
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
5084
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
5085
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
5086
|
+
USER: "USER";
|
|
5087
|
+
SYSTEM: "SYSTEM";
|
|
5088
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
5089
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
5090
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
5091
|
+
POSITION_RESIZED: "POSITION_RESIZED";
|
|
5092
|
+
}>>;
|
|
4847
5093
|
bracketType: z.ZodEnum<{
|
|
4848
5094
|
NONE: "NONE";
|
|
4849
5095
|
STOP_LOSS: "STOP_LOSS";
|
|
4850
5096
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
4851
5097
|
}>;
|
|
4852
5098
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
4853
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
4854
5099
|
semanticBracketType: z.ZodEnum<{
|
|
4855
5100
|
NONE: "NONE";
|
|
4856
5101
|
STOP_LOSS: "STOP_LOSS";
|
|
@@ -4859,15 +5104,6 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4859
5104
|
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
4860
5105
|
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
4861
5106
|
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
4862
|
-
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
4863
|
-
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
4864
|
-
USER: "USER";
|
|
4865
|
-
POSITION_CLOSED: "POSITION_CLOSED";
|
|
4866
|
-
SYSTEM: "SYSTEM";
|
|
4867
|
-
POSITION_NETTED: "POSITION_NETTED";
|
|
4868
|
-
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
4869
|
-
POSITION_REVERSED: "POSITION_REVERSED";
|
|
4870
|
-
}>>;
|
|
4871
5107
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4872
5108
|
type: z.ZodLiteral<"ratio">;
|
|
4873
5109
|
data: z.ZodObject<{
|
|
@@ -4930,6 +5166,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4930
5166
|
TROUGH: "TROUGH";
|
|
4931
5167
|
}>;
|
|
4932
5168
|
threshold: z.ZodNumber;
|
|
5169
|
+
onPositionResize: z.ZodEnum<{
|
|
5170
|
+
cancel: "cancel";
|
|
5171
|
+
keep: "keep";
|
|
5172
|
+
}>;
|
|
4933
5173
|
}, z.core.$strip>;
|
|
4934
5174
|
}, z.core.$strip>, z.ZodObject<{
|
|
4935
5175
|
type: z.ZodLiteral<"upnl">;
|
|
@@ -4943,6 +5183,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4943
5183
|
TROUGH: "TROUGH";
|
|
4944
5184
|
}>;
|
|
4945
5185
|
threshold: z.ZodNumber;
|
|
5186
|
+
onPositionResize: z.ZodEnum<{
|
|
5187
|
+
cancel: "cancel";
|
|
5188
|
+
keep: "keep";
|
|
5189
|
+
}>;
|
|
4946
5190
|
}, z.core.$strip>;
|
|
4947
5191
|
}, z.core.$strip>, z.ZodObject<{
|
|
4948
5192
|
type: z.ZodLiteral<"upnl_bps">;
|
|
@@ -4999,6 +5243,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
4999
5243
|
mid: "mid";
|
|
5000
5244
|
mark: "mark";
|
|
5001
5245
|
}>;
|
|
5246
|
+
onPositionResize: z.ZodEnum<{
|
|
5247
|
+
cancel: "cancel";
|
|
5248
|
+
keep: "keep";
|
|
5249
|
+
}>;
|
|
5002
5250
|
}, z.core.$strip>;
|
|
5003
5251
|
}, z.core.$strip>, z.ZodObject<{
|
|
5004
5252
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
@@ -5007,6 +5255,10 @@ export declare const PublicTraderResponse: z.ZodObject<{
|
|
|
5007
5255
|
mid: "mid";
|
|
5008
5256
|
mark: "mark";
|
|
5009
5257
|
}>;
|
|
5258
|
+
onPositionResize: z.ZodEnum<{
|
|
5259
|
+
cancel: "cancel";
|
|
5260
|
+
keep: "keep";
|
|
5261
|
+
}>;
|
|
5010
5262
|
}, z.core.$strip>;
|
|
5011
5263
|
}, z.core.$strip>, z.ZodObject<{
|
|
5012
5264
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|