@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
|
@@ -14,6 +14,7 @@ export declare const AttachTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
14
14
|
STOP_LOSS: "STOP_LOSS";
|
|
15
15
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
16
16
|
}>;
|
|
17
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
17
18
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
19
|
type: z.ZodLiteral<"notional">;
|
|
19
20
|
data: z.ZodObject<{
|
|
@@ -22,8 +23,12 @@ export declare const AttachTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
22
23
|
mark: "mark";
|
|
23
24
|
}>;
|
|
24
25
|
threshold: z.ZodNumber;
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
cancel: "cancel";
|
|
28
|
+
keep: "keep";
|
|
29
|
+
}>>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
32
|
type: z.ZodLiteral<"upnl">;
|
|
28
33
|
data: z.ZodObject<{
|
|
29
34
|
priceSource: z.ZodEnum<{
|
|
@@ -31,8 +36,12 @@ export declare const AttachTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
31
36
|
mark: "mark";
|
|
32
37
|
}>;
|
|
33
38
|
threshold: z.ZodNumber;
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
cancel: "cancel";
|
|
41
|
+
keep: "keep";
|
|
42
|
+
}>>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
45
|
type: z.ZodLiteral<"upnl_bps">;
|
|
37
46
|
data: z.ZodObject<{
|
|
38
47
|
priceSource: z.ZodEnum<{
|
|
@@ -40,12 +49,13 @@ export declare const AttachTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
40
49
|
mark: "mark";
|
|
41
50
|
}>;
|
|
42
51
|
threshold: z.ZodNumber;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
}, z.core.$strict>], "type">;
|
|
45
54
|
}, z.core.$strip>;
|
|
46
55
|
export declare const AttachTriggerMarketCloseTrailing: z.ZodObject<{
|
|
47
56
|
intent: z.ZodLiteral<"CLOSE">;
|
|
48
57
|
type: z.ZodLiteral<"MARKET">;
|
|
58
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
49
59
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
60
|
type: z.ZodLiteral<"notional_trailing">;
|
|
51
61
|
data: z.ZodObject<{
|
|
@@ -53,24 +63,32 @@ export declare const AttachTriggerMarketCloseTrailing: z.ZodObject<{
|
|
|
53
63
|
mid: "mid";
|
|
54
64
|
mark: "mark";
|
|
55
65
|
}>;
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
67
|
+
cancel: "cancel";
|
|
68
|
+
keep: "keep";
|
|
69
|
+
}>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
72
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
59
73
|
data: z.ZodObject<{
|
|
60
74
|
priceSource: z.ZodEnum<{
|
|
61
75
|
mid: "mid";
|
|
62
76
|
mark: "mark";
|
|
63
77
|
}>;
|
|
64
|
-
|
|
65
|
-
|
|
78
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
cancel: "cancel";
|
|
80
|
+
keep: "keep";
|
|
81
|
+
}>>;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
84
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
67
85
|
data: z.ZodObject<{
|
|
68
86
|
priceSource: z.ZodEnum<{
|
|
69
87
|
mid: "mid";
|
|
70
88
|
mark: "mark";
|
|
71
89
|
}>;
|
|
72
|
-
}, z.core.$
|
|
73
|
-
}, z.core.$
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
}, z.core.$strict>], "type">;
|
|
74
92
|
trailing: z.ZodObject<{
|
|
75
93
|
mode: z.ZodEnum<{
|
|
76
94
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -87,6 +105,7 @@ export declare const AttachTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
87
105
|
STOP_LOSS: "STOP_LOSS";
|
|
88
106
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
89
107
|
}>;
|
|
108
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
90
109
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
110
|
type: z.ZodLiteral<"notional">;
|
|
92
111
|
data: z.ZodObject<{
|
|
@@ -95,8 +114,12 @@ export declare const AttachTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
95
114
|
mark: "mark";
|
|
96
115
|
}>;
|
|
97
116
|
threshold: z.ZodNumber;
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
cancel: "cancel";
|
|
119
|
+
keep: "keep";
|
|
120
|
+
}>>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
123
|
type: z.ZodLiteral<"upnl">;
|
|
101
124
|
data: z.ZodObject<{
|
|
102
125
|
priceSource: z.ZodEnum<{
|
|
@@ -104,8 +127,12 @@ export declare const AttachTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
104
127
|
mark: "mark";
|
|
105
128
|
}>;
|
|
106
129
|
threshold: z.ZodNumber;
|
|
107
|
-
|
|
108
|
-
|
|
130
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
131
|
+
cancel: "cancel";
|
|
132
|
+
keep: "keep";
|
|
133
|
+
}>>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
109
136
|
type: z.ZodLiteral<"upnl_bps">;
|
|
110
137
|
data: z.ZodObject<{
|
|
111
138
|
priceSource: z.ZodEnum<{
|
|
@@ -113,11 +140,12 @@ export declare const AttachTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
113
140
|
mark: "mark";
|
|
114
141
|
}>;
|
|
115
142
|
threshold: z.ZodNumber;
|
|
116
|
-
}, z.core.$
|
|
117
|
-
}, z.core.$
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
}, z.core.$strict>], "type">;
|
|
118
145
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
146
|
intent: z.ZodLiteral<"CLOSE">;
|
|
120
147
|
type: z.ZodLiteral<"MARKET">;
|
|
148
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
121
149
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
150
|
type: z.ZodLiteral<"notional_trailing">;
|
|
123
151
|
data: z.ZodObject<{
|
|
@@ -125,24 +153,32 @@ export declare const AttachTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
125
153
|
mid: "mid";
|
|
126
154
|
mark: "mark";
|
|
127
155
|
}>;
|
|
128
|
-
|
|
129
|
-
|
|
156
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
157
|
+
cancel: "cancel";
|
|
158
|
+
keep: "keep";
|
|
159
|
+
}>>;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
130
162
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
131
163
|
data: z.ZodObject<{
|
|
132
164
|
priceSource: z.ZodEnum<{
|
|
133
165
|
mid: "mid";
|
|
134
166
|
mark: "mark";
|
|
135
167
|
}>;
|
|
136
|
-
|
|
137
|
-
|
|
168
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
cancel: "cancel";
|
|
170
|
+
keep: "keep";
|
|
171
|
+
}>>;
|
|
172
|
+
}, z.core.$strict>;
|
|
173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
174
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
139
175
|
data: z.ZodObject<{
|
|
140
176
|
priceSource: z.ZodEnum<{
|
|
141
177
|
mid: "mid";
|
|
142
178
|
mark: "mark";
|
|
143
179
|
}>;
|
|
144
|
-
}, z.core.$
|
|
145
|
-
}, z.core.$
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
}, z.core.$strict>], "type">;
|
|
146
182
|
trailing: z.ZodObject<{
|
|
147
183
|
mode: z.ZodEnum<{
|
|
148
184
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -159,6 +195,7 @@ export declare const AttachTriggerMarketCloseList: z.ZodArray<z.ZodUnion<readonl
|
|
|
159
195
|
STOP_LOSS: "STOP_LOSS";
|
|
160
196
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
161
197
|
}>;
|
|
198
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
162
199
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
163
200
|
type: z.ZodLiteral<"notional">;
|
|
164
201
|
data: z.ZodObject<{
|
|
@@ -167,8 +204,12 @@ export declare const AttachTriggerMarketCloseList: z.ZodArray<z.ZodUnion<readonl
|
|
|
167
204
|
mark: "mark";
|
|
168
205
|
}>;
|
|
169
206
|
threshold: z.ZodNumber;
|
|
170
|
-
|
|
171
|
-
|
|
207
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
208
|
+
cancel: "cancel";
|
|
209
|
+
keep: "keep";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
172
213
|
type: z.ZodLiteral<"upnl">;
|
|
173
214
|
data: z.ZodObject<{
|
|
174
215
|
priceSource: z.ZodEnum<{
|
|
@@ -176,8 +217,12 @@ export declare const AttachTriggerMarketCloseList: z.ZodArray<z.ZodUnion<readonl
|
|
|
176
217
|
mark: "mark";
|
|
177
218
|
}>;
|
|
178
219
|
threshold: z.ZodNumber;
|
|
179
|
-
|
|
180
|
-
|
|
220
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
221
|
+
cancel: "cancel";
|
|
222
|
+
keep: "keep";
|
|
223
|
+
}>>;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
226
|
type: z.ZodLiteral<"upnl_bps">;
|
|
182
227
|
data: z.ZodObject<{
|
|
183
228
|
priceSource: z.ZodEnum<{
|
|
@@ -185,11 +230,12 @@ export declare const AttachTriggerMarketCloseList: z.ZodArray<z.ZodUnion<readonl
|
|
|
185
230
|
mark: "mark";
|
|
186
231
|
}>;
|
|
187
232
|
threshold: z.ZodNumber;
|
|
188
|
-
}, z.core.$
|
|
189
|
-
}, z.core.$
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
}, z.core.$strict>], "type">;
|
|
190
235
|
}, z.core.$strip>, z.ZodObject<{
|
|
191
236
|
intent: z.ZodLiteral<"CLOSE">;
|
|
192
237
|
type: z.ZodLiteral<"MARKET">;
|
|
238
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
193
239
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
194
240
|
type: z.ZodLiteral<"notional_trailing">;
|
|
195
241
|
data: z.ZodObject<{
|
|
@@ -197,24 +243,32 @@ export declare const AttachTriggerMarketCloseList: z.ZodArray<z.ZodUnion<readonl
|
|
|
197
243
|
mid: "mid";
|
|
198
244
|
mark: "mark";
|
|
199
245
|
}>;
|
|
200
|
-
|
|
201
|
-
|
|
246
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
247
|
+
cancel: "cancel";
|
|
248
|
+
keep: "keep";
|
|
249
|
+
}>>;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
202
252
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
203
253
|
data: z.ZodObject<{
|
|
204
254
|
priceSource: z.ZodEnum<{
|
|
205
255
|
mid: "mid";
|
|
206
256
|
mark: "mark";
|
|
207
257
|
}>;
|
|
208
|
-
|
|
209
|
-
|
|
258
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
259
|
+
cancel: "cancel";
|
|
260
|
+
keep: "keep";
|
|
261
|
+
}>>;
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
264
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
211
265
|
data: z.ZodObject<{
|
|
212
266
|
priceSource: z.ZodEnum<{
|
|
213
267
|
mid: "mid";
|
|
214
268
|
mark: "mark";
|
|
215
269
|
}>;
|
|
216
|
-
}, z.core.$
|
|
217
|
-
}, z.core.$
|
|
270
|
+
}, z.core.$strict>;
|
|
271
|
+
}, z.core.$strict>], "type">;
|
|
218
272
|
trailing: z.ZodObject<{
|
|
219
273
|
mode: z.ZodEnum<{
|
|
220
274
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -327,6 +381,7 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
327
381
|
STOP_LOSS: "STOP_LOSS";
|
|
328
382
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
329
383
|
}>;
|
|
384
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
330
385
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
331
386
|
type: z.ZodLiteral<"notional">;
|
|
332
387
|
data: z.ZodObject<{
|
|
@@ -335,8 +390,12 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
335
390
|
mark: "mark";
|
|
336
391
|
}>;
|
|
337
392
|
threshold: z.ZodNumber;
|
|
338
|
-
|
|
339
|
-
|
|
393
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
394
|
+
cancel: "cancel";
|
|
395
|
+
keep: "keep";
|
|
396
|
+
}>>;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
340
399
|
type: z.ZodLiteral<"upnl">;
|
|
341
400
|
data: z.ZodObject<{
|
|
342
401
|
priceSource: z.ZodEnum<{
|
|
@@ -344,8 +403,12 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
344
403
|
mark: "mark";
|
|
345
404
|
}>;
|
|
346
405
|
threshold: z.ZodNumber;
|
|
347
|
-
|
|
348
|
-
|
|
406
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
407
|
+
cancel: "cancel";
|
|
408
|
+
keep: "keep";
|
|
409
|
+
}>>;
|
|
410
|
+
}, z.core.$strict>;
|
|
411
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
349
412
|
type: z.ZodLiteral<"upnl_bps">;
|
|
350
413
|
data: z.ZodObject<{
|
|
351
414
|
priceSource: z.ZodEnum<{
|
|
@@ -353,11 +416,12 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
353
416
|
mark: "mark";
|
|
354
417
|
}>;
|
|
355
418
|
threshold: z.ZodNumber;
|
|
356
|
-
}, z.core.$
|
|
357
|
-
}, z.core.$
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
}, z.core.$strict>], "type">;
|
|
358
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
359
422
|
intent: z.ZodLiteral<"CLOSE">;
|
|
360
423
|
type: z.ZodLiteral<"MARKET">;
|
|
424
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
361
425
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
362
426
|
type: z.ZodLiteral<"notional_trailing">;
|
|
363
427
|
data: z.ZodObject<{
|
|
@@ -365,24 +429,32 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
365
429
|
mid: "mid";
|
|
366
430
|
mark: "mark";
|
|
367
431
|
}>;
|
|
368
|
-
|
|
369
|
-
|
|
432
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
433
|
+
cancel: "cancel";
|
|
434
|
+
keep: "keep";
|
|
435
|
+
}>>;
|
|
436
|
+
}, z.core.$strict>;
|
|
437
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
370
438
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
371
439
|
data: z.ZodObject<{
|
|
372
440
|
priceSource: z.ZodEnum<{
|
|
373
441
|
mid: "mid";
|
|
374
442
|
mark: "mark";
|
|
375
443
|
}>;
|
|
376
|
-
|
|
377
|
-
|
|
444
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
445
|
+
cancel: "cancel";
|
|
446
|
+
keep: "keep";
|
|
447
|
+
}>>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
378
450
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
379
451
|
data: z.ZodObject<{
|
|
380
452
|
priceSource: z.ZodEnum<{
|
|
381
453
|
mid: "mid";
|
|
382
454
|
mark: "mark";
|
|
383
455
|
}>;
|
|
384
|
-
}, z.core.$
|
|
385
|
-
}, z.core.$
|
|
456
|
+
}, z.core.$strict>;
|
|
457
|
+
}, z.core.$strict>], "type">;
|
|
386
458
|
trailing: z.ZodObject<{
|
|
387
459
|
mode: z.ZodEnum<{
|
|
388
460
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -688,6 +760,7 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
688
760
|
STOP_LOSS: "STOP_LOSS";
|
|
689
761
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
690
762
|
}>>;
|
|
763
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
691
764
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
692
765
|
type: z.ZodLiteral<"ratio">;
|
|
693
766
|
data: z.ZodObject<{
|
|
@@ -698,8 +771,8 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
698
771
|
symbol_a: z.ZodString;
|
|
699
772
|
symbol_b: z.ZodString;
|
|
700
773
|
threshold: z.ZodNumber;
|
|
701
|
-
}, z.core.$
|
|
702
|
-
}, z.core.$
|
|
774
|
+
}, z.core.$strict>;
|
|
775
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
703
776
|
type: z.ZodLiteral<"price">;
|
|
704
777
|
data: z.ZodObject<{
|
|
705
778
|
priceSource: z.ZodEnum<{
|
|
@@ -708,8 +781,8 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
708
781
|
}>;
|
|
709
782
|
symbol: z.ZodString;
|
|
710
783
|
threshold: z.ZodNumber;
|
|
711
|
-
}, z.core.$
|
|
712
|
-
}, z.core.$
|
|
784
|
+
}, z.core.$strict>;
|
|
785
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
713
786
|
type: z.ZodLiteral<"weighted_ratio">;
|
|
714
787
|
data: z.ZodObject<{
|
|
715
788
|
priceSource: z.ZodEnum<{
|
|
@@ -725,8 +798,8 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
725
798
|
weight: z.ZodNumber;
|
|
726
799
|
}, z.core.$strip>>;
|
|
727
800
|
threshold: z.ZodNumber;
|
|
728
|
-
}, z.core.$
|
|
729
|
-
}, z.core.$
|
|
801
|
+
}, z.core.$strict>;
|
|
802
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
730
803
|
type: z.ZodLiteral<"notional">;
|
|
731
804
|
data: z.ZodObject<{
|
|
732
805
|
priceSource: z.ZodEnum<{
|
|
@@ -734,8 +807,12 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
734
807
|
mark: "mark";
|
|
735
808
|
}>;
|
|
736
809
|
threshold: z.ZodNumber;
|
|
737
|
-
|
|
738
|
-
|
|
810
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
811
|
+
cancel: "cancel";
|
|
812
|
+
keep: "keep";
|
|
813
|
+
}>>;
|
|
814
|
+
}, z.core.$strict>;
|
|
815
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
739
816
|
type: z.ZodLiteral<"upnl">;
|
|
740
817
|
data: z.ZodObject<{
|
|
741
818
|
priceSource: z.ZodEnum<{
|
|
@@ -743,8 +820,12 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
743
820
|
mark: "mark";
|
|
744
821
|
}>;
|
|
745
822
|
threshold: z.ZodNumber;
|
|
746
|
-
|
|
747
|
-
|
|
823
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
824
|
+
cancel: "cancel";
|
|
825
|
+
keep: "keep";
|
|
826
|
+
}>>;
|
|
827
|
+
}, z.core.$strict>;
|
|
828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
748
829
|
type: z.ZodLiteral<"upnl_bps">;
|
|
749
830
|
data: z.ZodObject<{
|
|
750
831
|
priceSource: z.ZodEnum<{
|
|
@@ -752,8 +833,8 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
752
833
|
mark: "mark";
|
|
753
834
|
}>;
|
|
754
835
|
threshold: z.ZodNumber;
|
|
755
|
-
}, z.core.$
|
|
756
|
-
}, z.core.$
|
|
836
|
+
}, z.core.$strict>;
|
|
837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
757
838
|
type: z.ZodLiteral<"prediction_market">;
|
|
758
839
|
data: z.ZodObject<{
|
|
759
840
|
source: z.ZodEnum<{
|
|
@@ -762,14 +843,15 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
|
762
843
|
}>;
|
|
763
844
|
marketKey: z.ZodString;
|
|
764
845
|
threshold: z.ZodNumber;
|
|
765
|
-
}, z.core.$
|
|
766
|
-
}, z.core.$
|
|
846
|
+
}, z.core.$strict>;
|
|
847
|
+
}, z.core.$strict>], "type">;
|
|
767
848
|
clientId: z.ZodOptional<z.ZodString>;
|
|
768
849
|
}, z.core.$strip>;
|
|
769
850
|
export declare const CreateTriggerMarketCloseTrailing: z.ZodObject<{
|
|
770
851
|
intent: z.ZodLiteral<"CLOSE">;
|
|
771
852
|
type: z.ZodLiteral<"MARKET">;
|
|
772
853
|
positionId: z.ZodUUID;
|
|
854
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
773
855
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
774
856
|
type: z.ZodLiteral<"ratio_trailing">;
|
|
775
857
|
data: z.ZodObject<{
|
|
@@ -779,8 +861,8 @@ export declare const CreateTriggerMarketCloseTrailing: z.ZodObject<{
|
|
|
779
861
|
}>;
|
|
780
862
|
symbol_a: z.ZodString;
|
|
781
863
|
symbol_b: z.ZodString;
|
|
782
|
-
}, z.core.$
|
|
783
|
-
}, z.core.$
|
|
864
|
+
}, z.core.$strict>;
|
|
865
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
784
866
|
type: z.ZodLiteral<"price_trailing">;
|
|
785
867
|
data: z.ZodObject<{
|
|
786
868
|
priceSource: z.ZodEnum<{
|
|
@@ -788,8 +870,8 @@ export declare const CreateTriggerMarketCloseTrailing: z.ZodObject<{
|
|
|
788
870
|
mark: "mark";
|
|
789
871
|
}>;
|
|
790
872
|
symbol: z.ZodString;
|
|
791
|
-
}, z.core.$
|
|
792
|
-
}, z.core.$
|
|
873
|
+
}, z.core.$strict>;
|
|
874
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
793
875
|
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
794
876
|
data: z.ZodObject<{
|
|
795
877
|
priceSource: z.ZodEnum<{
|
|
@@ -804,32 +886,40 @@ export declare const CreateTriggerMarketCloseTrailing: z.ZodObject<{
|
|
|
804
886
|
}>;
|
|
805
887
|
weight: z.ZodNumber;
|
|
806
888
|
}, z.core.$strip>>;
|
|
807
|
-
}, z.core.$
|
|
808
|
-
}, z.core.$
|
|
889
|
+
}, z.core.$strict>;
|
|
890
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
809
891
|
type: z.ZodLiteral<"notional_trailing">;
|
|
810
892
|
data: z.ZodObject<{
|
|
811
893
|
priceSource: z.ZodEnum<{
|
|
812
894
|
mid: "mid";
|
|
813
895
|
mark: "mark";
|
|
814
896
|
}>;
|
|
815
|
-
|
|
816
|
-
|
|
897
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
898
|
+
cancel: "cancel";
|
|
899
|
+
keep: "keep";
|
|
900
|
+
}>>;
|
|
901
|
+
}, z.core.$strict>;
|
|
902
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
817
903
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
818
904
|
data: z.ZodObject<{
|
|
819
905
|
priceSource: z.ZodEnum<{
|
|
820
906
|
mid: "mid";
|
|
821
907
|
mark: "mark";
|
|
822
908
|
}>;
|
|
823
|
-
|
|
824
|
-
|
|
909
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
910
|
+
cancel: "cancel";
|
|
911
|
+
keep: "keep";
|
|
912
|
+
}>>;
|
|
913
|
+
}, z.core.$strict>;
|
|
914
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
825
915
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
826
916
|
data: z.ZodObject<{
|
|
827
917
|
priceSource: z.ZodEnum<{
|
|
828
918
|
mid: "mid";
|
|
829
919
|
mark: "mark";
|
|
830
920
|
}>;
|
|
831
|
-
}, z.core.$
|
|
832
|
-
}, z.core.$
|
|
921
|
+
}, z.core.$strict>;
|
|
922
|
+
}, z.core.$strict>], "type">;
|
|
833
923
|
trailing: z.ZodObject<{
|
|
834
924
|
mode: z.ZodEnum<{
|
|
835
925
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -853,6 +943,7 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
853
943
|
STOP_LOSS: "STOP_LOSS";
|
|
854
944
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
855
945
|
}>>;
|
|
946
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
856
947
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
857
948
|
type: z.ZodLiteral<"ratio">;
|
|
858
949
|
data: z.ZodObject<{
|
|
@@ -863,8 +954,8 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
863
954
|
symbol_a: z.ZodString;
|
|
864
955
|
symbol_b: z.ZodString;
|
|
865
956
|
threshold: z.ZodNumber;
|
|
866
|
-
}, z.core.$
|
|
867
|
-
}, z.core.$
|
|
957
|
+
}, z.core.$strict>;
|
|
958
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
868
959
|
type: z.ZodLiteral<"price">;
|
|
869
960
|
data: z.ZodObject<{
|
|
870
961
|
priceSource: z.ZodEnum<{
|
|
@@ -873,8 +964,8 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
873
964
|
}>;
|
|
874
965
|
symbol: z.ZodString;
|
|
875
966
|
threshold: z.ZodNumber;
|
|
876
|
-
}, z.core.$
|
|
877
|
-
}, z.core.$
|
|
967
|
+
}, z.core.$strict>;
|
|
968
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
878
969
|
type: z.ZodLiteral<"weighted_ratio">;
|
|
879
970
|
data: z.ZodObject<{
|
|
880
971
|
priceSource: z.ZodEnum<{
|
|
@@ -890,8 +981,8 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
890
981
|
weight: z.ZodNumber;
|
|
891
982
|
}, z.core.$strip>>;
|
|
892
983
|
threshold: z.ZodNumber;
|
|
893
|
-
}, z.core.$
|
|
894
|
-
}, z.core.$
|
|
984
|
+
}, z.core.$strict>;
|
|
985
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
895
986
|
type: z.ZodLiteral<"notional">;
|
|
896
987
|
data: z.ZodObject<{
|
|
897
988
|
priceSource: z.ZodEnum<{
|
|
@@ -899,8 +990,12 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
899
990
|
mark: "mark";
|
|
900
991
|
}>;
|
|
901
992
|
threshold: z.ZodNumber;
|
|
902
|
-
|
|
903
|
-
|
|
993
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
994
|
+
cancel: "cancel";
|
|
995
|
+
keep: "keep";
|
|
996
|
+
}>>;
|
|
997
|
+
}, z.core.$strict>;
|
|
998
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
904
999
|
type: z.ZodLiteral<"upnl">;
|
|
905
1000
|
data: z.ZodObject<{
|
|
906
1001
|
priceSource: z.ZodEnum<{
|
|
@@ -908,8 +1003,12 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
908
1003
|
mark: "mark";
|
|
909
1004
|
}>;
|
|
910
1005
|
threshold: z.ZodNumber;
|
|
911
|
-
|
|
912
|
-
|
|
1006
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1007
|
+
cancel: "cancel";
|
|
1008
|
+
keep: "keep";
|
|
1009
|
+
}>>;
|
|
1010
|
+
}, z.core.$strict>;
|
|
1011
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
913
1012
|
type: z.ZodLiteral<"upnl_bps">;
|
|
914
1013
|
data: z.ZodObject<{
|
|
915
1014
|
priceSource: z.ZodEnum<{
|
|
@@ -917,8 +1016,8 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
917
1016
|
mark: "mark";
|
|
918
1017
|
}>;
|
|
919
1018
|
threshold: z.ZodNumber;
|
|
920
|
-
}, z.core.$
|
|
921
|
-
}, z.core.$
|
|
1019
|
+
}, z.core.$strict>;
|
|
1020
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
922
1021
|
type: z.ZodLiteral<"prediction_market">;
|
|
923
1022
|
data: z.ZodObject<{
|
|
924
1023
|
source: z.ZodEnum<{
|
|
@@ -927,13 +1026,14 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
927
1026
|
}>;
|
|
928
1027
|
marketKey: z.ZodString;
|
|
929
1028
|
threshold: z.ZodNumber;
|
|
930
|
-
}, z.core.$
|
|
931
|
-
}, z.core.$
|
|
1029
|
+
}, z.core.$strict>;
|
|
1030
|
+
}, z.core.$strict>], "type">;
|
|
932
1031
|
clientId: z.ZodOptional<z.ZodString>;
|
|
933
1032
|
}, z.core.$strip>, z.ZodObject<{
|
|
934
1033
|
intent: z.ZodLiteral<"CLOSE">;
|
|
935
1034
|
type: z.ZodLiteral<"MARKET">;
|
|
936
1035
|
positionId: z.ZodUUID;
|
|
1036
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
937
1037
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
938
1038
|
type: z.ZodLiteral<"ratio_trailing">;
|
|
939
1039
|
data: z.ZodObject<{
|
|
@@ -943,8 +1043,8 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
943
1043
|
}>;
|
|
944
1044
|
symbol_a: z.ZodString;
|
|
945
1045
|
symbol_b: z.ZodString;
|
|
946
|
-
}, z.core.$
|
|
947
|
-
}, z.core.$
|
|
1046
|
+
}, z.core.$strict>;
|
|
1047
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
948
1048
|
type: z.ZodLiteral<"price_trailing">;
|
|
949
1049
|
data: z.ZodObject<{
|
|
950
1050
|
priceSource: z.ZodEnum<{
|
|
@@ -952,8 +1052,8 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
952
1052
|
mark: "mark";
|
|
953
1053
|
}>;
|
|
954
1054
|
symbol: z.ZodString;
|
|
955
|
-
}, z.core.$
|
|
956
|
-
}, z.core.$
|
|
1055
|
+
}, z.core.$strict>;
|
|
1056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
957
1057
|
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
958
1058
|
data: z.ZodObject<{
|
|
959
1059
|
priceSource: z.ZodEnum<{
|
|
@@ -968,32 +1068,40 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
|
|
|
968
1068
|
}>;
|
|
969
1069
|
weight: z.ZodNumber;
|
|
970
1070
|
}, z.core.$strip>>;
|
|
971
|
-
}, z.core.$
|
|
972
|
-
}, z.core.$
|
|
1071
|
+
}, z.core.$strict>;
|
|
1072
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
973
1073
|
type: z.ZodLiteral<"notional_trailing">;
|
|
974
1074
|
data: z.ZodObject<{
|
|
975
1075
|
priceSource: z.ZodEnum<{
|
|
976
1076
|
mid: "mid";
|
|
977
1077
|
mark: "mark";
|
|
978
1078
|
}>;
|
|
979
|
-
|
|
980
|
-
|
|
1079
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1080
|
+
cancel: "cancel";
|
|
1081
|
+
keep: "keep";
|
|
1082
|
+
}>>;
|
|
1083
|
+
}, z.core.$strict>;
|
|
1084
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
981
1085
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
982
1086
|
data: z.ZodObject<{
|
|
983
1087
|
priceSource: z.ZodEnum<{
|
|
984
1088
|
mid: "mid";
|
|
985
1089
|
mark: "mark";
|
|
986
1090
|
}>;
|
|
987
|
-
|
|
988
|
-
|
|
1091
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1092
|
+
cancel: "cancel";
|
|
1093
|
+
keep: "keep";
|
|
1094
|
+
}>>;
|
|
1095
|
+
}, z.core.$strict>;
|
|
1096
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
989
1097
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
990
1098
|
data: z.ZodObject<{
|
|
991
1099
|
priceSource: z.ZodEnum<{
|
|
992
1100
|
mid: "mid";
|
|
993
1101
|
mark: "mark";
|
|
994
1102
|
}>;
|
|
995
|
-
}, z.core.$
|
|
996
|
-
}, z.core.$
|
|
1103
|
+
}, z.core.$strict>;
|
|
1104
|
+
}, z.core.$strict>], "type">;
|
|
997
1105
|
trailing: z.ZodObject<{
|
|
998
1106
|
mode: z.ZodEnum<{
|
|
999
1107
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -1027,8 +1135,8 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1027
1135
|
symbol_a: z.ZodString;
|
|
1028
1136
|
symbol_b: z.ZodString;
|
|
1029
1137
|
threshold: z.ZodNumber;
|
|
1030
|
-
}, z.core.$
|
|
1031
|
-
}, z.core.$
|
|
1138
|
+
}, z.core.$strict>;
|
|
1139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1032
1140
|
type: z.ZodLiteral<"price">;
|
|
1033
1141
|
data: z.ZodObject<{
|
|
1034
1142
|
priceSource: z.ZodEnum<{
|
|
@@ -1037,8 +1145,8 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1037
1145
|
}>;
|
|
1038
1146
|
symbol: z.ZodString;
|
|
1039
1147
|
threshold: z.ZodNumber;
|
|
1040
|
-
}, z.core.$
|
|
1041
|
-
}, z.core.$
|
|
1148
|
+
}, z.core.$strict>;
|
|
1149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1042
1150
|
type: z.ZodLiteral<"weighted_ratio">;
|
|
1043
1151
|
data: z.ZodObject<{
|
|
1044
1152
|
priceSource: z.ZodEnum<{
|
|
@@ -1054,8 +1162,8 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1054
1162
|
weight: z.ZodNumber;
|
|
1055
1163
|
}, z.core.$strip>>;
|
|
1056
1164
|
threshold: z.ZodNumber;
|
|
1057
|
-
}, z.core.$
|
|
1058
|
-
}, z.core.$
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1059
1167
|
type: z.ZodLiteral<"notional">;
|
|
1060
1168
|
data: z.ZodObject<{
|
|
1061
1169
|
priceSource: z.ZodEnum<{
|
|
@@ -1063,8 +1171,12 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1063
1171
|
mark: "mark";
|
|
1064
1172
|
}>;
|
|
1065
1173
|
threshold: z.ZodNumber;
|
|
1066
|
-
|
|
1067
|
-
|
|
1174
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1175
|
+
cancel: "cancel";
|
|
1176
|
+
keep: "keep";
|
|
1177
|
+
}>>;
|
|
1178
|
+
}, z.core.$strict>;
|
|
1179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1068
1180
|
type: z.ZodLiteral<"upnl">;
|
|
1069
1181
|
data: z.ZodObject<{
|
|
1070
1182
|
priceSource: z.ZodEnum<{
|
|
@@ -1072,8 +1184,12 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1072
1184
|
mark: "mark";
|
|
1073
1185
|
}>;
|
|
1074
1186
|
threshold: z.ZodNumber;
|
|
1075
|
-
|
|
1076
|
-
|
|
1187
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1188
|
+
cancel: "cancel";
|
|
1189
|
+
keep: "keep";
|
|
1190
|
+
}>>;
|
|
1191
|
+
}, z.core.$strict>;
|
|
1192
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1077
1193
|
type: z.ZodLiteral<"upnl_bps">;
|
|
1078
1194
|
data: z.ZodObject<{
|
|
1079
1195
|
priceSource: z.ZodEnum<{
|
|
@@ -1081,8 +1197,8 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1081
1197
|
mark: "mark";
|
|
1082
1198
|
}>;
|
|
1083
1199
|
threshold: z.ZodNumber;
|
|
1084
|
-
}, z.core.$
|
|
1085
|
-
}, z.core.$
|
|
1200
|
+
}, z.core.$strict>;
|
|
1201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1086
1202
|
type: z.ZodLiteral<"prediction_market">;
|
|
1087
1203
|
data: z.ZodObject<{
|
|
1088
1204
|
source: z.ZodEnum<{
|
|
@@ -1091,8 +1207,8 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
|
|
|
1091
1207
|
}>;
|
|
1092
1208
|
marketKey: z.ZodString;
|
|
1093
1209
|
threshold: z.ZodNumber;
|
|
1094
|
-
}, z.core.$
|
|
1095
|
-
}, z.core.$
|
|
1210
|
+
}, z.core.$strict>;
|
|
1211
|
+
}, z.core.$strict>], "type">;
|
|
1096
1212
|
payload: z.ZodObject<{
|
|
1097
1213
|
type: z.ZodLiteral<"TWAP">;
|
|
1098
1214
|
durationSec: z.ZodInt;
|
|
@@ -1117,8 +1233,8 @@ export declare const CreateTriggerTWAPCloseTrailing: z.ZodObject<{
|
|
|
1117
1233
|
}>;
|
|
1118
1234
|
symbol_a: z.ZodString;
|
|
1119
1235
|
symbol_b: z.ZodString;
|
|
1120
|
-
}, z.core.$
|
|
1121
|
-
}, z.core.$
|
|
1236
|
+
}, z.core.$strict>;
|
|
1237
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1122
1238
|
type: z.ZodLiteral<"price_trailing">;
|
|
1123
1239
|
data: z.ZodObject<{
|
|
1124
1240
|
priceSource: z.ZodEnum<{
|
|
@@ -1126,8 +1242,8 @@ export declare const CreateTriggerTWAPCloseTrailing: z.ZodObject<{
|
|
|
1126
1242
|
mark: "mark";
|
|
1127
1243
|
}>;
|
|
1128
1244
|
symbol: z.ZodString;
|
|
1129
|
-
}, z.core.$
|
|
1130
|
-
}, z.core.$
|
|
1245
|
+
}, z.core.$strict>;
|
|
1246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1131
1247
|
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
1132
1248
|
data: z.ZodObject<{
|
|
1133
1249
|
priceSource: z.ZodEnum<{
|
|
@@ -1142,32 +1258,40 @@ export declare const CreateTriggerTWAPCloseTrailing: z.ZodObject<{
|
|
|
1142
1258
|
}>;
|
|
1143
1259
|
weight: z.ZodNumber;
|
|
1144
1260
|
}, z.core.$strip>>;
|
|
1145
|
-
}, z.core.$
|
|
1146
|
-
}, z.core.$
|
|
1261
|
+
}, z.core.$strict>;
|
|
1262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1147
1263
|
type: z.ZodLiteral<"notional_trailing">;
|
|
1148
1264
|
data: z.ZodObject<{
|
|
1149
1265
|
priceSource: z.ZodEnum<{
|
|
1150
1266
|
mid: "mid";
|
|
1151
1267
|
mark: "mark";
|
|
1152
1268
|
}>;
|
|
1153
|
-
|
|
1154
|
-
|
|
1269
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1270
|
+
cancel: "cancel";
|
|
1271
|
+
keep: "keep";
|
|
1272
|
+
}>>;
|
|
1273
|
+
}, z.core.$strict>;
|
|
1274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1155
1275
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
1156
1276
|
data: z.ZodObject<{
|
|
1157
1277
|
priceSource: z.ZodEnum<{
|
|
1158
1278
|
mid: "mid";
|
|
1159
1279
|
mark: "mark";
|
|
1160
1280
|
}>;
|
|
1161
|
-
|
|
1162
|
-
|
|
1281
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1282
|
+
cancel: "cancel";
|
|
1283
|
+
keep: "keep";
|
|
1284
|
+
}>>;
|
|
1285
|
+
}, z.core.$strict>;
|
|
1286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1163
1287
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1164
1288
|
data: z.ZodObject<{
|
|
1165
1289
|
priceSource: z.ZodEnum<{
|
|
1166
1290
|
mid: "mid";
|
|
1167
1291
|
mark: "mark";
|
|
1168
1292
|
}>;
|
|
1169
|
-
}, z.core.$
|
|
1170
|
-
}, z.core.$
|
|
1293
|
+
}, z.core.$strict>;
|
|
1294
|
+
}, z.core.$strict>], "type">;
|
|
1171
1295
|
trailing: z.ZodObject<{
|
|
1172
1296
|
mode: z.ZodEnum<{
|
|
1173
1297
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -1210,8 +1334,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1210
1334
|
symbol_a: z.ZodString;
|
|
1211
1335
|
symbol_b: z.ZodString;
|
|
1212
1336
|
threshold: z.ZodNumber;
|
|
1213
|
-
}, z.core.$
|
|
1214
|
-
}, z.core.$
|
|
1337
|
+
}, z.core.$strict>;
|
|
1338
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1215
1339
|
type: z.ZodLiteral<"price">;
|
|
1216
1340
|
data: z.ZodObject<{
|
|
1217
1341
|
priceSource: z.ZodEnum<{
|
|
@@ -1220,8 +1344,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1220
1344
|
}>;
|
|
1221
1345
|
symbol: z.ZodString;
|
|
1222
1346
|
threshold: z.ZodNumber;
|
|
1223
|
-
}, z.core.$
|
|
1224
|
-
}, z.core.$
|
|
1347
|
+
}, z.core.$strict>;
|
|
1348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1225
1349
|
type: z.ZodLiteral<"weighted_ratio">;
|
|
1226
1350
|
data: z.ZodObject<{
|
|
1227
1351
|
priceSource: z.ZodEnum<{
|
|
@@ -1237,8 +1361,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1237
1361
|
weight: z.ZodNumber;
|
|
1238
1362
|
}, z.core.$strip>>;
|
|
1239
1363
|
threshold: z.ZodNumber;
|
|
1240
|
-
}, z.core.$
|
|
1241
|
-
}, z.core.$
|
|
1364
|
+
}, z.core.$strict>;
|
|
1365
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1242
1366
|
type: z.ZodLiteral<"notional">;
|
|
1243
1367
|
data: z.ZodObject<{
|
|
1244
1368
|
priceSource: z.ZodEnum<{
|
|
@@ -1246,8 +1370,12 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1246
1370
|
mark: "mark";
|
|
1247
1371
|
}>;
|
|
1248
1372
|
threshold: z.ZodNumber;
|
|
1249
|
-
|
|
1250
|
-
|
|
1373
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1374
|
+
cancel: "cancel";
|
|
1375
|
+
keep: "keep";
|
|
1376
|
+
}>>;
|
|
1377
|
+
}, z.core.$strict>;
|
|
1378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1251
1379
|
type: z.ZodLiteral<"upnl">;
|
|
1252
1380
|
data: z.ZodObject<{
|
|
1253
1381
|
priceSource: z.ZodEnum<{
|
|
@@ -1255,8 +1383,12 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1255
1383
|
mark: "mark";
|
|
1256
1384
|
}>;
|
|
1257
1385
|
threshold: z.ZodNumber;
|
|
1258
|
-
|
|
1259
|
-
|
|
1386
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1387
|
+
cancel: "cancel";
|
|
1388
|
+
keep: "keep";
|
|
1389
|
+
}>>;
|
|
1390
|
+
}, z.core.$strict>;
|
|
1391
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1260
1392
|
type: z.ZodLiteral<"upnl_bps">;
|
|
1261
1393
|
data: z.ZodObject<{
|
|
1262
1394
|
priceSource: z.ZodEnum<{
|
|
@@ -1264,8 +1396,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1264
1396
|
mark: "mark";
|
|
1265
1397
|
}>;
|
|
1266
1398
|
threshold: z.ZodNumber;
|
|
1267
|
-
}, z.core.$
|
|
1268
|
-
}, z.core.$
|
|
1399
|
+
}, z.core.$strict>;
|
|
1400
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1269
1401
|
type: z.ZodLiteral<"prediction_market">;
|
|
1270
1402
|
data: z.ZodObject<{
|
|
1271
1403
|
source: z.ZodEnum<{
|
|
@@ -1274,8 +1406,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1274
1406
|
}>;
|
|
1275
1407
|
marketKey: z.ZodString;
|
|
1276
1408
|
threshold: z.ZodNumber;
|
|
1277
|
-
}, z.core.$
|
|
1278
|
-
}, z.core.$
|
|
1409
|
+
}, z.core.$strict>;
|
|
1410
|
+
}, z.core.$strict>], "type">;
|
|
1279
1411
|
payload: z.ZodObject<{
|
|
1280
1412
|
type: z.ZodLiteral<"TWAP">;
|
|
1281
1413
|
durationSec: z.ZodInt;
|
|
@@ -1299,8 +1431,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1299
1431
|
}>;
|
|
1300
1432
|
symbol_a: z.ZodString;
|
|
1301
1433
|
symbol_b: z.ZodString;
|
|
1302
|
-
}, z.core.$
|
|
1303
|
-
}, z.core.$
|
|
1434
|
+
}, z.core.$strict>;
|
|
1435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1304
1436
|
type: z.ZodLiteral<"price_trailing">;
|
|
1305
1437
|
data: z.ZodObject<{
|
|
1306
1438
|
priceSource: z.ZodEnum<{
|
|
@@ -1308,8 +1440,8 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1308
1440
|
mark: "mark";
|
|
1309
1441
|
}>;
|
|
1310
1442
|
symbol: z.ZodString;
|
|
1311
|
-
}, z.core.$
|
|
1312
|
-
}, z.core.$
|
|
1443
|
+
}, z.core.$strict>;
|
|
1444
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1313
1445
|
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
1314
1446
|
data: z.ZodObject<{
|
|
1315
1447
|
priceSource: z.ZodEnum<{
|
|
@@ -1324,32 +1456,40 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1324
1456
|
}>;
|
|
1325
1457
|
weight: z.ZodNumber;
|
|
1326
1458
|
}, z.core.$strip>>;
|
|
1327
|
-
}, z.core.$
|
|
1328
|
-
}, z.core.$
|
|
1459
|
+
}, z.core.$strict>;
|
|
1460
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1329
1461
|
type: z.ZodLiteral<"notional_trailing">;
|
|
1330
1462
|
data: z.ZodObject<{
|
|
1331
1463
|
priceSource: z.ZodEnum<{
|
|
1332
1464
|
mid: "mid";
|
|
1333
1465
|
mark: "mark";
|
|
1334
1466
|
}>;
|
|
1335
|
-
|
|
1336
|
-
|
|
1467
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1468
|
+
cancel: "cancel";
|
|
1469
|
+
keep: "keep";
|
|
1470
|
+
}>>;
|
|
1471
|
+
}, z.core.$strict>;
|
|
1472
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1337
1473
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
1338
1474
|
data: z.ZodObject<{
|
|
1339
1475
|
priceSource: z.ZodEnum<{
|
|
1340
1476
|
mid: "mid";
|
|
1341
1477
|
mark: "mark";
|
|
1342
1478
|
}>;
|
|
1343
|
-
|
|
1344
|
-
|
|
1479
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1480
|
+
cancel: "cancel";
|
|
1481
|
+
keep: "keep";
|
|
1482
|
+
}>>;
|
|
1483
|
+
}, z.core.$strict>;
|
|
1484
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1345
1485
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1346
1486
|
data: z.ZodObject<{
|
|
1347
1487
|
priceSource: z.ZodEnum<{
|
|
1348
1488
|
mid: "mid";
|
|
1349
1489
|
mark: "mark";
|
|
1350
1490
|
}>;
|
|
1351
|
-
}, z.core.$
|
|
1352
|
-
}, z.core.$
|
|
1491
|
+
}, z.core.$strict>;
|
|
1492
|
+
}, z.core.$strict>], "type">;
|
|
1353
1493
|
trailing: z.ZodObject<{
|
|
1354
1494
|
mode: z.ZodEnum<{
|
|
1355
1495
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -1472,6 +1612,7 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodDiscrimina
|
|
|
1472
1612
|
STOP_LOSS: "STOP_LOSS";
|
|
1473
1613
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1474
1614
|
}>;
|
|
1615
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1475
1616
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1476
1617
|
type: z.ZodLiteral<"notional">;
|
|
1477
1618
|
data: z.ZodObject<{
|
|
@@ -1480,8 +1621,12 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodDiscrimina
|
|
|
1480
1621
|
mark: "mark";
|
|
1481
1622
|
}>;
|
|
1482
1623
|
threshold: z.ZodNumber;
|
|
1483
|
-
|
|
1484
|
-
|
|
1624
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1625
|
+
cancel: "cancel";
|
|
1626
|
+
keep: "keep";
|
|
1627
|
+
}>>;
|
|
1628
|
+
}, z.core.$strict>;
|
|
1629
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1485
1630
|
type: z.ZodLiteral<"upnl">;
|
|
1486
1631
|
data: z.ZodObject<{
|
|
1487
1632
|
priceSource: z.ZodEnum<{
|
|
@@ -1489,8 +1634,12 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodDiscrimina
|
|
|
1489
1634
|
mark: "mark";
|
|
1490
1635
|
}>;
|
|
1491
1636
|
threshold: z.ZodNumber;
|
|
1492
|
-
|
|
1493
|
-
|
|
1637
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1638
|
+
cancel: "cancel";
|
|
1639
|
+
keep: "keep";
|
|
1640
|
+
}>>;
|
|
1641
|
+
}, z.core.$strict>;
|
|
1642
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1494
1643
|
type: z.ZodLiteral<"upnl_bps">;
|
|
1495
1644
|
data: z.ZodObject<{
|
|
1496
1645
|
priceSource: z.ZodEnum<{
|
|
@@ -1498,11 +1647,12 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodDiscrimina
|
|
|
1498
1647
|
mark: "mark";
|
|
1499
1648
|
}>;
|
|
1500
1649
|
threshold: z.ZodNumber;
|
|
1501
|
-
}, z.core.$
|
|
1502
|
-
}, z.core.$
|
|
1650
|
+
}, z.core.$strict>;
|
|
1651
|
+
}, z.core.$strict>], "type">;
|
|
1503
1652
|
}, z.core.$strip>, z.ZodObject<{
|
|
1504
1653
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1505
1654
|
type: z.ZodLiteral<"MARKET">;
|
|
1655
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1506
1656
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1507
1657
|
type: z.ZodLiteral<"notional_trailing">;
|
|
1508
1658
|
data: z.ZodObject<{
|
|
@@ -1510,24 +1660,32 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodDiscrimina
|
|
|
1510
1660
|
mid: "mid";
|
|
1511
1661
|
mark: "mark";
|
|
1512
1662
|
}>;
|
|
1513
|
-
|
|
1514
|
-
|
|
1663
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1664
|
+
cancel: "cancel";
|
|
1665
|
+
keep: "keep";
|
|
1666
|
+
}>>;
|
|
1667
|
+
}, z.core.$strict>;
|
|
1668
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1515
1669
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
1516
1670
|
data: z.ZodObject<{
|
|
1517
1671
|
priceSource: z.ZodEnum<{
|
|
1518
1672
|
mid: "mid";
|
|
1519
1673
|
mark: "mark";
|
|
1520
1674
|
}>;
|
|
1521
|
-
|
|
1522
|
-
|
|
1675
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
1676
|
+
cancel: "cancel";
|
|
1677
|
+
keep: "keep";
|
|
1678
|
+
}>>;
|
|
1679
|
+
}, z.core.$strict>;
|
|
1680
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1523
1681
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1524
1682
|
data: z.ZodObject<{
|
|
1525
1683
|
priceSource: z.ZodEnum<{
|
|
1526
1684
|
mid: "mid";
|
|
1527
1685
|
mark: "mark";
|
|
1528
1686
|
}>;
|
|
1529
|
-
}, z.core.$
|
|
1530
|
-
}, z.core.$
|
|
1687
|
+
}, z.core.$strict>;
|
|
1688
|
+
}, z.core.$strict>], "type">;
|
|
1531
1689
|
trailing: z.ZodObject<{
|
|
1532
1690
|
mode: z.ZodEnum<{
|
|
1533
1691
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -1831,6 +1989,7 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1831
1989
|
STOP_LOSS: "STOP_LOSS";
|
|
1832
1990
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1833
1991
|
}>>;
|
|
1992
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1834
1993
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1835
1994
|
type: z.ZodLiteral<"ratio">;
|
|
1836
1995
|
data: z.ZodObject<{
|
|
@@ -1841,8 +2000,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1841
2000
|
symbol_a: z.ZodString;
|
|
1842
2001
|
symbol_b: z.ZodString;
|
|
1843
2002
|
threshold: z.ZodNumber;
|
|
1844
|
-
}, z.core.$
|
|
1845
|
-
}, z.core.$
|
|
2003
|
+
}, z.core.$strict>;
|
|
2004
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1846
2005
|
type: z.ZodLiteral<"price">;
|
|
1847
2006
|
data: z.ZodObject<{
|
|
1848
2007
|
priceSource: z.ZodEnum<{
|
|
@@ -1851,8 +2010,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1851
2010
|
}>;
|
|
1852
2011
|
symbol: z.ZodString;
|
|
1853
2012
|
threshold: z.ZodNumber;
|
|
1854
|
-
}, z.core.$
|
|
1855
|
-
}, z.core.$
|
|
2013
|
+
}, z.core.$strict>;
|
|
2014
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1856
2015
|
type: z.ZodLiteral<"weighted_ratio">;
|
|
1857
2016
|
data: z.ZodObject<{
|
|
1858
2017
|
priceSource: z.ZodEnum<{
|
|
@@ -1868,8 +2027,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1868
2027
|
weight: z.ZodNumber;
|
|
1869
2028
|
}, z.core.$strip>>;
|
|
1870
2029
|
threshold: z.ZodNumber;
|
|
1871
|
-
}, z.core.$
|
|
1872
|
-
}, z.core.$
|
|
2030
|
+
}, z.core.$strict>;
|
|
2031
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1873
2032
|
type: z.ZodLiteral<"notional">;
|
|
1874
2033
|
data: z.ZodObject<{
|
|
1875
2034
|
priceSource: z.ZodEnum<{
|
|
@@ -1877,8 +2036,12 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1877
2036
|
mark: "mark";
|
|
1878
2037
|
}>;
|
|
1879
2038
|
threshold: z.ZodNumber;
|
|
1880
|
-
|
|
1881
|
-
|
|
2039
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2040
|
+
cancel: "cancel";
|
|
2041
|
+
keep: "keep";
|
|
2042
|
+
}>>;
|
|
2043
|
+
}, z.core.$strict>;
|
|
2044
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1882
2045
|
type: z.ZodLiteral<"upnl">;
|
|
1883
2046
|
data: z.ZodObject<{
|
|
1884
2047
|
priceSource: z.ZodEnum<{
|
|
@@ -1886,8 +2049,12 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1886
2049
|
mark: "mark";
|
|
1887
2050
|
}>;
|
|
1888
2051
|
threshold: z.ZodNumber;
|
|
1889
|
-
|
|
1890
|
-
|
|
2052
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2053
|
+
cancel: "cancel";
|
|
2054
|
+
keep: "keep";
|
|
2055
|
+
}>>;
|
|
2056
|
+
}, z.core.$strict>;
|
|
2057
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1891
2058
|
type: z.ZodLiteral<"upnl_bps">;
|
|
1892
2059
|
data: z.ZodObject<{
|
|
1893
2060
|
priceSource: z.ZodEnum<{
|
|
@@ -1895,8 +2062,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1895
2062
|
mark: "mark";
|
|
1896
2063
|
}>;
|
|
1897
2064
|
threshold: z.ZodNumber;
|
|
1898
|
-
}, z.core.$
|
|
1899
|
-
}, z.core.$
|
|
2065
|
+
}, z.core.$strict>;
|
|
2066
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1900
2067
|
type: z.ZodLiteral<"prediction_market">;
|
|
1901
2068
|
data: z.ZodObject<{
|
|
1902
2069
|
source: z.ZodEnum<{
|
|
@@ -1905,13 +2072,14 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1905
2072
|
}>;
|
|
1906
2073
|
marketKey: z.ZodString;
|
|
1907
2074
|
threshold: z.ZodNumber;
|
|
1908
|
-
}, z.core.$
|
|
1909
|
-
}, z.core.$
|
|
2075
|
+
}, z.core.$strict>;
|
|
2076
|
+
}, z.core.$strict>], "type">;
|
|
1910
2077
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1911
2078
|
}, z.core.$strip>, z.ZodObject<{
|
|
1912
2079
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1913
2080
|
type: z.ZodLiteral<"MARKET">;
|
|
1914
2081
|
positionId: z.ZodUUID;
|
|
2082
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
1915
2083
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1916
2084
|
type: z.ZodLiteral<"ratio_trailing">;
|
|
1917
2085
|
data: z.ZodObject<{
|
|
@@ -1921,8 +2089,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1921
2089
|
}>;
|
|
1922
2090
|
symbol_a: z.ZodString;
|
|
1923
2091
|
symbol_b: z.ZodString;
|
|
1924
|
-
}, z.core.$
|
|
1925
|
-
}, z.core.$
|
|
2092
|
+
}, z.core.$strict>;
|
|
2093
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1926
2094
|
type: z.ZodLiteral<"price_trailing">;
|
|
1927
2095
|
data: z.ZodObject<{
|
|
1928
2096
|
priceSource: z.ZodEnum<{
|
|
@@ -1930,8 +2098,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1930
2098
|
mark: "mark";
|
|
1931
2099
|
}>;
|
|
1932
2100
|
symbol: z.ZodString;
|
|
1933
|
-
}, z.core.$
|
|
1934
|
-
}, z.core.$
|
|
2101
|
+
}, z.core.$strict>;
|
|
2102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1935
2103
|
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
1936
2104
|
data: z.ZodObject<{
|
|
1937
2105
|
priceSource: z.ZodEnum<{
|
|
@@ -1946,32 +2114,40 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
1946
2114
|
}>;
|
|
1947
2115
|
weight: z.ZodNumber;
|
|
1948
2116
|
}, z.core.$strip>>;
|
|
1949
|
-
}, z.core.$
|
|
1950
|
-
}, z.core.$
|
|
2117
|
+
}, z.core.$strict>;
|
|
2118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1951
2119
|
type: z.ZodLiteral<"notional_trailing">;
|
|
1952
2120
|
data: z.ZodObject<{
|
|
1953
2121
|
priceSource: z.ZodEnum<{
|
|
1954
2122
|
mid: "mid";
|
|
1955
2123
|
mark: "mark";
|
|
1956
2124
|
}>;
|
|
1957
|
-
|
|
1958
|
-
|
|
2125
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2126
|
+
cancel: "cancel";
|
|
2127
|
+
keep: "keep";
|
|
2128
|
+
}>>;
|
|
2129
|
+
}, z.core.$strict>;
|
|
2130
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1959
2131
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
1960
2132
|
data: z.ZodObject<{
|
|
1961
2133
|
priceSource: z.ZodEnum<{
|
|
1962
2134
|
mid: "mid";
|
|
1963
2135
|
mark: "mark";
|
|
1964
2136
|
}>;
|
|
1965
|
-
|
|
1966
|
-
|
|
2137
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2138
|
+
cancel: "cancel";
|
|
2139
|
+
keep: "keep";
|
|
2140
|
+
}>>;
|
|
2141
|
+
}, z.core.$strict>;
|
|
2142
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1967
2143
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1968
2144
|
data: z.ZodObject<{
|
|
1969
2145
|
priceSource: z.ZodEnum<{
|
|
1970
2146
|
mid: "mid";
|
|
1971
2147
|
mark: "mark";
|
|
1972
2148
|
}>;
|
|
1973
|
-
}, z.core.$
|
|
1974
|
-
}, z.core.$
|
|
2149
|
+
}, z.core.$strict>;
|
|
2150
|
+
}, z.core.$strict>], "type">;
|
|
1975
2151
|
trailing: z.ZodObject<{
|
|
1976
2152
|
mode: z.ZodEnum<{
|
|
1977
2153
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -2004,8 +2180,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2004
2180
|
symbol_a: z.ZodString;
|
|
2005
2181
|
symbol_b: z.ZodString;
|
|
2006
2182
|
threshold: z.ZodNumber;
|
|
2007
|
-
}, z.core.$
|
|
2008
|
-
}, z.core.$
|
|
2183
|
+
}, z.core.$strict>;
|
|
2184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2009
2185
|
type: z.ZodLiteral<"price">;
|
|
2010
2186
|
data: z.ZodObject<{
|
|
2011
2187
|
priceSource: z.ZodEnum<{
|
|
@@ -2014,8 +2190,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2014
2190
|
}>;
|
|
2015
2191
|
symbol: z.ZodString;
|
|
2016
2192
|
threshold: z.ZodNumber;
|
|
2017
|
-
}, z.core.$
|
|
2018
|
-
}, z.core.$
|
|
2193
|
+
}, z.core.$strict>;
|
|
2194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2019
2195
|
type: z.ZodLiteral<"weighted_ratio">;
|
|
2020
2196
|
data: z.ZodObject<{
|
|
2021
2197
|
priceSource: z.ZodEnum<{
|
|
@@ -2031,8 +2207,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2031
2207
|
weight: z.ZodNumber;
|
|
2032
2208
|
}, z.core.$strip>>;
|
|
2033
2209
|
threshold: z.ZodNumber;
|
|
2034
|
-
}, z.core.$
|
|
2035
|
-
}, z.core.$
|
|
2210
|
+
}, z.core.$strict>;
|
|
2211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2036
2212
|
type: z.ZodLiteral<"notional">;
|
|
2037
2213
|
data: z.ZodObject<{
|
|
2038
2214
|
priceSource: z.ZodEnum<{
|
|
@@ -2040,8 +2216,12 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2040
2216
|
mark: "mark";
|
|
2041
2217
|
}>;
|
|
2042
2218
|
threshold: z.ZodNumber;
|
|
2043
|
-
|
|
2044
|
-
|
|
2219
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2220
|
+
cancel: "cancel";
|
|
2221
|
+
keep: "keep";
|
|
2222
|
+
}>>;
|
|
2223
|
+
}, z.core.$strict>;
|
|
2224
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2045
2225
|
type: z.ZodLiteral<"upnl">;
|
|
2046
2226
|
data: z.ZodObject<{
|
|
2047
2227
|
priceSource: z.ZodEnum<{
|
|
@@ -2049,8 +2229,12 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2049
2229
|
mark: "mark";
|
|
2050
2230
|
}>;
|
|
2051
2231
|
threshold: z.ZodNumber;
|
|
2052
|
-
|
|
2053
|
-
|
|
2232
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2233
|
+
cancel: "cancel";
|
|
2234
|
+
keep: "keep";
|
|
2235
|
+
}>>;
|
|
2236
|
+
}, z.core.$strict>;
|
|
2237
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2054
2238
|
type: z.ZodLiteral<"upnl_bps">;
|
|
2055
2239
|
data: z.ZodObject<{
|
|
2056
2240
|
priceSource: z.ZodEnum<{
|
|
@@ -2058,8 +2242,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2058
2242
|
mark: "mark";
|
|
2059
2243
|
}>;
|
|
2060
2244
|
threshold: z.ZodNumber;
|
|
2061
|
-
}, z.core.$
|
|
2062
|
-
}, z.core.$
|
|
2245
|
+
}, z.core.$strict>;
|
|
2246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2063
2247
|
type: z.ZodLiteral<"prediction_market">;
|
|
2064
2248
|
data: z.ZodObject<{
|
|
2065
2249
|
source: z.ZodEnum<{
|
|
@@ -2068,8 +2252,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2068
2252
|
}>;
|
|
2069
2253
|
marketKey: z.ZodString;
|
|
2070
2254
|
threshold: z.ZodNumber;
|
|
2071
|
-
}, z.core.$
|
|
2072
|
-
}, z.core.$
|
|
2255
|
+
}, z.core.$strict>;
|
|
2256
|
+
}, z.core.$strict>], "type">;
|
|
2073
2257
|
payload: z.ZodObject<{
|
|
2074
2258
|
type: z.ZodLiteral<"TWAP">;
|
|
2075
2259
|
durationSec: z.ZodInt;
|
|
@@ -2093,8 +2277,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2093
2277
|
}>;
|
|
2094
2278
|
symbol_a: z.ZodString;
|
|
2095
2279
|
symbol_b: z.ZodString;
|
|
2096
|
-
}, z.core.$
|
|
2097
|
-
}, z.core.$
|
|
2280
|
+
}, z.core.$strict>;
|
|
2281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2098
2282
|
type: z.ZodLiteral<"price_trailing">;
|
|
2099
2283
|
data: z.ZodObject<{
|
|
2100
2284
|
priceSource: z.ZodEnum<{
|
|
@@ -2102,8 +2286,8 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2102
2286
|
mark: "mark";
|
|
2103
2287
|
}>;
|
|
2104
2288
|
symbol: z.ZodString;
|
|
2105
|
-
}, z.core.$
|
|
2106
|
-
}, z.core.$
|
|
2289
|
+
}, z.core.$strict>;
|
|
2290
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2107
2291
|
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
2108
2292
|
data: z.ZodObject<{
|
|
2109
2293
|
priceSource: z.ZodEnum<{
|
|
@@ -2118,32 +2302,40 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
|
|
|
2118
2302
|
}>;
|
|
2119
2303
|
weight: z.ZodNumber;
|
|
2120
2304
|
}, z.core.$strip>>;
|
|
2121
|
-
}, z.core.$
|
|
2122
|
-
}, z.core.$
|
|
2305
|
+
}, z.core.$strict>;
|
|
2306
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2123
2307
|
type: z.ZodLiteral<"notional_trailing">;
|
|
2124
2308
|
data: z.ZodObject<{
|
|
2125
2309
|
priceSource: z.ZodEnum<{
|
|
2126
2310
|
mid: "mid";
|
|
2127
2311
|
mark: "mark";
|
|
2128
2312
|
}>;
|
|
2129
|
-
|
|
2130
|
-
|
|
2313
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2314
|
+
cancel: "cancel";
|
|
2315
|
+
keep: "keep";
|
|
2316
|
+
}>>;
|
|
2317
|
+
}, z.core.$strict>;
|
|
2318
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2131
2319
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
2132
2320
|
data: z.ZodObject<{
|
|
2133
2321
|
priceSource: z.ZodEnum<{
|
|
2134
2322
|
mid: "mid";
|
|
2135
2323
|
mark: "mark";
|
|
2136
2324
|
}>;
|
|
2137
|
-
|
|
2138
|
-
|
|
2325
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
2326
|
+
cancel: "cancel";
|
|
2327
|
+
keep: "keep";
|
|
2328
|
+
}>>;
|
|
2329
|
+
}, z.core.$strict>;
|
|
2330
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2139
2331
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
2140
2332
|
data: z.ZodObject<{
|
|
2141
2333
|
priceSource: z.ZodEnum<{
|
|
2142
2334
|
mid: "mid";
|
|
2143
2335
|
mark: "mark";
|
|
2144
2336
|
}>;
|
|
2145
|
-
}, z.core.$
|
|
2146
|
-
}, z.core.$
|
|
2337
|
+
}, z.core.$strict>;
|
|
2338
|
+
}, z.core.$strict>], "type">;
|
|
2147
2339
|
trailing: z.ZodObject<{
|
|
2148
2340
|
mode: z.ZodEnum<{
|
|
2149
2341
|
RELATIVE_BPS: "RELATIVE_BPS";
|