@pear-protocol/types 0.0.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.
Files changed (131) hide show
  1. package/dist/auth/entities.d.ts +9 -0
  2. package/dist/auth/entities.js +8 -0
  3. package/dist/auth/index.d.ts +3 -0
  4. package/dist/auth/index.js +3 -0
  5. package/dist/auth/payloads.d.ts +50 -0
  6. package/dist/auth/payloads.js +39 -0
  7. package/dist/auth/response.d.ts +55 -0
  8. package/dist/auth/response.js +21 -0
  9. package/dist/bundle.d.ts +17 -0
  10. package/dist/bundle.js +17 -0
  11. package/dist/common/array.d.ts +10 -0
  12. package/dist/common/array.js +10 -0
  13. package/dist/common/index.d.ts +3 -0
  14. package/dist/common/index.js +3 -0
  15. package/dist/common/refinement.d.ts +20 -0
  16. package/dist/common/refinement.js +60 -0
  17. package/dist/common/request.d.ts +11 -0
  18. package/dist/common/request.js +24 -0
  19. package/dist/common/response.d.ts +12 -0
  20. package/dist/common/response.js +28 -0
  21. package/dist/common/schema.d.ts +8 -0
  22. package/dist/common/schema.js +10 -0
  23. package/dist/common/trade-legs.d.ts +34 -0
  24. package/dist/common/trade-legs.js +30 -0
  25. package/dist/connector/index.d.ts +8 -0
  26. package/dist/connector/index.js +5 -0
  27. package/dist/execution/entities.d.ts +741 -0
  28. package/dist/execution/entities.js +125 -0
  29. package/dist/execution/index.d.ts +3 -0
  30. package/dist/execution/index.js +3 -0
  31. package/dist/execution/queries.d.ts +20 -0
  32. package/dist/execution/queries.js +14 -0
  33. package/dist/execution/responses.d.ts +218 -0
  34. package/dist/execution/responses.js +9 -0
  35. package/dist/fill/entities.d.ts +25 -0
  36. package/dist/fill/entities.js +61 -0
  37. package/dist/fill/index.d.ts +3 -0
  38. package/dist/fill/index.js +3 -0
  39. package/dist/fill/queries.d.ts +13 -0
  40. package/dist/fill/queries.js +11 -0
  41. package/dist/fill/responses.d.ts +55 -0
  42. package/dist/fill/responses.js +12 -0
  43. package/dist/funding/entities.d.ts +11 -0
  44. package/dist/funding/entities.js +16 -0
  45. package/dist/funding/index.d.ts +3 -0
  46. package/dist/funding/index.js +3 -0
  47. package/dist/funding/queries.d.ts +10 -0
  48. package/dist/funding/queries.js +8 -0
  49. package/dist/funding/responses.d.ts +8 -0
  50. package/dist/funding/responses.js +11 -0
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.js +3 -0
  53. package/dist/instrument/entities.d.ts +43 -0
  54. package/dist/instrument/entities.js +48 -0
  55. package/dist/instrument/index.d.ts +3 -0
  56. package/dist/instrument/index.js +3 -0
  57. package/dist/instrument/queries.d.ts +10 -0
  58. package/dist/instrument/queries.js +8 -0
  59. package/dist/instrument/responses.d.ts +37 -0
  60. package/dist/instrument/responses.js +11 -0
  61. package/dist/instrument-precision/index.d.ts +18 -0
  62. package/dist/instrument-precision/index.js +51 -0
  63. package/dist/misc/index.d.ts +3 -0
  64. package/dist/misc/index.js +1 -0
  65. package/dist/order/entities.d.ts +73 -0
  66. package/dist/order/entities.js +73 -0
  67. package/dist/order/index.d.ts +1 -0
  68. package/dist/order/index.js +1 -0
  69. package/dist/position/entities.d.ts +53 -0
  70. package/dist/position/entities.js +55 -0
  71. package/dist/position/index.d.ts +3 -0
  72. package/dist/position/index.js +3 -0
  73. package/dist/position/queries.d.ts +16 -0
  74. package/dist/position/queries.js +28 -0
  75. package/dist/position/responses.d.ts +28 -0
  76. package/dist/position/responses.js +8 -0
  77. package/dist/price/entities.d.ts +8 -0
  78. package/dist/price/entities.js +7 -0
  79. package/dist/price/index.d.ts +3 -0
  80. package/dist/price/index.js +3 -0
  81. package/dist/price/queries.d.ts +10 -0
  82. package/dist/price/queries.js +8 -0
  83. package/dist/price/responses.d.ts +6 -0
  84. package/dist/price/responses.js +15 -0
  85. package/dist/schedule/entities.d.ts +380 -0
  86. package/dist/schedule/entities.js +159 -0
  87. package/dist/schedule/index.d.ts +4 -0
  88. package/dist/schedule/index.js +4 -0
  89. package/dist/schedule/payloads.d.ts +72 -0
  90. package/dist/schedule/payloads.js +102 -0
  91. package/dist/schedule/queries.d.ts +18 -0
  92. package/dist/schedule/queries.js +12 -0
  93. package/dist/schedule/responses.d.ts +279 -0
  94. package/dist/schedule/responses.js +10 -0
  95. package/dist/trade/index.d.ts +2 -0
  96. package/dist/trade/index.js +2 -0
  97. package/dist/trade/payloads.d.ts +217 -0
  98. package/dist/trade/payloads.js +35 -0
  99. package/dist/trade/responses.d.ts +861 -0
  100. package/dist/trade/responses.js +9 -0
  101. package/dist/trade-accounts/entities.d.ts +50 -0
  102. package/dist/trade-accounts/entities.js +18 -0
  103. package/dist/trade-accounts/index.d.ts +3 -0
  104. package/dist/trade-accounts/index.js +3 -0
  105. package/dist/trade-accounts/payloads.d.ts +137 -0
  106. package/dist/trade-accounts/payloads.js +84 -0
  107. package/dist/trade-accounts/response.d.ts +65 -0
  108. package/dist/trade-accounts/response.js +41 -0
  109. package/dist/trigger/entities/conditions.d.ts +407 -0
  110. package/dist/trigger/entities/conditions.js +239 -0
  111. package/dist/trigger/entities/index.d.ts +1549 -0
  112. package/dist/trigger/entities/index.js +123 -0
  113. package/dist/trigger/index.d.ts +6 -0
  114. package/dist/trigger/index.js +6 -0
  115. package/dist/trigger/payloads/conditions.d.ts +340 -0
  116. package/dist/trigger/payloads/conditions.js +109 -0
  117. package/dist/trigger/payloads/index.d.ts +470 -0
  118. package/dist/trigger/payloads/index.js +47 -0
  119. package/dist/trigger/queries.d.ts +18 -0
  120. package/dist/trigger/queries.js +12 -0
  121. package/dist/trigger/responses.d.ts +1001 -0
  122. package/dist/trigger/responses.js +10 -0
  123. package/dist/users/entities.d.ts +16 -0
  124. package/dist/users/entities.js +14 -0
  125. package/dist/users/index.d.ts +3 -0
  126. package/dist/users/index.js +3 -0
  127. package/dist/users/payloads.d.ts +5 -0
  128. package/dist/users/payloads.js +7 -0
  129. package/dist/users/response.d.ts +23 -0
  130. package/dist/users/response.js +12 -0
  131. package/package.json +35 -0
