@pear-protocol/types 1.30.1 → 1.32.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/baskets/recommended/entities.d.ts +36 -0
- package/dist/baskets/recommended/entities.js +22 -0
- package/dist/baskets/recommended/index.d.ts +2 -0
- package/dist/baskets/recommended/index.js +2 -0
- package/dist/baskets/recommended/responses.d.ts +28 -0
- package/dist/baskets/recommended/responses.js +8 -0
- package/dist/{saved-baskets → baskets/saved}/entities.d.ts +3 -0
- package/dist/{saved-baskets → baskets/saved}/entities.js +6 -3
- package/dist/{saved-baskets → baskets/saved}/payloads.d.ts +4 -0
- package/dist/{saved-baskets → baskets/saved}/payloads.js +1 -1
- package/dist/{saved-baskets → baskets/saved}/responses.d.ts +6 -0
- package/dist/bundle.d.ts +2 -1
- package/dist/bundle.js +2 -1
- package/dist/common/refinement.d.ts +9 -0
- package/dist/common/refinement.js +9 -1
- package/dist/common/trade-legs.d.ts +2 -0
- package/dist/common/trade-legs.js +7 -3
- package/dist/execution/entities.d.ts +13 -0
- package/dist/execution/entities.js +2 -0
- package/dist/execution/responses.d.ts +8 -0
- package/dist/ladder/entities.d.ts +549 -0
- package/dist/ladder/payloads.d.ts +4 -0
- package/dist/ladder/responses.d.ts +2039 -392
- package/dist/notification/entities.d.ts +176 -3
- package/dist/notification/entities.js +31 -0
- package/dist/notification/responses.d.ts +86 -0
- package/dist/schedule/entities.d.ts +3 -0
- package/dist/schedule/entities.js +2 -0
- package/dist/schedule/payloads.d.ts +2 -0
- package/dist/schedule/payloads.js +6 -29
- package/dist/schedule/responses.d.ts +2 -0
- package/dist/schedule/twap-config.d.ts +41 -0
- package/dist/schedule/twap-config.js +29 -0
- package/dist/statistics/entities.js +23 -10
- package/dist/trade/payloads.d.ts +8 -0
- package/dist/trade/responses.d.ts +20 -0
- package/dist/trigger/entities/index.d.ts +1707 -54
- package/dist/trigger/entities/index.js +55 -2
- package/dist/trigger/payloads/index.d.ts +898 -91
- package/dist/trigger/payloads/index.js +68 -5
- package/dist/trigger/responses.d.ts +1151 -53
- package/package.json +1 -1
- /package/dist/{saved-baskets → baskets/saved}/index.d.ts +0 -0
- /package/dist/{saved-baskets → baskets/saved}/index.js +0 -0
- /package/dist/{saved-baskets → baskets/saved}/responses.js +0 -0
package/dist/trade/payloads.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodLiteral<"MARKET">;
|
|
4
4
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
5
5
|
symbol: z.ZodString;
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
7
|
side: z.ZodEnum<{
|
|
7
8
|
BUY: "BUY";
|
|
8
9
|
SELL: "SELL";
|
|
@@ -14,6 +15,7 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
14
15
|
amount: z.ZodString;
|
|
15
16
|
}, z.core.$strip>], z.ZodObject<{
|
|
16
17
|
symbol: z.ZodString;
|
|
18
|
+
id: z.ZodOptional<z.ZodString>;
|
|
17
19
|
side: z.ZodEnum<{
|
|
18
20
|
BUY: "BUY";
|
|
19
21
|
SELL: "SELL";
|
|
@@ -101,6 +103,7 @@ export declare const CreateMarketOpen: z.ZodObject<{
|
|
|
101
103
|
export declare const CreateMarketAdjust: z.ZodObject<{
|
|
102
104
|
type: z.ZodLiteral<"MARKET">;
|
|
103
105
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
106
|
+
id: z.ZodOptional<z.ZodString>;
|
|
104
107
|
symbol: z.ZodString;
|
|
105
108
|
side: z.ZodEnum<{
|
|
106
109
|
BUY: "BUY";
|
|
@@ -113,6 +116,7 @@ export declare const CreateMarketAdjust: z.ZodObject<{
|
|
|
113
116
|
amount: z.ZodString;
|
|
114
117
|
reduceOnly: z.ZodBoolean;
|
|
115
118
|
}, z.core.$strip>], z.ZodObject<{
|
|
119
|
+
id: z.ZodOptional<z.ZodString>;
|
|
116
120
|
symbol: z.ZodString;
|
|
117
121
|
side: z.ZodEnum<{
|
|
118
122
|
BUY: "BUY";
|
|
@@ -143,6 +147,7 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
143
147
|
type: z.ZodLiteral<"MARKET">;
|
|
144
148
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
145
149
|
symbol: z.ZodString;
|
|
150
|
+
id: z.ZodOptional<z.ZodString>;
|
|
146
151
|
side: z.ZodEnum<{
|
|
147
152
|
BUY: "BUY";
|
|
148
153
|
SELL: "SELL";
|
|
@@ -154,6 +159,7 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
154
159
|
amount: z.ZodString;
|
|
155
160
|
}, z.core.$strip>], z.ZodObject<{
|
|
156
161
|
symbol: z.ZodString;
|
|
162
|
+
id: z.ZodOptional<z.ZodString>;
|
|
157
163
|
side: z.ZodEnum<{
|
|
158
164
|
BUY: "BUY";
|
|
159
165
|
SELL: "SELL";
|
|
@@ -241,6 +247,7 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
241
247
|
export declare const CreateTradeAdjust: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
242
248
|
type: z.ZodLiteral<"MARKET">;
|
|
243
249
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
250
|
+
id: z.ZodOptional<z.ZodString>;
|
|
244
251
|
symbol: z.ZodString;
|
|
245
252
|
side: z.ZodEnum<{
|
|
246
253
|
BUY: "BUY";
|
|
@@ -253,6 +260,7 @@ export declare const CreateTradeAdjust: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
253
260
|
amount: z.ZodString;
|
|
254
261
|
reduceOnly: z.ZodBoolean;
|
|
255
262
|
}, z.core.$strip>], z.ZodObject<{
|
|
263
|
+
id: z.ZodOptional<z.ZodString>;
|
|
256
264
|
symbol: z.ZodString;
|
|
257
265
|
side: z.ZodEnum<{
|
|
258
266
|
BUY: "BUY";
|
|
@@ -54,6 +54,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
54
54
|
intent: z.ZodLiteral<"OPEN">;
|
|
55
55
|
orderType: z.ZodLiteral<"MARKET">;
|
|
56
56
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
57
|
+
id: z.ZodOptional<z.ZodString>;
|
|
57
58
|
symbol: z.ZodString;
|
|
58
59
|
side: z.ZodEnum<{
|
|
59
60
|
BUY: "BUY";
|
|
@@ -66,6 +67,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
66
67
|
amount: z.ZodString;
|
|
67
68
|
reduceOnly: z.ZodBoolean;
|
|
68
69
|
}, z.core.$strip>], z.ZodObject<{
|
|
70
|
+
id: z.ZodOptional<z.ZodString>;
|
|
69
71
|
symbol: z.ZodString;
|
|
70
72
|
side: z.ZodEnum<{
|
|
71
73
|
BUY: "BUY";
|
|
@@ -136,6 +138,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
136
138
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
137
139
|
}, z.core.$strip>;
|
|
138
140
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
141
|
+
id: z.ZodOptional<z.ZodString>;
|
|
139
142
|
symbol: z.ZodString;
|
|
140
143
|
side: z.ZodEnum<{
|
|
141
144
|
BUY: "BUY";
|
|
@@ -148,6 +151,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
148
151
|
amount: z.ZodString;
|
|
149
152
|
reduceOnly: z.ZodBoolean;
|
|
150
153
|
}, z.core.$strip>], z.ZodObject<{
|
|
154
|
+
id: z.ZodOptional<z.ZodString>;
|
|
151
155
|
symbol: z.ZodString;
|
|
152
156
|
side: z.ZodEnum<{
|
|
153
157
|
BUY: "BUY";
|
|
@@ -332,6 +336,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
332
336
|
intent: z.ZodLiteral<"OPEN">;
|
|
333
337
|
orderType: z.ZodLiteral<"MARKET">;
|
|
334
338
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
339
|
+
id: z.ZodOptional<z.ZodString>;
|
|
335
340
|
symbol: z.ZodString;
|
|
336
341
|
side: z.ZodEnum<{
|
|
337
342
|
BUY: "BUY";
|
|
@@ -344,6 +349,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
344
349
|
amount: z.ZodString;
|
|
345
350
|
reduceOnly: z.ZodBoolean;
|
|
346
351
|
}, z.core.$strip>], z.ZodObject<{
|
|
352
|
+
id: z.ZodOptional<z.ZodString>;
|
|
347
353
|
symbol: z.ZodString;
|
|
348
354
|
side: z.ZodEnum<{
|
|
349
355
|
BUY: "BUY";
|
|
@@ -414,6 +420,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
414
420
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
415
421
|
}, z.core.$strip>;
|
|
416
422
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
423
|
+
id: z.ZodOptional<z.ZodString>;
|
|
417
424
|
symbol: z.ZodString;
|
|
418
425
|
side: z.ZodEnum<{
|
|
419
426
|
BUY: "BUY";
|
|
@@ -426,6 +433,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
426
433
|
amount: z.ZodString;
|
|
427
434
|
reduceOnly: z.ZodBoolean;
|
|
428
435
|
}, z.core.$strip>], z.ZodObject<{
|
|
436
|
+
id: z.ZodOptional<z.ZodString>;
|
|
429
437
|
symbol: z.ZodString;
|
|
430
438
|
side: z.ZodEnum<{
|
|
431
439
|
BUY: "BUY";
|
|
@@ -610,6 +618,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
610
618
|
intent: z.ZodLiteral<"OPEN">;
|
|
611
619
|
orderType: z.ZodLiteral<"MARKET">;
|
|
612
620
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
621
|
+
id: z.ZodOptional<z.ZodString>;
|
|
613
622
|
symbol: z.ZodString;
|
|
614
623
|
side: z.ZodEnum<{
|
|
615
624
|
BUY: "BUY";
|
|
@@ -622,6 +631,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
622
631
|
amount: z.ZodString;
|
|
623
632
|
reduceOnly: z.ZodBoolean;
|
|
624
633
|
}, z.core.$strip>], z.ZodObject<{
|
|
634
|
+
id: z.ZodOptional<z.ZodString>;
|
|
625
635
|
symbol: z.ZodString;
|
|
626
636
|
side: z.ZodEnum<{
|
|
627
637
|
BUY: "BUY";
|
|
@@ -692,6 +702,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
692
702
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
693
703
|
}, z.core.$strip>;
|
|
694
704
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
705
|
+
id: z.ZodOptional<z.ZodString>;
|
|
695
706
|
symbol: z.ZodString;
|
|
696
707
|
side: z.ZodEnum<{
|
|
697
708
|
BUY: "BUY";
|
|
@@ -704,6 +715,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
704
715
|
amount: z.ZodString;
|
|
705
716
|
reduceOnly: z.ZodBoolean;
|
|
706
717
|
}, z.core.$strip>], z.ZodObject<{
|
|
718
|
+
id: z.ZodOptional<z.ZodString>;
|
|
707
719
|
symbol: z.ZodString;
|
|
708
720
|
side: z.ZodEnum<{
|
|
709
721
|
BUY: "BUY";
|
|
@@ -888,6 +900,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
888
900
|
intent: z.ZodLiteral<"OPEN">;
|
|
889
901
|
orderType: z.ZodLiteral<"MARKET">;
|
|
890
902
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
903
|
+
id: z.ZodOptional<z.ZodString>;
|
|
891
904
|
symbol: z.ZodString;
|
|
892
905
|
side: z.ZodEnum<{
|
|
893
906
|
BUY: "BUY";
|
|
@@ -900,6 +913,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
900
913
|
amount: z.ZodString;
|
|
901
914
|
reduceOnly: z.ZodBoolean;
|
|
902
915
|
}, z.core.$strip>], z.ZodObject<{
|
|
916
|
+
id: z.ZodOptional<z.ZodString>;
|
|
903
917
|
symbol: z.ZodString;
|
|
904
918
|
side: z.ZodEnum<{
|
|
905
919
|
BUY: "BUY";
|
|
@@ -970,6 +984,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
970
984
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
971
985
|
}, z.core.$strip>;
|
|
972
986
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
987
|
+
id: z.ZodOptional<z.ZodString>;
|
|
973
988
|
symbol: z.ZodString;
|
|
974
989
|
side: z.ZodEnum<{
|
|
975
990
|
BUY: "BUY";
|
|
@@ -982,6 +997,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
982
997
|
amount: z.ZodString;
|
|
983
998
|
reduceOnly: z.ZodBoolean;
|
|
984
999
|
}, z.core.$strip>], z.ZodObject<{
|
|
1000
|
+
id: z.ZodOptional<z.ZodString>;
|
|
985
1001
|
symbol: z.ZodString;
|
|
986
1002
|
side: z.ZodEnum<{
|
|
987
1003
|
BUY: "BUY";
|
|
@@ -1166,6 +1182,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1166
1182
|
intent: z.ZodLiteral<"OPEN">;
|
|
1167
1183
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1168
1184
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
1185
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1169
1186
|
symbol: z.ZodString;
|
|
1170
1187
|
side: z.ZodEnum<{
|
|
1171
1188
|
BUY: "BUY";
|
|
@@ -1178,6 +1195,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1178
1195
|
amount: z.ZodString;
|
|
1179
1196
|
reduceOnly: z.ZodBoolean;
|
|
1180
1197
|
}, z.core.$strip>], z.ZodObject<{
|
|
1198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1181
1199
|
symbol: z.ZodString;
|
|
1182
1200
|
side: z.ZodEnum<{
|
|
1183
1201
|
BUY: "BUY";
|
|
@@ -1248,6 +1266,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1248
1266
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1249
1267
|
}, z.core.$strip>;
|
|
1250
1268
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
1269
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1251
1270
|
symbol: z.ZodString;
|
|
1252
1271
|
side: z.ZodEnum<{
|
|
1253
1272
|
BUY: "BUY";
|
|
@@ -1260,6 +1279,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1260
1279
|
amount: z.ZodString;
|
|
1261
1280
|
reduceOnly: z.ZodBoolean;
|
|
1262
1281
|
}, z.core.$strip>], z.ZodObject<{
|
|
1282
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1263
1283
|
symbol: z.ZodString;
|
|
1264
1284
|
side: z.ZodEnum<{
|
|
1265
1285
|
BUY: "BUY";
|