@pear-protocol/types 2.23.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/copy/entities.d.ts +162 -10
- package/dist/copy/responses.d.ts +96 -11
- package/dist/execution/entities.d.ts +260 -43
- package/dist/execution/queries.d.ts +3 -2
- package/dist/execution/responses.d.ts +144 -24
- package/dist/fill/entities.d.ts +60 -1
- package/dist/fill/queries.d.ts +1 -0
- package/dist/fill/responses.d.ts +34 -4
- package/dist/index.js +743 -411
- package/dist/ladder/entities.d.ts +141 -24
- package/dist/ladder/payloads.d.ts +60 -24
- package/dist/ladder/queries.d.ts +2 -2
- package/dist/ladder/responses.d.ts +420 -69
- package/dist/leverage/payloads.d.ts +6 -1
- package/dist/notification/entities.d.ts +209 -7
- package/dist/notification/responses.d.ts +99 -2
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +5 -5
- package/dist/position/responses.d.ts +4 -4
- package/dist/realtime/frames.d.ts +38 -6
- package/dist/realtime/public-events.d.ts +19 -3
- package/dist/rewards/entities.d.ts +18 -0
- package/dist/rewards/index.d.ts +1 -0
- package/dist/rewards/queries.d.ts +7 -0
- package/dist/rewards/responses.d.ts +52 -0
- package/dist/schedule/entities.d.ts +155 -19
- package/dist/schedule/index.d.ts +1 -0
- package/dist/schedule/queries.d.ts +3 -2
- package/dist/schedule/responses.d.ts +142 -19
- package/dist/sync/payloads.d.ts +56 -88
- package/dist/tca/responses.d.ts +12 -12
- package/dist/trade/payloads.d.ts +60 -24
- package/dist/trade/responses.d.ts +360 -60
- package/dist/traders/performance.d.ts +4 -0
- package/dist/traders/public.d.ts +537 -285
- package/dist/trigger/common/index.d.ts +8 -2
- package/dist/trigger/entities/conditions.d.ts +40 -0
- package/dist/trigger/entities/index.d.ts +339 -32
- package/dist/trigger/payloads/conditions.d.ts +70 -38
- package/dist/trigger/payloads/index.d.ts +408 -216
- package/dist/trigger/queries.d.ts +2 -2
- package/dist/trigger/responses.d.ts +218 -20
- package/dist/users/entities.d.ts +1 -0
- package/dist/users/payloads.d.ts +1 -0
- package/dist/users/response.d.ts +2 -0
- package/package.json +1 -1
package/dist/trade/payloads.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
38
38
|
STOP_LOSS: "STOP_LOSS";
|
|
39
39
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
40
40
|
}>;
|
|
41
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
41
42
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
43
|
type: z.ZodLiteral<"notional">;
|
|
43
44
|
data: z.ZodObject<{
|
|
@@ -46,8 +47,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
46
47
|
mark: "mark";
|
|
47
48
|
}>;
|
|
48
49
|
threshold: z.ZodNumber;
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
51
|
+
cancel: "cancel";
|
|
52
|
+
keep: "keep";
|
|
53
|
+
}>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
56
|
type: z.ZodLiteral<"upnl">;
|
|
52
57
|
data: z.ZodObject<{
|
|
53
58
|
priceSource: z.ZodEnum<{
|
|
@@ -55,8 +60,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
55
60
|
mark: "mark";
|
|
56
61
|
}>;
|
|
57
62
|
threshold: z.ZodNumber;
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
64
|
+
cancel: "cancel";
|
|
65
|
+
keep: "keep";
|
|
66
|
+
}>>;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
69
|
type: z.ZodLiteral<"upnl_bps">;
|
|
61
70
|
data: z.ZodObject<{
|
|
62
71
|
priceSource: z.ZodEnum<{
|
|
@@ -64,11 +73,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
64
73
|
mark: "mark";
|
|
65
74
|
}>;
|
|
66
75
|
threshold: z.ZodNumber;
|
|
67
|
-
}, z.core.$
|
|
68
|
-
}, z.core.$
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
}, z.core.$strict>], "type">;
|
|
69
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
70
79
|
intent: z.ZodLiteral<"CLOSE">;
|
|
71
80
|
type: z.ZodLiteral<"MARKET">;
|
|
81
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
72
82
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
73
83
|
type: z.ZodLiteral<"notional_trailing">;
|
|
74
84
|
data: z.ZodObject<{
|
|
@@ -76,24 +86,32 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
76
86
|
mid: "mid";
|
|
77
87
|
mark: "mark";
|
|
78
88
|
}>;
|
|
79
|
-
|
|
80
|
-
|
|
89
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
90
|
+
cancel: "cancel";
|
|
91
|
+
keep: "keep";
|
|
92
|
+
}>>;
|
|
93
|
+
}, z.core.$strict>;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
81
95
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
82
96
|
data: z.ZodObject<{
|
|
83
97
|
priceSource: z.ZodEnum<{
|
|
84
98
|
mid: "mid";
|
|
85
99
|
mark: "mark";
|
|
86
100
|
}>;
|
|
87
|
-
|
|
88
|
-
|
|
101
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
102
|
+
cancel: "cancel";
|
|
103
|
+
keep: "keep";
|
|
104
|
+
}>>;
|
|
105
|
+
}, z.core.$strict>;
|
|
106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
89
107
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
90
108
|
data: z.ZodObject<{
|
|
91
109
|
priceSource: z.ZodEnum<{
|
|
92
110
|
mid: "mid";
|
|
93
111
|
mark: "mark";
|
|
94
112
|
}>;
|
|
95
|
-
}, z.core.$
|
|
96
|
-
}, z.core.$
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
}, z.core.$strict>], "type">;
|
|
97
115
|
trailing: z.ZodObject<{
|
|
98
116
|
mode: z.ZodEnum<{
|
|
99
117
|
RELATIVE_BPS: "RELATIVE_BPS";
|
|
@@ -192,6 +210,7 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
192
210
|
STOP_LOSS: "STOP_LOSS";
|
|
193
211
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
194
212
|
}>;
|
|
213
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
195
214
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
196
215
|
type: z.ZodLiteral<"notional">;
|
|
197
216
|
data: z.ZodObject<{
|
|
@@ -200,8 +219,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
200
219
|
mark: "mark";
|
|
201
220
|
}>;
|
|
202
221
|
threshold: z.ZodNumber;
|
|
203
|
-
|
|
204
|
-
|
|
222
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
223
|
+
cancel: "cancel";
|
|
224
|
+
keep: "keep";
|
|
225
|
+
}>>;
|
|
226
|
+
}, z.core.$strict>;
|
|
227
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
205
228
|
type: z.ZodLiteral<"upnl">;
|
|
206
229
|
data: z.ZodObject<{
|
|
207
230
|
priceSource: z.ZodEnum<{
|
|
@@ -209,8 +232,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
209
232
|
mark: "mark";
|
|
210
233
|
}>;
|
|
211
234
|
threshold: z.ZodNumber;
|
|
212
|
-
|
|
213
|
-
|
|
235
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
236
|
+
cancel: "cancel";
|
|
237
|
+
keep: "keep";
|
|
238
|
+
}>>;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
241
|
type: z.ZodLiteral<"upnl_bps">;
|
|
215
242
|
data: z.ZodObject<{
|
|
216
243
|
priceSource: z.ZodEnum<{
|
|
@@ -218,11 +245,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
218
245
|
mark: "mark";
|
|
219
246
|
}>;
|
|
220
247
|
threshold: z.ZodNumber;
|
|
221
|
-
}, z.core.$
|
|
222
|
-
}, z.core.$
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
}, z.core.$strict>], "type">;
|
|
223
250
|
}, z.core.$strip>, z.ZodObject<{
|
|
224
251
|
intent: z.ZodLiteral<"CLOSE">;
|
|
225
252
|
type: z.ZodLiteral<"MARKET">;
|
|
253
|
+
closePercent: z.ZodOptional<z.ZodNumber>;
|
|
226
254
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
227
255
|
type: z.ZodLiteral<"notional_trailing">;
|
|
228
256
|
data: z.ZodObject<{
|
|
@@ -230,24 +258,32 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
230
258
|
mid: "mid";
|
|
231
259
|
mark: "mark";
|
|
232
260
|
}>;
|
|
233
|
-
|
|
234
|
-
|
|
261
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
262
|
+
cancel: "cancel";
|
|
263
|
+
keep: "keep";
|
|
264
|
+
}>>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
235
267
|
type: z.ZodLiteral<"upnl_trailing">;
|
|
236
268
|
data: z.ZodObject<{
|
|
237
269
|
priceSource: z.ZodEnum<{
|
|
238
270
|
mid: "mid";
|
|
239
271
|
mark: "mark";
|
|
240
272
|
}>;
|
|
241
|
-
|
|
242
|
-
|
|
273
|
+
onPositionResize: z.ZodDefault<z.ZodEnum<{
|
|
274
|
+
cancel: "cancel";
|
|
275
|
+
keep: "keep";
|
|
276
|
+
}>>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
279
|
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
244
280
|
data: z.ZodObject<{
|
|
245
281
|
priceSource: z.ZodEnum<{
|
|
246
282
|
mid: "mid";
|
|
247
283
|
mark: "mark";
|
|
248
284
|
}>;
|
|
249
|
-
}, z.core.$
|
|
250
|
-
}, z.core.$
|
|
285
|
+
}, z.core.$strict>;
|
|
286
|
+
}, z.core.$strict>], "type">;
|
|
251
287
|
trailing: z.ZodObject<{
|
|
252
288
|
mode: z.ZodEnum<{
|
|
253
289
|
RELATIVE_BPS: "RELATIVE_BPS";
|