@pear-protocol/types 2.3.0 → 2.4.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/execution/entities.d.ts +18 -18
- package/dist/execution/entities.js +6 -6
- package/dist/execution/responses.d.ts +12 -12
- package/dist/trade/responses.d.ts +30 -30
- package/package.json +1 -1
|
@@ -238,10 +238,10 @@ export declare const MarketAdjustExecution: z.ZodObject<{
|
|
|
238
238
|
}, z.core.$strip>], "type">>>;
|
|
239
239
|
intent: z.ZodLiteral<"ADJUST">;
|
|
240
240
|
orderType: z.ZodLiteral<"MARKET">;
|
|
241
|
-
position: z.ZodObject<{
|
|
241
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
242
242
|
id: z.ZodUUID;
|
|
243
243
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
244
|
-
}, z.core.$strip
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
245
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
246
246
|
id: z.ZodOptional<z.ZodString>;
|
|
247
247
|
symbol: z.ZodString;
|
|
@@ -325,10 +325,10 @@ export declare const MarketCloseExecution: z.ZodObject<{
|
|
|
325
325
|
}, z.core.$strip>], "type">>>;
|
|
326
326
|
intent: z.ZodLiteral<"CLOSE">;
|
|
327
327
|
orderType: z.ZodLiteral<"MARKET">;
|
|
328
|
-
position: z.ZodObject<{
|
|
328
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
329
329
|
id: z.ZodUUID;
|
|
330
330
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
331
|
-
}, z.core.$strip
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
332
|
}, z.core.$strip>;
|
|
333
333
|
export declare const MarketReverseExecution: z.ZodObject<{
|
|
334
334
|
id: z.ZodUUID;
|
|
@@ -385,10 +385,10 @@ export declare const MarketReverseExecution: z.ZodObject<{
|
|
|
385
385
|
}, z.core.$strip>], "type">>>;
|
|
386
386
|
intent: z.ZodLiteral<"REVERSE">;
|
|
387
387
|
orderType: z.ZodLiteral<"MARKET">;
|
|
388
|
-
position: z.ZodObject<{
|
|
388
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
389
389
|
id: z.ZodUUID;
|
|
390
390
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
391
|
-
}, z.core.$strip
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
392
|
}, z.core.$strip>;
|
|
393
393
|
export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
394
394
|
id: z.ZodUUID;
|
|
@@ -527,10 +527,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
527
527
|
}, z.core.$strip>], "type">>>;
|
|
528
528
|
intent: z.ZodLiteral<"ADJUST">;
|
|
529
529
|
orderType: z.ZodLiteral<"MARKET">;
|
|
530
|
-
position: z.ZodObject<{
|
|
530
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
531
531
|
id: z.ZodUUID;
|
|
532
532
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
533
|
-
}, z.core.$strip
|
|
533
|
+
}, z.core.$strip>>;
|
|
534
534
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
535
535
|
id: z.ZodOptional<z.ZodString>;
|
|
536
536
|
symbol: z.ZodString;
|
|
@@ -613,10 +613,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
613
613
|
}, z.core.$strip>], "type">>>;
|
|
614
614
|
intent: z.ZodLiteral<"CLOSE">;
|
|
615
615
|
orderType: z.ZodLiteral<"MARKET">;
|
|
616
|
-
position: z.ZodObject<{
|
|
616
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
617
617
|
id: z.ZodUUID;
|
|
618
618
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
619
|
-
}, z.core.$strip
|
|
619
|
+
}, z.core.$strip>>;
|
|
620
620
|
}, z.core.$strip>, z.ZodObject<{
|
|
621
621
|
id: z.ZodUUID;
|
|
622
622
|
connector: z.ZodEnum<{
|
|
@@ -672,10 +672,10 @@ export declare const MarketExecution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
672
672
|
}, z.core.$strip>], "type">>>;
|
|
673
673
|
intent: z.ZodLiteral<"REVERSE">;
|
|
674
674
|
orderType: z.ZodLiteral<"MARKET">;
|
|
675
|
-
position: z.ZodObject<{
|
|
675
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
676
676
|
id: z.ZodUUID;
|
|
677
677
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
678
|
-
}, z.core.$strip
|
|
678
|
+
}, z.core.$strip>>;
|
|
679
679
|
}, z.core.$strip>], "intent">;
|
|
680
680
|
export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
681
681
|
id: z.ZodUUID;
|
|
@@ -814,10 +814,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
|
|
|
814
814
|
}, z.core.$strip>], "type">>>;
|
|
815
815
|
intent: z.ZodLiteral<"ADJUST">;
|
|
816
816
|
orderType: z.ZodLiteral<"MARKET">;
|
|
817
|
-
position: z.ZodObject<{
|
|
817
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
818
818
|
id: z.ZodUUID;
|
|
819
819
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
820
|
-
}, z.core.$strip
|
|
820
|
+
}, z.core.$strip>>;
|
|
821
821
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
822
822
|
id: z.ZodOptional<z.ZodString>;
|
|
823
823
|
symbol: z.ZodString;
|
|
@@ -900,10 +900,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
|
|
|
900
900
|
}, z.core.$strip>], "type">>>;
|
|
901
901
|
intent: z.ZodLiteral<"CLOSE">;
|
|
902
902
|
orderType: z.ZodLiteral<"MARKET">;
|
|
903
|
-
position: z.ZodObject<{
|
|
903
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
904
904
|
id: z.ZodUUID;
|
|
905
905
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
906
|
-
}, z.core.$strip
|
|
906
|
+
}, z.core.$strip>>;
|
|
907
907
|
}, z.core.$strip>, z.ZodObject<{
|
|
908
908
|
id: z.ZodUUID;
|
|
909
909
|
connector: z.ZodEnum<{
|
|
@@ -959,10 +959,10 @@ export declare const Execution: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion
|
|
|
959
959
|
}, z.core.$strip>], "type">>>;
|
|
960
960
|
intent: z.ZodLiteral<"REVERSE">;
|
|
961
961
|
orderType: z.ZodLiteral<"MARKET">;
|
|
962
|
-
position: z.ZodObject<{
|
|
962
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
963
963
|
id: z.ZodUUID;
|
|
964
964
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
965
|
-
}, z.core.$strip
|
|
965
|
+
}, z.core.$strip>>;
|
|
966
966
|
}, z.core.$strip>], "intent">], "orderType">;
|
|
967
967
|
export type ExecutionLeg = z.infer<typeof ExecutionLeg>;
|
|
968
968
|
export type BaseExecution = z.output<typeof BaseExecution>;
|
|
@@ -113,12 +113,12 @@ const MarketAdjustExecution = BaseExecution.extend({
|
|
|
113
113
|
*/
|
|
114
114
|
orderType: z.literal("MARKET"),
|
|
115
115
|
/**
|
|
116
|
-
* Position
|
|
116
|
+
* Position; absent when the position link was severed (a FAILED execution unlinks its position)
|
|
117
117
|
*/
|
|
118
118
|
position: Position.pick({
|
|
119
119
|
id: true,
|
|
120
120
|
exposure: true
|
|
121
|
-
}),
|
|
121
|
+
}).optional(),
|
|
122
122
|
/**
|
|
123
123
|
* Requested legs
|
|
124
124
|
*/
|
|
@@ -136,12 +136,12 @@ const MarketCloseExecution = BaseExecution.extend({
|
|
|
136
136
|
*/
|
|
137
137
|
orderType: z.literal("MARKET"),
|
|
138
138
|
/**
|
|
139
|
-
* Position
|
|
139
|
+
* Position; absent when the position link was severed (a FAILED execution unlinks its position)
|
|
140
140
|
*/
|
|
141
141
|
position: Position.pick({
|
|
142
142
|
id: true,
|
|
143
143
|
exposure: true
|
|
144
|
-
})
|
|
144
|
+
}).optional()
|
|
145
145
|
});
|
|
146
146
|
const MarketReverseExecution = BaseExecution.extend({
|
|
147
147
|
/**
|
|
@@ -153,12 +153,12 @@ const MarketReverseExecution = BaseExecution.extend({
|
|
|
153
153
|
*/
|
|
154
154
|
orderType: z.literal("MARKET"),
|
|
155
155
|
/**
|
|
156
|
-
* Position
|
|
156
|
+
* Position; absent when the position link was severed (a FAILED execution unlinks its position)
|
|
157
157
|
*/
|
|
158
158
|
position: Position.pick({
|
|
159
159
|
id: true,
|
|
160
160
|
exposure: true
|
|
161
|
-
})
|
|
161
|
+
}).optional()
|
|
162
162
|
});
|
|
163
163
|
const MarketExecution = z.discriminatedUnion("intent", [
|
|
164
164
|
MarketOpenExecution,
|
|
@@ -139,10 +139,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
139
139
|
}, z.core.$strip>], "type">>>;
|
|
140
140
|
intent: z.ZodLiteral<"ADJUST">;
|
|
141
141
|
orderType: z.ZodLiteral<"MARKET">;
|
|
142
|
-
position: z.ZodObject<{
|
|
142
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
143
143
|
id: z.ZodUUID;
|
|
144
144
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
145
|
-
}, z.core.$strip
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
146
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
147
147
|
id: z.ZodOptional<z.ZodString>;
|
|
148
148
|
symbol: z.ZodString;
|
|
@@ -225,10 +225,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
225
225
|
}, z.core.$strip>], "type">>>;
|
|
226
226
|
intent: z.ZodLiteral<"CLOSE">;
|
|
227
227
|
orderType: z.ZodLiteral<"MARKET">;
|
|
228
|
-
position: z.ZodObject<{
|
|
228
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
229
229
|
id: z.ZodUUID;
|
|
230
230
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
231
|
-
}, z.core.$strip
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
232
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
233
|
id: z.ZodUUID;
|
|
234
234
|
connector: z.ZodEnum<{
|
|
@@ -284,10 +284,10 @@ export declare const ExecutionListResponse: z.ZodObject<{
|
|
|
284
284
|
}, z.core.$strip>], "type">>>;
|
|
285
285
|
intent: z.ZodLiteral<"REVERSE">;
|
|
286
286
|
orderType: z.ZodLiteral<"MARKET">;
|
|
287
|
-
position: z.ZodObject<{
|
|
287
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
288
288
|
id: z.ZodUUID;
|
|
289
289
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
290
|
-
}, z.core.$strip
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
291
|
}, z.core.$strip>], "intent">], "orderType">>;
|
|
292
292
|
}, z.core.$strip>;
|
|
293
293
|
export type ExecutionListResponse = z.output<typeof ExecutionListResponse>;
|
|
@@ -429,10 +429,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
429
429
|
}, z.core.$strip>], "type">>>;
|
|
430
430
|
intent: z.ZodLiteral<"ADJUST">;
|
|
431
431
|
orderType: z.ZodLiteral<"MARKET">;
|
|
432
|
-
position: z.ZodObject<{
|
|
432
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
433
433
|
id: z.ZodUUID;
|
|
434
434
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
435
|
-
}, z.core.$strip
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
436
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
437
437
|
id: z.ZodOptional<z.ZodString>;
|
|
438
438
|
symbol: z.ZodString;
|
|
@@ -515,10 +515,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
515
515
|
}, z.core.$strip>], "type">>>;
|
|
516
516
|
intent: z.ZodLiteral<"CLOSE">;
|
|
517
517
|
orderType: z.ZodLiteral<"MARKET">;
|
|
518
|
-
position: z.ZodObject<{
|
|
518
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
519
519
|
id: z.ZodUUID;
|
|
520
520
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
521
|
-
}, z.core.$strip
|
|
521
|
+
}, z.core.$strip>>;
|
|
522
522
|
}, z.core.$strip>, z.ZodObject<{
|
|
523
523
|
id: z.ZodUUID;
|
|
524
524
|
connector: z.ZodEnum<{
|
|
@@ -574,10 +574,10 @@ export declare const GetExecutionResponse: z.ZodObject<{
|
|
|
574
574
|
}, z.core.$strip>], "type">>>;
|
|
575
575
|
intent: z.ZodLiteral<"REVERSE">;
|
|
576
576
|
orderType: z.ZodLiteral<"MARKET">;
|
|
577
|
-
position: z.ZodObject<{
|
|
577
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
578
578
|
id: z.ZodUUID;
|
|
579
579
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
580
|
-
}, z.core.$strip
|
|
580
|
+
}, z.core.$strip>>;
|
|
581
581
|
}, z.core.$strip>], "intent">], "orderType">;
|
|
582
582
|
}, z.core.$strip>;
|
|
583
583
|
export type GetExecutionResponse = z.output<typeof GetExecutionResponse>;
|
|
@@ -137,10 +137,10 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
137
137
|
}, z.core.$strip>], "type">>>;
|
|
138
138
|
intent: z.ZodLiteral<"ADJUST">;
|
|
139
139
|
orderType: z.ZodLiteral<"MARKET">;
|
|
140
|
-
position: z.ZodObject<{
|
|
140
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
141
141
|
id: z.ZodUUID;
|
|
142
142
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
143
|
-
}, z.core.$strip
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
144
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
145
145
|
id: z.ZodOptional<z.ZodString>;
|
|
146
146
|
symbol: z.ZodString;
|
|
@@ -223,10 +223,10 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
223
223
|
}, z.core.$strip>], "type">>>;
|
|
224
224
|
intent: z.ZodLiteral<"CLOSE">;
|
|
225
225
|
orderType: z.ZodLiteral<"MARKET">;
|
|
226
|
-
position: z.ZodObject<{
|
|
226
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
227
227
|
id: z.ZodUUID;
|
|
228
228
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
229
|
-
}, z.core.$strip
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
230
|
}, z.core.$strip>, z.ZodObject<{
|
|
231
231
|
id: z.ZodUUID;
|
|
232
232
|
connector: z.ZodEnum<{
|
|
@@ -282,10 +282,10 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
282
282
|
}, z.core.$strip>], "type">>>;
|
|
283
283
|
intent: z.ZodLiteral<"REVERSE">;
|
|
284
284
|
orderType: z.ZodLiteral<"MARKET">;
|
|
285
|
-
position: z.ZodObject<{
|
|
285
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
286
286
|
id: z.ZodUUID;
|
|
287
287
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
288
|
-
}, z.core.$strip
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
289
|
}, z.core.$strip>], "intent">], "orderType">;
|
|
290
290
|
}, z.core.$strip>;
|
|
291
291
|
export type CreateTradeOpenResponse = z.output<typeof CreateTradeOpenResponse>;
|
|
@@ -427,10 +427,10 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
427
427
|
}, z.core.$strip>], "type">>>;
|
|
428
428
|
intent: z.ZodLiteral<"ADJUST">;
|
|
429
429
|
orderType: z.ZodLiteral<"MARKET">;
|
|
430
|
-
position: z.ZodObject<{
|
|
430
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
431
431
|
id: z.ZodUUID;
|
|
432
432
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
433
|
-
}, z.core.$strip
|
|
433
|
+
}, z.core.$strip>>;
|
|
434
434
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
435
435
|
id: z.ZodOptional<z.ZodString>;
|
|
436
436
|
symbol: z.ZodString;
|
|
@@ -513,10 +513,10 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
513
513
|
}, z.core.$strip>], "type">>>;
|
|
514
514
|
intent: z.ZodLiteral<"CLOSE">;
|
|
515
515
|
orderType: z.ZodLiteral<"MARKET">;
|
|
516
|
-
position: z.ZodObject<{
|
|
516
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
517
517
|
id: z.ZodUUID;
|
|
518
518
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
519
|
-
}, z.core.$strip
|
|
519
|
+
}, z.core.$strip>>;
|
|
520
520
|
}, z.core.$strip>, z.ZodObject<{
|
|
521
521
|
id: z.ZodUUID;
|
|
522
522
|
connector: z.ZodEnum<{
|
|
@@ -572,10 +572,10 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
572
572
|
}, z.core.$strip>], "type">>>;
|
|
573
573
|
intent: z.ZodLiteral<"REVERSE">;
|
|
574
574
|
orderType: z.ZodLiteral<"MARKET">;
|
|
575
|
-
position: z.ZodObject<{
|
|
575
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
576
576
|
id: z.ZodUUID;
|
|
577
577
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
578
|
-
}, z.core.$strip
|
|
578
|
+
}, z.core.$strip>>;
|
|
579
579
|
}, z.core.$strip>], "intent">], "orderType">;
|
|
580
580
|
}, z.core.$strip>;
|
|
581
581
|
export type CreateTradeAdjustResponse = z.output<typeof CreateTradeAdjustResponse>;
|
|
@@ -717,10 +717,10 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
717
717
|
}, z.core.$strip>], "type">>>;
|
|
718
718
|
intent: z.ZodLiteral<"ADJUST">;
|
|
719
719
|
orderType: z.ZodLiteral<"MARKET">;
|
|
720
|
-
position: z.ZodObject<{
|
|
720
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
721
721
|
id: z.ZodUUID;
|
|
722
722
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
723
|
-
}, z.core.$strip
|
|
723
|
+
}, z.core.$strip>>;
|
|
724
724
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
725
725
|
id: z.ZodOptional<z.ZodString>;
|
|
726
726
|
symbol: z.ZodString;
|
|
@@ -803,10 +803,10 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
803
803
|
}, z.core.$strip>], "type">>>;
|
|
804
804
|
intent: z.ZodLiteral<"CLOSE">;
|
|
805
805
|
orderType: z.ZodLiteral<"MARKET">;
|
|
806
|
-
position: z.ZodObject<{
|
|
806
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
807
807
|
id: z.ZodUUID;
|
|
808
808
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
809
|
-
}, z.core.$strip
|
|
809
|
+
}, z.core.$strip>>;
|
|
810
810
|
}, z.core.$strip>, z.ZodObject<{
|
|
811
811
|
id: z.ZodUUID;
|
|
812
812
|
connector: z.ZodEnum<{
|
|
@@ -862,10 +862,10 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
862
862
|
}, z.core.$strip>], "type">>>;
|
|
863
863
|
intent: z.ZodLiteral<"REVERSE">;
|
|
864
864
|
orderType: z.ZodLiteral<"MARKET">;
|
|
865
|
-
position: z.ZodObject<{
|
|
865
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
866
866
|
id: z.ZodUUID;
|
|
867
867
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
868
|
-
}, z.core.$strip
|
|
868
|
+
}, z.core.$strip>>;
|
|
869
869
|
}, z.core.$strip>], "intent">], "orderType">;
|
|
870
870
|
}, z.core.$strip>;
|
|
871
871
|
export type CreateTradeCloseResponse = z.output<typeof CreateTradeCloseResponse>;
|
|
@@ -1007,10 +1007,10 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1007
1007
|
}, z.core.$strip>], "type">>>;
|
|
1008
1008
|
intent: z.ZodLiteral<"ADJUST">;
|
|
1009
1009
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1010
|
-
position: z.ZodObject<{
|
|
1010
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
1011
1011
|
id: z.ZodUUID;
|
|
1012
1012
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1013
|
-
}, z.core.$strip
|
|
1013
|
+
}, z.core.$strip>>;
|
|
1014
1014
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
1015
1015
|
id: z.ZodOptional<z.ZodString>;
|
|
1016
1016
|
symbol: z.ZodString;
|
|
@@ -1093,10 +1093,10 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1093
1093
|
}, z.core.$strip>], "type">>>;
|
|
1094
1094
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1095
1095
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1096
|
-
position: z.ZodObject<{
|
|
1096
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
1097
1097
|
id: z.ZodUUID;
|
|
1098
1098
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1099
|
-
}, z.core.$strip
|
|
1099
|
+
}, z.core.$strip>>;
|
|
1100
1100
|
}, z.core.$strip>, z.ZodObject<{
|
|
1101
1101
|
id: z.ZodUUID;
|
|
1102
1102
|
connector: z.ZodEnum<{
|
|
@@ -1152,10 +1152,10 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1152
1152
|
}, z.core.$strip>], "type">>>;
|
|
1153
1153
|
intent: z.ZodLiteral<"REVERSE">;
|
|
1154
1154
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1155
|
-
position: z.ZodObject<{
|
|
1155
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
1156
1156
|
id: z.ZodUUID;
|
|
1157
1157
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1158
|
-
}, z.core.$strip
|
|
1158
|
+
}, z.core.$strip>>;
|
|
1159
1159
|
}, z.core.$strip>], "intent">], "orderType">;
|
|
1160
1160
|
}, z.core.$strip>;
|
|
1161
1161
|
export type CreateTradeReverseResponse = z.output<typeof CreateTradeReverseResponse>;
|
|
@@ -1297,10 +1297,10 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1297
1297
|
}, z.core.$strip>], "type">>>;
|
|
1298
1298
|
intent: z.ZodLiteral<"ADJUST">;
|
|
1299
1299
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1300
|
-
position: z.ZodObject<{
|
|
1300
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
1301
1301
|
id: z.ZodUUID;
|
|
1302
1302
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1303
|
-
}, z.core.$strip
|
|
1303
|
+
}, z.core.$strip>>;
|
|
1304
1304
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
1305
1305
|
id: z.ZodOptional<z.ZodString>;
|
|
1306
1306
|
symbol: z.ZodString;
|
|
@@ -1383,10 +1383,10 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1383
1383
|
}, z.core.$strip>], "type">>>;
|
|
1384
1384
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1385
1385
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1386
|
-
position: z.ZodObject<{
|
|
1386
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
1387
1387
|
id: z.ZodUUID;
|
|
1388
1388
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1389
|
-
}, z.core.$strip
|
|
1389
|
+
}, z.core.$strip>>;
|
|
1390
1390
|
}, z.core.$strip>, z.ZodObject<{
|
|
1391
1391
|
id: z.ZodUUID;
|
|
1392
1392
|
connector: z.ZodEnum<{
|
|
@@ -1442,10 +1442,10 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1442
1442
|
}, z.core.$strip>], "type">>>;
|
|
1443
1443
|
intent: z.ZodLiteral<"REVERSE">;
|
|
1444
1444
|
orderType: z.ZodLiteral<"MARKET">;
|
|
1445
|
-
position: z.ZodObject<{
|
|
1445
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
1446
1446
|
id: z.ZodUUID;
|
|
1447
1447
|
exposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1448
|
-
}, z.core.$strip
|
|
1448
|
+
}, z.core.$strip>>;
|
|
1449
1449
|
}, z.core.$strip>], "intent">], "orderType">>;
|
|
1450
1450
|
}, z.core.$strip>;
|
|
1451
1451
|
export type CreateTradeCloseAllResponse = z.output<typeof CreateTradeCloseAllResponse>;
|