@@ -0,0 +1,741 @@
1
+ import { z } from 'zod';
2
+ export declare const ExecutionIntent: z.ZodEnum<{
3
+ OPEN: "OPEN";
4
+ CLOSE: "CLOSE";
5
+ ADJUST: "ADJUST";
6
+ }>;
7
+ export type ExecutionIntent = z.infer<typeof ExecutionIntent>;
8
+ export declare const ExecutionOrderType: z.ZodEnum<{
9
+ MARKET: "MARKET";
10
+ }>;
11
+ export type ExecutionOrderType = z.infer<typeof ExecutionOrderType>;
12
+ export declare const ExecutionStatus: z.ZodEnum<{
13
+ CANCELLED: "CANCELLED";
14
+ IDLE: "IDLE";
15
+ ACTIVE: "ACTIVE";
16
+ COMPLETED: "COMPLETED";
17
+ FAILED: "FAILED";
18
+ }>;
19
+ export type ExecutionStatus = z.infer<typeof ExecutionStatus>;
20
+ export declare const ExecutionLegMode: z.ZodEnum<{
21
+ QUANTITY: "QUANTITY";
22
+ USD: "USD";
23
+ }>;
24
+ export type ExecutionLegMode = z.infer<typeof ExecutionLegMode>;
25
+ declare const ExecutionLeg: z.ZodObject<{
26
+ symbol: z.ZodString;
27
+ side: z.ZodEnum<{
28
+ BUY: "BUY";
29
+ SELL: "SELL";
30
+ }>;
31
+ mode: z.ZodEnum<{
32
+ QUANTITY: "QUANTITY";
33
+ USD: "USD";
34
+ }>;
35
+ amount: z.ZodString;
36
+ reduceOnly: z.ZodBoolean;
37
+ }, z.core.$strip>;
38
+ export declare const BaseExecution: z.ZodObject<{
39
+ id: z.ZodUUID;
40
+ connector: z.ZodEnum<{
41
+ hyperliquid: "hyperliquid";
42
+ binanceusdm: "binanceusdm";
43
+ bybit: "bybit";
44
+ okx: "okx";
45
+ }>;
46
+ intent: z.ZodEnum<{
47
+ OPEN: "OPEN";
48
+ CLOSE: "CLOSE";
49
+ ADJUST: "ADJUST";
50
+ }>;
51
+ orderType: z.ZodEnum<{
52
+ MARKET: "MARKET";
53
+ }>;
54
+ status: z.ZodEnum<{
55
+ CANCELLED: "CANCELLED";
56
+ IDLE: "IDLE";
57
+ ACTIVE: "ACTIVE";
58
+ COMPLETED: "COMPLETED";
59
+ FAILED: "FAILED";
60
+ }>;
61
+ error: z.ZodOptional<z.ZodString>;
62
+ createdAt: z.ZodString;
63
+ updatedAt: z.ZodString;
64
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
65
+ id: z.ZodUUID;
66
+ connector: z.ZodEnum<{
67
+ hyperliquid: "hyperliquid";
68
+ binanceusdm: "binanceusdm";
69
+ bybit: "bybit";
70
+ okx: "okx";
71
+ }>;
72
+ status: z.ZodEnum<{
73
+ PENDING: "PENDING";
74
+ PARTIAL: "PARTIAL";
75
+ FILLED: "FILLED";
76
+ CANCELLED: "CANCELLED";
77
+ REJECTED: "REJECTED";
78
+ }>;
79
+ error: z.ZodOptional<z.ZodString>;
80
+ createdAt: z.ZodString;
81
+ updatedAt: z.ZodString;
82
+ type: z.ZodLiteral<"MARKET">;
83
+ symbol: z.ZodString;
84
+ side: z.ZodEnum<{
85
+ BUY: "BUY";
86
+ SELL: "SELL";
87
+ }>;
88
+ reduceOnly: z.ZodBoolean;
89
+ leverage: z.ZodInt;
90
+ quantity: z.ZodString;
91
+ price: z.ZodString;
92
+ filledQuantity: z.ZodString;
93
+ filledPrice: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strip>], "type">>>;
95
+ }, z.core.$strip>;
96
+ export declare const MarketOpenExecution: z.ZodObject<{
97
+ id: z.ZodUUID;
98
+ connector: z.ZodEnum<{
99
+ hyperliquid: "hyperliquid";
100
+ binanceusdm: "binanceusdm";
101
+ bybit: "bybit";
102
+ okx: "okx";
103
+ }>;
104
+ status: z.ZodEnum<{
105
+ CANCELLED: "CANCELLED";
106
+ IDLE: "IDLE";
107
+ ACTIVE: "ACTIVE";
108
+ COMPLETED: "COMPLETED";
109
+ FAILED: "FAILED";
110
+ }>;
111
+ error: z.ZodOptional<z.ZodString>;
112
+ createdAt: z.ZodString;
113
+ updatedAt: z.ZodString;
114
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ id: z.ZodUUID;
116
+ connector: z.ZodEnum<{
117
+ hyperliquid: "hyperliquid";
118
+ binanceusdm: "binanceusdm";
119
+ bybit: "bybit";
120
+ okx: "okx";
121
+ }>;
122
+ status: z.ZodEnum<{
123
+ PENDING: "PENDING";
124
+ PARTIAL: "PARTIAL";
125
+ FILLED: "FILLED";
126
+ CANCELLED: "CANCELLED";
127
+ REJECTED: "REJECTED";
128
+ }>;
129
+ error: z.ZodOptional<z.ZodString>;
130
+ createdAt: z.ZodString;
131
+ updatedAt: z.ZodString;
132
+ type: z.ZodLiteral<"MARKET">;
133
+ symbol: z.ZodString;
134
+ side: z.ZodEnum<{
135
+ BUY: "BUY";
136
+ SELL: "SELL";
137
+ }>;
138
+ reduceOnly: z.ZodBoolean;
139
+ leverage: z.ZodInt;
140
+ quantity: z.ZodString;
141
+ price: z.ZodString;
142
+ filledQuantity: z.ZodString;
143
+ filledPrice: z.ZodOptional<z.ZodString>;
144
+ }, z.core.$strip>], "type">>>;
145
+ intent: z.ZodLiteral<"OPEN">;
146
+ orderType: z.ZodLiteral<"MARKET">;
147
+ legs: z.ZodTuple<[z.ZodObject<{
148
+ symbol: z.ZodString;
149
+ side: z.ZodEnum<{
150
+ BUY: "BUY";
151
+ SELL: "SELL";
152
+ }>;
153
+ mode: z.ZodEnum<{
154
+ QUANTITY: "QUANTITY";
155
+ USD: "USD";
156
+ }>;
157
+ amount: z.ZodString;
158
+ reduceOnly: z.ZodBoolean;
159
+ }, z.core.$strip>], z.ZodObject<{
160
+ symbol: z.ZodString;
161
+ side: z.ZodEnum<{
162
+ BUY: "BUY";
163
+ SELL: "SELL";
164
+ }>;
165
+ mode: z.ZodEnum<{
166
+ QUANTITY: "QUANTITY";
167
+ USD: "USD";
168
+ }>;
169
+ amount: z.ZodString;
170
+ reduceOnly: z.ZodBoolean;
171
+ }, z.core.$strip>>;
172
+ }, z.core.$strip>;
173
+ export declare const MarketAdjustExecution: z.ZodObject<{
174
+ id: z.ZodUUID;
175
+ connector: z.ZodEnum<{
176
+ hyperliquid: "hyperliquid";
177
+ binanceusdm: "binanceusdm";
178
+ bybit: "bybit";
179
+ okx: "okx";
180
+ }>;
181
+ status: z.ZodEnum<{
182
+ CANCELLED: "CANCELLED";
183
+ IDLE: "IDLE";
184
+ ACTIVE: "ACTIVE";
185
+ COMPLETED: "COMPLETED";
186
+ FAILED: "FAILED";
187
+ }>;
188
+ error: z.ZodOptional<z.ZodString>;
189
+ createdAt: z.ZodString;
190
+ updatedAt: z.ZodString;
191
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
192
+ id: z.ZodUUID;
193
+ connector: z.ZodEnum<{
194
+ hyperliquid: "hyperliquid";
195
+ binanceusdm: "binanceusdm";
196
+ bybit: "bybit";
197
+ okx: "okx";
198
+ }>;
199
+ status: z.ZodEnum<{
200
+ PENDING: "PENDING";
201
+ PARTIAL: "PARTIAL";
202
+ FILLED: "FILLED";
203
+ CANCELLED: "CANCELLED";
204
+ REJECTED: "REJECTED";
205
+ }>;
206
+ error: z.ZodOptional<z.ZodString>;
207
+ createdAt: z.ZodString;
208
+ updatedAt: z.ZodString;
209
+ type: z.ZodLiteral<"MARKET">;
210
+ symbol: z.ZodString;
211
+ side: z.ZodEnum<{
212
+ BUY: "BUY";
213
+ SELL: "SELL";
214
+ }>;
215
+ reduceOnly: z.ZodBoolean;
216
+ leverage: z.ZodInt;
217
+ quantity: z.ZodString;
218
+ price: z.ZodString;
219
+ filledQuantity: z.ZodString;
220
+ filledPrice: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strip>], "type">>>;
222
+ intent: z.ZodLiteral<"ADJUST">;
223
+ orderType: z.ZodLiteral<"MARKET">;
224
+ position: z.ZodObject<{
225
+ id: z.ZodUUID;
226
+ exposure: z.ZodRecord<z.ZodString, z.ZodString>;
227
+ }, z.core.$strip>;
228
+ legs: z.ZodTuple<[z.ZodObject<{
229
+ symbol: z.ZodString;
230
+ side: z.ZodEnum<{
231
+ BUY: "BUY";
232
+ SELL: "SELL";
233
+ }>;
234
+ mode: z.ZodEnum<{
235
+ QUANTITY: "QUANTITY";
236
+ USD: "USD";
237
+ }>;
238
+ amount: z.ZodString;
239
+ reduceOnly: z.ZodBoolean;
240
+ }, z.core.$strip>], z.ZodObject<{
241
+ symbol: z.ZodString;
242
+ side: z.ZodEnum<{
243
+ BUY: "BUY";
244
+ SELL: "SELL";
245
+ }>;
246
+ mode: z.ZodEnum<{
247
+ QUANTITY: "QUANTITY";
248
+ USD: "USD";
249
+ }>;
250
+ amount: z.ZodString;
251
+ reduceOnly: z.ZodBoolean;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>;
254
+ export declare const MarketCloseExecution: z.ZodObject<{
255
+ id: z.ZodUUID;
256
+ connector: z.ZodEnum<{
257
+ hyperliquid: "hyperliquid";
258
+ binanceusdm: "binanceusdm";
259
+ bybit: "bybit";
260
+ okx: "okx";
261
+ }>;
262
+ status: z.ZodEnum<{
263
+ CANCELLED: "CANCELLED";
264
+ IDLE: "IDLE";
265
+ ACTIVE: "ACTIVE";
266
+ COMPLETED: "COMPLETED";
267
+ FAILED: "FAILED";
268
+ }>;
269
+ error: z.ZodOptional<z.ZodString>;
270
+ createdAt: z.ZodString;
271
+ updatedAt: z.ZodString;
272
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
273
+ id: z.ZodUUID;
274
+ connector: z.ZodEnum<{
275
+ hyperliquid: "hyperliquid";
276
+ binanceusdm: "binanceusdm";
277
+ bybit: "bybit";
278
+ okx: "okx";
279
+ }>;
280
+ status: z.ZodEnum<{
281
+ PENDING: "PENDING";
282
+ PARTIAL: "PARTIAL";
283
+ FILLED: "FILLED";
284
+ CANCELLED: "CANCELLED";
285
+ REJECTED: "REJECTED";
286
+ }>;
287
+ error: z.ZodOptional<z.ZodString>;
288
+ createdAt: z.ZodString;
289
+ updatedAt: z.ZodString;
290
+ type: z.ZodLiteral<"MARKET">;
291
+ symbol: z.ZodString;
292
+ side: z.ZodEnum<{
293
+ BUY: "BUY";
294
+ SELL: "SELL";
295
+ }>;
296
+ reduceOnly: z.ZodBoolean;
297
+ leverage: z.ZodInt;
298
+ quantity: z.ZodString;
299
+ price: z.ZodString;
300
+ filledQuantity: z.ZodString;
301
+ filledPrice: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strip>], "type">>>;
303
+ intent: z.ZodLiteral<"CLOSE">;
304
+ orderType: z.ZodLiteral<"MARKET">;
305
+ position: z.ZodObject<{
306
+ id: z.ZodUUID;
307
+ exposure: z.ZodRecord<z.ZodString, z.ZodString>;
308
+ }, z.core.$strip>;
309
+ }, z.core.$strip>;
310
+ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
311
+ id: z.ZodUUID;
312
+ connector: z.ZodEnum<{
313
+ hyperliquid: "hyperliquid";
314
+ binanceusdm: "binanceusdm";
315
+ bybit: "bybit";
316
+ okx: "okx";
317
+ }>;
318
+ status: z.ZodEnum<{
319
+ CANCELLED: "CANCELLED";
320
+ IDLE: "IDLE";
321
+ ACTIVE: "ACTIVE";
322
+ COMPLETED: "COMPLETED";
323
+ FAILED: "FAILED";
324
+ }>;
325
+ error: z.ZodOptional<z.ZodString>;
326
+ createdAt: z.ZodString;
327
+ updatedAt: z.ZodString;
328
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
329
+ id: z.ZodUUID;
330
+ connector: z.ZodEnum<{
331
+ hyperliquid: "hyperliquid";
332
+ binanceusdm: "binanceusdm";
333
+ bybit: "bybit";
334
+ okx: "okx";
335
+ }>;
336
+ status: z.ZodEnum<{
337
+ PENDING: "PENDING";
338
+ PARTIAL: "PARTIAL";
339
+ FILLED: "FILLED";
340
+ CANCELLED: "CANCELLED";
341
+ REJECTED: "REJECTED";
342
+ }>;
343
+ error: z.ZodOptional<z.ZodString>;
344
+ createdAt: z.ZodString;
345
+ updatedAt: z.ZodString;
346
+ type: z.ZodLiteral<"MARKET">;
347
+ symbol: z.ZodString;
348
+ side: z.ZodEnum<{
349
+ BUY: "BUY";
350
+ SELL: "SELL";
351
+ }>;
352
+ reduceOnly: z.ZodBoolean;
353
+ leverage: z.ZodInt;
354
+ quantity: z.ZodString;
355
+ price: z.ZodString;
356
+ filledQuantity: z.ZodString;
357
+ filledPrice: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>], "type">>>;
359
+ intent: z.ZodLiteral<"OPEN">;
360
+ orderType: z.ZodLiteral<"MARKET">;
361
+ legs: z.ZodTuple<[z.ZodObject<{
362
+ symbol: z.ZodString;
363
+ side: z.ZodEnum<{
364
+ BUY: "BUY";
365
+ SELL: "SELL";
366
+ }>;
367
+ mode: z.ZodEnum<{
368
+ QUANTITY: "QUANTITY";
369
+ USD: "USD";
370
+ }>;
371
+ amount: z.ZodString;
372
+ reduceOnly: z.ZodBoolean;
373
+ }, z.core.$strip>], z.ZodObject<{
374
+ symbol: z.ZodString;
375
+ side: z.ZodEnum<{
376
+ BUY: "BUY";
377
+ SELL: "SELL";
378
+ }>;
379
+ mode: z.ZodEnum<{
380
+ QUANTITY: "QUANTITY";
381
+ USD: "USD";
382
+ }>;
383
+ amount: z.ZodString;
384
+ reduceOnly: z.ZodBoolean;
385
+ }, z.core.$strip>>;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ id: z.ZodUUID;
388
+ connector: z.ZodEnum<{
389
+ hyperliquid: "hyperliquid";
390
+ binanceusdm: "binanceusdm";
391
+ bybit: "bybit";
392
+ okx: "okx";
393
+ }>;
394
+ status: z.ZodEnum<{
395
+ CANCELLED: "CANCELLED";
396
+ IDLE: "IDLE";
397
+ ACTIVE: "ACTIVE";
398
+ COMPLETED: "COMPLETED";
399
+ FAILED: "FAILED";
400
+ }>;
401
+ error: z.ZodOptional<z.ZodString>;
402
+ createdAt: z.ZodString;
403
+ updatedAt: z.ZodString;
404
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ id: z.ZodUUID;
406
+ connector: z.ZodEnum<{
407
+ hyperliquid: "hyperliquid";
408
+ binanceusdm: "binanceusdm";
409
+ bybit: "bybit";
410
+ okx: "okx";
411
+ }>;
412
+ status: z.ZodEnum<{
413
+ PENDING: "PENDING";
414
+ PARTIAL: "PARTIAL";
415
+ FILLED: "FILLED";
416
+ CANCELLED: "CANCELLED";
417
+ REJECTED: "REJECTED";
418
+ }>;
419
+ error: z.ZodOptional<z.ZodString>;
420
+ createdAt: z.ZodString;
421
+ updatedAt: z.ZodString;
422
+ type: z.ZodLiteral<"MARKET">;
423
+ symbol: z.ZodString;
424
+ side: z.ZodEnum<{
425
+ BUY: "BUY";
426
+ SELL: "SELL";
427
+ }>;
428
+ reduceOnly: z.ZodBoolean;
429
+ leverage: z.ZodInt;
430
+ quantity: z.ZodString;
431
+ price: z.ZodString;
432
+ filledQuantity: z.ZodString;
433
+ filledPrice: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$strip>], "type">>>;
435
+ intent: z.ZodLiteral<"ADJUST">;
436
+ orderType: z.ZodLiteral<"MARKET">;
437
+ position: z.ZodObject<{
438
+ id: z.ZodUUID;
439
+ exposure: z.ZodRecord<z.ZodString, z.ZodString>;
440
+ }, z.core.$strip>;
441
+ legs: z.ZodTuple<[z.ZodObject<{
442
+ symbol: z.ZodString;
443
+ side: z.ZodEnum<{
444
+ BUY: "BUY";
445
+ SELL: "SELL";
446
+ }>;
447
+ mode: z.ZodEnum<{
448
+ QUANTITY: "QUANTITY";
449
+ USD: "USD";
450
+ }>;
451
+ amount: z.ZodString;
452
+ reduceOnly: z.ZodBoolean;
453
+ }, z.core.$strip>], z.ZodObject<{
454
+ symbol: z.ZodString;
455
+ side: z.ZodEnum<{
456
+ BUY: "BUY";
457
+ SELL: "SELL";
458
+ }>;
459
+ mode: z.ZodEnum<{
460
+ QUANTITY: "QUANTITY";
461
+ USD: "USD";
462
+ }>;
463
+ amount: z.ZodString;
464
+ reduceOnly: z.ZodBoolean;
465
+ }, z.core.$strip>>;
466
+ }, z.core.$strip>, z.ZodObject<{
467
+ id: z.ZodUUID;
468
+ connector: z.ZodEnum<{
469
+ hyperliquid: "hyperliquid";
470
+ binanceusdm: "binanceusdm";
471
+ bybit: "bybit";
472
+ okx: "okx";
473
+ }>;
474
+ status: z.ZodEnum<{
475
+ CANCELLED: "CANCELLED";
476
+ IDLE: "IDLE";
477
+ ACTIVE: "ACTIVE";
478
+ COMPLETED: "COMPLETED";
479
+ FAILED: "FAILED";
480
+ }>;
481
+ error: z.ZodOptional<z.ZodString>;
482
+ createdAt: z.ZodString;
483
+ updatedAt: z.ZodString;
484
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
485
+ id: z.ZodUUID;
486
+ connector: z.ZodEnum<{
487
+ hyperliquid: "hyperliquid";
488
+ binanceusdm: "binanceusdm";
489
+ bybit: "bybit";
490
+ okx: "okx";
491
+ }>;
492
+ status: z.ZodEnum<{
493
+ PENDING: "PENDING";
494
+ PARTIAL: "PARTIAL";
495
+ FILLED: "FILLED";
496
+ CANCELLED: "CANCELLED";
497
+ REJECTED: "REJECTED";
498
+ }>;
499
+ error: z.ZodOptional<z.ZodString>;
500
+ createdAt: z.ZodString;
501
+ updatedAt: z.ZodString;
502
+ type: z.ZodLiteral<"MARKET">;
503
+ symbol: z.ZodString;
504
+ side: z.ZodEnum<{
505
+ BUY: "BUY";
506
+ SELL: "SELL";
507
+ }>;
508
+ reduceOnly: z.ZodBoolean;
509
+ leverage: z.ZodInt;
510
+ quantity: z.ZodString;
511
+ price: z.ZodString;
512
+ filledQuantity: z.ZodString;
513
+ filledPrice: z.ZodOptional<z.ZodString>;
514
+ }, z.core.$strip>], "type">>>;
515
+ intent: z.ZodLiteral<"CLOSE">;
516
+ orderType: z.ZodLiteral<"MARKET">;
517
+ position: z.ZodObject<{
518
+ id: z.ZodUUID;
519
+ exposure: z.ZodRecord<z.ZodString, z.ZodString>;
520
+ }, z.core.$strip>;
521
+ }, z.core.$strip>], "intent">;
522
+ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
523
+ id: z.ZodUUID;
524
+ connector: z.ZodEnum<{
525
+ hyperliquid: "hyperliquid";
526
+ binanceusdm: "binanceusdm";
527
+ bybit: "bybit";
528
+ okx: "okx";
529
+ }>;
530
+ status: z.ZodEnum<{
531
+ CANCELLED: "CANCELLED";
532
+ IDLE: "IDLE";
533
+ ACTIVE: "ACTIVE";
534
+ COMPLETED: "COMPLETED";
535
+ FAILED: "FAILED";
536
+ }>;
537
+ error: z.ZodOptional<z.ZodString>;
538
+ createdAt: z.ZodString;
539
+ updatedAt: z.ZodString;
540
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
541
+ id: z.ZodUUID;
542
+ connector: z.ZodEnum<{
543
+ hyperliquid: "hyperliquid";
544
+ binanceusdm: "binanceusdm";
545
+ bybit: "bybit";
546
+ okx: "okx";
547
+ }>;
548
+ status: z.ZodEnum<{
549
+ PENDING: "PENDING";
550
+ PARTIAL: "PARTIAL";
551
+ FILLED: "FILLED";
552
+ CANCELLED: "CANCELLED";
553
+ REJECTED: "REJECTED";
554
+ }>;
555
+ error: z.ZodOptional<z.ZodString>;
556
+ createdAt: z.ZodString;
557
+ updatedAt: z.ZodString;
558
+ type: z.ZodLiteral<"MARKET">;
559
+ symbol: z.ZodString;
560
+ side: z.ZodEnum<{
561
+ BUY: "BUY";
562
+ SELL: "SELL";
563
+ }>;
564
+ reduceOnly: z.ZodBoolean;
565
+ leverage: z.ZodInt;
566
+ quantity: z.ZodString;
567
+ price: z.ZodString;
568
+ filledQuantity: z.ZodString;
569
+ filledPrice: z.ZodOptional<z.ZodString>;
570
+ }, z.core.$strip>], "type">>>;
571
+ intent: z.ZodLiteral<"OPEN">;
572
+ orderType: z.ZodLiteral<"MARKET">;
573
+ legs: z.ZodTuple<[z.ZodObject<{
574
+ symbol: z.ZodString;
575
+ side: z.ZodEnum<{
576
+ BUY: "BUY";
577
+ SELL: "SELL";
578
+ }>;
579
+ mode: z.ZodEnum<{
580
+ QUANTITY: "QUANTITY";
581
+ USD: "USD";
582
+ }>;
583
+ amount: z.ZodString;
584
+ reduceOnly: z.ZodBoolean;
585
+ }, z.core.$strip>], z.ZodObject<{
586
+ symbol: z.ZodString;
587
+ side: z.ZodEnum<{
588
+ BUY: "BUY";
589
+ SELL: "SELL";
590
+ }>;
591
+ mode: z.ZodEnum<{
592
+ QUANTITY: "QUANTITY";
593
+ USD: "USD";
594
+ }>;
595
+ amount: z.ZodString;
596
+ reduceOnly: z.ZodBoolean;
597
+ }, z.core.$strip>>;
598
+ }, z.core.$strip>, z.ZodObject<{
599
+ id: z.ZodUUID;
600
+ connector: z.ZodEnum<{
601
+ hyperliquid: "hyperliquid";
602
+ binanceusdm: "binanceusdm";
603
+ bybit: "bybit";
604
+ okx: "okx";
605
+ }>;
606
+ status: z.ZodEnum<{
607
+ CANCELLED: "CANCELLED";
608
+ IDLE: "IDLE";
609
+ ACTIVE: "ACTIVE";
610
+ COMPLETED: "COMPLETED";
611
+ FAILED: "FAILED";
612
+ }>;
613
+ error: z.ZodOptional<z.ZodString>;
614
+ createdAt: z.ZodString;
615
+ updatedAt: z.ZodString;
616
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
617
+ id: z.ZodUUID;
618
+ connector: z.ZodEnum<{
619
+ hyperliquid: "hyperliquid";
620
+ binanceusdm: "binanceusdm";
621
+ bybit: "bybit";
622
+ okx: "okx";
623
+ }>;
624
+ status: z.ZodEnum<{
625
+ PENDING: "PENDING";
626
+ PARTIAL: "PARTIAL";
627
+ FILLED: "FILLED";
628
+ CANCELLED: "CANCELLED";
629
+ REJECTED: "REJECTED";
630
+ }>;
631
+ error: z.ZodOptional<z.ZodString>;
632
+ createdAt: z.ZodString;
633
+ updatedAt: z.ZodString;
634
+ type: z.ZodLiteral<"MARKET">;
635
+ symbol: z.ZodString;
636
+ side: z.ZodEnum<{
637
+ BUY: "BUY";
638
+ SELL: "SELL";
639
+ }>;
640
+ reduceOnly: z.ZodBoolean;
641
+ leverage: z.ZodInt;
642
+ quantity: z.ZodString;
643
+ price: z.ZodString;
644
+ filledQuantity: z.ZodString;
645
+ filledPrice: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strip>], "type">>>;
647
+ intent: z.ZodLiteral<"ADJUST">;
648
+ orderType: z.ZodLiteral<"MARKET">;
649
+ position: z.ZodObject<{
650
+ id: z.ZodUUID;
651
+ exposure: z.ZodRecord<z.ZodString, z.ZodString>;
652
+ }, z.core.$strip>;
653
+ legs: z.ZodTuple<[z.ZodObject<{
654
+ symbol: z.ZodString;
655
+ side: z.ZodEnum<{
656
+ BUY: "BUY";
657
+ SELL: "SELL";
658
+ }>;
659
+ mode: z.ZodEnum<{
660
+ QUANTITY: "QUANTITY";
661
+ USD: "USD";
662
+ }>;
663
+ amount: z.ZodString;
664
+ reduceOnly: z.ZodBoolean;
665
+ }, z.core.$strip>], z.ZodObject<{
666
+ symbol: z.ZodString;
667
+ side: z.ZodEnum<{
668
+ BUY: "BUY";
669
+ SELL: "SELL";
670
+ }>;
671
+ mode: z.ZodEnum<{
672
+ QUANTITY: "QUANTITY";
673
+ USD: "USD";
674
+ }>;
675
+ amount: z.ZodString;
676
+ reduceOnly: z.ZodBoolean;
677
+ }, z.core.$strip>>;
678
+ }, z.core.$strip>, z.ZodObject<{
679
+ id: z.ZodUUID;
680
+ connector: z.ZodEnum<{
681
+ hyperliquid: "hyperliquid";
682
+ binanceusdm: "binanceusdm";
683
+ bybit: "bybit";
684
+ okx: "okx";
685
+ }>;
686
+ status: z.ZodEnum<{
687
+ CANCELLED: "CANCELLED";
688
+ IDLE: "IDLE";
689
+ ACTIVE: "ACTIVE";
690
+ COMPLETED: "COMPLETED";
691
+ FAILED: "FAILED";
692
+ }>;
693
+ error: z.ZodOptional<z.ZodString>;
694
+ createdAt: z.ZodString;
695
+ updatedAt: z.ZodString;
696
+ orders: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
697
+ id: z.ZodUUID;
698
+ connector: z.ZodEnum<{
699
+ hyperliquid: "hyperliquid";
700
+ binanceusdm: "binanceusdm";
701
+ bybit: "bybit";
702
+ okx: "okx";
703
+ }>;
704
+ status: z.ZodEnum<{
705
+ PENDING: "PENDING";
706
+ PARTIAL: "PARTIAL";
707
+ FILLED: "FILLED";
708
+ CANCELLED: "CANCELLED";
709
+ REJECTED: "REJECTED";
710
+ }>;
711
+ error: z.ZodOptional<z.ZodString>;
712
+ createdAt: z.ZodString;
713
+ updatedAt: z.ZodString;
714
+ type: z.ZodLiteral<"MARKET">;
715
+ symbol: z.ZodString;
716
+ side: z.ZodEnum<{
717
+ BUY: "BUY";
718
+ SELL: "SELL";
719
+ }>;
720
+ reduceOnly: z.ZodBoolean;
721
+ leverage: z.ZodInt;
722
+ quantity: z.ZodString;
723
+ price: z.ZodString;
724
+ filledQuantity: z.ZodString;
725
+ filledPrice: z.ZodOptional<z.ZodString>;
726
+ }, z.core.$strip>], "type">>>;
727
+ intent: z.ZodLiteral<"CLOSE">;
728
+ orderType: z.ZodLiteral<"MARKET">;
729
+ position: z.ZodObject<{
730
+ id: z.ZodUUID;
731
+ exposure: z.ZodRecord<z.ZodString, z.ZodString>;
732
+ }, z.core.$strip>;
733
+ }, z.core.$strip>], "intent">], "orderType">;
734
+ export type ExecutionLeg = z.infer<typeof ExecutionLeg>;
735
+ export type BaseExecution = z.output<typeof BaseExecution>;
736
+ export type MarketOpenExecution = z.output<typeof MarketOpenExecution>;
737
+ export type MarketAdjustExecution = z.output<typeof MarketAdjustExecution>;
738
+ export type MarketCloseExecution = z.output<typeof MarketCloseExecution>;
739
+ export type MarketExecution = z.output<typeof MarketExecution>;
740
+ export type Execution = z.output<typeof Execution>;
741
+ export {};