@pear-protocol/types 2.22.1 → 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.
- package/dist/bundle.d.ts +1 -0
- package/dist/common/transaction-hash.d.ts +7 -0
- package/dist/copy/entities.d.ts +160 -10
- package/dist/copy/responses.d.ts +95 -11
- package/dist/execution/entities.d.ts +43 -43
- package/dist/execution/queries.d.ts +3 -2
- package/dist/execution/responses.d.ts +24 -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 +668 -410
- 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/notification/entities.d.ts +53 -6
- package/dist/notification/responses.d.ts +24 -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 +54 -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 +60 -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/package.json +1 -1
package/dist/fill/responses.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export declare const FillListResponse: z.ZodObject<{
|
|
|
13
13
|
}>;
|
|
14
14
|
tradeAccountId: z.ZodUUID;
|
|
15
15
|
symbol: z.ZodString;
|
|
16
|
-
|
|
16
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
17
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
18
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
17
19
|
connector: z.ZodEnum<{
|
|
18
20
|
hyperliquid: "hyperliquid";
|
|
19
21
|
binance: "binance";
|
|
@@ -39,6 +41,13 @@ export declare const FillListResponse: z.ZodObject<{
|
|
|
39
41
|
exchangeFillId: z.ZodString;
|
|
40
42
|
quantity: z.ZodString;
|
|
41
43
|
}, z.core.$strip>>;
|
|
44
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
45
|
+
positionId: z.ZodUUID;
|
|
46
|
+
quantity: z.ZodString;
|
|
47
|
+
usd: z.ZodString;
|
|
48
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
49
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
42
51
|
}, z.core.$strip>>;
|
|
43
52
|
}, z.core.$strip>;
|
|
44
53
|
export type FillListResponse = z.output<typeof FillListResponse>;
|
|
@@ -54,7 +63,9 @@ export declare const PositionFillListResponse: z.ZodObject<{
|
|
|
54
63
|
}>;
|
|
55
64
|
tradeAccountId: z.ZodUUID;
|
|
56
65
|
symbol: z.ZodString;
|
|
57
|
-
|
|
66
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
67
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
68
|
+
triggerId: z.ZodOptional<z.ZodUUID>;
|
|
58
69
|
connector: z.ZodEnum<{
|
|
59
70
|
hyperliquid: "hyperliquid";
|
|
60
71
|
binance: "binance";
|
|
@@ -80,12 +91,22 @@ export declare const PositionFillListResponse: z.ZodObject<{
|
|
|
80
91
|
exchangeFillId: z.ZodString;
|
|
81
92
|
quantity: z.ZodString;
|
|
82
93
|
}, z.core.$strip>>;
|
|
94
|
+
positionId: z.ZodUUID;
|
|
83
95
|
}, z.core.$strip>>;
|
|
84
96
|
}, z.core.$strip>;
|
|
85
97
|
export type PositionFillListResponse = z.output<typeof PositionFillListResponse>;
|
|
86
98
|
export declare const ProvisionalFill: z.ZodObject<{
|
|
87
99
|
id: z.ZodUUID;
|
|
88
|
-
|
|
100
|
+
tradeAccountId: z.ZodUUID;
|
|
101
|
+
connector: z.ZodEnum<{
|
|
102
|
+
hyperliquid: "hyperliquid";
|
|
103
|
+
binance: "binance";
|
|
104
|
+
bybit: "bybit";
|
|
105
|
+
okx: "okx";
|
|
106
|
+
lighter: "lighter";
|
|
107
|
+
lighter_rhc: "lighter_rhc";
|
|
108
|
+
}>;
|
|
109
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
89
110
|
symbol: z.ZodString;
|
|
90
111
|
cloid: z.ZodOptional<z.ZodString>;
|
|
91
112
|
status: z.ZodLiteral<"PROVISIONAL">;
|
|
@@ -93,7 +114,16 @@ export declare const ProvisionalFill: z.ZodObject<{
|
|
|
93
114
|
export declare const ProvisionalFillListResponse: z.ZodObject<{
|
|
94
115
|
fills: z.ZodArray<z.ZodObject<{
|
|
95
116
|
id: z.ZodUUID;
|
|
96
|
-
|
|
117
|
+
tradeAccountId: z.ZodUUID;
|
|
118
|
+
connector: z.ZodEnum<{
|
|
119
|
+
hyperliquid: "hyperliquid";
|
|
120
|
+
binance: "binance";
|
|
121
|
+
bybit: "bybit";
|
|
122
|
+
okx: "okx";
|
|
123
|
+
lighter: "lighter";
|
|
124
|
+
lighter_rhc: "lighter_rhc";
|
|
125
|
+
}>;
|
|
126
|
+
executionId: z.ZodOptional<z.ZodUUID>;
|
|
97
127
|
symbol: z.ZodString;
|
|
98
128
|
cloid: z.ZodOptional<z.ZodString>;
|
|
99
129
|
status: z.ZodLiteral<"PROVISIONAL">;
|