@pear-protocol/types 0.0.18 → 0.0.20
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/bundle.d.ts +1 -0
- package/dist/bundle.js +1 -0
- package/dist/rebalance/index.d.ts +2 -0
- package/dist/rebalance/index.js +2 -0
- package/dist/rebalance/payloads.d.ts +11 -0
- package/dist/rebalance/payloads.js +16 -0
- package/dist/rebalance/responses.d.ts +10 -0
- package/dist/rebalance/responses.js +15 -0
- package/dist/trade/payloads.d.ts +88 -48
- package/dist/trade-accounts/response.d.ts +110 -0
- package/dist/trade-accounts/response.js +5 -0
- package/dist/trigger/common/index.d.ts +40 -0
- package/dist/trigger/common/index.js +11 -0
- package/dist/trigger/entities/conditions.d.ts +215 -155
- package/dist/trigger/entities/conditions.js +81 -185
- package/dist/trigger/entities/index.d.ts +401 -352
- package/dist/trigger/entities/index.js +22 -8
- package/dist/trigger/index.d.ts +2 -0
- package/dist/trigger/index.js +2 -0
- package/dist/trigger/payloads/conditions.d.ts +117 -176
- package/dist/trigger/payloads/conditions.js +110 -57
- package/dist/trigger/payloads/index.d.ts +440 -164
- package/dist/trigger/payloads/index.js +32 -51
- package/dist/trigger/refinement/index.d.ts +2 -0
- package/dist/trigger/refinement/index.js +2 -0
- package/dist/trigger/refinement/static.refinement.d.ts +18 -0
- package/dist/trigger/refinement/static.refinement.js +40 -0
- package/dist/trigger/refinement/trailing.refinement.d.ts +27 -0
- package/dist/trigger/refinement/trailing.refinement.js +81 -0
- package/dist/trigger/responses.d.ts +262 -218
- package/package.json +4 -2
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const TrailingConfig: z.ZodObject<{
|
|
3
|
+
mode: z.ZodEnum<{
|
|
4
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
5
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
6
|
+
}>;
|
|
7
|
+
deltaValue: z.ZodNumber;
|
|
8
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
2
10
|
export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
3
11
|
intent: z.ZodLiteral<"OPEN">;
|
|
4
12
|
type: z.ZodLiteral<"MARKET">;
|
|
5
13
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
-
type: z.ZodLiteral<"
|
|
14
|
+
type: z.ZodLiteral<"ratio">;
|
|
7
15
|
data: z.ZodObject<{
|
|
8
16
|
priceSource: z.ZodEnum<{
|
|
9
17
|
mid: "mid";
|
|
@@ -11,45 +19,28 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
11
19
|
}>;
|
|
12
20
|
symbol_a: z.ZodString;
|
|
13
21
|
symbol_b: z.ZodString;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
track: z.ZodEnum<{
|
|
23
|
+
PEAK: "PEAK";
|
|
24
|
+
TROUGH: "TROUGH";
|
|
17
25
|
}>;
|
|
18
26
|
threshold: z.ZodNumber;
|
|
19
27
|
}, z.core.$strip>;
|
|
20
28
|
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
type: z.ZodLiteral<"
|
|
29
|
+
type: z.ZodLiteral<"price">;
|
|
22
30
|
data: z.ZodObject<{
|
|
23
31
|
priceSource: z.ZodEnum<{
|
|
24
32
|
mid: "mid";
|
|
25
33
|
mark: "mark";
|
|
26
34
|
}>;
|
|
27
35
|
symbol: z.ZodString;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
36
|
+
track: z.ZodEnum<{
|
|
37
|
+
PEAK: "PEAK";
|
|
38
|
+
TROUGH: "TROUGH";
|
|
31
39
|
}>;
|
|
32
40
|
threshold: z.ZodNumber;
|
|
33
41
|
}, z.core.$strip>;
|
|
34
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
type: z.ZodLiteral<"
|
|
36
|
-
data: z.ZodObject<{
|
|
37
|
-
priceSource: z.ZodEnum<{
|
|
38
|
-
mid: "mid";
|
|
39
|
-
mark: "mark";
|
|
40
|
-
}>;
|
|
41
|
-
basket: z.ZodArray<z.ZodObject<{
|
|
42
|
-
symbol: z.ZodString;
|
|
43
|
-
weight: z.ZodNumber;
|
|
44
|
-
}, z.core.$strip>>;
|
|
45
|
-
direction: z.ZodEnum<{
|
|
46
|
-
ABOVE: "ABOVE";
|
|
47
|
-
BELOW: "BELOW";
|
|
48
|
-
}>;
|
|
49
|
-
threshold: z.ZodNumber;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
type: z.ZodLiteral<"weighted_ratio_v1">;
|
|
43
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
53
44
|
data: z.ZodObject<{
|
|
54
45
|
priceSource: z.ZodEnum<{
|
|
55
46
|
mid: "mid";
|
|
@@ -63,9 +54,9 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
63
54
|
}>;
|
|
64
55
|
weight: z.ZodNumber;
|
|
65
56
|
}, z.core.$strip>>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
track: z.ZodEnum<{
|
|
58
|
+
PEAK: "PEAK";
|
|
59
|
+
TROUGH: "TROUGH";
|
|
69
60
|
}>;
|
|
70
61
|
threshold: z.ZodNumber;
|
|
71
62
|
}, z.core.$strip>;
|
|
@@ -97,11 +88,17 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
|
|
|
97
88
|
}, z.core.$strip>>;
|
|
98
89
|
}, z.core.$strip>;
|
|
99
90
|
}, z.core.$strip>;
|
|
100
|
-
export declare const
|
|
91
|
+
export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
|
|
101
92
|
intent: z.ZodLiteral<"CLOSE">;
|
|
102
93
|
type: z.ZodLiteral<"MARKET">;
|
|
94
|
+
positionId: z.ZodUUID;
|
|
95
|
+
bracketType: z.ZodEnum<{
|
|
96
|
+
STOP_LOSS: "STOP_LOSS";
|
|
97
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
98
|
+
NONE: "NONE";
|
|
99
|
+
}>;
|
|
103
100
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
104
|
-
type: z.ZodLiteral<"
|
|
101
|
+
type: z.ZodLiteral<"ratio">;
|
|
105
102
|
data: z.ZodObject<{
|
|
106
103
|
priceSource: z.ZodEnum<{
|
|
107
104
|
mid: "mid";
|
|
@@ -109,28 +106,20 @@ export declare const CreateTriggerMarketClose: z.ZodObject<{
|
|
|
109
106
|
}>;
|
|
110
107
|
symbol_a: z.ZodString;
|
|
111
108
|
symbol_b: z.ZodString;
|
|
112
|
-
direction: z.ZodEnum<{
|
|
113
|
-
ABOVE: "ABOVE";
|
|
114
|
-
BELOW: "BELOW";
|
|
115
|
-
}>;
|
|
116
109
|
threshold: z.ZodNumber;
|
|
117
110
|
}, z.core.$strip>;
|
|
118
111
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
-
type: z.ZodLiteral<"
|
|
112
|
+
type: z.ZodLiteral<"price">;
|
|
120
113
|
data: z.ZodObject<{
|
|
121
114
|
priceSource: z.ZodEnum<{
|
|
122
115
|
mid: "mid";
|
|
123
116
|
mark: "mark";
|
|
124
117
|
}>;
|
|
125
118
|
symbol: z.ZodString;
|
|
126
|
-
direction: z.ZodEnum<{
|
|
127
|
-
ABOVE: "ABOVE";
|
|
128
|
-
BELOW: "BELOW";
|
|
129
|
-
}>;
|
|
130
119
|
threshold: z.ZodNumber;
|
|
131
120
|
}, z.core.$strip>;
|
|
132
121
|
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
-
type: z.ZodLiteral<"
|
|
122
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
134
123
|
data: z.ZodObject<{
|
|
135
124
|
priceSource: z.ZodEnum<{
|
|
136
125
|
mid: "mid";
|
|
@@ -138,16 +127,68 @@ export declare const CreateTriggerMarketClose: z.ZodObject<{
|
|
|
138
127
|
}>;
|
|
139
128
|
basket: z.ZodArray<z.ZodObject<{
|
|
140
129
|
symbol: z.ZodString;
|
|
130
|
+
side: z.ZodEnum<{
|
|
131
|
+
BUY: "BUY";
|
|
132
|
+
SELL: "SELL";
|
|
133
|
+
}>;
|
|
141
134
|
weight: z.ZodNumber;
|
|
142
135
|
}, z.core.$strip>>;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
136
|
+
threshold: z.ZodNumber;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
type: z.ZodLiteral<"notional">;
|
|
140
|
+
data: z.ZodObject<{
|
|
141
|
+
priceSource: z.ZodEnum<{
|
|
142
|
+
mid: "mid";
|
|
143
|
+
mark: "mark";
|
|
146
144
|
}>;
|
|
147
145
|
threshold: z.ZodNumber;
|
|
148
146
|
}, z.core.$strip>;
|
|
149
147
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
|
-
type: z.ZodLiteral<"
|
|
148
|
+
type: z.ZodLiteral<"upnl">;
|
|
149
|
+
data: z.ZodObject<{
|
|
150
|
+
priceSource: z.ZodEnum<{
|
|
151
|
+
mid: "mid";
|
|
152
|
+
mark: "mark";
|
|
153
|
+
}>;
|
|
154
|
+
threshold: z.ZodNumber;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
158
|
+
data: z.ZodObject<{
|
|
159
|
+
priceSource: z.ZodEnum<{
|
|
160
|
+
mid: "mid";
|
|
161
|
+
mark: "mark";
|
|
162
|
+
}>;
|
|
163
|
+
threshold: z.ZodNumber;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
}, z.core.$strip>], "type">;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export declare const CreateTriggerMarketCloseTrailing: z.ZodObject<{
|
|
168
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
169
|
+
type: z.ZodLiteral<"MARKET">;
|
|
170
|
+
positionId: z.ZodUUID;
|
|
171
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
172
|
+
type: z.ZodLiteral<"ratio_trailing">;
|
|
173
|
+
data: z.ZodObject<{
|
|
174
|
+
priceSource: z.ZodEnum<{
|
|
175
|
+
mid: "mid";
|
|
176
|
+
mark: "mark";
|
|
177
|
+
}>;
|
|
178
|
+
symbol_a: z.ZodString;
|
|
179
|
+
symbol_b: z.ZodString;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"price_trailing">;
|
|
183
|
+
data: z.ZodObject<{
|
|
184
|
+
priceSource: z.ZodEnum<{
|
|
185
|
+
mid: "mid";
|
|
186
|
+
mark: "mark";
|
|
187
|
+
}>;
|
|
188
|
+
symbol: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
151
192
|
data: z.ZodObject<{
|
|
152
193
|
priceSource: z.ZodEnum<{
|
|
153
194
|
mid: "mid";
|
|
@@ -161,167 +202,370 @@ export declare const CreateTriggerMarketClose: z.ZodObject<{
|
|
|
161
202
|
}>;
|
|
162
203
|
weight: z.ZodNumber;
|
|
163
204
|
}, z.core.$strip>>;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
208
|
+
data: z.ZodObject<{
|
|
209
|
+
priceSource: z.ZodEnum<{
|
|
210
|
+
mid: "mid";
|
|
211
|
+
mark: "mark";
|
|
212
|
+
}>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
216
|
+
data: z.ZodObject<{
|
|
217
|
+
priceSource: z.ZodEnum<{
|
|
218
|
+
mid: "mid";
|
|
219
|
+
mark: "mark";
|
|
167
220
|
}>;
|
|
168
|
-
threshold: z.ZodNumber;
|
|
169
221
|
}, z.core.$strip>;
|
|
170
222
|
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
-
type: z.ZodLiteral<"
|
|
223
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
224
|
+
data: z.ZodObject<{
|
|
225
|
+
priceSource: z.ZodEnum<{
|
|
226
|
+
mid: "mid";
|
|
227
|
+
mark: "mark";
|
|
228
|
+
}>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
}, z.core.$strip>], "type">;
|
|
231
|
+
trailing: z.ZodObject<{
|
|
232
|
+
mode: z.ZodEnum<{
|
|
233
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
234
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
235
|
+
}>;
|
|
236
|
+
deltaValue: z.ZodNumber;
|
|
237
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
241
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
242
|
+
type: z.ZodLiteral<"MARKET">;
|
|
243
|
+
positionId: z.ZodUUID;
|
|
244
|
+
bracketType: z.ZodEnum<{
|
|
245
|
+
STOP_LOSS: "STOP_LOSS";
|
|
246
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
247
|
+
NONE: "NONE";
|
|
248
|
+
}>;
|
|
249
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
250
|
+
type: z.ZodLiteral<"ratio">;
|
|
172
251
|
data: z.ZodObject<{
|
|
173
252
|
priceSource: z.ZodEnum<{
|
|
174
253
|
mid: "mid";
|
|
175
254
|
mark: "mark";
|
|
176
255
|
}>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
256
|
+
symbol_a: z.ZodString;
|
|
257
|
+
symbol_b: z.ZodString;
|
|
258
|
+
threshold: z.ZodNumber;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
261
|
+
type: z.ZodLiteral<"price">;
|
|
262
|
+
data: z.ZodObject<{
|
|
263
|
+
priceSource: z.ZodEnum<{
|
|
264
|
+
mid: "mid";
|
|
265
|
+
mark: "mark";
|
|
180
266
|
}>;
|
|
267
|
+
symbol: z.ZodString;
|
|
181
268
|
threshold: z.ZodNumber;
|
|
182
269
|
}, z.core.$strip>;
|
|
183
270
|
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
-
type: z.ZodLiteral<"
|
|
271
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
185
272
|
data: z.ZodObject<{
|
|
186
273
|
priceSource: z.ZodEnum<{
|
|
187
274
|
mid: "mid";
|
|
188
275
|
mark: "mark";
|
|
189
276
|
}>;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
277
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
278
|
+
symbol: z.ZodString;
|
|
279
|
+
side: z.ZodEnum<{
|
|
280
|
+
BUY: "BUY";
|
|
281
|
+
SELL: "SELL";
|
|
282
|
+
}>;
|
|
283
|
+
weight: z.ZodNumber;
|
|
284
|
+
}, z.core.$strip>>;
|
|
285
|
+
threshold: z.ZodNumber;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
288
|
+
type: z.ZodLiteral<"notional">;
|
|
289
|
+
data: z.ZodObject<{
|
|
290
|
+
priceSource: z.ZodEnum<{
|
|
291
|
+
mid: "mid";
|
|
292
|
+
mark: "mark";
|
|
193
293
|
}>;
|
|
194
294
|
threshold: z.ZodNumber;
|
|
195
295
|
}, z.core.$strip>;
|
|
196
296
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
-
type: z.ZodLiteral<"
|
|
297
|
+
type: z.ZodLiteral<"upnl">;
|
|
198
298
|
data: z.ZodObject<{
|
|
199
299
|
priceSource: z.ZodEnum<{
|
|
200
300
|
mid: "mid";
|
|
201
301
|
mark: "mark";
|
|
202
302
|
}>;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
303
|
+
threshold: z.ZodNumber;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
307
|
+
data: z.ZodObject<{
|
|
308
|
+
priceSource: z.ZodEnum<{
|
|
309
|
+
mid: "mid";
|
|
310
|
+
mark: "mark";
|
|
206
311
|
}>;
|
|
207
|
-
|
|
312
|
+
threshold: z.ZodNumber;
|
|
208
313
|
}, z.core.$strip>;
|
|
209
314
|
}, z.core.$strip>], "type">;
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
317
|
+
type: z.ZodLiteral<"MARKET">;
|
|
210
318
|
positionId: z.ZodUUID;
|
|
319
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
320
|
+
type: z.ZodLiteral<"ratio_trailing">;
|
|
321
|
+
data: z.ZodObject<{
|
|
322
|
+
priceSource: z.ZodEnum<{
|
|
323
|
+
mid: "mid";
|
|
324
|
+
mark: "mark";
|
|
325
|
+
}>;
|
|
326
|
+
symbol_a: z.ZodString;
|
|
327
|
+
symbol_b: z.ZodString;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"price_trailing">;
|
|
331
|
+
data: z.ZodObject<{
|
|
332
|
+
priceSource: z.ZodEnum<{
|
|
333
|
+
mid: "mid";
|
|
334
|
+
mark: "mark";
|
|
335
|
+
}>;
|
|
336
|
+
symbol: z.ZodString;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
339
|
+
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
340
|
+
data: z.ZodObject<{
|
|
341
|
+
priceSource: z.ZodEnum<{
|
|
342
|
+
mid: "mid";
|
|
343
|
+
mark: "mark";
|
|
344
|
+
}>;
|
|
345
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
346
|
+
symbol: z.ZodString;
|
|
347
|
+
side: z.ZodEnum<{
|
|
348
|
+
BUY: "BUY";
|
|
349
|
+
SELL: "SELL";
|
|
350
|
+
}>;
|
|
351
|
+
weight: z.ZodNumber;
|
|
352
|
+
}, z.core.$strip>>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
356
|
+
data: z.ZodObject<{
|
|
357
|
+
priceSource: z.ZodEnum<{
|
|
358
|
+
mid: "mid";
|
|
359
|
+
mark: "mark";
|
|
360
|
+
}>;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
364
|
+
data: z.ZodObject<{
|
|
365
|
+
priceSource: z.ZodEnum<{
|
|
366
|
+
mid: "mid";
|
|
367
|
+
mark: "mark";
|
|
368
|
+
}>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
372
|
+
data: z.ZodObject<{
|
|
373
|
+
priceSource: z.ZodEnum<{
|
|
374
|
+
mid: "mid";
|
|
375
|
+
mark: "mark";
|
|
376
|
+
}>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
}, z.core.$strip>], "type">;
|
|
379
|
+
trailing: z.ZodObject<{
|
|
380
|
+
mode: z.ZodEnum<{
|
|
381
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
382
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
383
|
+
}>;
|
|
384
|
+
deltaValue: z.ZodNumber;
|
|
385
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
}, z.core.$strip>]>;
|
|
388
|
+
export declare const AttachTriggerMarketCloseStatic: z.ZodObject<{
|
|
389
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
390
|
+
type: z.ZodLiteral<"MARKET">;
|
|
211
391
|
bracketType: z.ZodEnum<{
|
|
212
392
|
STOP_LOSS: "STOP_LOSS";
|
|
213
393
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
214
394
|
NONE: "NONE";
|
|
215
395
|
}>;
|
|
216
|
-
trailing: z.ZodOptional<z.ZodObject<{
|
|
217
|
-
deltaValue: z.ZodNumber;
|
|
218
|
-
activationValue: z.ZodNumber;
|
|
219
|
-
}, z.core.$strip>>;
|
|
220
|
-
}, z.core.$strip>;
|
|
221
|
-
export declare const AttachTriggerMarketClose: z.ZodObject<{
|
|
222
|
-
intent: z.ZodLiteral<"CLOSE">;
|
|
223
|
-
type: z.ZodLiteral<"MARKET">;
|
|
224
396
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
225
|
-
type: z.ZodLiteral<"
|
|
397
|
+
type: z.ZodLiteral<"notional">;
|
|
226
398
|
data: z.ZodObject<{
|
|
227
399
|
priceSource: z.ZodEnum<{
|
|
228
400
|
mid: "mid";
|
|
229
401
|
mark: "mark";
|
|
230
402
|
}>;
|
|
231
|
-
direction: z.ZodEnum<{
|
|
232
|
-
ABOVE: "ABOVE";
|
|
233
|
-
BELOW: "BELOW";
|
|
234
|
-
}>;
|
|
235
403
|
threshold: z.ZodNumber;
|
|
236
404
|
}, z.core.$strip>;
|
|
237
405
|
}, z.core.$strip>, z.ZodObject<{
|
|
238
|
-
type: z.ZodLiteral<"
|
|
406
|
+
type: z.ZodLiteral<"upnl">;
|
|
239
407
|
data: z.ZodObject<{
|
|
240
408
|
priceSource: z.ZodEnum<{
|
|
241
409
|
mid: "mid";
|
|
242
410
|
mark: "mark";
|
|
243
411
|
}>;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
412
|
+
threshold: z.ZodNumber;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
415
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
416
|
+
data: z.ZodObject<{
|
|
417
|
+
priceSource: z.ZodEnum<{
|
|
418
|
+
mid: "mid";
|
|
419
|
+
mark: "mark";
|
|
247
420
|
}>;
|
|
248
421
|
threshold: z.ZodNumber;
|
|
249
422
|
}, z.core.$strip>;
|
|
423
|
+
}, z.core.$strip>], "type">;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
export declare const AttachTriggerMarketCloseTrailing: z.ZodObject<{
|
|
426
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
427
|
+
type: z.ZodLiteral<"MARKET">;
|
|
428
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
429
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
430
|
+
data: z.ZodObject<{
|
|
431
|
+
priceSource: z.ZodEnum<{
|
|
432
|
+
mid: "mid";
|
|
433
|
+
mark: "mark";
|
|
434
|
+
}>;
|
|
435
|
+
}, z.core.$strip>;
|
|
250
436
|
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
-
type: z.ZodLiteral<"
|
|
437
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
252
438
|
data: z.ZodObject<{
|
|
253
439
|
priceSource: z.ZodEnum<{
|
|
254
440
|
mid: "mid";
|
|
255
441
|
mark: "mark";
|
|
256
442
|
}>;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
443
|
+
}, z.core.$strip>;
|
|
444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
445
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
446
|
+
data: z.ZodObject<{
|
|
447
|
+
priceSource: z.ZodEnum<{
|
|
448
|
+
mid: "mid";
|
|
449
|
+
mark: "mark";
|
|
260
450
|
}>;
|
|
261
|
-
threshold_bps: z.ZodNumber;
|
|
262
451
|
}, z.core.$strip>;
|
|
263
452
|
}, z.core.$strip>], "type">;
|
|
453
|
+
trailing: z.ZodObject<{
|
|
454
|
+
mode: z.ZodEnum<{
|
|
455
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
456
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
457
|
+
}>;
|
|
458
|
+
deltaValue: z.ZodNumber;
|
|
459
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export declare const AttachTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
463
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
464
|
+
type: z.ZodLiteral<"MARKET">;
|
|
264
465
|
bracketType: z.ZodEnum<{
|
|
265
466
|
STOP_LOSS: "STOP_LOSS";
|
|
266
467
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
267
468
|
NONE: "NONE";
|
|
268
469
|
}>;
|
|
269
|
-
trailing: z.ZodOptional<z.ZodObject<{
|
|
270
|
-
deltaValue: z.ZodNumber;
|
|
271
|
-
activationValue: z.ZodNumber;
|
|
272
|
-
}, z.core.$strip>>;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
275
|
-
intent: z.ZodLiteral<"OPEN">;
|
|
276
|
-
type: z.ZodLiteral<"MARKET">;
|
|
277
470
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
278
|
-
type: z.ZodLiteral<"
|
|
471
|
+
type: z.ZodLiteral<"notional">;
|
|
279
472
|
data: z.ZodObject<{
|
|
280
473
|
priceSource: z.ZodEnum<{
|
|
281
474
|
mid: "mid";
|
|
282
475
|
mark: "mark";
|
|
283
476
|
}>;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
477
|
+
threshold: z.ZodNumber;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
480
|
+
type: z.ZodLiteral<"upnl">;
|
|
481
|
+
data: z.ZodObject<{
|
|
482
|
+
priceSource: z.ZodEnum<{
|
|
483
|
+
mid: "mid";
|
|
484
|
+
mark: "mark";
|
|
289
485
|
}>;
|
|
290
486
|
threshold: z.ZodNumber;
|
|
291
487
|
}, z.core.$strip>;
|
|
292
488
|
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
-
type: z.ZodLiteral<"
|
|
489
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
294
490
|
data: z.ZodObject<{
|
|
295
491
|
priceSource: z.ZodEnum<{
|
|
296
492
|
mid: "mid";
|
|
297
493
|
mark: "mark";
|
|
298
494
|
}>;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
495
|
+
threshold: z.ZodNumber;
|
|
496
|
+
}, z.core.$strip>;
|
|
497
|
+
}, z.core.$strip>], "type">;
|
|
498
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
499
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
500
|
+
type: z.ZodLiteral<"MARKET">;
|
|
501
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
502
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
503
|
+
data: z.ZodObject<{
|
|
504
|
+
priceSource: z.ZodEnum<{
|
|
505
|
+
mid: "mid";
|
|
506
|
+
mark: "mark";
|
|
507
|
+
}>;
|
|
508
|
+
}, z.core.$strip>;
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
511
|
+
data: z.ZodObject<{
|
|
512
|
+
priceSource: z.ZodEnum<{
|
|
513
|
+
mid: "mid";
|
|
514
|
+
mark: "mark";
|
|
515
|
+
}>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
518
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
519
|
+
data: z.ZodObject<{
|
|
520
|
+
priceSource: z.ZodEnum<{
|
|
521
|
+
mid: "mid";
|
|
522
|
+
mark: "mark";
|
|
523
|
+
}>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
}, z.core.$strip>], "type">;
|
|
526
|
+
trailing: z.ZodObject<{
|
|
527
|
+
mode: z.ZodEnum<{
|
|
528
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
529
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
530
|
+
}>;
|
|
531
|
+
deltaValue: z.ZodNumber;
|
|
532
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
}, z.core.$strip>]>;
|
|
535
|
+
export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
536
|
+
intent: z.ZodLiteral<"OPEN">;
|
|
537
|
+
type: z.ZodLiteral<"MARKET">;
|
|
538
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
539
|
+
type: z.ZodLiteral<"ratio">;
|
|
540
|
+
data: z.ZodObject<{
|
|
541
|
+
priceSource: z.ZodEnum<{
|
|
542
|
+
mid: "mid";
|
|
543
|
+
mark: "mark";
|
|
544
|
+
}>;
|
|
545
|
+
symbol_a: z.ZodString;
|
|
546
|
+
symbol_b: z.ZodString;
|
|
547
|
+
track: z.ZodEnum<{
|
|
548
|
+
PEAK: "PEAK";
|
|
549
|
+
TROUGH: "TROUGH";
|
|
303
550
|
}>;
|
|
304
551
|
threshold: z.ZodNumber;
|
|
305
552
|
}, z.core.$strip>;
|
|
306
553
|
}, z.core.$strip>, z.ZodObject<{
|
|
307
|
-
type: z.ZodLiteral<"
|
|
554
|
+
type: z.ZodLiteral<"price">;
|
|
308
555
|
data: z.ZodObject<{
|
|
309
556
|
priceSource: z.ZodEnum<{
|
|
310
557
|
mid: "mid";
|
|
311
558
|
mark: "mark";
|
|
312
559
|
}>;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
direction: z.ZodEnum<{
|
|
318
|
-
ABOVE: "ABOVE";
|
|
319
|
-
BELOW: "BELOW";
|
|
560
|
+
symbol: z.ZodString;
|
|
561
|
+
track: z.ZodEnum<{
|
|
562
|
+
PEAK: "PEAK";
|
|
563
|
+
TROUGH: "TROUGH";
|
|
320
564
|
}>;
|
|
321
565
|
threshold: z.ZodNumber;
|
|
322
566
|
}, z.core.$strip>;
|
|
323
567
|
}, z.core.$strip>, z.ZodObject<{
|
|
324
|
-
type: z.ZodLiteral<"
|
|
568
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
325
569
|
data: z.ZodObject<{
|
|
326
570
|
priceSource: z.ZodEnum<{
|
|
327
571
|
mid: "mid";
|
|
@@ -335,9 +579,9 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
335
579
|
}>;
|
|
336
580
|
weight: z.ZodNumber;
|
|
337
581
|
}, z.core.$strip>>;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
582
|
+
track: z.ZodEnum<{
|
|
583
|
+
PEAK: "PEAK";
|
|
584
|
+
TROUGH: "TROUGH";
|
|
341
585
|
}>;
|
|
342
586
|
threshold: z.ZodNumber;
|
|
343
587
|
}, z.core.$strip>;
|
|
@@ -369,11 +613,17 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
369
613
|
}, z.core.$strip>>;
|
|
370
614
|
}, z.core.$strip>;
|
|
371
615
|
}, z.core.$strip>], "type">;
|
|
372
|
-
export declare const CreateTriggerClose: z.
|
|
616
|
+
export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodObject<{
|
|
373
617
|
intent: z.ZodLiteral<"CLOSE">;
|
|
374
618
|
type: z.ZodLiteral<"MARKET">;
|
|
619
|
+
positionId: z.ZodUUID;
|
|
620
|
+
bracketType: z.ZodEnum<{
|
|
621
|
+
STOP_LOSS: "STOP_LOSS";
|
|
622
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
623
|
+
NONE: "NONE";
|
|
624
|
+
}>;
|
|
375
625
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
376
|
-
type: z.ZodLiteral<"
|
|
626
|
+
type: z.ZodLiteral<"ratio">;
|
|
377
627
|
data: z.ZodObject<{
|
|
378
628
|
priceSource: z.ZodEnum<{
|
|
379
629
|
mid: "mid";
|
|
@@ -381,28 +631,20 @@ export declare const CreateTriggerClose: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
381
631
|
}>;
|
|
382
632
|
symbol_a: z.ZodString;
|
|
383
633
|
symbol_b: z.ZodString;
|
|
384
|
-
direction: z.ZodEnum<{
|
|
385
|
-
ABOVE: "ABOVE";
|
|
386
|
-
BELOW: "BELOW";
|
|
387
|
-
}>;
|
|
388
634
|
threshold: z.ZodNumber;
|
|
389
635
|
}, z.core.$strip>;
|
|
390
636
|
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
-
type: z.ZodLiteral<"
|
|
637
|
+
type: z.ZodLiteral<"price">;
|
|
392
638
|
data: z.ZodObject<{
|
|
393
639
|
priceSource: z.ZodEnum<{
|
|
394
640
|
mid: "mid";
|
|
395
641
|
mark: "mark";
|
|
396
642
|
}>;
|
|
397
643
|
symbol: z.ZodString;
|
|
398
|
-
direction: z.ZodEnum<{
|
|
399
|
-
ABOVE: "ABOVE";
|
|
400
|
-
BELOW: "BELOW";
|
|
401
|
-
}>;
|
|
402
644
|
threshold: z.ZodNumber;
|
|
403
645
|
}, z.core.$strip>;
|
|
404
646
|
}, z.core.$strip>, z.ZodObject<{
|
|
405
|
-
type: z.ZodLiteral<"
|
|
647
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
406
648
|
data: z.ZodObject<{
|
|
407
649
|
priceSource: z.ZodEnum<{
|
|
408
650
|
mid: "mid";
|
|
@@ -410,16 +652,67 @@ export declare const CreateTriggerClose: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
410
652
|
}>;
|
|
411
653
|
basket: z.ZodArray<z.ZodObject<{
|
|
412
654
|
symbol: z.ZodString;
|
|
655
|
+
side: z.ZodEnum<{
|
|
656
|
+
BUY: "BUY";
|
|
657
|
+
SELL: "SELL";
|
|
658
|
+
}>;
|
|
413
659
|
weight: z.ZodNumber;
|
|
414
660
|
}, z.core.$strip>>;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
661
|
+
threshold: z.ZodNumber;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
664
|
+
type: z.ZodLiteral<"notional">;
|
|
665
|
+
data: z.ZodObject<{
|
|
666
|
+
priceSource: z.ZodEnum<{
|
|
667
|
+
mid: "mid";
|
|
668
|
+
mark: "mark";
|
|
669
|
+
}>;
|
|
670
|
+
threshold: z.ZodNumber;
|
|
671
|
+
}, z.core.$strip>;
|
|
672
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
673
|
+
type: z.ZodLiteral<"upnl">;
|
|
674
|
+
data: z.ZodObject<{
|
|
675
|
+
priceSource: z.ZodEnum<{
|
|
676
|
+
mid: "mid";
|
|
677
|
+
mark: "mark";
|
|
418
678
|
}>;
|
|
419
679
|
threshold: z.ZodNumber;
|
|
420
680
|
}, z.core.$strip>;
|
|
421
681
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
|
-
type: z.ZodLiteral<"
|
|
682
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
683
|
+
data: z.ZodObject<{
|
|
684
|
+
priceSource: z.ZodEnum<{
|
|
685
|
+
mid: "mid";
|
|
686
|
+
mark: "mark";
|
|
687
|
+
}>;
|
|
688
|
+
threshold: z.ZodNumber;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
}, z.core.$strip>], "type">;
|
|
691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
692
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
693
|
+
type: z.ZodLiteral<"MARKET">;
|
|
694
|
+
positionId: z.ZodUUID;
|
|
695
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
696
|
+
type: z.ZodLiteral<"ratio_trailing">;
|
|
697
|
+
data: z.ZodObject<{
|
|
698
|
+
priceSource: z.ZodEnum<{
|
|
699
|
+
mid: "mid";
|
|
700
|
+
mark: "mark";
|
|
701
|
+
}>;
|
|
702
|
+
symbol_a: z.ZodString;
|
|
703
|
+
symbol_b: z.ZodString;
|
|
704
|
+
}, z.core.$strip>;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
type: z.ZodLiteral<"price_trailing">;
|
|
707
|
+
data: z.ZodObject<{
|
|
708
|
+
priceSource: z.ZodEnum<{
|
|
709
|
+
mid: "mid";
|
|
710
|
+
mark: "mark";
|
|
711
|
+
}>;
|
|
712
|
+
symbol: z.ZodString;
|
|
713
|
+
}, z.core.$strip>;
|
|
714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
715
|
+
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
423
716
|
data: z.ZodObject<{
|
|
424
717
|
priceSource: z.ZodEnum<{
|
|
425
718
|
mid: "mid";
|
|
@@ -433,65 +726,48 @@ export declare const CreateTriggerClose: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
433
726
|
}>;
|
|
434
727
|
weight: z.ZodNumber;
|
|
435
728
|
}, z.core.$strip>>;
|
|
436
|
-
direction: z.ZodEnum<{
|
|
437
|
-
ABOVE: "ABOVE";
|
|
438
|
-
BELOW: "BELOW";
|
|
439
|
-
}>;
|
|
440
|
-
threshold: z.ZodNumber;
|
|
441
729
|
}, z.core.$strip>;
|
|
442
730
|
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
-
type: z.ZodLiteral<"
|
|
731
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
444
732
|
data: z.ZodObject<{
|
|
445
733
|
priceSource: z.ZodEnum<{
|
|
446
734
|
mid: "mid";
|
|
447
735
|
mark: "mark";
|
|
448
736
|
}>;
|
|
449
|
-
direction: z.ZodEnum<{
|
|
450
|
-
ABOVE: "ABOVE";
|
|
451
|
-
BELOW: "BELOW";
|
|
452
|
-
}>;
|
|
453
|
-
threshold: z.ZodNumber;
|
|
454
737
|
}, z.core.$strip>;
|
|
455
738
|
}, z.core.$strip>, z.ZodObject<{
|
|
456
|
-
type: z.ZodLiteral<"
|
|
739
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
457
740
|
data: z.ZodObject<{
|
|
458
741
|
priceSource: z.ZodEnum<{
|
|
459
742
|
mid: "mid";
|
|
460
743
|
mark: "mark";
|
|
461
744
|
}>;
|
|
462
|
-
direction: z.ZodEnum<{
|
|
463
|
-
ABOVE: "ABOVE";
|
|
464
|
-
BELOW: "BELOW";
|
|
465
|
-
}>;
|
|
466
|
-
threshold: z.ZodNumber;
|
|
467
745
|
}, z.core.$strip>;
|
|
468
746
|
}, z.core.$strip>, z.ZodObject<{
|
|
469
|
-
type: z.ZodLiteral<"
|
|
747
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
470
748
|
data: z.ZodObject<{
|
|
471
749
|
priceSource: z.ZodEnum<{
|
|
472
750
|
mid: "mid";
|
|
473
751
|
mark: "mark";
|
|
474
752
|
}>;
|
|
475
|
-
direction: z.ZodEnum<{
|
|
476
|
-
ABOVE: "ABOVE";
|
|
477
|
-
BELOW: "BELOW";
|
|
478
|
-
}>;
|
|
479
|
-
threshold_bps: z.ZodNumber;
|
|
480
753
|
}, z.core.$strip>;
|
|
481
754
|
}, z.core.$strip>], "type">;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}>;
|
|
488
|
-
trailing: z.ZodOptional<z.ZodObject<{
|
|
755
|
+
trailing: z.ZodObject<{
|
|
756
|
+
mode: z.ZodEnum<{
|
|
757
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
758
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
759
|
+
}>;
|
|
489
760
|
deltaValue: z.ZodNumber;
|
|
490
|
-
activationValue: z.ZodNumber
|
|
491
|
-
}, z.core.$strip
|
|
492
|
-
}, z.core.$strip>]
|
|
761
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
}, z.core.$strip>;
|
|
763
|
+
}, z.core.$strip>]>;
|
|
493
764
|
export type CreateTriggerMarketOpen = z.output<typeof CreateTriggerMarketOpen>;
|
|
765
|
+
export type CreateTriggerMarketCloseStatic = z.output<typeof CreateTriggerMarketCloseStatic>;
|
|
766
|
+
export type CreateTriggerMarketCloseTrailing = z.output<typeof CreateTriggerMarketCloseTrailing>;
|
|
494
767
|
export type CreateTriggerMarketClose = z.output<typeof CreateTriggerMarketClose>;
|
|
768
|
+
export type AttachTriggerMarketCloseStatic = z.output<typeof AttachTriggerMarketCloseStatic>;
|
|
769
|
+
export type AttachTriggerMarketCloseTrailing = z.output<typeof AttachTriggerMarketCloseTrailing>;
|
|
495
770
|
export type AttachTriggerMarketClose = z.output<typeof AttachTriggerMarketClose>;
|
|
496
771
|
export type CreateTriggerOpen = z.output<typeof CreateTriggerOpen>;
|
|
497
772
|
export type CreateTriggerClose = z.output<typeof CreateTriggerClose>;
|
|
773
|
+
export type TrailingConfig = z.output<typeof TrailingConfig>;
|