@polymarket/bindings 0.6.0 → 0.8.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/chunk-2WODFBG4.js +2 -0
- package/dist/chunk-2WODFBG4.js.map +1 -0
- package/dist/chunk-E3SBSYCF.js +2 -0
- package/dist/{chunk-UDKFL2IM.js.map → chunk-E3SBSYCF.js.map} +1 -1
- package/dist/{chunk-QX4CCP47.js → chunk-ZLKBCIHA.js} +2 -2
- package/dist/{chunk-QX4CCP47.js.map → chunk-ZLKBCIHA.js.map} +1 -1
- package/dist/clob/index.d.ts +2815 -322
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/combos/index.d.ts +14 -10
- package/dist/combos/index.js +1 -1
- package/dist/combos/index.js.map +1 -1
- package/dist/data/index.d.ts +490 -154
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +22 -8
- package/dist/index.js +1 -1
- package/dist/{orders-BDfNkzav.d.ts → orders-CAELACaR.d.ts} +1 -1
- package/dist/perps/index.d.ts +11 -11
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.d.ts +43 -2
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/subscriptions/index.d.ts +446 -242
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-AY4D74DC.js +0 -2
- package/dist/chunk-AY4D74DC.js.map +0 -1
- package/dist/chunk-UDKFL2IM.js +0 -2
package/dist/data/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { TokenId, ConditionId, DecimalString, EpochMilliseconds, MixedDateTimeString,
|
|
1
|
+
import { TokenId, PositionId, ConditionId, DecimalString, EpochMilliseconds, MixedDateTimeString, IsoDateTimeString, ComboConditionId, PaginationCursor, IsoCalendarDateString, ComboActivityId } from '../index.js';
|
|
2
|
+
import * as _polymarket_types from '@polymarket/types';
|
|
3
|
+
import { EvmAddress, TxHash } from '@polymarket/types';
|
|
2
4
|
import { z } from 'zod';
|
|
3
|
-
import { TxHash } from '@polymarket/types';
|
|
4
5
|
|
|
5
|
-
declare const AddressSchema: z.ZodString;
|
|
6
|
-
declare const Hash64Schema: z.ZodString;
|
|
7
6
|
declare enum ActivityType {
|
|
8
7
|
TRADE = "TRADE",
|
|
9
8
|
SPLIT = "SPLIT",
|
|
@@ -24,10 +23,10 @@ declare const SideSchema: z.ZodEnum<{
|
|
|
24
23
|
SELL: "SELL";
|
|
25
24
|
}>;
|
|
26
25
|
declare const TimePeriodSchema: z.ZodEnum<{
|
|
26
|
+
ALL: "ALL";
|
|
27
27
|
DAY: "DAY";
|
|
28
28
|
WEEK: "WEEK";
|
|
29
29
|
MONTH: "MONTH";
|
|
30
|
-
ALL: "ALL";
|
|
31
30
|
}>;
|
|
32
31
|
declare const LeaderboardCategorySchema: z.ZodEnum<{
|
|
33
32
|
OVERALL: "OVERALL";
|
|
@@ -45,8 +44,6 @@ declare const LeaderboardOrderBySchema: z.ZodEnum<{
|
|
|
45
44
|
PNL: "PNL";
|
|
46
45
|
VOL: "VOL";
|
|
47
46
|
}>;
|
|
48
|
-
type Address = z.infer<typeof AddressSchema>;
|
|
49
|
-
type Hash64 = z.infer<typeof Hash64Schema>;
|
|
50
47
|
type Side = z.infer<typeof SideSchema>;
|
|
51
48
|
type TimePeriod = z.infer<typeof TimePeriodSchema>;
|
|
52
49
|
type LeaderboardCategory = z.infer<typeof LeaderboardCategorySchema>;
|
|
@@ -65,9 +62,43 @@ declare enum ComboPositionOutcome {
|
|
|
65
62
|
No = "NO"
|
|
66
63
|
}
|
|
67
64
|
declare const ComboPositionOutcomeSchema: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
65
|
+
type Position = {
|
|
66
|
+
wallet: EvmAddress | null | undefined;
|
|
67
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
68
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
69
|
+
/** @deprecated Use `assetId`. */
|
|
70
|
+
tokenId: TokenId | PositionId | null | undefined;
|
|
71
|
+
conditionId: ConditionId;
|
|
72
|
+
size?: DecimalString | null;
|
|
73
|
+
avgPrice?: DecimalString | null;
|
|
74
|
+
initialValue?: DecimalString | null;
|
|
75
|
+
currentValue?: DecimalString | null;
|
|
76
|
+
cashPnl?: DecimalString | null;
|
|
77
|
+
percentPnl?: number | null;
|
|
78
|
+
totalBought?: DecimalString | null;
|
|
79
|
+
realizedPnl?: DecimalString | null;
|
|
80
|
+
percentRealizedPnl?: number | null;
|
|
81
|
+
curPrice?: DecimalString | null;
|
|
82
|
+
redeemable?: boolean | null;
|
|
83
|
+
mergeable?: boolean | null;
|
|
84
|
+
title?: string | null;
|
|
85
|
+
slug?: string | null;
|
|
86
|
+
icon?: string | null;
|
|
87
|
+
eventId?: string | null;
|
|
88
|
+
eventSlug?: string | null;
|
|
89
|
+
outcome?: string | null;
|
|
90
|
+
outcomeIndex?: number | null;
|
|
91
|
+
oppositeOutcome?: string | null;
|
|
92
|
+
/** Opposite outcome identifier for a CTF token or Polymarket V2 position. */
|
|
93
|
+
oppositeAssetId: TokenId | PositionId | null | undefined;
|
|
94
|
+
/** @deprecated Use `oppositeAssetId`. */
|
|
95
|
+
oppositeTokenId: TokenId | PositionId | null | undefined;
|
|
96
|
+
endDate?: IsoCalendarDateString | null;
|
|
97
|
+
negativeRisk?: boolean | null;
|
|
98
|
+
};
|
|
68
99
|
declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
69
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
70
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
100
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
101
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
71
102
|
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
72
103
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
73
104
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -89,13 +120,15 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
89
120
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
121
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
91
122
|
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
-
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
123
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
93
124
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>>>;
|
|
94
125
|
negativeRisk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
95
126
|
}, z.core.$strip>, z.ZodTransform<{
|
|
96
|
-
wallet:
|
|
97
|
-
|
|
98
|
-
|
|
127
|
+
wallet: EvmAddress | null | undefined;
|
|
128
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
129
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
130
|
+
oppositeAssetId: PositionId | TokenId | null | undefined;
|
|
131
|
+
oppositeTokenId: PositionId | TokenId | null | undefined;
|
|
99
132
|
conditionId: ConditionId;
|
|
100
133
|
size?: DecimalString | null | undefined;
|
|
101
134
|
avgPrice?: DecimalString | null | undefined;
|
|
@@ -121,8 +154,8 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
121
154
|
negativeRisk?: boolean | null | undefined;
|
|
122
155
|
}, {
|
|
123
156
|
conditionId: ConditionId;
|
|
124
|
-
proxyWallet?:
|
|
125
|
-
asset?: TokenId | null | undefined;
|
|
157
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
158
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
126
159
|
size?: DecimalString | null | undefined;
|
|
127
160
|
avgPrice?: DecimalString | null | undefined;
|
|
128
161
|
initialValue?: DecimalString | null | undefined;
|
|
@@ -143,13 +176,38 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
143
176
|
outcome?: string | null | undefined;
|
|
144
177
|
outcomeIndex?: number | null | undefined;
|
|
145
178
|
oppositeOutcome?: string | null | undefined;
|
|
146
|
-
oppositeAsset?: TokenId | null | undefined;
|
|
179
|
+
oppositeAsset?: PositionId | TokenId | null | undefined;
|
|
147
180
|
endDate?: IsoCalendarDateString | null | undefined;
|
|
148
181
|
negativeRisk?: boolean | null | undefined;
|
|
149
182
|
}>>;
|
|
183
|
+
type ClosedPosition = {
|
|
184
|
+
wallet: EvmAddress | null | undefined;
|
|
185
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
186
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
187
|
+
/** @deprecated Use `assetId`. */
|
|
188
|
+
tokenId: TokenId | PositionId | null | undefined;
|
|
189
|
+
conditionId?: ConditionId | null;
|
|
190
|
+
avgPrice?: DecimalString | null;
|
|
191
|
+
totalBought?: DecimalString | null;
|
|
192
|
+
realizedPnl?: DecimalString | null;
|
|
193
|
+
curPrice?: DecimalString | null;
|
|
194
|
+
timestamp?: EpochMilliseconds | null;
|
|
195
|
+
title?: string | null;
|
|
196
|
+
slug?: string | null;
|
|
197
|
+
icon?: string | null;
|
|
198
|
+
eventSlug?: string | null;
|
|
199
|
+
outcome?: string | null;
|
|
200
|
+
outcomeIndex?: number | null;
|
|
201
|
+
oppositeOutcome?: string | null;
|
|
202
|
+
/** Opposite outcome identifier for a CTF token or Polymarket V2 position. */
|
|
203
|
+
oppositeAssetId: TokenId | PositionId | null | undefined;
|
|
204
|
+
/** @deprecated Use `oppositeAssetId`. */
|
|
205
|
+
oppositeTokenId: TokenId | PositionId | null | undefined;
|
|
206
|
+
endDate?: MixedDateTimeString | null;
|
|
207
|
+
};
|
|
150
208
|
declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
151
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
152
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
209
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
210
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
153
211
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
154
212
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
155
213
|
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -163,12 +221,14 @@ declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
163
221
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
222
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
165
223
|
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
-
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
224
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
167
225
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
168
226
|
}, z.core.$strip>, z.ZodTransform<{
|
|
169
|
-
wallet:
|
|
170
|
-
|
|
171
|
-
|
|
227
|
+
wallet: EvmAddress | null | undefined;
|
|
228
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
229
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
230
|
+
oppositeAssetId: PositionId | TokenId | null | undefined;
|
|
231
|
+
oppositeTokenId: PositionId | TokenId | null | undefined;
|
|
172
232
|
conditionId?: ConditionId | null | undefined;
|
|
173
233
|
avgPrice?: DecimalString | null | undefined;
|
|
174
234
|
totalBought?: DecimalString | null | undefined;
|
|
@@ -184,8 +244,8 @@ declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
184
244
|
oppositeOutcome?: string | null | undefined;
|
|
185
245
|
endDate?: MixedDateTimeString | null | undefined;
|
|
186
246
|
}, {
|
|
187
|
-
proxyWallet?:
|
|
188
|
-
asset?: TokenId | null | undefined;
|
|
247
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
248
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
189
249
|
conditionId?: ConditionId | null | undefined;
|
|
190
250
|
avgPrice?: DecimalString | null | undefined;
|
|
191
251
|
totalBought?: DecimalString | null | undefined;
|
|
@@ -199,19 +259,40 @@ declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
199
259
|
outcome?: string | null | undefined;
|
|
200
260
|
outcomeIndex?: number | null | undefined;
|
|
201
261
|
oppositeOutcome?: string | null | undefined;
|
|
202
|
-
oppositeAsset?: TokenId | null | undefined;
|
|
262
|
+
oppositeAsset?: PositionId | TokenId | null | undefined;
|
|
203
263
|
endDate?: MixedDateTimeString | null | undefined;
|
|
204
264
|
}>>;
|
|
205
265
|
declare const ValueSchema: z.ZodObject<{
|
|
206
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
266
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
207
267
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
208
268
|
}, z.core.$strip>;
|
|
269
|
+
type MarketPosition = {
|
|
270
|
+
wallet: EvmAddress | null | undefined;
|
|
271
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
272
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
273
|
+
/** @deprecated Use `assetId`. */
|
|
274
|
+
tokenId: TokenId | PositionId | null | undefined;
|
|
275
|
+
name?: string | null;
|
|
276
|
+
profileImage?: string | null;
|
|
277
|
+
verified?: boolean | null;
|
|
278
|
+
conditionId?: ConditionId | null;
|
|
279
|
+
avgPrice?: DecimalString | null;
|
|
280
|
+
size?: DecimalString | null;
|
|
281
|
+
currPrice?: DecimalString | null;
|
|
282
|
+
currentValue?: DecimalString | null;
|
|
283
|
+
cashPnl?: DecimalString | null;
|
|
284
|
+
totalBought?: DecimalString | null;
|
|
285
|
+
realizedPnl?: DecimalString | null;
|
|
286
|
+
totalPnl?: DecimalString | null;
|
|
287
|
+
outcome?: string | null;
|
|
288
|
+
outcomeIndex?: number | null;
|
|
289
|
+
};
|
|
209
290
|
declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
210
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
291
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
211
292
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
293
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
294
|
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
214
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
295
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
215
296
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
216
297
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
217
298
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -224,8 +305,9 @@ declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
224
305
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
306
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
226
307
|
}, z.core.$strip>, z.ZodTransform<{
|
|
227
|
-
wallet:
|
|
228
|
-
|
|
308
|
+
wallet: EvmAddress | null | undefined;
|
|
309
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
310
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
229
311
|
name?: string | null | undefined;
|
|
230
312
|
profileImage?: string | null | undefined;
|
|
231
313
|
verified?: boolean | null | undefined;
|
|
@@ -241,11 +323,11 @@ declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
241
323
|
outcome?: string | null | undefined;
|
|
242
324
|
outcomeIndex?: number | null | undefined;
|
|
243
325
|
}, {
|
|
244
|
-
proxyWallet?:
|
|
326
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
245
327
|
name?: string | null | undefined;
|
|
246
328
|
profileImage?: string | null | undefined;
|
|
247
329
|
verified?: boolean | null | undefined;
|
|
248
|
-
asset?: TokenId | null | undefined;
|
|
330
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
249
331
|
conditionId?: ConditionId | null | undefined;
|
|
250
332
|
avgPrice?: DecimalString | null | undefined;
|
|
251
333
|
size?: DecimalString | null | undefined;
|
|
@@ -258,14 +340,21 @@ declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
258
340
|
outcome?: string | null | undefined;
|
|
259
341
|
outcomeIndex?: number | null | undefined;
|
|
260
342
|
}>>;
|
|
261
|
-
|
|
262
|
-
token
|
|
343
|
+
type MetaMarketPosition = {
|
|
344
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
345
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
346
|
+
/** @deprecated Use `assetId`. */
|
|
347
|
+
token: TokenId | PositionId | null | undefined;
|
|
348
|
+
positions?: MarketPosition[] | null;
|
|
349
|
+
};
|
|
350
|
+
declare const MetaMarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
351
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
263
352
|
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
264
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
353
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
265
354
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
355
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
356
|
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
268
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
357
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
269
358
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
270
359
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
271
360
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -278,8 +367,9 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
|
|
|
278
367
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
368
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
280
369
|
}, z.core.$strip>, z.ZodTransform<{
|
|
281
|
-
wallet:
|
|
282
|
-
|
|
370
|
+
wallet: EvmAddress | null | undefined;
|
|
371
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
372
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
283
373
|
name?: string | null | undefined;
|
|
284
374
|
profileImage?: string | null | undefined;
|
|
285
375
|
verified?: boolean | null | undefined;
|
|
@@ -295,11 +385,11 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
|
|
|
295
385
|
outcome?: string | null | undefined;
|
|
296
386
|
outcomeIndex?: number | null | undefined;
|
|
297
387
|
}, {
|
|
298
|
-
proxyWallet?:
|
|
388
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
299
389
|
name?: string | null | undefined;
|
|
300
390
|
profileImage?: string | null | undefined;
|
|
301
391
|
verified?: boolean | null | undefined;
|
|
302
|
-
asset?: TokenId | null | undefined;
|
|
392
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
303
393
|
conditionId?: ConditionId | null | undefined;
|
|
304
394
|
avgPrice?: DecimalString | null | undefined;
|
|
305
395
|
size?: DecimalString | null | undefined;
|
|
@@ -312,7 +402,50 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
|
|
|
312
402
|
outcome?: string | null | undefined;
|
|
313
403
|
outcomeIndex?: number | null | undefined;
|
|
314
404
|
}>>>>>;
|
|
315
|
-
}, z.core.$strip
|
|
405
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
406
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
407
|
+
token: PositionId | TokenId | null | undefined;
|
|
408
|
+
positions?: {
|
|
409
|
+
wallet: EvmAddress | null | undefined;
|
|
410
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
411
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
412
|
+
name?: string | null | undefined;
|
|
413
|
+
profileImage?: string | null | undefined;
|
|
414
|
+
verified?: boolean | null | undefined;
|
|
415
|
+
conditionId?: ConditionId | null | undefined;
|
|
416
|
+
avgPrice?: DecimalString | null | undefined;
|
|
417
|
+
size?: DecimalString | null | undefined;
|
|
418
|
+
currPrice?: DecimalString | null | undefined;
|
|
419
|
+
currentValue?: DecimalString | null | undefined;
|
|
420
|
+
cashPnl?: DecimalString | null | undefined;
|
|
421
|
+
totalBought?: DecimalString | null | undefined;
|
|
422
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
423
|
+
totalPnl?: DecimalString | null | undefined;
|
|
424
|
+
outcome?: string | null | undefined;
|
|
425
|
+
outcomeIndex?: number | null | undefined;
|
|
426
|
+
}[] | null | undefined;
|
|
427
|
+
}, {
|
|
428
|
+
token?: PositionId | TokenId | null | undefined;
|
|
429
|
+
positions?: {
|
|
430
|
+
wallet: EvmAddress | null | undefined;
|
|
431
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
432
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
433
|
+
name?: string | null | undefined;
|
|
434
|
+
profileImage?: string | null | undefined;
|
|
435
|
+
verified?: boolean | null | undefined;
|
|
436
|
+
conditionId?: ConditionId | null | undefined;
|
|
437
|
+
avgPrice?: DecimalString | null | undefined;
|
|
438
|
+
size?: DecimalString | null | undefined;
|
|
439
|
+
currPrice?: DecimalString | null | undefined;
|
|
440
|
+
currentValue?: DecimalString | null | undefined;
|
|
441
|
+
cashPnl?: DecimalString | null | undefined;
|
|
442
|
+
totalBought?: DecimalString | null | undefined;
|
|
443
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
444
|
+
totalPnl?: DecimalString | null | undefined;
|
|
445
|
+
outcome?: string | null | undefined;
|
|
446
|
+
outcomeIndex?: number | null | undefined;
|
|
447
|
+
}[] | null | undefined;
|
|
448
|
+
}>>;
|
|
316
449
|
declare const ComboPositionMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
317
450
|
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
451
|
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -522,7 +655,7 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
522
655
|
combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
523
656
|
side: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
524
657
|
module_id: z.ZodNumber;
|
|
525
|
-
user_address: z.ZodString
|
|
658
|
+
user_address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
526
659
|
shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
527
660
|
entry_avg_price_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
528
661
|
entry_cost_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -667,7 +800,7 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
667
800
|
positionId: PositionId;
|
|
668
801
|
outcome: ComboPositionOutcome;
|
|
669
802
|
moduleId: number;
|
|
670
|
-
wallet:
|
|
803
|
+
wallet: EvmAddress;
|
|
671
804
|
shares: DecimalString;
|
|
672
805
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
673
806
|
entryCostUsdc: DecimalString | null | undefined;
|
|
@@ -714,7 +847,7 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
714
847
|
combo_position_id: PositionId;
|
|
715
848
|
side: ComboPositionOutcome;
|
|
716
849
|
module_id: number;
|
|
717
|
-
user_address:
|
|
850
|
+
user_address: EvmAddress;
|
|
718
851
|
shares_balance: DecimalString;
|
|
719
852
|
status: ComboPositionStatus;
|
|
720
853
|
redeemable: boolean;
|
|
@@ -763,7 +896,7 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
763
896
|
combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
764
897
|
side: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
765
898
|
module_id: z.ZodNumber;
|
|
766
|
-
user_address: z.ZodString
|
|
899
|
+
user_address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
767
900
|
shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
768
901
|
entry_avg_price_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
769
902
|
entry_cost_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -908,7 +1041,7 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
908
1041
|
positionId: PositionId;
|
|
909
1042
|
outcome: ComboPositionOutcome;
|
|
910
1043
|
moduleId: number;
|
|
911
|
-
wallet:
|
|
1044
|
+
wallet: EvmAddress;
|
|
912
1045
|
shares: DecimalString;
|
|
913
1046
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
914
1047
|
entryCostUsdc: DecimalString | null | undefined;
|
|
@@ -955,7 +1088,7 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
955
1088
|
combo_position_id: PositionId;
|
|
956
1089
|
side: ComboPositionOutcome;
|
|
957
1090
|
module_id: number;
|
|
958
|
-
user_address:
|
|
1091
|
+
user_address: EvmAddress;
|
|
959
1092
|
shares_balance: DecimalString;
|
|
960
1093
|
status: ComboPositionStatus;
|
|
961
1094
|
redeemable: boolean;
|
|
@@ -1016,7 +1149,7 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1016
1149
|
positionId: PositionId;
|
|
1017
1150
|
outcome: ComboPositionOutcome;
|
|
1018
1151
|
moduleId: number;
|
|
1019
|
-
wallet:
|
|
1152
|
+
wallet: EvmAddress;
|
|
1020
1153
|
shares: DecimalString;
|
|
1021
1154
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1022
1155
|
entryCostUsdc: DecimalString | null | undefined;
|
|
@@ -1065,7 +1198,7 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1065
1198
|
positionId: PositionId;
|
|
1066
1199
|
outcome: ComboPositionOutcome;
|
|
1067
1200
|
moduleId: number;
|
|
1068
|
-
wallet:
|
|
1201
|
+
wallet: EvmAddress;
|
|
1069
1202
|
shares: DecimalString;
|
|
1070
1203
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1071
1204
|
entryCostUsdc: DecimalString | null | undefined;
|
|
@@ -1116,8 +1249,8 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1116
1249
|
};
|
|
1117
1250
|
}>>;
|
|
1118
1251
|
declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1119
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1120
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1252
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1253
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1121
1254
|
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1122
1255
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1123
1256
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1139,13 +1272,15 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1139
1272
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
1273
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1141
1274
|
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1142
|
-
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1275
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1143
1276
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>>>;
|
|
1144
1277
|
negativeRisk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1145
1278
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1146
|
-
wallet:
|
|
1147
|
-
|
|
1148
|
-
|
|
1279
|
+
wallet: EvmAddress | null | undefined;
|
|
1280
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1281
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1282
|
+
oppositeAssetId: PositionId | TokenId | null | undefined;
|
|
1283
|
+
oppositeTokenId: PositionId | TokenId | null | undefined;
|
|
1149
1284
|
conditionId: ConditionId;
|
|
1150
1285
|
size?: DecimalString | null | undefined;
|
|
1151
1286
|
avgPrice?: DecimalString | null | undefined;
|
|
@@ -1171,8 +1306,8 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1171
1306
|
negativeRisk?: boolean | null | undefined;
|
|
1172
1307
|
}, {
|
|
1173
1308
|
conditionId: ConditionId;
|
|
1174
|
-
proxyWallet?:
|
|
1175
|
-
asset?: TokenId | null | undefined;
|
|
1309
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1310
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1176
1311
|
size?: DecimalString | null | undefined;
|
|
1177
1312
|
avgPrice?: DecimalString | null | undefined;
|
|
1178
1313
|
initialValue?: DecimalString | null | undefined;
|
|
@@ -1193,13 +1328,13 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1193
1328
|
outcome?: string | null | undefined;
|
|
1194
1329
|
outcomeIndex?: number | null | undefined;
|
|
1195
1330
|
oppositeOutcome?: string | null | undefined;
|
|
1196
|
-
oppositeAsset?: TokenId | null | undefined;
|
|
1331
|
+
oppositeAsset?: PositionId | TokenId | null | undefined;
|
|
1197
1332
|
endDate?: IsoCalendarDateString | null | undefined;
|
|
1198
1333
|
negativeRisk?: boolean | null | undefined;
|
|
1199
1334
|
}>>>;
|
|
1200
1335
|
declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1201
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1202
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1336
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1337
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1203
1338
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1204
1339
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1205
1340
|
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1213,12 +1348,14 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1213
1348
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1214
1349
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1215
1350
|
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1216
|
-
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1351
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1217
1352
|
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
1218
1353
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1219
|
-
wallet:
|
|
1220
|
-
|
|
1221
|
-
|
|
1354
|
+
wallet: EvmAddress | null | undefined;
|
|
1355
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1356
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1357
|
+
oppositeAssetId: PositionId | TokenId | null | undefined;
|
|
1358
|
+
oppositeTokenId: PositionId | TokenId | null | undefined;
|
|
1222
1359
|
conditionId?: ConditionId | null | undefined;
|
|
1223
1360
|
avgPrice?: DecimalString | null | undefined;
|
|
1224
1361
|
totalBought?: DecimalString | null | undefined;
|
|
@@ -1234,8 +1371,8 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1234
1371
|
oppositeOutcome?: string | null | undefined;
|
|
1235
1372
|
endDate?: MixedDateTimeString | null | undefined;
|
|
1236
1373
|
}, {
|
|
1237
|
-
proxyWallet?:
|
|
1238
|
-
asset?: TokenId | null | undefined;
|
|
1374
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1375
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1239
1376
|
conditionId?: ConditionId | null | undefined;
|
|
1240
1377
|
avgPrice?: DecimalString | null | undefined;
|
|
1241
1378
|
totalBought?: DecimalString | null | undefined;
|
|
@@ -1249,21 +1386,21 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1249
1386
|
outcome?: string | null | undefined;
|
|
1250
1387
|
outcomeIndex?: number | null | undefined;
|
|
1251
1388
|
oppositeOutcome?: string | null | undefined;
|
|
1252
|
-
oppositeAsset?: TokenId | null | undefined;
|
|
1389
|
+
oppositeAsset?: PositionId | TokenId | null | undefined;
|
|
1253
1390
|
endDate?: MixedDateTimeString | null | undefined;
|
|
1254
1391
|
}>>>;
|
|
1255
1392
|
declare const FetchPortfolioValueResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1256
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1393
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1257
1394
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1258
1395
|
}, z.core.$strip>>;
|
|
1259
|
-
declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1260
|
-
token: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1396
|
+
declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1397
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1261
1398
|
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1262
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1399
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1263
1400
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1264
1401
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1265
1402
|
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1266
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1403
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1267
1404
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1268
1405
|
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1269
1406
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1276,8 +1413,9 @@ declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1276
1413
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1277
1414
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1278
1415
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1279
|
-
wallet:
|
|
1280
|
-
|
|
1416
|
+
wallet: EvmAddress | null | undefined;
|
|
1417
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1418
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1281
1419
|
name?: string | null | undefined;
|
|
1282
1420
|
profileImage?: string | null | undefined;
|
|
1283
1421
|
verified?: boolean | null | undefined;
|
|
@@ -1293,11 +1431,11 @@ declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1293
1431
|
outcome?: string | null | undefined;
|
|
1294
1432
|
outcomeIndex?: number | null | undefined;
|
|
1295
1433
|
}, {
|
|
1296
|
-
proxyWallet?:
|
|
1434
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1297
1435
|
name?: string | null | undefined;
|
|
1298
1436
|
profileImage?: string | null | undefined;
|
|
1299
1437
|
verified?: boolean | null | undefined;
|
|
1300
|
-
asset?: TokenId | null | undefined;
|
|
1438
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1301
1439
|
conditionId?: ConditionId | null | undefined;
|
|
1302
1440
|
avgPrice?: DecimalString | null | undefined;
|
|
1303
1441
|
size?: DecimalString | null | undefined;
|
|
@@ -1310,12 +1448,51 @@ declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1310
1448
|
outcome?: string | null | undefined;
|
|
1311
1449
|
outcomeIndex?: number | null | undefined;
|
|
1312
1450
|
}>>>>>;
|
|
1313
|
-
}, z.core.$strip
|
|
1314
|
-
|
|
1315
|
-
|
|
1451
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1452
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1453
|
+
token: PositionId | TokenId | null | undefined;
|
|
1454
|
+
positions?: {
|
|
1455
|
+
wallet: EvmAddress | null | undefined;
|
|
1456
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1457
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1458
|
+
name?: string | null | undefined;
|
|
1459
|
+
profileImage?: string | null | undefined;
|
|
1460
|
+
verified?: boolean | null | undefined;
|
|
1461
|
+
conditionId?: ConditionId | null | undefined;
|
|
1462
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1463
|
+
size?: DecimalString | null | undefined;
|
|
1464
|
+
currPrice?: DecimalString | null | undefined;
|
|
1465
|
+
currentValue?: DecimalString | null | undefined;
|
|
1466
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1467
|
+
totalBought?: DecimalString | null | undefined;
|
|
1468
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1469
|
+
totalPnl?: DecimalString | null | undefined;
|
|
1470
|
+
outcome?: string | null | undefined;
|
|
1471
|
+
outcomeIndex?: number | null | undefined;
|
|
1472
|
+
}[] | null | undefined;
|
|
1473
|
+
}, {
|
|
1474
|
+
token?: PositionId | TokenId | null | undefined;
|
|
1475
|
+
positions?: {
|
|
1476
|
+
wallet: EvmAddress | null | undefined;
|
|
1477
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1478
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1479
|
+
name?: string | null | undefined;
|
|
1480
|
+
profileImage?: string | null | undefined;
|
|
1481
|
+
verified?: boolean | null | undefined;
|
|
1482
|
+
conditionId?: ConditionId | null | undefined;
|
|
1483
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1484
|
+
size?: DecimalString | null | undefined;
|
|
1485
|
+
currPrice?: DecimalString | null | undefined;
|
|
1486
|
+
currentValue?: DecimalString | null | undefined;
|
|
1487
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1488
|
+
totalBought?: DecimalString | null | undefined;
|
|
1489
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1490
|
+
totalPnl?: DecimalString | null | undefined;
|
|
1491
|
+
outcome?: string | null | undefined;
|
|
1492
|
+
outcomeIndex?: number | null | undefined;
|
|
1493
|
+
}[] | null | undefined;
|
|
1494
|
+
}>>>;
|
|
1316
1495
|
type Value = z.infer<typeof ValueSchema>;
|
|
1317
|
-
type MarketPosition = z.infer<typeof MarketPositionSchema>;
|
|
1318
|
-
type MetaMarketPosition = z.infer<typeof MetaMarketPositionSchema>;
|
|
1319
1496
|
type ComboPositionMarketEvent = z.infer<typeof ComboPositionMarketEventSchema>;
|
|
1320
1497
|
type ComboPositionMarket = z.infer<typeof ComboPositionMarketSchema>;
|
|
1321
1498
|
type ComboPositionLeg = z.infer<typeof ComboPositionLegSchema>;
|
|
@@ -1337,7 +1514,7 @@ declare enum ComboActivityType {
|
|
|
1337
1514
|
}
|
|
1338
1515
|
type ActivityBase = {
|
|
1339
1516
|
/** Wallet address whose account history contains this activity. */
|
|
1340
|
-
wallet:
|
|
1517
|
+
wallet: EvmAddress;
|
|
1341
1518
|
/** Activity time as Unix epoch milliseconds. */
|
|
1342
1519
|
timestamp: EpochMilliseconds;
|
|
1343
1520
|
/** Polygon transaction hash that produced or records this activity. */
|
|
@@ -1354,9 +1531,9 @@ type ActivityBase = {
|
|
|
1354
1531
|
profileImageOptimized: string | null;
|
|
1355
1532
|
};
|
|
1356
1533
|
type TradeActivityBase = ActivityBase & {
|
|
1357
|
-
/** A directional outcome
|
|
1534
|
+
/** A directional outcome trade. */
|
|
1358
1535
|
type: ActivityType.TRADE;
|
|
1359
|
-
/** Whether this trade is for a Combo position instead of
|
|
1536
|
+
/** Whether this trade is for a Combo position instead of an ordinary market. */
|
|
1360
1537
|
isCombo: boolean;
|
|
1361
1538
|
/** Direction of the wallet's trade. */
|
|
1362
1539
|
side: Side;
|
|
@@ -1372,15 +1549,17 @@ type TradeActivityBase = ActivityBase & {
|
|
|
1372
1549
|
icon: string | null;
|
|
1373
1550
|
};
|
|
1374
1551
|
type ClobTradeActivity = TradeActivityBase & {
|
|
1375
|
-
/**
|
|
1552
|
+
/** Ordinary market trades are distinct from Combo position trades. */
|
|
1376
1553
|
isCombo: false;
|
|
1377
1554
|
/** Condition id of the market traded by the wallet. */
|
|
1378
1555
|
conditionId: ConditionId;
|
|
1379
|
-
/** Outcome
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1556
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
1557
|
+
assetId: TokenId | PositionId;
|
|
1558
|
+
/** @deprecated Use `assetId`. */
|
|
1559
|
+
tokenId: TokenId | PositionId;
|
|
1560
|
+
/** Display label of the outcome traded by the wallet. */
|
|
1382
1561
|
outcome: string;
|
|
1383
|
-
/** Zero-based index of the outcome
|
|
1562
|
+
/** Zero-based index of the outcome in the market's outcome list. */
|
|
1384
1563
|
outcomeIndex: number;
|
|
1385
1564
|
/** URL slug of the market traded by the wallet. */
|
|
1386
1565
|
slug: string;
|
|
@@ -1509,7 +1688,7 @@ type ComboActivityBase = {
|
|
|
1509
1688
|
/** Normalized lifecycle activity type. */
|
|
1510
1689
|
type: ComboActivityType;
|
|
1511
1690
|
/** Wallet address whose account history contains this activity. */
|
|
1512
|
-
wallet:
|
|
1691
|
+
wallet: EvmAddress;
|
|
1513
1692
|
/** Combo condition id involved in this activity. */
|
|
1514
1693
|
conditionId: ComboConditionId;
|
|
1515
1694
|
/** Combo module id. */
|
|
@@ -1556,13 +1735,37 @@ type ComboRedeemActivity = ComboActivityBase & {
|
|
|
1556
1735
|
};
|
|
1557
1736
|
type ComboActivity = ComboSplitActivity | ComboMergeActivity | ComboConvertActivity | ComboCompressActivity | ComboWrapActivity | ComboUnwrapActivity | ComboRedeemActivity;
|
|
1558
1737
|
declare const ComboActivitySchema: z.ZodType<ComboActivity>;
|
|
1738
|
+
type Trade = {
|
|
1739
|
+
wallet: EvmAddress | null | undefined;
|
|
1740
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
1741
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
1742
|
+
/** @deprecated Use `assetId`. */
|
|
1743
|
+
tokenId: TokenId | PositionId | null | undefined;
|
|
1744
|
+
side?: Side | null;
|
|
1745
|
+
conditionId?: ConditionId | null;
|
|
1746
|
+
size?: DecimalString | null;
|
|
1747
|
+
price?: DecimalString | null;
|
|
1748
|
+
timestamp?: EpochMilliseconds | null;
|
|
1749
|
+
title?: string | null;
|
|
1750
|
+
slug?: string | null;
|
|
1751
|
+
icon?: string | null;
|
|
1752
|
+
eventSlug?: string | null;
|
|
1753
|
+
outcome?: string | null;
|
|
1754
|
+
outcomeIndex?: number | null;
|
|
1755
|
+
name?: string | null;
|
|
1756
|
+
pseudonym?: string | null;
|
|
1757
|
+
bio?: string | null;
|
|
1758
|
+
profileImage?: string | null;
|
|
1759
|
+
profileImageOptimized?: string | null;
|
|
1760
|
+
transactionHash?: string | null;
|
|
1761
|
+
};
|
|
1559
1762
|
declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
1560
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1763
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1561
1764
|
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1562
1765
|
BUY: "BUY";
|
|
1563
1766
|
SELL: "SELL";
|
|
1564
1767
|
}>>>;
|
|
1565
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1768
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1566
1769
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1567
1770
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1568
1771
|
price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1580,8 +1783,9 @@ declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1580
1783
|
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1581
1784
|
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1582
1785
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1583
|
-
wallet:
|
|
1584
|
-
|
|
1786
|
+
wallet: EvmAddress | null | undefined;
|
|
1787
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1788
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1585
1789
|
side?: "BUY" | "SELL" | null | undefined;
|
|
1586
1790
|
conditionId?: ConditionId | null | undefined;
|
|
1587
1791
|
size?: DecimalString | null | undefined;
|
|
@@ -1600,9 +1804,9 @@ declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1600
1804
|
profileImageOptimized?: string | null | undefined;
|
|
1601
1805
|
transactionHash?: string | null | undefined;
|
|
1602
1806
|
}, {
|
|
1603
|
-
proxyWallet?:
|
|
1807
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1604
1808
|
side?: "BUY" | "SELL" | null | undefined;
|
|
1605
|
-
asset?: TokenId | null | undefined;
|
|
1809
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1606
1810
|
conditionId?: ConditionId | null | undefined;
|
|
1607
1811
|
size?: DecimalString | null | undefined;
|
|
1608
1812
|
price?: DecimalString | null | undefined;
|
|
@@ -1622,16 +1826,16 @@ declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1622
1826
|
}>>;
|
|
1623
1827
|
declare const ActivitySchema: z.ZodType<Activity>;
|
|
1624
1828
|
declare const TradedSchema: z.ZodObject<{
|
|
1625
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1829
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1626
1830
|
traded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1627
1831
|
}, z.core.$strip>;
|
|
1628
1832
|
declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1629
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1833
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1630
1834
|
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1631
1835
|
BUY: "BUY";
|
|
1632
1836
|
SELL: "SELL";
|
|
1633
1837
|
}>>>;
|
|
1634
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1838
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1635
1839
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1636
1840
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1637
1841
|
price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1649,8 +1853,9 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1649
1853
|
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1650
1854
|
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1651
1855
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1652
|
-
wallet:
|
|
1653
|
-
|
|
1856
|
+
wallet: EvmAddress | null | undefined;
|
|
1857
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1858
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1654
1859
|
side?: "BUY" | "SELL" | null | undefined;
|
|
1655
1860
|
conditionId?: ConditionId | null | undefined;
|
|
1656
1861
|
size?: DecimalString | null | undefined;
|
|
@@ -1669,9 +1874,9 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1669
1874
|
profileImageOptimized?: string | null | undefined;
|
|
1670
1875
|
transactionHash?: string | null | undefined;
|
|
1671
1876
|
}, {
|
|
1672
|
-
proxyWallet?:
|
|
1877
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1673
1878
|
side?: "BUY" | "SELL" | null | undefined;
|
|
1674
|
-
asset?: TokenId | null | undefined;
|
|
1879
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1675
1880
|
conditionId?: ConditionId | null | undefined;
|
|
1676
1881
|
size?: DecimalString | null | undefined;
|
|
1677
1882
|
price?: DecimalString | null | undefined;
|
|
@@ -1715,16 +1920,30 @@ declare const ListComboActivityResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1715
1920
|
next_cursor?: PaginationCursor | null | undefined;
|
|
1716
1921
|
};
|
|
1717
1922
|
}>>;
|
|
1718
|
-
type Trade = z.infer<typeof TradeSchema>;
|
|
1719
1923
|
type Traded = z.infer<typeof TradedSchema>;
|
|
1720
1924
|
type ListTradesResponse = z.infer<typeof ListTradesResponseSchema>;
|
|
1721
1925
|
type ListActivityResponse = z.infer<typeof ListActivityResponseSchema>;
|
|
1722
1926
|
type ListComboActivityResponse = z.infer<typeof ListComboActivityResponseSchema>;
|
|
1723
1927
|
|
|
1928
|
+
type Holder = {
|
|
1929
|
+
wallet: EvmAddress | null | undefined;
|
|
1930
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
1931
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
1932
|
+
/** @deprecated Use `assetId`. */
|
|
1933
|
+
tokenId: TokenId | PositionId | null | undefined;
|
|
1934
|
+
bio?: string | null;
|
|
1935
|
+
pseudonym?: string | null;
|
|
1936
|
+
amount?: DecimalString | null;
|
|
1937
|
+
displayUsernamePublic?: boolean | null;
|
|
1938
|
+
outcomeIndex?: number | null;
|
|
1939
|
+
name?: string | null;
|
|
1940
|
+
profileImage?: string | null;
|
|
1941
|
+
profileImageOptimized?: string | null;
|
|
1942
|
+
};
|
|
1724
1943
|
declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
1725
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1944
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1726
1945
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1727
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1946
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1728
1947
|
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1729
1948
|
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1730
1949
|
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1733,8 +1952,9 @@ declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1733
1952
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1734
1953
|
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1735
1954
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1736
|
-
wallet:
|
|
1737
|
-
|
|
1955
|
+
wallet: EvmAddress | null | undefined;
|
|
1956
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
1957
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1738
1958
|
bio?: string | null | undefined;
|
|
1739
1959
|
pseudonym?: string | null | undefined;
|
|
1740
1960
|
amount?: DecimalString | null | undefined;
|
|
@@ -1744,9 +1964,9 @@ declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1744
1964
|
profileImage?: string | null | undefined;
|
|
1745
1965
|
profileImageOptimized?: string | null | undefined;
|
|
1746
1966
|
}, {
|
|
1747
|
-
proxyWallet?:
|
|
1967
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1748
1968
|
bio?: string | null | undefined;
|
|
1749
|
-
asset?: TokenId | null | undefined;
|
|
1969
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1750
1970
|
pseudonym?: string | null | undefined;
|
|
1751
1971
|
amount?: DecimalString | null | undefined;
|
|
1752
1972
|
displayUsernamePublic?: boolean | null | undefined;
|
|
@@ -1755,12 +1975,19 @@ declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1755
1975
|
profileImage?: string | null | undefined;
|
|
1756
1976
|
profileImageOptimized?: string | null | undefined;
|
|
1757
1977
|
}>>;
|
|
1758
|
-
|
|
1759
|
-
token
|
|
1978
|
+
type MetaHolder = {
|
|
1979
|
+
/** Outcome identifier for a CTF token or Polymarket V2 position. */
|
|
1980
|
+
assetId: TokenId | PositionId | null | undefined;
|
|
1981
|
+
/** @deprecated Use `assetId`. */
|
|
1982
|
+
token: TokenId | PositionId | null | undefined;
|
|
1983
|
+
holders?: Holder[] | null;
|
|
1984
|
+
};
|
|
1985
|
+
declare const MetaHolderSchema: z.ZodPipe<z.ZodObject<{
|
|
1986
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1760
1987
|
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1761
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
1988
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1762
1989
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1763
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1990
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1764
1991
|
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1765
1992
|
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1766
1993
|
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1769,8 +1996,9 @@ declare const MetaHolderSchema: z.ZodObject<{
|
|
|
1769
1996
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1770
1997
|
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1771
1998
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1772
|
-
wallet:
|
|
1773
|
-
|
|
1999
|
+
wallet: EvmAddress | null | undefined;
|
|
2000
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2001
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1774
2002
|
bio?: string | null | undefined;
|
|
1775
2003
|
pseudonym?: string | null | undefined;
|
|
1776
2004
|
amount?: DecimalString | null | undefined;
|
|
@@ -1780,9 +2008,9 @@ declare const MetaHolderSchema: z.ZodObject<{
|
|
|
1780
2008
|
profileImage?: string | null | undefined;
|
|
1781
2009
|
profileImageOptimized?: string | null | undefined;
|
|
1782
2010
|
}, {
|
|
1783
|
-
proxyWallet?:
|
|
2011
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1784
2012
|
bio?: string | null | undefined;
|
|
1785
|
-
asset?: TokenId | null | undefined;
|
|
2013
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1786
2014
|
pseudonym?: string | null | undefined;
|
|
1787
2015
|
amount?: DecimalString | null | undefined;
|
|
1788
2016
|
displayUsernamePublic?: boolean | null | undefined;
|
|
@@ -1791,28 +2019,94 @@ declare const MetaHolderSchema: z.ZodObject<{
|
|
|
1791
2019
|
profileImage?: string | null | undefined;
|
|
1792
2020
|
profileImageOptimized?: string | null | undefined;
|
|
1793
2021
|
}>>>>>;
|
|
1794
|
-
}, z.core.$strip
|
|
1795
|
-
|
|
1796
|
-
|
|
2022
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2023
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2024
|
+
token: PositionId | TokenId | null | undefined;
|
|
2025
|
+
holders?: {
|
|
2026
|
+
wallet: EvmAddress | null | undefined;
|
|
2027
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2028
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
2029
|
+
bio?: string | null | undefined;
|
|
2030
|
+
pseudonym?: string | null | undefined;
|
|
2031
|
+
amount?: DecimalString | null | undefined;
|
|
2032
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2033
|
+
outcomeIndex?: number | null | undefined;
|
|
2034
|
+
name?: string | null | undefined;
|
|
2035
|
+
profileImage?: string | null | undefined;
|
|
2036
|
+
profileImageOptimized?: string | null | undefined;
|
|
2037
|
+
}[] | null | undefined;
|
|
2038
|
+
}, {
|
|
2039
|
+
token?: PositionId | TokenId | null | undefined;
|
|
2040
|
+
holders?: {
|
|
2041
|
+
wallet: EvmAddress | null | undefined;
|
|
2042
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2043
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
2044
|
+
bio?: string | null | undefined;
|
|
2045
|
+
pseudonym?: string | null | undefined;
|
|
2046
|
+
amount?: DecimalString | null | undefined;
|
|
2047
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2048
|
+
outcomeIndex?: number | null | undefined;
|
|
2049
|
+
name?: string | null | undefined;
|
|
2050
|
+
profileImage?: string | null | undefined;
|
|
2051
|
+
profileImageOptimized?: string | null | undefined;
|
|
2052
|
+
}[] | null | undefined;
|
|
2053
|
+
}>>;
|
|
2054
|
+
type OpenInterest = {
|
|
2055
|
+
/** Condition ID of the market whose open interest is reported. */
|
|
2056
|
+
conditionId: ConditionId | null | undefined;
|
|
2057
|
+
/** @deprecated Use `conditionId`. */
|
|
2058
|
+
market: ConditionId | null | undefined;
|
|
2059
|
+
value?: DecimalString | null;
|
|
2060
|
+
};
|
|
2061
|
+
declare const OpenInterestSchema: z.ZodPipe<z.ZodObject<{
|
|
2062
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1797
2063
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1798
|
-
}, z.core.$strip
|
|
1799
|
-
|
|
1800
|
-
market:
|
|
2064
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2065
|
+
conditionId: ConditionId | null | undefined;
|
|
2066
|
+
market: ConditionId | null | undefined;
|
|
2067
|
+
value?: DecimalString | null | undefined;
|
|
2068
|
+
}, {
|
|
2069
|
+
market?: ConditionId | null | undefined;
|
|
2070
|
+
value?: DecimalString | null | undefined;
|
|
2071
|
+
}>>;
|
|
2072
|
+
type MarketVolume = {
|
|
2073
|
+
/** Condition ID of the market whose live volume is reported. */
|
|
2074
|
+
conditionId: ConditionId | null | undefined;
|
|
2075
|
+
/** @deprecated Use `conditionId`. */
|
|
2076
|
+
market: ConditionId | null | undefined;
|
|
2077
|
+
value?: DecimalString | null;
|
|
2078
|
+
};
|
|
2079
|
+
declare const MarketVolumeSchema: z.ZodPipe<z.ZodObject<{
|
|
2080
|
+
market: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>>;
|
|
1801
2081
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1802
|
-
}, z.core.$strip
|
|
2082
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2083
|
+
conditionId: ConditionId | null | undefined;
|
|
2084
|
+
market: ConditionId | null | undefined;
|
|
2085
|
+
value?: DecimalString | null | undefined;
|
|
2086
|
+
}, {
|
|
2087
|
+
market?: ConditionId | null | undefined;
|
|
2088
|
+
value?: DecimalString | null | undefined;
|
|
2089
|
+
}>>;
|
|
1803
2090
|
declare const LiveVolumeSchema: z.ZodObject<{
|
|
1804
2091
|
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1805
|
-
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1806
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2092
|
+
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2093
|
+
market: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>>;
|
|
1807
2094
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1808
|
-
}, z.core.$strip
|
|
2095
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2096
|
+
conditionId: ConditionId | null | undefined;
|
|
2097
|
+
market: ConditionId | null | undefined;
|
|
2098
|
+
value?: DecimalString | null | undefined;
|
|
2099
|
+
}, {
|
|
2100
|
+
market?: ConditionId | null | undefined;
|
|
2101
|
+
value?: DecimalString | null | undefined;
|
|
2102
|
+
}>>>>>;
|
|
1809
2103
|
}, z.core.$strip>;
|
|
1810
|
-
declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1811
|
-
token: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2104
|
+
declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2105
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1812
2106
|
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1813
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2107
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>>>;
|
|
1814
2108
|
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1815
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
2109
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>>>;
|
|
1816
2110
|
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1817
2111
|
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1818
2112
|
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1821,8 +2115,9 @@ declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1821
2115
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1822
2116
|
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1823
2117
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1824
|
-
wallet:
|
|
1825
|
-
|
|
2118
|
+
wallet: EvmAddress | null | undefined;
|
|
2119
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2120
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
1826
2121
|
bio?: string | null | undefined;
|
|
1827
2122
|
pseudonym?: string | null | undefined;
|
|
1828
2123
|
amount?: DecimalString | null | undefined;
|
|
@@ -1832,9 +2127,9 @@ declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1832
2127
|
profileImage?: string | null | undefined;
|
|
1833
2128
|
profileImageOptimized?: string | null | undefined;
|
|
1834
2129
|
}, {
|
|
1835
|
-
proxyWallet?:
|
|
2130
|
+
proxyWallet?: EvmAddress | null | undefined;
|
|
1836
2131
|
bio?: string | null | undefined;
|
|
1837
|
-
asset?: TokenId | null | undefined;
|
|
2132
|
+
asset?: PositionId | TokenId | null | undefined;
|
|
1838
2133
|
pseudonym?: string | null | undefined;
|
|
1839
2134
|
amount?: DecimalString | null | undefined;
|
|
1840
2135
|
displayUsernamePublic?: boolean | null | undefined;
|
|
@@ -1843,22 +2138,63 @@ declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1843
2138
|
profileImage?: string | null | undefined;
|
|
1844
2139
|
profileImageOptimized?: string | null | undefined;
|
|
1845
2140
|
}>>>>>;
|
|
1846
|
-
}, z.core.$strip
|
|
1847
|
-
|
|
1848
|
-
|
|
2141
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2142
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2143
|
+
token: PositionId | TokenId | null | undefined;
|
|
2144
|
+
holders?: {
|
|
2145
|
+
wallet: EvmAddress | null | undefined;
|
|
2146
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2147
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
2148
|
+
bio?: string | null | undefined;
|
|
2149
|
+
pseudonym?: string | null | undefined;
|
|
2150
|
+
amount?: DecimalString | null | undefined;
|
|
2151
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2152
|
+
outcomeIndex?: number | null | undefined;
|
|
2153
|
+
name?: string | null | undefined;
|
|
2154
|
+
profileImage?: string | null | undefined;
|
|
2155
|
+
profileImageOptimized?: string | null | undefined;
|
|
2156
|
+
}[] | null | undefined;
|
|
2157
|
+
}, {
|
|
2158
|
+
token?: PositionId | TokenId | null | undefined;
|
|
2159
|
+
holders?: {
|
|
2160
|
+
wallet: EvmAddress | null | undefined;
|
|
2161
|
+
assetId: PositionId | TokenId | null | undefined;
|
|
2162
|
+
tokenId: PositionId | TokenId | null | undefined;
|
|
2163
|
+
bio?: string | null | undefined;
|
|
2164
|
+
pseudonym?: string | null | undefined;
|
|
2165
|
+
amount?: DecimalString | null | undefined;
|
|
2166
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2167
|
+
outcomeIndex?: number | null | undefined;
|
|
2168
|
+
name?: string | null | undefined;
|
|
2169
|
+
profileImage?: string | null | undefined;
|
|
2170
|
+
profileImageOptimized?: string | null | undefined;
|
|
2171
|
+
}[] | null | undefined;
|
|
2172
|
+
}>>>;
|
|
2173
|
+
declare const ListOpenInterestResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2174
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1849
2175
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1850
|
-
}, z.core.$strip
|
|
2176
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2177
|
+
conditionId: ConditionId | null | undefined;
|
|
2178
|
+
market: ConditionId | null | undefined;
|
|
2179
|
+
value?: DecimalString | null | undefined;
|
|
2180
|
+
}, {
|
|
2181
|
+
market?: ConditionId | null | undefined;
|
|
2182
|
+
value?: DecimalString | null | undefined;
|
|
2183
|
+
}>>>;
|
|
1851
2184
|
declare const FetchEventLiveVolumeResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1852
2185
|
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1853
|
-
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1854
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2186
|
+
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2187
|
+
market: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>>;
|
|
1855
2188
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1856
|
-
}, z.core.$strip
|
|
2189
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2190
|
+
conditionId: ConditionId | null | undefined;
|
|
2191
|
+
market: ConditionId | null | undefined;
|
|
2192
|
+
value?: DecimalString | null | undefined;
|
|
2193
|
+
}, {
|
|
2194
|
+
market?: ConditionId | null | undefined;
|
|
2195
|
+
value?: DecimalString | null | undefined;
|
|
2196
|
+
}>>>>>;
|
|
1857
2197
|
}, z.core.$strip>>;
|
|
1858
|
-
type Holder = z.infer<typeof HolderSchema>;
|
|
1859
|
-
type MetaHolder = z.infer<typeof MetaHolderSchema>;
|
|
1860
|
-
type OpenInterest = z.infer<typeof OpenInterestSchema>;
|
|
1861
|
-
type MarketVolume = z.infer<typeof MarketVolumeSchema>;
|
|
1862
2198
|
type LiveVolume = z.infer<typeof LiveVolumeSchema>;
|
|
1863
2199
|
type ListMarketHoldersResponse = z.infer<typeof ListMarketHoldersResponseSchema>;
|
|
1864
2200
|
type ListOpenInterestResponse = z.infer<typeof ListOpenInterestResponseSchema>;
|
|
@@ -1899,7 +2235,7 @@ declare const BuilderVolumeEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
1899
2235
|
}>>;
|
|
1900
2236
|
declare const TraderLeaderboardEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
1901
2237
|
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1902
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2238
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>>>;
|
|
1903
2239
|
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1904
2240
|
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1905
2241
|
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1907,7 +2243,7 @@ declare const TraderLeaderboardEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
1907
2243
|
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1908
2244
|
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1909
2245
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1910
|
-
wallet:
|
|
2246
|
+
wallet: _polymarket_types.EvmAddress | null | undefined;
|
|
1911
2247
|
rank?: string | null | undefined;
|
|
1912
2248
|
userName?: string | null | undefined;
|
|
1913
2249
|
vol?: DecimalString | null | undefined;
|
|
@@ -1917,7 +2253,7 @@ declare const TraderLeaderboardEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
1917
2253
|
verifiedBadge?: boolean | null | undefined;
|
|
1918
2254
|
}, {
|
|
1919
2255
|
rank?: string | null | undefined;
|
|
1920
|
-
proxyWallet?:
|
|
2256
|
+
proxyWallet?: _polymarket_types.EvmAddress | null | undefined;
|
|
1921
2257
|
userName?: string | null | undefined;
|
|
1922
2258
|
vol?: DecimalString | null | undefined;
|
|
1923
2259
|
pnl?: DecimalString | null | undefined;
|
|
@@ -1960,7 +2296,7 @@ declare const ListBuilderVolumeResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
|
|
|
1960
2296
|
}>>>;
|
|
1961
2297
|
declare const ListTraderLeaderboardResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1962
2298
|
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1963
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
2299
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>>>;
|
|
1964
2300
|
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1965
2301
|
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1966
2302
|
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
@@ -1968,7 +2304,7 @@ declare const ListTraderLeaderboardResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
|
|
|
1968
2304
|
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1969
2305
|
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1970
2306
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1971
|
-
wallet:
|
|
2307
|
+
wallet: _polymarket_types.EvmAddress | null | undefined;
|
|
1972
2308
|
rank?: string | null | undefined;
|
|
1973
2309
|
userName?: string | null | undefined;
|
|
1974
2310
|
vol?: DecimalString | null | undefined;
|
|
@@ -1978,7 +2314,7 @@ declare const ListTraderLeaderboardResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
|
|
|
1978
2314
|
verifiedBadge?: boolean | null | undefined;
|
|
1979
2315
|
}, {
|
|
1980
2316
|
rank?: string | null | undefined;
|
|
1981
|
-
proxyWallet?:
|
|
2317
|
+
proxyWallet?: _polymarket_types.EvmAddress | null | undefined;
|
|
1982
2318
|
userName?: string | null | undefined;
|
|
1983
2319
|
vol?: DecimalString | null | undefined;
|
|
1984
2320
|
pnl?: DecimalString | null | undefined;
|
|
@@ -1993,4 +2329,4 @@ type ListBuilderLeaderboardResponse = z.infer<typeof ListBuilderLeaderboardRespo
|
|
|
1993
2329
|
type ListBuilderVolumeResponse = z.infer<typeof ListBuilderVolumeResponseSchema>;
|
|
1994
2330
|
type ListTraderLeaderboardResponse = z.infer<typeof ListTraderLeaderboardResponseSchema>;
|
|
1995
2331
|
|
|
1996
|
-
export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type
|
|
2332
|
+
export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type BuilderVolumeEntry, BuilderVolumeEntrySchema, type ClobTradeActivity, type ClosedPosition, ClosedPositionSchema, type ComboActivity, ComboActivitySchema, ComboActivityType, type ComboCompressActivity, type ComboConvertActivity, type ComboMergeActivity, type ComboPosition, type ComboPositionLeg, ComboPositionLegSchema, type ComboPositionMarket, type ComboPositionMarketEvent, ComboPositionMarketEventSchema, ComboPositionMarketSchema, ComboPositionOutcome, ComboPositionOutcomeSchema, ComboPositionSchema, ComboPositionStatus, ComboPositionStatusSchema, type ComboRedeemActivity, type ComboSplitActivity, type ComboTradeActivity, type ComboUnwrapActivity, type ComboWrapActivity, type ConversionActivity, type DepositActivity, type FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type Holder, HolderSchema, type LeaderboardCategory, LeaderboardCategorySchema, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardOrderBy, LeaderboardOrderBySchema, type ListActivityResponse, ListActivityResponseSchema, type ListBuilderLeaderboardResponse, ListBuilderLeaderboardResponseSchema, type ListBuilderVolumeResponse, ListBuilderVolumeResponseSchema, type ListClosedPositionsResponse, ListClosedPositionsResponseSchema, type ListComboActivityResponse, ListComboActivityResponseSchema, type ListComboPositionsResponse, ListComboPositionsResponseSchema, type ListMarketHoldersResponse, ListMarketHoldersResponseSchema, type ListMarketPositionsResponse, ListMarketPositionsResponseSchema, type ListOpenInterestResponse, ListOpenInterestResponseSchema, type ListPositionsResponse, ListPositionsResponseSchema, type ListTraderLeaderboardResponse, ListTraderLeaderboardResponseSchema, type ListTradesResponse, ListTradesResponseSchema, type LiveVolume, LiveVolumeSchema, type MakerRebateActivity, type MarketPosition, MarketPositionSchema, type MarketVolume, MarketVolumeSchema, type MergeActivity, type MetaHolder, MetaHolderSchema, type MetaMarketPosition, MetaMarketPositionSchema, type OpenInterest, OpenInterestSchema, type Position, PositionSchema, type RedeemActivity, type ReferralRewardActivity, type RewardActivity, type Side, SideSchema, type SplitActivity, type TakerRebateActivity, type TimePeriod, TimePeriodSchema, type Trade, type TradeActivity, TradeSchema, type Traded, TradedSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, type Value, ValueSchema, type WithdrawalActivity, type YieldActivity };
|