@pear-protocol/types 2.11.0 → 2.12.1
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/auth/payloads.d.ts +3 -3
- package/dist/auth/payloads.js +1 -1
- package/dist/baskets/saved/entities.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.js +2 -0
- package/dist/common/refinement.d.ts +3 -3
- package/dist/common/trade-legs.js +1 -1
- package/dist/copy/entities.d.ts +186 -0
- package/dist/copy/entities.js +113 -0
- package/dist/copy/index.d.ts +4 -0
- package/dist/copy/index.js +4 -0
- package/dist/copy/payloads.d.ts +14 -0
- package/dist/copy/payloads.js +8 -0
- package/dist/copy/queries.d.ts +13 -0
- package/dist/copy/queries.js +16 -0
- package/dist/copy/responses.d.ts +332 -0
- package/dist/copy/responses.js +91 -0
- package/dist/execution/entities.d.ts +71 -71
- package/dist/execution/entities.js +1 -1
- package/dist/execution/queries.d.ts +2 -2
- package/dist/execution/responses.d.ts +40 -40
- package/dist/ladder/entities.d.ts +22 -17
- package/dist/ladder/queries.d.ts +5 -0
- package/dist/ladder/queries.js +6 -2
- package/dist/ladder/responses.d.ts +63 -48
- package/dist/misc/payloads.d.ts +26 -0
- package/dist/misc/payloads.js +27 -1
- package/dist/misc/responses.d.ts +8 -0
- package/dist/misc/responses.js +7 -1
- package/dist/notification/entities.d.ts +120 -0
- package/dist/notification/entities.js +59 -3
- package/dist/notification/responses.d.ts +60 -0
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +1 -1
- package/dist/position/responses.d.ts +3 -1
- package/dist/position/responses.js +2 -0
- package/dist/schedule/entities.d.ts +18 -12
- package/dist/schedule/entities.js +2 -1
- package/dist/schedule/queries.d.ts +2 -2
- package/dist/schedule/responses.d.ts +12 -8
- package/dist/schedule/twap-config.js +1 -1
- package/dist/statistics/entities.d.ts +10 -0
- package/dist/statistics/entities.js +4 -0
- package/dist/statistics/responses.d.ts +10 -0
- package/dist/sync/payloads.d.ts +12 -0
- package/dist/sync/payloads.js +31 -3
- package/dist/tca/responses.d.ts +12 -12
- package/dist/trade/responses.d.ts +100 -100
- package/dist/trade-accounts/entities.d.ts +136 -12
- package/dist/trade-accounts/entities.js +41 -9
- package/dist/trade-accounts/payloads.d.ts +12 -0
- package/dist/trade-accounts/payloads.js +7 -1
- package/dist/trade-accounts/response.d.ts +963 -223
- package/dist/traders/index.d.ts +1 -0
- package/dist/traders/index.js +1 -0
- package/dist/traders/public.d.ts +5053 -0
- package/dist/traders/public.js +161 -0
- package/dist/trigger/common/index.d.ts +3 -2
- package/dist/trigger/common/index.js +1 -0
- package/dist/trigger/entities/index.d.ts +64 -48
- package/dist/trigger/entities/index.js +3 -3
- package/dist/trigger/queries.d.ts +2 -2
- package/dist/trigger/responses.d.ts +40 -30
- package/dist/vaults/entities.d.ts +1 -1
- package/dist/vaults/responses.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CursorResponse } from '../common';
|
|
3
|
+
import { Connector } from '../connector';
|
|
4
|
+
import { CopyFollower } from '../copy/entities';
|
|
5
|
+
import { Ladder } from '../ladder/entities';
|
|
6
|
+
import { OpenPosition, OpenPositionLeg, ClosedPosition, ClosedPositionLeg } from '../position/entities';
|
|
7
|
+
import { ClosedPositionListParams } from '../position/queries';
|
|
8
|
+
import { TWAPOpen, TWAPClose } from '../schedule/entities';
|
|
9
|
+
import { TriggerMarketOpen, TriggerMarketAdjust, TriggerMarketClose, TriggerTWAPAdjust, TriggerTWAPClose } from '../trigger/entities';
|
|
10
|
+
|
|
11
|
+
const PublicTraderParams = z.object({
|
|
12
|
+
tradeAccountId: z.uuid()
|
|
13
|
+
});
|
|
14
|
+
const PublicTraderClosedPositionsParams = z.object({
|
|
15
|
+
limit: ClosedPositionListParams.shape.limit,
|
|
16
|
+
cursor: ClosedPositionListParams.shape.cursor,
|
|
17
|
+
startDate: ClosedPositionListParams.shape.startDate,
|
|
18
|
+
endDate: ClosedPositionListParams.shape.endDate,
|
|
19
|
+
positionId: ClosedPositionListParams.shape.positionId
|
|
20
|
+
}).strict();
|
|
21
|
+
const PublicOpenPosition = OpenPosition.pick({
|
|
22
|
+
positionId: true,
|
|
23
|
+
status: true,
|
|
24
|
+
connector: true,
|
|
25
|
+
openedAt: true,
|
|
26
|
+
updatedAt: true,
|
|
27
|
+
realizedGrossPnl: true,
|
|
28
|
+
netCashflow: true
|
|
29
|
+
}).extend({
|
|
30
|
+
legs: z.array(OpenPositionLeg.pick({
|
|
31
|
+
asset: true,
|
|
32
|
+
side: true,
|
|
33
|
+
realized: true,
|
|
34
|
+
remaining: true
|
|
35
|
+
}))
|
|
36
|
+
});
|
|
37
|
+
const PublicClosedPosition = ClosedPosition.pick({
|
|
38
|
+
positionId: true,
|
|
39
|
+
status: true,
|
|
40
|
+
connector: true,
|
|
41
|
+
openedAt: true,
|
|
42
|
+
closedAt: true,
|
|
43
|
+
closedReason: true,
|
|
44
|
+
grossPnl: true,
|
|
45
|
+
netPnl: true,
|
|
46
|
+
hasProvisionalFills: true
|
|
47
|
+
}).extend({
|
|
48
|
+
legs: z.array(ClosedPositionLeg.pick({
|
|
49
|
+
asset: true,
|
|
50
|
+
side: true,
|
|
51
|
+
entryVwap: true,
|
|
52
|
+
exitVwap: true,
|
|
53
|
+
entryNotional: true,
|
|
54
|
+
grossPnl: true,
|
|
55
|
+
netPnl: true
|
|
56
|
+
}))
|
|
57
|
+
});
|
|
58
|
+
const PublicTraderClosedPositionsResponse = CursorResponse.extend({
|
|
59
|
+
positions: z.array(PublicClosedPosition)
|
|
60
|
+
});
|
|
61
|
+
const triggerFields = {
|
|
62
|
+
id: true,
|
|
63
|
+
connector: true,
|
|
64
|
+
status: true,
|
|
65
|
+
intent: true,
|
|
66
|
+
type: true,
|
|
67
|
+
bracketType: true,
|
|
68
|
+
semanticBracketType: true,
|
|
69
|
+
condition: true,
|
|
70
|
+
context: true,
|
|
71
|
+
ladderId: true,
|
|
72
|
+
ladderIndex: true,
|
|
73
|
+
parentTriggerId: true,
|
|
74
|
+
triggeredAt: true,
|
|
75
|
+
cancelledAt: true,
|
|
76
|
+
cancelledReason: true,
|
|
77
|
+
createdAt: true,
|
|
78
|
+
updatedAt: true
|
|
79
|
+
};
|
|
80
|
+
const PublicTrigger = z.discriminatedUnion("type", [
|
|
81
|
+
z.discriminatedUnion("intent", [
|
|
82
|
+
TriggerMarketOpen.pick(triggerFields),
|
|
83
|
+
TriggerMarketAdjust.pick({
|
|
84
|
+
...triggerFields,
|
|
85
|
+
trailing: true
|
|
86
|
+
}),
|
|
87
|
+
TriggerMarketClose.pick({
|
|
88
|
+
...triggerFields,
|
|
89
|
+
trailing: true
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
z.discriminatedUnion("intent", [
|
|
93
|
+
TriggerTWAPAdjust.pick({
|
|
94
|
+
...triggerFields,
|
|
95
|
+
trailing: true,
|
|
96
|
+
scheduleId: true
|
|
97
|
+
}),
|
|
98
|
+
TriggerTWAPClose.pick({
|
|
99
|
+
...triggerFields,
|
|
100
|
+
trailing: true,
|
|
101
|
+
scheduleId: true
|
|
102
|
+
})
|
|
103
|
+
])
|
|
104
|
+
]);
|
|
105
|
+
const scheduleFields = {
|
|
106
|
+
id: true,
|
|
107
|
+
connector: true,
|
|
108
|
+
status: true,
|
|
109
|
+
strategy: true,
|
|
110
|
+
intent: true,
|
|
111
|
+
executionType: true,
|
|
112
|
+
positionKey: true,
|
|
113
|
+
startAt: true,
|
|
114
|
+
endAt: true,
|
|
115
|
+
lastSliceAt: true,
|
|
116
|
+
sliceIntervalSec: true,
|
|
117
|
+
sliceCount: true,
|
|
118
|
+
randomization: true,
|
|
119
|
+
cancelledAt: true,
|
|
120
|
+
cancelledReason: true,
|
|
121
|
+
createdAt: true,
|
|
122
|
+
updatedAt: true
|
|
123
|
+
};
|
|
124
|
+
const PublicSchedule = z.discriminatedUnion("intent", [
|
|
125
|
+
TWAPOpen.pick({
|
|
126
|
+
...scheduleFields,
|
|
127
|
+
legs: true,
|
|
128
|
+
targetNotional: true,
|
|
129
|
+
remainingNotional: true
|
|
130
|
+
}),
|
|
131
|
+
TWAPClose.pick({
|
|
132
|
+
...scheduleFields,
|
|
133
|
+
positionId: true,
|
|
134
|
+
initialExposure: true
|
|
135
|
+
})
|
|
136
|
+
]);
|
|
137
|
+
const PublicLadder = Ladder.pick({
|
|
138
|
+
id: true,
|
|
139
|
+
connector: true,
|
|
140
|
+
status: true,
|
|
141
|
+
positionKey: true,
|
|
142
|
+
config: true,
|
|
143
|
+
attachTriggers: true,
|
|
144
|
+
createdAt: true,
|
|
145
|
+
updatedAt: true
|
|
146
|
+
}).extend({
|
|
147
|
+
triggers: z.array(PublicTrigger)
|
|
148
|
+
});
|
|
149
|
+
const PublicTraderResponse = z.object({
|
|
150
|
+
connector: Connector.describe("Exchange connector type"),
|
|
151
|
+
exchangeIdentifier: z.string().describe("User identifier on the exchange"),
|
|
152
|
+
// Followers are complete; the latest-20 limit applies only to trading records.
|
|
153
|
+
followers: z.array(CopyFollower),
|
|
154
|
+
followerCount: z.number().int().nonnegative(),
|
|
155
|
+
positions: z.array(PublicOpenPosition),
|
|
156
|
+
triggers: z.array(PublicTrigger),
|
|
157
|
+
schedules: z.array(PublicSchedule),
|
|
158
|
+
ladders: z.array(PublicLadder)
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
export { PublicClosedPosition, PublicLadder, PublicOpenPosition, PublicSchedule, PublicTraderClosedPositionsParams, PublicTraderClosedPositionsResponse, PublicTraderParams, PublicTraderResponse, PublicTrigger };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const TriggerIntent: z.ZodEnum<{
|
|
3
3
|
OPEN: "OPEN";
|
|
4
|
-
CLOSE: "CLOSE";
|
|
5
4
|
ADJUST: "ADJUST";
|
|
5
|
+
CLOSE: "CLOSE";
|
|
6
6
|
}>;
|
|
7
7
|
export type TriggerIntent = z.infer<typeof TriggerIntent>;
|
|
8
8
|
export declare const TriggerStatus: z.ZodEnum<{
|
|
9
|
-
CANCELLED: "CANCELLED";
|
|
10
9
|
ACTIVE: "ACTIVE";
|
|
10
|
+
CANCELLED: "CANCELLED";
|
|
11
11
|
TRIGGERED: "TRIGGERED";
|
|
12
12
|
}>;
|
|
13
13
|
export type TriggerStatus = z.infer<typeof TriggerStatus>;
|
|
@@ -16,6 +16,7 @@ export declare const TriggerCancelledReason: z.ZodEnum<{
|
|
|
16
16
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
17
17
|
SYSTEM: "SYSTEM";
|
|
18
18
|
POSITION_NETTED: "POSITION_NETTED";
|
|
19
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
19
20
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
20
21
|
}>;
|
|
21
22
|
export type TriggerCancelledReason = z.infer<typeof TriggerCancelledReason>;
|
|
@@ -22,8 +22,8 @@ declare const BaseTrigger: z.ZodObject<{
|
|
|
22
22
|
lighter_rhc: "lighter_rhc";
|
|
23
23
|
}>;
|
|
24
24
|
status: z.ZodEnum<{
|
|
25
|
-
CANCELLED: "CANCELLED";
|
|
26
25
|
ACTIVE: "ACTIVE";
|
|
26
|
+
CANCELLED: "CANCELLED";
|
|
27
27
|
TRIGGERED: "TRIGGERED";
|
|
28
28
|
}>;
|
|
29
29
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -36,6 +36,7 @@ declare const BaseTrigger: z.ZodObject<{
|
|
|
36
36
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
37
37
|
SYSTEM: "SYSTEM";
|
|
38
38
|
POSITION_NETTED: "POSITION_NETTED";
|
|
39
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
39
40
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
40
41
|
}>>;
|
|
41
42
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -81,11 +82,11 @@ declare const BaseTrigger: z.ZodObject<{
|
|
|
81
82
|
STOP_LOSS: "STOP_LOSS";
|
|
82
83
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
83
84
|
}>;
|
|
84
|
-
semanticBracketType: z.
|
|
85
|
+
semanticBracketType: z.ZodEnum<{
|
|
85
86
|
NONE: "NONE";
|
|
86
87
|
STOP_LOSS: "STOP_LOSS";
|
|
87
88
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
88
|
-
}
|
|
89
|
+
}>;
|
|
89
90
|
createdAt: z.ZodString;
|
|
90
91
|
updatedAt: z.ZodString;
|
|
91
92
|
}, z.core.$strip>;
|
|
@@ -111,8 +112,8 @@ export declare const TriggerMarketOpen: z.ZodObject<{
|
|
|
111
112
|
lighter_rhc: "lighter_rhc";
|
|
112
113
|
}>;
|
|
113
114
|
status: z.ZodEnum<{
|
|
114
|
-
CANCELLED: "CANCELLED";
|
|
115
115
|
ACTIVE: "ACTIVE";
|
|
116
|
+
CANCELLED: "CANCELLED";
|
|
116
117
|
TRIGGERED: "TRIGGERED";
|
|
117
118
|
}>;
|
|
118
119
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -125,6 +126,7 @@ export declare const TriggerMarketOpen: z.ZodObject<{
|
|
|
125
126
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
126
127
|
SYSTEM: "SYSTEM";
|
|
127
128
|
POSITION_NETTED: "POSITION_NETTED";
|
|
129
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
128
130
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
129
131
|
}>>;
|
|
130
132
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -170,11 +172,11 @@ export declare const TriggerMarketOpen: z.ZodObject<{
|
|
|
170
172
|
STOP_LOSS: "STOP_LOSS";
|
|
171
173
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
172
174
|
}>;
|
|
173
|
-
semanticBracketType: z.
|
|
175
|
+
semanticBracketType: z.ZodEnum<{
|
|
174
176
|
NONE: "NONE";
|
|
175
177
|
STOP_LOSS: "STOP_LOSS";
|
|
176
178
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
177
|
-
}
|
|
179
|
+
}>;
|
|
178
180
|
createdAt: z.ZodString;
|
|
179
181
|
updatedAt: z.ZodString;
|
|
180
182
|
intent: z.ZodLiteral<"OPEN">;
|
|
@@ -323,8 +325,8 @@ export declare const TriggerMarketAdjust: z.ZodObject<{
|
|
|
323
325
|
lighter_rhc: "lighter_rhc";
|
|
324
326
|
}>;
|
|
325
327
|
status: z.ZodEnum<{
|
|
326
|
-
CANCELLED: "CANCELLED";
|
|
327
328
|
ACTIVE: "ACTIVE";
|
|
329
|
+
CANCELLED: "CANCELLED";
|
|
328
330
|
TRIGGERED: "TRIGGERED";
|
|
329
331
|
}>;
|
|
330
332
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -337,6 +339,7 @@ export declare const TriggerMarketAdjust: z.ZodObject<{
|
|
|
337
339
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
338
340
|
SYSTEM: "SYSTEM";
|
|
339
341
|
POSITION_NETTED: "POSITION_NETTED";
|
|
342
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
340
343
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
341
344
|
}>>;
|
|
342
345
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -382,11 +385,11 @@ export declare const TriggerMarketAdjust: z.ZodObject<{
|
|
|
382
385
|
STOP_LOSS: "STOP_LOSS";
|
|
383
386
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
384
387
|
}>;
|
|
385
|
-
semanticBracketType: z.
|
|
388
|
+
semanticBracketType: z.ZodEnum<{
|
|
386
389
|
NONE: "NONE";
|
|
387
390
|
STOP_LOSS: "STOP_LOSS";
|
|
388
391
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
389
|
-
}
|
|
392
|
+
}>;
|
|
390
393
|
createdAt: z.ZodString;
|
|
391
394
|
updatedAt: z.ZodString;
|
|
392
395
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -581,8 +584,8 @@ export declare const TriggerMarketClose: z.ZodObject<{
|
|
|
581
584
|
lighter_rhc: "lighter_rhc";
|
|
582
585
|
}>;
|
|
583
586
|
status: z.ZodEnum<{
|
|
584
|
-
CANCELLED: "CANCELLED";
|
|
585
587
|
ACTIVE: "ACTIVE";
|
|
588
|
+
CANCELLED: "CANCELLED";
|
|
586
589
|
TRIGGERED: "TRIGGERED";
|
|
587
590
|
}>;
|
|
588
591
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -595,6 +598,7 @@ export declare const TriggerMarketClose: z.ZodObject<{
|
|
|
595
598
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
596
599
|
SYSTEM: "SYSTEM";
|
|
597
600
|
POSITION_NETTED: "POSITION_NETTED";
|
|
601
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
598
602
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
599
603
|
}>>;
|
|
600
604
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -640,11 +644,11 @@ export declare const TriggerMarketClose: z.ZodObject<{
|
|
|
640
644
|
STOP_LOSS: "STOP_LOSS";
|
|
641
645
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
642
646
|
}>;
|
|
643
|
-
semanticBracketType: z.
|
|
647
|
+
semanticBracketType: z.ZodEnum<{
|
|
644
648
|
NONE: "NONE";
|
|
645
649
|
STOP_LOSS: "STOP_LOSS";
|
|
646
650
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
647
|
-
}
|
|
651
|
+
}>;
|
|
648
652
|
createdAt: z.ZodString;
|
|
649
653
|
updatedAt: z.ZodString;
|
|
650
654
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -871,8 +875,8 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
871
875
|
lighter_rhc: "lighter_rhc";
|
|
872
876
|
}>;
|
|
873
877
|
status: z.ZodEnum<{
|
|
874
|
-
CANCELLED: "CANCELLED";
|
|
875
878
|
ACTIVE: "ACTIVE";
|
|
879
|
+
CANCELLED: "CANCELLED";
|
|
876
880
|
TRIGGERED: "TRIGGERED";
|
|
877
881
|
}>;
|
|
878
882
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -885,6 +889,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
885
889
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
886
890
|
SYSTEM: "SYSTEM";
|
|
887
891
|
POSITION_NETTED: "POSITION_NETTED";
|
|
892
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
888
893
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
889
894
|
}>>;
|
|
890
895
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -930,11 +935,11 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
930
935
|
STOP_LOSS: "STOP_LOSS";
|
|
931
936
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
932
937
|
}>;
|
|
933
|
-
semanticBracketType: z.
|
|
938
|
+
semanticBracketType: z.ZodEnum<{
|
|
934
939
|
NONE: "NONE";
|
|
935
940
|
STOP_LOSS: "STOP_LOSS";
|
|
936
941
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
937
|
-
}
|
|
942
|
+
}>;
|
|
938
943
|
createdAt: z.ZodString;
|
|
939
944
|
updatedAt: z.ZodString;
|
|
940
945
|
intent: z.ZodLiteral<"OPEN">;
|
|
@@ -1082,8 +1087,8 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1082
1087
|
lighter_rhc: "lighter_rhc";
|
|
1083
1088
|
}>;
|
|
1084
1089
|
status: z.ZodEnum<{
|
|
1085
|
-
CANCELLED: "CANCELLED";
|
|
1086
1090
|
ACTIVE: "ACTIVE";
|
|
1091
|
+
CANCELLED: "CANCELLED";
|
|
1087
1092
|
TRIGGERED: "TRIGGERED";
|
|
1088
1093
|
}>;
|
|
1089
1094
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1096,6 +1101,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1096
1101
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1097
1102
|
SYSTEM: "SYSTEM";
|
|
1098
1103
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1104
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1099
1105
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1100
1106
|
}>>;
|
|
1101
1107
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1141,11 +1147,11 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1141
1147
|
STOP_LOSS: "STOP_LOSS";
|
|
1142
1148
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1143
1149
|
}>;
|
|
1144
|
-
semanticBracketType: z.
|
|
1150
|
+
semanticBracketType: z.ZodEnum<{
|
|
1145
1151
|
NONE: "NONE";
|
|
1146
1152
|
STOP_LOSS: "STOP_LOSS";
|
|
1147
1153
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1148
|
-
}
|
|
1154
|
+
}>;
|
|
1149
1155
|
createdAt: z.ZodString;
|
|
1150
1156
|
updatedAt: z.ZodString;
|
|
1151
1157
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -1339,8 +1345,8 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1339
1345
|
lighter_rhc: "lighter_rhc";
|
|
1340
1346
|
}>;
|
|
1341
1347
|
status: z.ZodEnum<{
|
|
1342
|
-
CANCELLED: "CANCELLED";
|
|
1343
1348
|
ACTIVE: "ACTIVE";
|
|
1349
|
+
CANCELLED: "CANCELLED";
|
|
1344
1350
|
TRIGGERED: "TRIGGERED";
|
|
1345
1351
|
}>;
|
|
1346
1352
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1353,6 +1359,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1353
1359
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1354
1360
|
SYSTEM: "SYSTEM";
|
|
1355
1361
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1362
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1356
1363
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1357
1364
|
}>>;
|
|
1358
1365
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1398,11 +1405,11 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1398
1405
|
STOP_LOSS: "STOP_LOSS";
|
|
1399
1406
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1400
1407
|
}>;
|
|
1401
|
-
semanticBracketType: z.
|
|
1408
|
+
semanticBracketType: z.ZodEnum<{
|
|
1402
1409
|
NONE: "NONE";
|
|
1403
1410
|
STOP_LOSS: "STOP_LOSS";
|
|
1404
1411
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1405
|
-
}
|
|
1412
|
+
}>;
|
|
1406
1413
|
createdAt: z.ZodString;
|
|
1407
1414
|
updatedAt: z.ZodString;
|
|
1408
1415
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -1629,8 +1636,8 @@ export declare const TriggerTWAPAdjust: z.ZodObject<{
|
|
|
1629
1636
|
lighter_rhc: "lighter_rhc";
|
|
1630
1637
|
}>;
|
|
1631
1638
|
status: z.ZodEnum<{
|
|
1632
|
-
CANCELLED: "CANCELLED";
|
|
1633
1639
|
ACTIVE: "ACTIVE";
|
|
1640
|
+
CANCELLED: "CANCELLED";
|
|
1634
1641
|
TRIGGERED: "TRIGGERED";
|
|
1635
1642
|
}>;
|
|
1636
1643
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1643,6 +1650,7 @@ export declare const TriggerTWAPAdjust: z.ZodObject<{
|
|
|
1643
1650
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1644
1651
|
SYSTEM: "SYSTEM";
|
|
1645
1652
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1653
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1646
1654
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1647
1655
|
}>>;
|
|
1648
1656
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1688,11 +1696,11 @@ export declare const TriggerTWAPAdjust: z.ZodObject<{
|
|
|
1688
1696
|
STOP_LOSS: "STOP_LOSS";
|
|
1689
1697
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1690
1698
|
}>;
|
|
1691
|
-
semanticBracketType: z.
|
|
1699
|
+
semanticBracketType: z.ZodEnum<{
|
|
1692
1700
|
NONE: "NONE";
|
|
1693
1701
|
STOP_LOSS: "STOP_LOSS";
|
|
1694
1702
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1695
|
-
}
|
|
1703
|
+
}>;
|
|
1696
1704
|
createdAt: z.ZodString;
|
|
1697
1705
|
updatedAt: z.ZodString;
|
|
1698
1706
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -1885,8 +1893,8 @@ export declare const TriggerTWAPClose: z.ZodObject<{
|
|
|
1885
1893
|
lighter_rhc: "lighter_rhc";
|
|
1886
1894
|
}>;
|
|
1887
1895
|
status: z.ZodEnum<{
|
|
1888
|
-
CANCELLED: "CANCELLED";
|
|
1889
1896
|
ACTIVE: "ACTIVE";
|
|
1897
|
+
CANCELLED: "CANCELLED";
|
|
1890
1898
|
TRIGGERED: "TRIGGERED";
|
|
1891
1899
|
}>;
|
|
1892
1900
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1899,6 +1907,7 @@ export declare const TriggerTWAPClose: z.ZodObject<{
|
|
|
1899
1907
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1900
1908
|
SYSTEM: "SYSTEM";
|
|
1901
1909
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1910
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1902
1911
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1903
1912
|
}>>;
|
|
1904
1913
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1944,11 +1953,11 @@ export declare const TriggerTWAPClose: z.ZodObject<{
|
|
|
1944
1953
|
STOP_LOSS: "STOP_LOSS";
|
|
1945
1954
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1946
1955
|
}>;
|
|
1947
|
-
semanticBracketType: z.
|
|
1956
|
+
semanticBracketType: z.ZodEnum<{
|
|
1948
1957
|
NONE: "NONE";
|
|
1949
1958
|
STOP_LOSS: "STOP_LOSS";
|
|
1950
1959
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1951
|
-
}
|
|
1960
|
+
}>;
|
|
1952
1961
|
createdAt: z.ZodString;
|
|
1953
1962
|
updatedAt: z.ZodString;
|
|
1954
1963
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -2182,8 +2191,8 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2182
2191
|
lighter_rhc: "lighter_rhc";
|
|
2183
2192
|
}>;
|
|
2184
2193
|
status: z.ZodEnum<{
|
|
2185
|
-
CANCELLED: "CANCELLED";
|
|
2186
2194
|
ACTIVE: "ACTIVE";
|
|
2195
|
+
CANCELLED: "CANCELLED";
|
|
2187
2196
|
TRIGGERED: "TRIGGERED";
|
|
2188
2197
|
}>;
|
|
2189
2198
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2196,6 +2205,7 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2196
2205
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2197
2206
|
SYSTEM: "SYSTEM";
|
|
2198
2207
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2208
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2199
2209
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2200
2210
|
}>>;
|
|
2201
2211
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2241,11 +2251,11 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2241
2251
|
STOP_LOSS: "STOP_LOSS";
|
|
2242
2252
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2243
2253
|
}>;
|
|
2244
|
-
semanticBracketType: z.
|
|
2254
|
+
semanticBracketType: z.ZodEnum<{
|
|
2245
2255
|
NONE: "NONE";
|
|
2246
2256
|
STOP_LOSS: "STOP_LOSS";
|
|
2247
2257
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2248
|
-
}
|
|
2258
|
+
}>;
|
|
2249
2259
|
createdAt: z.ZodString;
|
|
2250
2260
|
updatedAt: z.ZodString;
|
|
2251
2261
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -2437,8 +2447,8 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2437
2447
|
lighter_rhc: "lighter_rhc";
|
|
2438
2448
|
}>;
|
|
2439
2449
|
status: z.ZodEnum<{
|
|
2440
|
-
CANCELLED: "CANCELLED";
|
|
2441
2450
|
ACTIVE: "ACTIVE";
|
|
2451
|
+
CANCELLED: "CANCELLED";
|
|
2442
2452
|
TRIGGERED: "TRIGGERED";
|
|
2443
2453
|
}>;
|
|
2444
2454
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2451,6 +2461,7 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2451
2461
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2452
2462
|
SYSTEM: "SYSTEM";
|
|
2453
2463
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2464
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2454
2465
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2455
2466
|
}>>;
|
|
2456
2467
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2496,11 +2507,11 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2496
2507
|
STOP_LOSS: "STOP_LOSS";
|
|
2497
2508
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2498
2509
|
}>;
|
|
2499
|
-
semanticBracketType: z.
|
|
2510
|
+
semanticBracketType: z.ZodEnum<{
|
|
2500
2511
|
NONE: "NONE";
|
|
2501
2512
|
STOP_LOSS: "STOP_LOSS";
|
|
2502
2513
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2503
|
-
}
|
|
2514
|
+
}>;
|
|
2504
2515
|
createdAt: z.ZodString;
|
|
2505
2516
|
updatedAt: z.ZodString;
|
|
2506
2517
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -2734,8 +2745,8 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
2734
2745
|
lighter_rhc: "lighter_rhc";
|
|
2735
2746
|
}>;
|
|
2736
2747
|
status: z.ZodEnum<{
|
|
2737
|
-
CANCELLED: "CANCELLED";
|
|
2738
2748
|
ACTIVE: "ACTIVE";
|
|
2749
|
+
CANCELLED: "CANCELLED";
|
|
2739
2750
|
TRIGGERED: "TRIGGERED";
|
|
2740
2751
|
}>;
|
|
2741
2752
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2748,6 +2759,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
2748
2759
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2749
2760
|
SYSTEM: "SYSTEM";
|
|
2750
2761
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2762
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2751
2763
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2752
2764
|
}>>;
|
|
2753
2765
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2793,11 +2805,11 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
2793
2805
|
STOP_LOSS: "STOP_LOSS";
|
|
2794
2806
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2795
2807
|
}>;
|
|
2796
|
-
semanticBracketType: z.
|
|
2808
|
+
semanticBracketType: z.ZodEnum<{
|
|
2797
2809
|
NONE: "NONE";
|
|
2798
2810
|
STOP_LOSS: "STOP_LOSS";
|
|
2799
2811
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2800
|
-
}
|
|
2812
|
+
}>;
|
|
2801
2813
|
createdAt: z.ZodString;
|
|
2802
2814
|
updatedAt: z.ZodString;
|
|
2803
2815
|
intent: z.ZodLiteral<"OPEN">;
|
|
@@ -2945,8 +2957,8 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
2945
2957
|
lighter_rhc: "lighter_rhc";
|
|
2946
2958
|
}>;
|
|
2947
2959
|
status: z.ZodEnum<{
|
|
2948
|
-
CANCELLED: "CANCELLED";
|
|
2949
2960
|
ACTIVE: "ACTIVE";
|
|
2961
|
+
CANCELLED: "CANCELLED";
|
|
2950
2962
|
TRIGGERED: "TRIGGERED";
|
|
2951
2963
|
}>;
|
|
2952
2964
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2959,6 +2971,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
2959
2971
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2960
2972
|
SYSTEM: "SYSTEM";
|
|
2961
2973
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2974
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2962
2975
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2963
2976
|
}>>;
|
|
2964
2977
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3004,11 +3017,11 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3004
3017
|
STOP_LOSS: "STOP_LOSS";
|
|
3005
3018
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3006
3019
|
}>;
|
|
3007
|
-
semanticBracketType: z.
|
|
3020
|
+
semanticBracketType: z.ZodEnum<{
|
|
3008
3021
|
NONE: "NONE";
|
|
3009
3022
|
STOP_LOSS: "STOP_LOSS";
|
|
3010
3023
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3011
|
-
}
|
|
3024
|
+
}>;
|
|
3012
3025
|
createdAt: z.ZodString;
|
|
3013
3026
|
updatedAt: z.ZodString;
|
|
3014
3027
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -3202,8 +3215,8 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3202
3215
|
lighter_rhc: "lighter_rhc";
|
|
3203
3216
|
}>;
|
|
3204
3217
|
status: z.ZodEnum<{
|
|
3205
|
-
CANCELLED: "CANCELLED";
|
|
3206
3218
|
ACTIVE: "ACTIVE";
|
|
3219
|
+
CANCELLED: "CANCELLED";
|
|
3207
3220
|
TRIGGERED: "TRIGGERED";
|
|
3208
3221
|
}>;
|
|
3209
3222
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -3216,6 +3229,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3216
3229
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3217
3230
|
SYSTEM: "SYSTEM";
|
|
3218
3231
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3232
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3219
3233
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3220
3234
|
}>>;
|
|
3221
3235
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3261,11 +3275,11 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3261
3275
|
STOP_LOSS: "STOP_LOSS";
|
|
3262
3276
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3263
3277
|
}>;
|
|
3264
|
-
semanticBracketType: z.
|
|
3278
|
+
semanticBracketType: z.ZodEnum<{
|
|
3265
3279
|
NONE: "NONE";
|
|
3266
3280
|
STOP_LOSS: "STOP_LOSS";
|
|
3267
3281
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3268
|
-
}
|
|
3282
|
+
}>;
|
|
3269
3283
|
createdAt: z.ZodString;
|
|
3270
3284
|
updatedAt: z.ZodString;
|
|
3271
3285
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -3491,8 +3505,8 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3491
3505
|
lighter_rhc: "lighter_rhc";
|
|
3492
3506
|
}>;
|
|
3493
3507
|
status: z.ZodEnum<{
|
|
3494
|
-
CANCELLED: "CANCELLED";
|
|
3495
3508
|
ACTIVE: "ACTIVE";
|
|
3509
|
+
CANCELLED: "CANCELLED";
|
|
3496
3510
|
TRIGGERED: "TRIGGERED";
|
|
3497
3511
|
}>;
|
|
3498
3512
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -3505,6 +3519,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3505
3519
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3506
3520
|
SYSTEM: "SYSTEM";
|
|
3507
3521
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3522
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3508
3523
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3509
3524
|
}>>;
|
|
3510
3525
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3550,11 +3565,11 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3550
3565
|
STOP_LOSS: "STOP_LOSS";
|
|
3551
3566
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3552
3567
|
}>;
|
|
3553
|
-
semanticBracketType: z.
|
|
3568
|
+
semanticBracketType: z.ZodEnum<{
|
|
3554
3569
|
NONE: "NONE";
|
|
3555
3570
|
STOP_LOSS: "STOP_LOSS";
|
|
3556
3571
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3557
|
-
}
|
|
3572
|
+
}>;
|
|
3558
3573
|
createdAt: z.ZodString;
|
|
3559
3574
|
updatedAt: z.ZodString;
|
|
3560
3575
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -3746,8 +3761,8 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3746
3761
|
lighter_rhc: "lighter_rhc";
|
|
3747
3762
|
}>;
|
|
3748
3763
|
status: z.ZodEnum<{
|
|
3749
|
-
CANCELLED: "CANCELLED";
|
|
3750
3764
|
ACTIVE: "ACTIVE";
|
|
3765
|
+
CANCELLED: "CANCELLED";
|
|
3751
3766
|
TRIGGERED: "TRIGGERED";
|
|
3752
3767
|
}>;
|
|
3753
3768
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -3760,6 +3775,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3760
3775
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
3761
3776
|
SYSTEM: "SYSTEM";
|
|
3762
3777
|
POSITION_NETTED: "POSITION_NETTED";
|
|
3778
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
3763
3779
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
3764
3780
|
}>>;
|
|
3765
3781
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3805,11 +3821,11 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
3805
3821
|
STOP_LOSS: "STOP_LOSS";
|
|
3806
3822
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3807
3823
|
}>;
|
|
3808
|
-
semanticBracketType: z.
|
|
3824
|
+
semanticBracketType: z.ZodEnum<{
|
|
3809
3825
|
NONE: "NONE";
|
|
3810
3826
|
STOP_LOSS: "STOP_LOSS";
|
|
3811
3827
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
3812
|
-
}
|
|
3828
|
+
}>;
|
|
3813
3829
|
createdAt: z.ZodString;
|
|
3814
3830
|
updatedAt: z.ZodString;
|
|
3815
3831
|
intent: z.ZodLiteral<"CLOSE">;
|