@pear-protocol/types 2.23.0 → 2.24.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.
Files changed (42) hide show
  1. package/dist/copy/entities.d.ts +160 -10
  2. package/dist/copy/responses.d.ts +95 -11
  3. package/dist/execution/entities.d.ts +43 -43
  4. package/dist/execution/queries.d.ts +3 -2
  5. package/dist/execution/responses.d.ts +24 -24
  6. package/dist/fill/entities.d.ts +60 -1
  7. package/dist/fill/queries.d.ts +1 -0
  8. package/dist/fill/responses.d.ts +34 -4
  9. package/dist/index.js +658 -408
  10. package/dist/ladder/entities.d.ts +141 -24
  11. package/dist/ladder/payloads.d.ts +60 -24
  12. package/dist/ladder/queries.d.ts +2 -2
  13. package/dist/ladder/responses.d.ts +420 -69
  14. package/dist/notification/entities.d.ts +53 -6
  15. package/dist/notification/responses.d.ts +24 -2
  16. package/dist/order/entities.d.ts +3 -3
  17. package/dist/position/entities.d.ts +5 -5
  18. package/dist/position/responses.d.ts +4 -4
  19. package/dist/realtime/frames.d.ts +38 -6
  20. package/dist/realtime/public-events.d.ts +19 -3
  21. package/dist/rewards/entities.d.ts +18 -0
  22. package/dist/rewards/index.d.ts +1 -0
  23. package/dist/rewards/queries.d.ts +7 -0
  24. package/dist/rewards/responses.d.ts +52 -0
  25. package/dist/schedule/entities.d.ts +155 -19
  26. package/dist/schedule/index.d.ts +1 -0
  27. package/dist/schedule/queries.d.ts +3 -2
  28. package/dist/schedule/responses.d.ts +142 -19
  29. package/dist/sync/payloads.d.ts +56 -88
  30. package/dist/tca/responses.d.ts +12 -12
  31. package/dist/trade/payloads.d.ts +60 -24
  32. package/dist/trade/responses.d.ts +60 -60
  33. package/dist/traders/performance.d.ts +4 -0
  34. package/dist/traders/public.d.ts +537 -285
  35. package/dist/trigger/common/index.d.ts +8 -2
  36. package/dist/trigger/entities/conditions.d.ts +40 -0
  37. package/dist/trigger/entities/index.d.ts +339 -32
  38. package/dist/trigger/payloads/conditions.d.ts +70 -38
  39. package/dist/trigger/payloads/index.d.ts +408 -216
  40. package/dist/trigger/queries.d.ts +2 -2
  41. package/dist/trigger/responses.d.ts +218 -20
  42. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const TriggerIntent: z.ZodEnum<{
3
3
  OPEN: "OPEN";
4
- ADJUST: "ADJUST";
5
4
  CLOSE: "CLOSE";
5
+ ADJUST: "ADJUST";
6
6
  }>;
7
7
  export type TriggerIntent = z.infer<typeof TriggerIntent>;
8
8
  export declare const TriggerStatus: z.ZodEnum<{
@@ -12,14 +12,20 @@ export declare const TriggerStatus: z.ZodEnum<{
12
12
  }>;
13
13
  export type TriggerStatus = z.infer<typeof TriggerStatus>;
14
14
  export declare const TriggerCancelledReason: z.ZodEnum<{
15
- USER: "USER";
16
15
  POSITION_CLOSED: "POSITION_CLOSED";
16
+ USER: "USER";
17
17
  SYSTEM: "SYSTEM";
18
18
  POSITION_NETTED: "POSITION_NETTED";
19
19
  POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
20
20
  POSITION_REVERSED: "POSITION_REVERSED";
21
+ POSITION_RESIZED: "POSITION_RESIZED";
21
22
  }>;
22
23
  export type TriggerCancelledReason = z.infer<typeof TriggerCancelledReason>;
24
+ export declare const ResizeBehavior: z.ZodEnum<{
25
+ cancel: "cancel";
26
+ keep: "keep";
27
+ }>;
28
+ export type ResizeBehavior = z.infer<typeof ResizeBehavior>;
23
29
  export declare const BracketType: z.ZodEnum<{
24
30
  NONE: "NONE";
25
31
  STOP_LOSS: "STOP_LOSS";
@@ -64,6 +64,10 @@ declare const Notional: z.ZodObject<{
64
64
  TROUGH: "TROUGH";
65
65
  }>;
66
66
  threshold: z.ZodNumber;
67
+ onPositionResize: z.ZodEnum<{
68
+ cancel: "cancel";
69
+ keep: "keep";
70
+ }>;
67
71
  }, z.core.$strip>;
68
72
  }, z.core.$strip>;
