@pear-protocol/types 2.15.0 → 2.16.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 +622 -24
- package/dist/copy/entities.js +26 -9
- package/dist/copy/index.d.ts +1 -0
- package/dist/copy/index.js +1 -0
- package/dist/copy/performance.d.ts +186 -0
- package/dist/copy/performance.js +63 -0
- package/dist/copy/responses.d.ts +733 -13
- package/dist/execution/entities.d.ts +55 -55
- package/dist/execution/responses.d.ts +32 -32
- package/dist/notification/entities.d.ts +2 -2
- package/dist/notification/responses.d.ts +1 -1
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +3 -3
- package/dist/position/responses.d.ts +2 -2
- package/dist/schedule/entities.d.ts +6 -6
- package/dist/schedule/responses.d.ts +4 -4
- package/dist/tca/responses.d.ts +4 -4
- package/dist/trade/responses.d.ts +80 -80
- package/dist/traders/public.d.ts +11 -11
- package/package.json +1 -1
package/dist/copy/responses.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export declare const CopyStateResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{
|
|
6
6
|
state: z.ZodLiteral<"ACTIVE">;
|
|
7
7
|
subscription: z.ZodObject<{
|
|
8
|
+
roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
9
|
+
provisional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
10
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
8
13
|
id: z.ZodUUID;
|
|
9
14
|
leaderTradeAccountId: z.ZodUUID;
|
|
10
15
|
followerTradeAccountId: z.ZodUUID;
|
|
@@ -19,8 +24,119 @@ export declare const CopyStateResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
19
24
|
sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
25
|
mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
|
|
21
26
|
}, z.core.$strip>], "mode">;
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
startSnapshot: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
leader: z.ZodObject<{
|
|
29
|
+
tradeAccountId: z.ZodString;
|
|
30
|
+
capturedAt: z.ZodString;
|
|
31
|
+
initialEquityUsd: z.ZodString;
|
|
32
|
+
pnl: z.ZodObject<{
|
|
33
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
34
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
35
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
36
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
37
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
38
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
follower: z.ZodObject<{
|
|
42
|
+
tradeAccountId: z.ZodString;
|
|
43
|
+
capturedAt: z.ZodString;
|
|
44
|
+
initialEquityUsd: z.ZodString;
|
|
45
|
+
pnl: z.ZodObject<{
|
|
46
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
47
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
48
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
49
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
50
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
51
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
+
status: z.ZodLiteral<"PENDING">;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
status: z.ZodLiteral<"FAILED">;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
status: z.ZodLiteral<"COMPLETE">;
|
|
61
|
+
snapshot: z.ZodObject<{
|
|
62
|
+
leader: z.ZodObject<{
|
|
63
|
+
tradeAccountId: z.ZodString;
|
|
64
|
+
capturedAt: z.ZodString;
|
|
65
|
+
provisional: z.ZodLiteral<true>;
|
|
66
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
67
|
+
pnl: z.ZodObject<{
|
|
68
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
69
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
70
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
71
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
72
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
73
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
follower: z.ZodObject<{
|
|
78
|
+
tradeAccountId: z.ZodString;
|
|
79
|
+
capturedAt: z.ZodString;
|
|
80
|
+
provisional: z.ZodLiteral<true>;
|
|
81
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
82
|
+
pnl: z.ZodObject<{
|
|
83
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
84
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
85
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
86
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
87
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
88
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>], "status">>;
|
|
94
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
UNSUBSCRIBED: "UNSUBSCRIBED";
|
|
96
|
+
MANUAL_TRADE: "MANUAL_TRADE";
|
|
97
|
+
EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
|
|
98
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
99
|
+
FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
|
|
100
|
+
}>>;
|
|
101
|
+
performance: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"OBSERVED">;
|
|
103
|
+
boundaryAt: z.ZodString;
|
|
104
|
+
timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
|
|
105
|
+
accountTimings: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
leader: z.ZodLiteral<"DELAYED">;
|
|
107
|
+
follower: z.ZodLiteral<"DELAYED">;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
leader: z.ZodObject<{
|
|
110
|
+
tradeAccountId: z.ZodString;
|
|
111
|
+
capturedAt: z.ZodString;
|
|
112
|
+
provisional: z.ZodLiteral<true>;
|
|
113
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
114
|
+
pnl: z.ZodObject<{
|
|
115
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
116
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
117
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
118
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
119
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
120
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
follower: z.ZodObject<{
|
|
125
|
+
tradeAccountId: z.ZodString;
|
|
126
|
+
capturedAt: z.ZodString;
|
|
127
|
+
provisional: z.ZodLiteral<true>;
|
|
128
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
129
|
+
pnl: z.ZodObject<{
|
|
130
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
131
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
132
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
133
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
134
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
135
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
24
140
|
status: z.ZodLiteral<"ACTIVE">;
|
|
25
141
|
volume: z.ZodString;
|
|
26
142
|
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
@@ -48,6 +164,17 @@ export declare const CopyFollowersResponse: z.ZodObject<{
|
|
|
48
164
|
export type CopyFollowersResponse = z.output<typeof CopyFollowersResponse>;
|
|
49
165
|
export declare const CopySubscriptionResponse: z.ZodObject<{
|
|
50
166
|
subscription: z.ZodObject<{
|
|
167
|
+
roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
168
|
+
provisional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
169
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
170
|
+
createdAt: z.ZodString;
|
|
171
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
172
|
+
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
173
|
+
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
174
|
+
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
175
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
176
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
177
|
+
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
51
178
|
id: z.ZodUUID;
|
|
52
179
|
leaderTradeAccountId: z.ZodUUID;
|
|
53
180
|
followerTradeAccountId: z.ZodUUID;
|
|
@@ -66,14 +193,136 @@ export declare const CopySubscriptionResponse: z.ZodObject<{
|
|
|
66
193
|
sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
194
|
mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
|
|
68
195
|
}, z.core.$strip>], "mode">;
|
|
69
|
-
|
|
70
|
-
|
|
196
|
+
startSnapshot: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
leader: z.ZodObject<{
|
|
198
|
+
tradeAccountId: z.ZodString;
|
|
199
|
+
capturedAt: z.ZodString;
|
|
200
|
+
initialEquityUsd: z.ZodString;
|
|
201
|
+
pnl: z.ZodObject<{
|
|
202
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
203
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
204
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
205
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
206
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
207
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
follower: z.ZodObject<{
|
|
211
|
+
tradeAccountId: z.ZodString;
|
|
212
|
+
capturedAt: z.ZodString;
|
|
213
|
+
initialEquityUsd: z.ZodString;
|
|
214
|
+
pnl: z.ZodObject<{
|
|
215
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
216
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
217
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
218
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
219
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
220
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
225
|
+
status: z.ZodLiteral<"PENDING">;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
status: z.ZodLiteral<"FAILED">;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
status: z.ZodLiteral<"COMPLETE">;
|
|
230
|
+
snapshot: z.ZodObject<{
|
|
231
|
+
leader: z.ZodObject<{
|
|
232
|
+
tradeAccountId: z.ZodString;
|
|
233
|
+
capturedAt: z.ZodString;
|
|
234
|
+
provisional: z.ZodLiteral<true>;
|
|
235
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
236
|
+
pnl: z.ZodObject<{
|
|
237
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
238
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
239
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
240
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
241
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
242
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
follower: z.ZodObject<{
|
|
247
|
+
tradeAccountId: z.ZodString;
|
|
248
|
+
capturedAt: z.ZodString;
|
|
249
|
+
provisional: z.ZodLiteral<true>;
|
|
250
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
251
|
+
pnl: z.ZodObject<{
|
|
252
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
253
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
254
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
255
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
256
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
257
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
}, z.core.$strip>], "status">>;
|
|
263
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
UNSUBSCRIBED: "UNSUBSCRIBED";
|
|
265
|
+
MANUAL_TRADE: "MANUAL_TRADE";
|
|
266
|
+
EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
|
|
267
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
268
|
+
FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
|
|
269
|
+
}>>;
|
|
270
|
+
performance: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
kind: z.ZodLiteral<"OBSERVED">;
|
|
272
|
+
boundaryAt: z.ZodString;
|
|
273
|
+
timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
|
|
274
|
+
accountTimings: z.ZodOptional<z.ZodObject<{
|
|
275
|
+
leader: z.ZodLiteral<"DELAYED">;
|
|
276
|
+
follower: z.ZodLiteral<"DELAYED">;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
leader: z.ZodObject<{
|
|
279
|
+
tradeAccountId: z.ZodString;
|
|
280
|
+
capturedAt: z.ZodString;
|
|
281
|
+
provisional: z.ZodLiteral<true>;
|
|
282
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
283
|
+
pnl: z.ZodObject<{
|
|
284
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
285
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
286
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
287
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
288
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
289
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
follower: z.ZodObject<{
|
|
294
|
+
tradeAccountId: z.ZodString;
|
|
295
|
+
capturedAt: z.ZodString;
|
|
296
|
+
provisional: z.ZodLiteral<true>;
|
|
297
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
298
|
+
pnl: z.ZodObject<{
|
|
299
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
300
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
301
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
302
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
303
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
304
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
71
309
|
}, z.core.$strip>;
|
|
72
310
|
}, z.core.$strip>;
|
|
73
311
|
export type CopySubscriptionResponse = z.output<typeof CopySubscriptionResponse>;
|
|
74
312
|
/** Stopping returns the committed subscription. */
|
|
75
313
|
export declare const EndCopySubscriptionResponse: z.ZodObject<{
|
|
76
314
|
subscription: z.ZodObject<{
|
|
315
|
+
roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
316
|
+
provisional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
317
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
318
|
+
createdAt: z.ZodString;
|
|
319
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
320
|
+
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
321
|
+
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
322
|
+
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
323
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
324
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
325
|
+
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
77
326
|
id: z.ZodUUID;
|
|
78
327
|
leaderTradeAccountId: z.ZodUUID;
|
|
79
328
|
followerTradeAccountId: z.ZodUUID;
|
|
@@ -92,8 +341,119 @@ export declare const EndCopySubscriptionResponse: z.ZodObject<{
|
|
|
92
341
|
sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
342
|
mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
|
|
94
343
|
}, z.core.$strip>], "mode">;
|
|
95
|
-
|
|
96
|
-
|
|
344
|
+
startSnapshot: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
leader: z.ZodObject<{
|
|
346
|
+
tradeAccountId: z.ZodString;
|
|
347
|
+
capturedAt: z.ZodString;
|
|
348
|
+
initialEquityUsd: z.ZodString;
|
|
349
|
+
pnl: z.ZodObject<{
|
|
350
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
351
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
352
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
353
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
354
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
355
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
follower: z.ZodObject<{
|
|
359
|
+
tradeAccountId: z.ZodString;
|
|
360
|
+
capturedAt: z.ZodString;
|
|
361
|
+
initialEquityUsd: z.ZodString;
|
|
362
|
+
pnl: z.ZodObject<{
|
|
363
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
364
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
365
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
366
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
367
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
368
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
}, z.core.$strip>;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
373
|
+
status: z.ZodLiteral<"PENDING">;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
status: z.ZodLiteral<"FAILED">;
|
|
376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
377
|
+
status: z.ZodLiteral<"COMPLETE">;
|
|
378
|
+
snapshot: z.ZodObject<{
|
|
379
|
+
leader: z.ZodObject<{
|
|
380
|
+
tradeAccountId: z.ZodString;
|
|
381
|
+
capturedAt: z.ZodString;
|
|
382
|
+
provisional: z.ZodLiteral<true>;
|
|
383
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
384
|
+
pnl: z.ZodObject<{
|
|
385
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
386
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
387
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
388
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
389
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
390
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
follower: z.ZodObject<{
|
|
395
|
+
tradeAccountId: z.ZodString;
|
|
396
|
+
capturedAt: z.ZodString;
|
|
397
|
+
provisional: z.ZodLiteral<true>;
|
|
398
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
399
|
+
pnl: z.ZodObject<{
|
|
400
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
401
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
402
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
403
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
404
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
405
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
}, z.core.$strip>], "status">>;
|
|
411
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
412
|
+
UNSUBSCRIBED: "UNSUBSCRIBED";
|
|
413
|
+
MANUAL_TRADE: "MANUAL_TRADE";
|
|
414
|
+
EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
|
|
415
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
416
|
+
FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
|
|
417
|
+
}>>;
|
|
418
|
+
performance: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
kind: z.ZodLiteral<"OBSERVED">;
|
|
420
|
+
boundaryAt: z.ZodString;
|
|
421
|
+
timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
|
|
422
|
+
accountTimings: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
leader: z.ZodLiteral<"DELAYED">;
|
|
424
|
+
follower: z.ZodLiteral<"DELAYED">;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
leader: z.ZodObject<{
|
|
427
|
+
tradeAccountId: z.ZodString;
|
|
428
|
+
capturedAt: z.ZodString;
|
|
429
|
+
provisional: z.ZodLiteral<true>;
|
|
430
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
431
|
+
pnl: z.ZodObject<{
|
|
432
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
433
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
434
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
435
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
436
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
437
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
438
|
+
}, z.core.$strip>;
|
|
439
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
follower: z.ZodObject<{
|
|
442
|
+
tradeAccountId: z.ZodString;
|
|
443
|
+
capturedAt: z.ZodString;
|
|
444
|
+
provisional: z.ZodLiteral<true>;
|
|
445
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
446
|
+
pnl: z.ZodObject<{
|
|
447
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
448
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
449
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
450
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
451
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
452
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
97
457
|
}, z.core.$strip>;
|
|
98
458
|
}, z.core.$strip>;
|
|
99
459
|
export type EndCopySubscriptionResponse = z.output<typeof EndCopySubscriptionResponse>;
|
|
@@ -137,6 +497,17 @@ export declare const CopyJoinResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
137
497
|
export type CopyJoinResult = z.output<typeof CopyJoinResult>;
|
|
138
498
|
export declare const CreateCopySubscriptionResponse: z.ZodObject<{
|
|
139
499
|
subscription: z.ZodObject<{
|
|
500
|
+
roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
501
|
+
provisional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
502
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
503
|
+
createdAt: z.ZodString;
|
|
504
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
505
|
+
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
506
|
+
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
507
|
+
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
508
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
509
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
510
|
+
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
140
511
|
id: z.ZodUUID;
|
|
141
512
|
leaderTradeAccountId: z.ZodUUID;
|
|
142
513
|
followerTradeAccountId: z.ZodUUID;
|
|
@@ -155,8 +526,119 @@ export declare const CreateCopySubscriptionResponse: z.ZodObject<{
|
|
|
155
526
|
sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
156
527
|
mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
|
|
157
528
|
}, z.core.$strip>], "mode">;
|
|
158
|
-
|
|
159
|
-
|
|
529
|
+
startSnapshot: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
leader: z.ZodObject<{
|
|
531
|
+
tradeAccountId: z.ZodString;
|
|
532
|
+
capturedAt: z.ZodString;
|
|
533
|
+
initialEquityUsd: z.ZodString;
|
|
534
|
+
pnl: z.ZodObject<{
|
|
535
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
536
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
537
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
538
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
539
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
540
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
follower: z.ZodObject<{
|
|
544
|
+
tradeAccountId: z.ZodString;
|
|
545
|
+
capturedAt: z.ZodString;
|
|
546
|
+
initialEquityUsd: z.ZodString;
|
|
547
|
+
pnl: z.ZodObject<{
|
|
548
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
549
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
550
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
551
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
552
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
553
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
}, z.core.$strip>>;
|
|
557
|
+
endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
558
|
+
status: z.ZodLiteral<"PENDING">;
|
|
559
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
560
|
+
status: z.ZodLiteral<"FAILED">;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
status: z.ZodLiteral<"COMPLETE">;
|
|
563
|
+
snapshot: z.ZodObject<{
|
|
564
|
+
leader: z.ZodObject<{
|
|
565
|
+
tradeAccountId: z.ZodString;
|
|
566
|
+
capturedAt: z.ZodString;
|
|
567
|
+
provisional: z.ZodLiteral<true>;
|
|
568
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
569
|
+
pnl: z.ZodObject<{
|
|
570
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
571
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
572
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
573
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
574
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
575
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
578
|
+
}, z.core.$strip>;
|
|
579
|
+
follower: z.ZodObject<{
|
|
580
|
+
tradeAccountId: z.ZodString;
|
|
581
|
+
capturedAt: z.ZodString;
|
|
582
|
+
provisional: z.ZodLiteral<true>;
|
|
583
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
584
|
+
pnl: z.ZodObject<{
|
|
585
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
586
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
587
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
588
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
589
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
590
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
591
|
+
}, z.core.$strip>;
|
|
592
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
593
|
+
}, z.core.$strip>;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
}, z.core.$strip>], "status">>;
|
|
596
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
597
|
+
UNSUBSCRIBED: "UNSUBSCRIBED";
|
|
598
|
+
MANUAL_TRADE: "MANUAL_TRADE";
|
|
599
|
+
EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
|
|
600
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
601
|
+
FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
|
|
602
|
+
}>>;
|
|
603
|
+
performance: z.ZodOptional<z.ZodObject<{
|
|
604
|
+
kind: z.ZodLiteral<"OBSERVED">;
|
|
605
|
+
boundaryAt: z.ZodString;
|
|
606
|
+
timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
|
|
607
|
+
accountTimings: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
leader: z.ZodLiteral<"DELAYED">;
|
|
609
|
+
follower: z.ZodLiteral<"DELAYED">;
|
|
610
|
+
}, z.core.$strip>>;
|
|
611
|
+
leader: z.ZodObject<{
|
|
612
|
+
tradeAccountId: z.ZodString;
|
|
613
|
+
capturedAt: z.ZodString;
|
|
614
|
+
provisional: z.ZodLiteral<true>;
|
|
615
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
616
|
+
pnl: z.ZodObject<{
|
|
617
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
618
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
619
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
620
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
621
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
622
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
623
|
+
}, z.core.$strip>;
|
|
624
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
|
+
follower: z.ZodObject<{
|
|
627
|
+
tradeAccountId: z.ZodString;
|
|
628
|
+
capturedAt: z.ZodString;
|
|
629
|
+
provisional: z.ZodLiteral<true>;
|
|
630
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
631
|
+
pnl: z.ZodObject<{
|
|
632
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
633
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
634
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
635
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
636
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
637
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
638
|
+
}, z.core.$strip>;
|
|
639
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
640
|
+
}, z.core.$strip>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
160
642
|
}, z.core.$strip>;
|
|
161
643
|
joinResults: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
162
644
|
leaderPositionId: z.ZodUUID;
|
|
@@ -198,6 +680,11 @@ export declare const CreateCopySubscriptionResponse: z.ZodObject<{
|
|
|
198
680
|
export type CreateCopySubscriptionResponse = z.output<typeof CreateCopySubscriptionResponse>;
|
|
199
681
|
export declare const CopySubscriptionListResponse: z.ZodObject<{
|
|
200
682
|
subscriptions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
683
|
+
roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
684
|
+
provisional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
685
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
686
|
+
createdAt: z.ZodString;
|
|
687
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
201
688
|
id: z.ZodUUID;
|
|
202
689
|
leaderTradeAccountId: z.ZodUUID;
|
|
203
690
|
followerTradeAccountId: z.ZodUUID;
|
|
@@ -212,8 +699,119 @@ export declare const CopySubscriptionListResponse: z.ZodObject<{
|
|
|
212
699
|
sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
213
700
|
mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
|
|
214
701
|
}, z.core.$strip>], "mode">;
|
|
215
|
-
|
|
216
|
-
|
|
702
|
+
startSnapshot: z.ZodOptional<z.ZodObject<{
|
|
703
|
+
leader: z.ZodObject<{
|
|
704
|
+
tradeAccountId: z.ZodString;
|
|
705
|
+
capturedAt: z.ZodString;
|
|
706
|
+
initialEquityUsd: z.ZodString;
|
|
707
|
+
pnl: z.ZodObject<{
|
|
708
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
709
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
710
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
711
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
712
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
713
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
714
|
+
}, z.core.$strip>;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
follower: z.ZodObject<{
|
|
717
|
+
tradeAccountId: z.ZodString;
|
|
718
|
+
capturedAt: z.ZodString;
|
|
719
|
+
initialEquityUsd: z.ZodString;
|
|
720
|
+
pnl: z.ZodObject<{
|
|
721
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
722
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
723
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
724
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
725
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
726
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
727
|
+
}, z.core.$strip>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
}, z.core.$strip>>;
|
|
730
|
+
endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
731
|
+
status: z.ZodLiteral<"PENDING">;
|
|
732
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
733
|
+
status: z.ZodLiteral<"FAILED">;
|
|
734
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
735
|
+
status: z.ZodLiteral<"COMPLETE">;
|
|
736
|
+
snapshot: z.ZodObject<{
|
|
737
|
+
leader: z.ZodObject<{
|
|
738
|
+
tradeAccountId: z.ZodString;
|
|
739
|
+
capturedAt: z.ZodString;
|
|
740
|
+
provisional: z.ZodLiteral<true>;
|
|
741
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
742
|
+
pnl: z.ZodObject<{
|
|
743
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
744
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
745
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
746
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
747
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
748
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
749
|
+
}, z.core.$strip>;
|
|
750
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
751
|
+
}, z.core.$strip>;
|
|
752
|
+
follower: z.ZodObject<{
|
|
753
|
+
tradeAccountId: z.ZodString;
|
|
754
|
+
capturedAt: z.ZodString;
|
|
755
|
+
provisional: z.ZodLiteral<true>;
|
|
756
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
757
|
+
pnl: z.ZodObject<{
|
|
758
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
759
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
760
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
761
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
762
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
763
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
766
|
+
}, z.core.$strip>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
}, z.core.$strip>], "status">>;
|
|
769
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
770
|
+
UNSUBSCRIBED: "UNSUBSCRIBED";
|
|
771
|
+
MANUAL_TRADE: "MANUAL_TRADE";
|
|
772
|
+
EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
|
|
773
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
774
|
+
FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
|
|
775
|
+
}>>;
|
|
776
|
+
performance: z.ZodOptional<z.ZodObject<{
|
|
777
|
+
kind: z.ZodLiteral<"OBSERVED">;
|
|
778
|
+
boundaryAt: z.ZodString;
|
|
779
|
+
timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
|
|
780
|
+
accountTimings: z.ZodOptional<z.ZodObject<{
|
|
781
|
+
leader: z.ZodLiteral<"DELAYED">;
|
|
782
|
+
follower: z.ZodLiteral<"DELAYED">;
|
|
783
|
+
}, z.core.$strip>>;
|
|
784
|
+
leader: z.ZodObject<{
|
|
785
|
+
tradeAccountId: z.ZodString;
|
|
786
|
+
capturedAt: z.ZodString;
|
|
787
|
+
provisional: z.ZodLiteral<true>;
|
|
788
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
789
|
+
pnl: z.ZodObject<{
|
|
790
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
791
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
792
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
793
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
794
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
795
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
796
|
+
}, z.core.$strip>;
|
|
797
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
798
|
+
}, z.core.$strip>;
|
|
799
|
+
follower: z.ZodObject<{
|
|
800
|
+
tradeAccountId: z.ZodString;
|
|
801
|
+
capturedAt: z.ZodString;
|
|
802
|
+
provisional: z.ZodLiteral<true>;
|
|
803
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
804
|
+
pnl: z.ZodObject<{
|
|
805
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
806
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
807
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
808
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
809
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
810
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
811
|
+
}, z.core.$strip>;
|
|
812
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
813
|
+
}, z.core.$strip>;
|
|
814
|
+
}, z.core.$strip>>;
|
|
217
815
|
status: z.ZodLiteral<"ACTIVE">;
|
|
218
816
|
volume: z.ZodString;
|
|
219
817
|
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
@@ -223,6 +821,17 @@ export declare const CopySubscriptionListResponse: z.ZodObject<{
|
|
|
223
821
|
pearFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
224
822
|
totalNetPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
225
823
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
|
+
roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
825
|
+
provisional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
826
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
827
|
+
createdAt: z.ZodString;
|
|
828
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
829
|
+
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
830
|
+
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
831
|
+
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
832
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
833
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
834
|
+
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
226
835
|
id: z.ZodUUID;
|
|
227
836
|
leaderTradeAccountId: z.ZodUUID;
|
|
228
837
|
followerTradeAccountId: z.ZodUUID;
|
|
@@ -237,8 +846,119 @@ export declare const CopySubscriptionListResponse: z.ZodObject<{
|
|
|
237
846
|
sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
847
|
mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
|
|
239
848
|
}, z.core.$strip>], "mode">;
|
|
240
|
-
|
|
241
|
-
|
|
849
|
+
startSnapshot: z.ZodOptional<z.ZodObject<{
|
|
850
|
+
leader: z.ZodObject<{
|
|
851
|
+
tradeAccountId: z.ZodString;
|
|
852
|
+
capturedAt: z.ZodString;
|
|
853
|
+
initialEquityUsd: z.ZodString;
|
|
854
|
+
pnl: z.ZodObject<{
|
|
855
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
856
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
857
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
858
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
859
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
860
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
861
|
+
}, z.core.$strip>;
|
|
862
|
+
}, z.core.$strip>;
|
|
863
|
+
follower: z.ZodObject<{
|
|
864
|
+
tradeAccountId: z.ZodString;
|
|
865
|
+
capturedAt: z.ZodString;
|
|
866
|
+
initialEquityUsd: z.ZodString;
|
|
867
|
+
pnl: z.ZodObject<{
|
|
868
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
869
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
870
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
871
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
872
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
873
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
874
|
+
}, z.core.$strip>;
|
|
875
|
+
}, z.core.$strip>;
|
|
876
|
+
}, z.core.$strip>>;
|
|
877
|
+
endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
878
|
+
status: z.ZodLiteral<"PENDING">;
|
|
879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
+
status: z.ZodLiteral<"FAILED">;
|
|
881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
882
|
+
status: z.ZodLiteral<"COMPLETE">;
|
|
883
|
+
snapshot: z.ZodObject<{
|
|
884
|
+
leader: z.ZodObject<{
|
|
885
|
+
tradeAccountId: z.ZodString;
|
|
886
|
+
capturedAt: z.ZodString;
|
|
887
|
+
provisional: z.ZodLiteral<true>;
|
|
888
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
889
|
+
pnl: z.ZodObject<{
|
|
890
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
891
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
892
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
893
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
894
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
895
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
896
|
+
}, z.core.$strip>;
|
|
897
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
898
|
+
}, z.core.$strip>;
|
|
899
|
+
follower: z.ZodObject<{
|
|
900
|
+
tradeAccountId: z.ZodString;
|
|
901
|
+
capturedAt: z.ZodString;
|
|
902
|
+
provisional: z.ZodLiteral<true>;
|
|
903
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
904
|
+
pnl: z.ZodObject<{
|
|
905
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
906
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
907
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
908
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
909
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
910
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
913
|
+
}, z.core.$strip>;
|
|
914
|
+
}, z.core.$strip>;
|
|
915
|
+
}, z.core.$strip>], "status">>;
|
|
916
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
917
|
+
UNSUBSCRIBED: "UNSUBSCRIBED";
|
|
918
|
+
MANUAL_TRADE: "MANUAL_TRADE";
|
|
919
|
+
EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
|
|
920
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
921
|
+
FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
|
|
922
|
+
}>>;
|
|
923
|
+
performance: z.ZodOptional<z.ZodObject<{
|
|
924
|
+
kind: z.ZodLiteral<"OBSERVED">;
|
|
925
|
+
boundaryAt: z.ZodString;
|
|
926
|
+
timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
|
|
927
|
+
accountTimings: z.ZodOptional<z.ZodObject<{
|
|
928
|
+
leader: z.ZodLiteral<"DELAYED">;
|
|
929
|
+
follower: z.ZodLiteral<"DELAYED">;
|
|
930
|
+
}, z.core.$strip>>;
|
|
931
|
+
leader: z.ZodObject<{
|
|
932
|
+
tradeAccountId: z.ZodString;
|
|
933
|
+
capturedAt: z.ZodString;
|
|
934
|
+
provisional: z.ZodLiteral<true>;
|
|
935
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
936
|
+
pnl: z.ZodObject<{
|
|
937
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
938
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
939
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
940
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
941
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
942
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
943
|
+
}, z.core.$strip>;
|
|
944
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
945
|
+
}, z.core.$strip>;
|
|
946
|
+
follower: z.ZodObject<{
|
|
947
|
+
tradeAccountId: z.ZodString;
|
|
948
|
+
capturedAt: z.ZodString;
|
|
949
|
+
provisional: z.ZodLiteral<true>;
|
|
950
|
+
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
951
|
+
pnl: z.ZodObject<{
|
|
952
|
+
grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
953
|
+
unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
954
|
+
funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
955
|
+
tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
956
|
+
platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
957
|
+
netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
958
|
+
}, z.core.$strip>;
|
|
959
|
+
returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
}, z.core.$strip>>;
|
|
242
962
|
status: z.ZodLiteral<"ENDED">;
|
|
243
963
|
volume: z.ZodString;
|
|
244
964
|
}, z.core.$strip>], "status">>;
|
|
@@ -278,10 +998,10 @@ export declare const CopyActivityListResponse: z.ZodObject<{
|
|
|
278
998
|
SETTLED: "SETTLED";
|
|
279
999
|
}>;
|
|
280
1000
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
1001
|
+
FAILED: "FAILED";
|
|
281
1002
|
COPIED: "COPIED";
|
|
282
1003
|
PARTIAL: "PARTIAL";
|
|
283
1004
|
SKIPPED: "SKIPPED";
|
|
284
|
-
FAILED: "FAILED";
|
|
285
1005
|
}>>;
|
|
286
1006
|
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
287
1007
|
SUBSCRIPTION_NOT_ACTIVE: "SUBSCRIPTION_NOT_ACTIVE";
|