69
73
  declare const Upnl: z.ZodObject<{
@@ -78,6 +82,10 @@ declare const Upnl: z.ZodObject<{
78
82
  TROUGH: "TROUGH";
79
83
  }>;
80
84
  threshold: z.ZodNumber;
85
+ onPositionResize: z.ZodEnum<{
86
+ cancel: "cancel";
87
+ keep: "keep";
88
+ }>;
81
89
  }, z.core.$strip>;
82
90
  }, z.core.$strip>;
83
91
  declare const UpnlBps: z.ZodObject<{
@@ -184,6 +192,10 @@ declare const NotionalTrailing: z.ZodObject<{
184
192
  mid: "mid";
185
193
  mark: "mark";
186
194
  }>;
195
+ onPositionResize: z.ZodEnum<{
196
+ cancel: "cancel";
197
+ keep: "keep";
198
+ }>;
187
199
  }, z.core.$strip>;
188
200
  }, z.core.$strip>;
189
201
  declare const UpnlTrailing: z.ZodObject<{
@@ -193,6 +205,10 @@ declare const UpnlTrailing: z.ZodObject<{
193
205
  mid: "mid";
194
206
  mark: "mark";
195
207
  }>;
208
+ onPositionResize: z.ZodEnum<{
209
+ cancel: "cancel";
210
+ keep: "keep";
211
+ }>;
196
212
  }, z.core.$strip>;
197
213
  }, z.core.$strip>;
198
214
  declare const UpnlBpsTrailing: z.ZodObject<{
@@ -359,6 +375,10 @@ export declare const TriggerConditionAdjust: z.ZodDiscriminatedUnion<[z.ZodObjec
359
375
  TROUGH: "TROUGH";
360
376
  }>;
361
377
  threshold: z.ZodNumber;
378
+ onPositionResize: z.ZodEnum<{
379
+ cancel: "cancel";
380
+ keep: "keep";
381
+ }>;
362
382
  }, z.core.$strip>;
363
383
  }, z.core.$strip>, z.ZodObject<{
364
384
  type: z.ZodLiteral<"upnl">;
@@ -372,6 +392,10 @@ export declare const TriggerConditionAdjust: z.ZodDiscriminatedUnion<[z.ZodObjec
372
392
  TROUGH: "TROUGH";
373
393
  }>;
374
394
  threshold: z.ZodNumber;
395
+ onPositionResize: z.ZodEnum<{
396
+ cancel: "cancel";
397
+ keep: "keep";
398
+ }>;
375
399
  }, z.core.$strip>;
376
400
  }, z.core.$strip>, z.ZodObject<{
377
401
  type: z.ZodLiteral<"upnl_bps">;
@@ -491,6 +515,10 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
491
515
  TROUGH: "TROUGH";
492
516
  }>;
493
517
  threshold: z.ZodNumber;
518
+ onPositionResize: z.ZodEnum<{
519
+ cancel: "cancel";
520
+ keep: "keep";
521
+ }>;
494
522
  }, z.core.$strip>;
495
523
  }, z.core.$strip>, z.ZodObject<{
496
524
  type: z.ZodLiteral<"upnl">;
@@ -504,6 +532,10 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
504
532
  TROUGH: "TROUGH";
505
533
  }>;
506
534
  threshold: z.ZodNumber;
535
+ onPositionResize: z.ZodEnum<{
536
+ cancel: "cancel";
537
+ keep: "keep";
538
+ }>;
507
539
  }, z.core.$strip>;
508
540
  }, z.core.$strip>, z.ZodObject<{
509
541
  type: z.ZodLiteral<"upnl_bps">;
@@ -560,6 +592,10 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
560
592
  mid: "mid";
561
593
  mark: "mark";
562
594
  }>;
595
+ onPositionResize: z.ZodEnum<{
596
+ cancel: "cancel";
597
+ keep: "keep";
598
+ }>;
563
599
  }, z.core.$strip>;
564
600
  }, z.core.$strip>, z.ZodObject<{
565
601
  type: z.ZodLiteral<"upnl_trailing">;
@@ -568,6 +604,10 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
568
604
  mid: "mid";
569
605
  mark: "mark";
570
606
  }>;
607
+ onPositionResize: z.ZodEnum<{
608
+ cancel: "cancel";
609
+ keep: "keep";
610
+ }>;
571
611
  }, z.core.$strip>;
572
612
  }, z.core.$strip>, z.ZodObject<{
573
613
  type: z.ZodLiteral<"upnl_bps_trailing">;