@polymarket/bindings 0.1.0-beta.10 → 0.1.0-beta.12
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-BI6DX3LX.js +2 -0
- package/dist/chunk-BI6DX3LX.js.map +1 -0
- package/dist/chunk-G2DC5MZA.js +2 -0
- package/dist/{chunk-GYP7YNXL.js.map → chunk-G2DC5MZA.js.map} +1 -1
- package/dist/chunk-GTLPG5HR.js +2 -0
- package/dist/chunk-GTLPG5HR.js.map +1 -0
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/data/index.d.ts +1048 -915
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +48 -1
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/{orders-DHP1WzKt.d.ts → orders-Uj0Gkvd4.d.ts} +17 -1
- package/dist/perps/index.d.ts +2 -2
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/rfq.js +1 -1
- package/dist/rfq.js.map +1 -1
- package/dist/subscriptions/index.d.ts +11 -1
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CCTEF2UT.js +0 -2
- package/dist/chunk-CCTEF2UT.js.map +0 -1
- package/dist/chunk-GYP7YNXL.js +0 -2
- package/dist/chunk-VBHCYSM7.js +0 -2
- package/dist/chunk-VBHCYSM7.js.map +0 -1
package/dist/data/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { TokenId, CtfConditionId, DecimalString, EpochMilliseconds, MixedDateTimeString, PositionId, IsoDateTimeString, ComboConditionId, PaginationCursor, IsoCalendarDateString, ComboActivityId } from '../index.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
import { EpochMilliseconds, DecimalString, CtfConditionId, TokenId, ComboConditionId, PositionId, IsoDateTimeString, MixedDateTimeString, PaginationCursor, IsoCalendarDateString } from '../index.js';
|
|
3
3
|
import { TxHash } from '@polymarket/types';
|
|
4
4
|
|
|
5
5
|
declare const AddressSchema: z.ZodString;
|
|
@@ -49,235 +49,108 @@ type TimePeriod = z.infer<typeof TimePeriodSchema>;
|
|
|
49
49
|
type LeaderboardCategory = z.infer<typeof LeaderboardCategorySchema>;
|
|
50
50
|
type LeaderboardOrderBy = z.infer<typeof LeaderboardOrderBySchema>;
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/** Source profile image URL for the wallet owner. */
|
|
66
|
-
profileImage: string | null;
|
|
67
|
-
/** Optimized profile image URL for the wallet owner. */
|
|
68
|
-
profileImageOptimized: string | null;
|
|
69
|
-
};
|
|
70
|
-
type TradeActivityBase = ActivityBase & {
|
|
71
|
-
/** A directional outcome-token trade. */
|
|
72
|
-
type: ActivityType.TRADE;
|
|
73
|
-
/** Whether this trade is for a Combo position instead of a binary market token. */
|
|
74
|
-
isCombo: boolean;
|
|
75
|
-
/** Direction of the wallet's trade. */
|
|
76
|
-
side: Side;
|
|
77
|
-
/** Number of shares traded by the wallet. */
|
|
78
|
-
shares: DecimalString;
|
|
79
|
-
/** The notional value of the traded shares in USD. */
|
|
80
|
-
amount: DecimalString;
|
|
81
|
-
/** The execution price per share in USD. */
|
|
82
|
-
price: DecimalString;
|
|
83
|
-
/** Human-readable title of the traded market or Combo. */
|
|
84
|
-
title: string;
|
|
85
|
-
/** Icon URL for the traded market or Combo, when available. */
|
|
86
|
-
icon: string | null;
|
|
87
|
-
};
|
|
88
|
-
type ClobTradeActivity = TradeActivityBase & {
|
|
89
|
-
/** CLOB market trades are binary market outcome-token trades. */
|
|
90
|
-
isCombo: false;
|
|
91
|
-
/** Condition id of the market traded by the wallet. */
|
|
92
|
-
conditionId: CtfConditionId;
|
|
93
|
-
/** Outcome token id bought or sold by the wallet. */
|
|
94
|
-
tokenId: TokenId;
|
|
95
|
-
/** Display label of the outcome token traded by the wallet. */
|
|
96
|
-
outcome: string;
|
|
97
|
-
/** Zero-based index of the outcome token in the market's outcome list. */
|
|
98
|
-
outcomeIndex: number;
|
|
99
|
-
/** URL slug of the market traded by the wallet. */
|
|
100
|
-
slug: string;
|
|
101
|
-
/** URL slug of the event containing the traded market. */
|
|
102
|
-
eventSlug: string;
|
|
103
|
-
};
|
|
104
|
-
type ComboTradeActivity = TradeActivityBase & {
|
|
105
|
-
/** Combo trades are protocol v2 Combo position trades. */
|
|
106
|
-
isCombo: true;
|
|
107
|
-
/** Combo condition id traded by the wallet. */
|
|
108
|
-
conditionId: ComboConditionId;
|
|
109
|
-
/** Combo position id bought or sold by the wallet. */
|
|
110
|
-
positionId: PositionId;
|
|
111
|
-
};
|
|
112
|
-
type TradeActivity = ClobTradeActivity | ComboTradeActivity;
|
|
113
|
-
type SplitActivity = ActivityBase & {
|
|
114
|
-
/** Splitting collateral into a complete market set. */
|
|
115
|
-
type: 'SPLIT';
|
|
116
|
-
/** Condition id of the market whose complete set was created. */
|
|
117
|
-
conditionId: CtfConditionId;
|
|
118
|
-
/** The collateral amount split into the complete set in USD. */
|
|
119
|
-
amount: DecimalString;
|
|
120
|
-
/** Human-readable title of the market whose complete set was created. */
|
|
121
|
-
title: string;
|
|
122
|
-
/** URL slug of the market whose complete set was created. */
|
|
123
|
-
slug: string;
|
|
124
|
-
/** Icon URL for the market whose complete set was created, when available. */
|
|
125
|
-
icon: string | null;
|
|
126
|
-
/** URL slug of the event containing the split market. */
|
|
127
|
-
eventSlug: string;
|
|
128
|
-
};
|
|
129
|
-
type MergeActivity = ActivityBase & {
|
|
130
|
-
/** Merging a complete market set into collateral. */
|
|
131
|
-
type: 'MERGE';
|
|
132
|
-
/** Condition id of the market whose complete set was merged. */
|
|
133
|
-
conditionId: CtfConditionId;
|
|
134
|
-
/** The collateral amount received from merging the complete set in USD. */
|
|
135
|
-
amount: DecimalString;
|
|
136
|
-
/** Human-readable title of the market whose complete set was merged. */
|
|
137
|
-
title: string;
|
|
138
|
-
/** URL slug of the market whose complete set was merged. */
|
|
139
|
-
slug: string;
|
|
140
|
-
/** Icon URL for the market whose complete set was merged, when available. */
|
|
141
|
-
icon: string | null;
|
|
142
|
-
/** URL slug of the event containing the merged market. */
|
|
143
|
-
eventSlug: string;
|
|
144
|
-
};
|
|
145
|
-
type RedeemActivity = ActivityBase & {
|
|
146
|
-
/** Redeeming resolved market proceeds. */
|
|
147
|
-
type: 'REDEEM';
|
|
148
|
-
/** Condition id of the market redeemed by the wallet. */
|
|
149
|
-
conditionId: CtfConditionId;
|
|
150
|
-
/** The proceeds redeemed from the resolved market in USD. */
|
|
151
|
-
amount: DecimalString;
|
|
152
|
-
/** Human-readable title of the market redeemed by the wallet. */
|
|
153
|
-
title: string;
|
|
154
|
-
/** URL slug of the market redeemed by the wallet. */
|
|
155
|
-
slug: string;
|
|
156
|
-
/** Icon URL for the market redeemed by the wallet, when available. */
|
|
157
|
-
icon: string | null;
|
|
158
|
-
/** URL slug of the event containing the redeemed market. */
|
|
159
|
-
eventSlug: string;
|
|
160
|
-
};
|
|
161
|
-
type ConversionActivity = ActivityBase & {
|
|
162
|
-
/** A market conversion or migration activity. */
|
|
163
|
-
type: 'CONVERSION';
|
|
164
|
-
/** Condition id of the market involved in the conversion. */
|
|
165
|
-
conditionId: CtfConditionId;
|
|
166
|
-
/** The amount converted or migrated for the market in USD. */
|
|
167
|
-
amount: DecimalString;
|
|
168
|
-
/** Human-readable title of the market involved in the conversion. */
|
|
169
|
-
title: string;
|
|
170
|
-
/** URL slug of the market involved in the conversion. */
|
|
171
|
-
slug: string;
|
|
172
|
-
/** Icon URL for the market involved in the conversion, when available. */
|
|
173
|
-
icon: string | null;
|
|
174
|
-
/** URL slug of the event containing the converted market. */
|
|
175
|
-
eventSlug: string;
|
|
176
|
-
};
|
|
177
|
-
type RewardActivity = ActivityBase & {
|
|
178
|
-
/** An account-level reward credit. */
|
|
179
|
-
type: 'REWARD';
|
|
180
|
-
/** The reward amount credited to the wallet in USD. */
|
|
181
|
-
amount: DecimalString;
|
|
182
|
-
};
|
|
183
|
-
type MakerRebateActivity = ActivityBase & {
|
|
184
|
-
/** An account-level maker rebate credit. */
|
|
185
|
-
type: 'MAKER_REBATE';
|
|
186
|
-
/** The maker rebate amount credited to the wallet in USD. */
|
|
187
|
-
amount: DecimalString;
|
|
188
|
-
};
|
|
189
|
-
type ReferralRewardActivity = ActivityBase & {
|
|
190
|
-
/** An account-level referral reward credit. */
|
|
191
|
-
type: 'REFERRAL_REWARD';
|
|
192
|
-
/** The referral reward amount credited to the wallet in USD. */
|
|
193
|
-
amount: DecimalString;
|
|
194
|
-
};
|
|
195
|
-
type YieldActivity = ActivityBase & {
|
|
196
|
-
/** An account-level yield credit. */
|
|
197
|
-
type: 'YIELD';
|
|
198
|
-
/** The yield amount credited to the wallet in USD. */
|
|
199
|
-
amount: DecimalString;
|
|
200
|
-
};
|
|
201
|
-
type Activity = TradeActivity | SplitActivity | MergeActivity | RedeemActivity | ConversionActivity | RewardActivity | MakerRebateActivity | ReferralRewardActivity | YieldActivity;
|
|
202
|
-
declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
52
|
+
declare enum ComboPositionStatus {
|
|
53
|
+
Open = "OPEN",
|
|
54
|
+
Partial = "PARTIAL",
|
|
55
|
+
ResolvedWin = "RESOLVED_WIN",
|
|
56
|
+
ResolvedLoss = "RESOLVED_LOSS"
|
|
57
|
+
}
|
|
58
|
+
declare const ComboPositionStatusSchema: z.ZodEnum<typeof ComboPositionStatus>;
|
|
59
|
+
declare enum ComboPositionOutcome {
|
|
60
|
+
Yes = "YES",
|
|
61
|
+
No = "NO"
|
|
62
|
+
}
|
|
63
|
+
declare const ComboPositionOutcomeSchema: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
64
|
+
declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
203
65
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
-
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
205
|
-
BUY: "BUY";
|
|
206
|
-
SELL: "SELL";
|
|
207
|
-
}>>>;
|
|
208
66
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
209
|
-
conditionId: z.
|
|
67
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
210
68
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
211
|
-
|
|
212
|
-
|
|
69
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
70
|
+
initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
71
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
72
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
73
|
+
percentPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
75
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
76
|
+
percentRealizedPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
78
|
+
redeemable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
213
80
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
81
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
82
|
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
83
|
+
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
84
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
85
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
86
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
-
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
89
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>>>;
|
|
90
|
+
negativeRisk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
225
91
|
}, z.core.$strip>, z.ZodTransform<{
|
|
226
92
|
wallet: string | null | undefined;
|
|
227
93
|
tokenId: TokenId | null | undefined;
|
|
228
|
-
|
|
229
|
-
conditionId
|
|
94
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
95
|
+
conditionId: CtfConditionId;
|
|
230
96
|
size?: DecimalString | null | undefined;
|
|
231
|
-
|
|
232
|
-
|
|
97
|
+
avgPrice?: DecimalString | null | undefined;
|
|
98
|
+
initialValue?: DecimalString | null | undefined;
|
|
99
|
+
currentValue?: DecimalString | null | undefined;
|
|
100
|
+
cashPnl?: DecimalString | null | undefined;
|
|
101
|
+
percentPnl?: number | null | undefined;
|
|
102
|
+
totalBought?: DecimalString | null | undefined;
|
|
103
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
104
|
+
percentRealizedPnl?: number | null | undefined;
|
|
105
|
+
curPrice?: DecimalString | null | undefined;
|
|
106
|
+
redeemable?: boolean | null | undefined;
|
|
107
|
+
mergeable?: boolean | null | undefined;
|
|
233
108
|
title?: string | null | undefined;
|
|
234
109
|
slug?: string | null | undefined;
|
|
235
110
|
icon?: string | null | undefined;
|
|
111
|
+
eventId?: string | null | undefined;
|
|
236
112
|
eventSlug?: string | null | undefined;
|
|
237
113
|
outcome?: string | null | undefined;
|
|
238
114
|
outcomeIndex?: number | null | undefined;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
profileImage?: string | null | undefined;
|
|
243
|
-
profileImageOptimized?: string | null | undefined;
|
|
244
|
-
transactionHash?: string | null | undefined;
|
|
115
|
+
oppositeOutcome?: string | null | undefined;
|
|
116
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
117
|
+
negativeRisk?: boolean | null | undefined;
|
|
245
118
|
}, {
|
|
119
|
+
conditionId: CtfConditionId;
|
|
246
120
|
proxyWallet?: string | null | undefined;
|
|
247
|
-
side?: "BUY" | "SELL" | null | undefined;
|
|
248
121
|
asset?: TokenId | null | undefined;
|
|
249
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
250
122
|
size?: DecimalString | null | undefined;
|
|
251
|
-
|
|
252
|
-
|
|
123
|
+
avgPrice?: DecimalString | null | undefined;
|
|
124
|
+
initialValue?: DecimalString | null | undefined;
|
|
125
|
+
currentValue?: DecimalString | null | undefined;
|
|
126
|
+
cashPnl?: DecimalString | null | undefined;
|
|
127
|
+
percentPnl?: number | null | undefined;
|
|
128
|
+
totalBought?: DecimalString | null | undefined;
|
|
129
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
130
|
+
percentRealizedPnl?: number | null | undefined;
|
|
131
|
+
curPrice?: DecimalString | null | undefined;
|
|
132
|
+
redeemable?: boolean | null | undefined;
|
|
133
|
+
mergeable?: boolean | null | undefined;
|
|
253
134
|
title?: string | null | undefined;
|
|
254
135
|
slug?: string | null | undefined;
|
|
255
136
|
icon?: string | null | undefined;
|
|
137
|
+
eventId?: string | null | undefined;
|
|
256
138
|
eventSlug?: string | null | undefined;
|
|
257
139
|
outcome?: string | null | undefined;
|
|
258
140
|
outcomeIndex?: number | null | undefined;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
profileImageOptimized?: string | null | undefined;
|
|
264
|
-
transactionHash?: string | null | undefined;
|
|
141
|
+
oppositeOutcome?: string | null | undefined;
|
|
142
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
143
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
144
|
+
negativeRisk?: boolean | null | undefined;
|
|
265
145
|
}>>;
|
|
266
|
-
declare const
|
|
267
|
-
declare const TradedSchema: z.ZodObject<{
|
|
268
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
-
traded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
270
|
-
}, z.core.$strip>;
|
|
271
|
-
declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
146
|
+
declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
272
147
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
274
|
-
BUY: "BUY";
|
|
275
|
-
SELL: "SELL";
|
|
276
|
-
}>>>;
|
|
277
148
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
278
149
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
279
|
-
|
|
280
|
-
|
|
150
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
151
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
152
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
153
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
281
154
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
282
155
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
156
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -285,19 +158,18 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
285
158
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
159
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
160
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
-
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
|
-
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
163
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
294
164
|
}, z.core.$strip>, z.ZodTransform<{
|
|
295
165
|
wallet: string | null | undefined;
|
|
296
166
|
tokenId: TokenId | null | undefined;
|
|
297
|
-
|
|
167
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
298
168
|
conditionId?: CtfConditionId | null | undefined;
|
|
299
|
-
|
|
300
|
-
|
|
169
|
+
avgPrice?: DecimalString | null | undefined;
|
|
170
|
+
totalBought?: DecimalString | null | undefined;
|
|
171
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
172
|
+
curPrice?: DecimalString | null | undefined;
|
|
301
173
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
302
174
|
title?: string | null | undefined;
|
|
303
175
|
slug?: string | null | undefined;
|
|
@@ -305,19 +177,16 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
305
177
|
eventSlug?: string | null | undefined;
|
|
306
178
|
outcome?: string | null | undefined;
|
|
307
179
|
outcomeIndex?: number | null | undefined;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
bio?: string | null | undefined;
|
|
311
|
-
profileImage?: string | null | undefined;
|
|
312
|
-
profileImageOptimized?: string | null | undefined;
|
|
313
|
-
transactionHash?: string | null | undefined;
|
|
180
|
+
oppositeOutcome?: string | null | undefined;
|
|
181
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
314
182
|
}, {
|
|
315
183
|
proxyWallet?: string | null | undefined;
|
|
316
|
-
side?: "BUY" | "SELL" | null | undefined;
|
|
317
184
|
asset?: TokenId | null | undefined;
|
|
318
185
|
conditionId?: CtfConditionId | null | undefined;
|
|
319
|
-
|
|
320
|
-
|
|
186
|
+
avgPrice?: DecimalString | null | undefined;
|
|
187
|
+
totalBought?: DecimalString | null | undefined;
|
|
188
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
189
|
+
curPrice?: DecimalString | null | undefined;
|
|
321
190
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
322
191
|
title?: string | null | undefined;
|
|
323
192
|
slug?: string | null | undefined;
|
|
@@ -325,610 +194,185 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
325
194
|
eventSlug?: string | null | undefined;
|
|
326
195
|
outcome?: string | null | undefined;
|
|
327
196
|
outcomeIndex?: number | null | undefined;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
type Traded = z.infer<typeof TradedSchema>;
|
|
338
|
-
type ListTradesResponse = z.infer<typeof ListTradesResponseSchema>;
|
|
339
|
-
type ListActivityResponse = z.infer<typeof ListActivityResponseSchema>;
|
|
340
|
-
|
|
341
|
-
declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
197
|
+
oppositeOutcome?: string | null | undefined;
|
|
198
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
199
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
200
|
+
}>>;
|
|
201
|
+
declare const ValueSchema: z.ZodObject<{
|
|
202
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
342
206
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
345
|
-
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
-
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
347
|
-
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
348
|
-
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
349
207
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
208
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
-
|
|
209
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
210
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
211
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
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>>]>>>;
|
|
213
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
214
|
+
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
215
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
216
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
217
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
218
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
219
|
+
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
220
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
352
222
|
}, z.core.$strip>, z.ZodTransform<{
|
|
353
223
|
wallet: string | null | undefined;
|
|
354
224
|
tokenId: TokenId | null | undefined;
|
|
355
|
-
bio?: string | null | undefined;
|
|
356
|
-
pseudonym?: string | null | undefined;
|
|
357
|
-
amount?: DecimalString | null | undefined;
|
|
358
|
-
displayUsernamePublic?: boolean | null | undefined;
|
|
359
|
-
outcomeIndex?: number | null | undefined;
|
|
360
225
|
name?: string | null | undefined;
|
|
361
226
|
profileImage?: string | null | undefined;
|
|
362
|
-
|
|
227
|
+
verified?: boolean | null | undefined;
|
|
228
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
229
|
+
avgPrice?: DecimalString | null | undefined;
|
|
230
|
+
size?: DecimalString | null | undefined;
|
|
231
|
+
currPrice?: DecimalString | null | undefined;
|
|
232
|
+
currentValue?: DecimalString | null | undefined;
|
|
233
|
+
cashPnl?: DecimalString | null | undefined;
|
|
234
|
+
totalBought?: DecimalString | null | undefined;
|
|
235
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
236
|
+
totalPnl?: DecimalString | null | undefined;
|
|
237
|
+
outcome?: string | null | undefined;
|
|
238
|
+
outcomeIndex?: number | null | undefined;
|
|
363
239
|
}, {
|
|
364
240
|
proxyWallet?: string | null | undefined;
|
|
365
|
-
bio?: string | null | undefined;
|
|
366
|
-
asset?: TokenId | null | undefined;
|
|
367
|
-
pseudonym?: string | null | undefined;
|
|
368
|
-
amount?: DecimalString | null | undefined;
|
|
369
|
-
displayUsernamePublic?: boolean | null | undefined;
|
|
370
|
-
outcomeIndex?: number | null | undefined;
|
|
371
241
|
name?: string | null | undefined;
|
|
372
242
|
profileImage?: string | null | undefined;
|
|
373
|
-
|
|
243
|
+
verified?: boolean | null | undefined;
|
|
244
|
+
asset?: TokenId | null | undefined;
|
|
245
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
246
|
+
avgPrice?: DecimalString | null | undefined;
|
|
247
|
+
size?: DecimalString | null | undefined;
|
|
248
|
+
currPrice?: DecimalString | null | undefined;
|
|
249
|
+
currentValue?: DecimalString | null | undefined;
|
|
250
|
+
cashPnl?: DecimalString | null | undefined;
|
|
251
|
+
totalBought?: DecimalString | null | undefined;
|
|
252
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
253
|
+
totalPnl?: DecimalString | null | undefined;
|
|
254
|
+
outcome?: string | null | undefined;
|
|
255
|
+
outcomeIndex?: number | null | undefined;
|
|
374
256
|
}>>;
|
|
375
|
-
declare const
|
|
257
|
+
declare const MetaMarketPositionSchema: z.ZodObject<{
|
|
376
258
|
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
-
|
|
259
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
378
260
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
381
|
-
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
-
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
383
|
-
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
384
|
-
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
385
261
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
262
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
-
|
|
388
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
389
|
-
wallet: string | null | undefined;
|
|
390
|
-
tokenId: TokenId | null | undefined;
|
|
391
|
-
bio?: string | null | undefined;
|
|
392
|
-
pseudonym?: string | null | undefined;
|
|
393
|
-
amount?: DecimalString | null | undefined;
|
|
394
|
-
displayUsernamePublic?: boolean | null | undefined;
|
|
395
|
-
outcomeIndex?: number | null | undefined;
|
|
396
|
-
name?: string | null | undefined;
|
|
397
|
-
profileImage?: string | null | undefined;
|
|
398
|
-
profileImageOptimized?: string | null | undefined;
|
|
399
|
-
}, {
|
|
400
|
-
proxyWallet?: string | null | undefined;
|
|
401
|
-
bio?: string | null | undefined;
|
|
402
|
-
asset?: TokenId | null | undefined;
|
|
403
|
-
pseudonym?: string | null | undefined;
|
|
404
|
-
amount?: DecimalString | null | undefined;
|
|
405
|
-
displayUsernamePublic?: boolean | null | undefined;
|
|
406
|
-
outcomeIndex?: number | null | undefined;
|
|
407
|
-
name?: string | null | undefined;
|
|
408
|
-
profileImage?: string | null | undefined;
|
|
409
|
-
profileImageOptimized?: string | null | undefined;
|
|
410
|
-
}>>>>>;
|
|
411
|
-
}, z.core.$strip>;
|
|
412
|
-
declare const OpenInterestSchema: z.ZodObject<{
|
|
413
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
|
-
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
415
|
-
}, z.core.$strip>;
|
|
416
|
-
declare const MarketVolumeSchema: z.ZodObject<{
|
|
417
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
|
-
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
419
|
-
}, z.core.$strip>;
|
|
420
|
-
declare const LiveVolumeSchema: z.ZodObject<{
|
|
421
|
-
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
422
|
-
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
423
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
-
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
425
|
-
}, z.core.$strip>>>>;
|
|
426
|
-
}, z.core.$strip>;
|
|
427
|
-
declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
428
|
-
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
429
|
-
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
430
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
-
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
432
264
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
265
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
266
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
267
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
268
|
+
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
269
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
270
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
271
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
272
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
273
|
+
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
274
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
275
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
437
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
|
-
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
276
|
}, z.core.$strip>, z.ZodTransform<{
|
|
441
277
|
wallet: string | null | undefined;
|
|
442
278
|
tokenId: TokenId | null | undefined;
|
|
443
|
-
bio?: string | null | undefined;
|
|
444
|
-
pseudonym?: string | null | undefined;
|
|
445
|
-
amount?: DecimalString | null | undefined;
|
|
446
|
-
displayUsernamePublic?: boolean | null | undefined;
|
|
447
|
-
outcomeIndex?: number | null | undefined;
|
|
448
279
|
name?: string | null | undefined;
|
|
449
280
|
profileImage?: string | null | undefined;
|
|
450
|
-
|
|
281
|
+
verified?: boolean | null | undefined;
|
|
282
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
283
|
+
avgPrice?: DecimalString | null | undefined;
|
|
284
|
+
size?: DecimalString | null | undefined;
|
|
285
|
+
currPrice?: DecimalString | null | undefined;
|
|
286
|
+
currentValue?: DecimalString | null | undefined;
|
|
287
|
+
cashPnl?: DecimalString | null | undefined;
|
|
288
|
+
totalBought?: DecimalString | null | undefined;
|
|
289
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
290
|
+
totalPnl?: DecimalString | null | undefined;
|
|
291
|
+
outcome?: string | null | undefined;
|
|
292
|
+
outcomeIndex?: number | null | undefined;
|
|
451
293
|
}, {
|
|
452
294
|
proxyWallet?: string | null | undefined;
|
|
453
|
-
bio?: string | null | undefined;
|
|
454
|
-
asset?: TokenId | null | undefined;
|
|
455
|
-
pseudonym?: string | null | undefined;
|
|
456
|
-
amount?: DecimalString | null | undefined;
|
|
457
|
-
displayUsernamePublic?: boolean | null | undefined;
|
|
458
|
-
outcomeIndex?: number | null | undefined;
|
|
459
295
|
name?: string | null | undefined;
|
|
460
296
|
profileImage?: string | null | undefined;
|
|
461
|
-
|
|
297
|
+
verified?: boolean | null | undefined;
|
|
298
|
+
asset?: TokenId | null | undefined;
|
|
299
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
300
|
+
avgPrice?: DecimalString | null | undefined;
|
|
301
|
+
size?: DecimalString | null | undefined;
|
|
302
|
+
currPrice?: DecimalString | null | undefined;
|
|
303
|
+
currentValue?: DecimalString | null | undefined;
|
|
304
|
+
cashPnl?: DecimalString | null | undefined;
|
|
305
|
+
totalBought?: DecimalString | null | undefined;
|
|
306
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
307
|
+
totalPnl?: DecimalString | null | undefined;
|
|
308
|
+
outcome?: string | null | undefined;
|
|
309
|
+
outcomeIndex?: number | null | undefined;
|
|
462
310
|
}>>>>>;
|
|
463
|
-
}, z.core.$strip>>;
|
|
464
|
-
declare const ListOpenInterestResponseSchema: z.ZodArray<z.ZodObject<{
|
|
465
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
-
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
467
|
-
}, z.core.$strip>>;
|
|
468
|
-
declare const FetchEventLiveVolumeResponseSchema: z.ZodArray<z.ZodObject<{
|
|
469
|
-
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
470
|
-
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
471
|
-
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
|
-
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
473
|
-
}, z.core.$strip>>>>;
|
|
474
|
-
}, z.core.$strip>>;
|
|
475
|
-
type Holder = z.infer<typeof HolderSchema>;
|
|
476
|
-
type MetaHolder = z.infer<typeof MetaHolderSchema>;
|
|
477
|
-
type OpenInterest = z.infer<typeof OpenInterestSchema>;
|
|
478
|
-
type MarketVolume = z.infer<typeof MarketVolumeSchema>;
|
|
479
|
-
type LiveVolume = z.infer<typeof LiveVolumeSchema>;
|
|
480
|
-
type ListMarketHoldersResponse = z.infer<typeof ListMarketHoldersResponseSchema>;
|
|
481
|
-
type ListOpenInterestResponse = z.infer<typeof ListOpenInterestResponseSchema>;
|
|
482
|
-
type FetchEventLiveVolumeResponse = z.infer<typeof FetchEventLiveVolumeResponseSchema>;
|
|
483
|
-
|
|
484
|
-
declare const LeaderboardEntrySchema: z.ZodObject<{
|
|
485
|
-
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
|
-
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
-
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
488
|
-
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
489
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
490
|
-
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
311
|
}, z.core.$strip>;
|
|
492
|
-
declare const
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
498
|
-
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
|
-
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
501
|
-
bucketAt: IsoDateTimeString | null | undefined;
|
|
502
|
-
builder?: string | null | undefined;
|
|
503
|
-
builderLogo?: string | null | undefined;
|
|
504
|
-
verified?: boolean | null | undefined;
|
|
505
|
-
volume?: DecimalString | null | undefined;
|
|
506
|
-
activeUsers?: number | null | undefined;
|
|
507
|
-
rank?: string | null | undefined;
|
|
508
|
-
}, {
|
|
509
|
-
dt?: IsoDateTimeString | null | undefined;
|
|
510
|
-
builder?: string | null | undefined;
|
|
511
|
-
builderLogo?: string | null | undefined;
|
|
512
|
-
verified?: boolean | null | undefined;
|
|
513
|
-
volume?: DecimalString | null | undefined;
|
|
514
|
-
activeUsers?: number | null | undefined;
|
|
515
|
-
rank?: string | null | undefined;
|
|
516
|
-
}>>;
|
|
517
|
-
declare const TraderLeaderboardEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
518
|
-
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
519
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
|
-
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
|
-
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
522
|
-
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
523
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
-
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
-
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
312
|
+
declare const ComboPositionMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
313
|
+
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
+
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
+
event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
+
event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
317
|
}, z.core.$strip>, z.ZodTransform<{
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
pnl?: DecimalString | null | undefined;
|
|
532
|
-
profileImage?: string | null | undefined;
|
|
533
|
-
xUsername?: string | null | undefined;
|
|
534
|
-
verifiedBadge?: boolean | null | undefined;
|
|
318
|
+
eventId: string | null | undefined;
|
|
319
|
+
eventSlug: string | null | undefined;
|
|
320
|
+
eventTitle: string | null | undefined;
|
|
321
|
+
eventImage: string | null | undefined;
|
|
535
322
|
}, {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
pnl?: DecimalString | null | undefined;
|
|
541
|
-
profileImage?: string | null | undefined;
|
|
542
|
-
xUsername?: string | null | undefined;
|
|
543
|
-
verifiedBadge?: boolean | null | undefined;
|
|
323
|
+
event_id?: string | null | undefined;
|
|
324
|
+
event_slug?: string | null | undefined;
|
|
325
|
+
event_title?: string | null | undefined;
|
|
326
|
+
event_image?: string | null | undefined;
|
|
544
327
|
}>>;
|
|
545
|
-
declare const
|
|
546
|
-
|
|
547
|
-
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
|
-
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
549
|
-
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
550
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
551
|
-
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
-
}, z.core.$strip>>;
|
|
553
|
-
declare const ListBuilderVolumeResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
554
|
-
dt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
555
|
-
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
556
|
-
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
557
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
558
|
-
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
559
|
-
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
560
|
-
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
561
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
562
|
-
bucketAt: IsoDateTimeString | null | undefined;
|
|
563
|
-
builder?: string | null | undefined;
|
|
564
|
-
builderLogo?: string | null | undefined;
|
|
565
|
-
verified?: boolean | null | undefined;
|
|
566
|
-
volume?: DecimalString | null | undefined;
|
|
567
|
-
activeUsers?: number | null | undefined;
|
|
568
|
-
rank?: string | null | undefined;
|
|
569
|
-
}, {
|
|
570
|
-
dt?: IsoDateTimeString | null | undefined;
|
|
571
|
-
builder?: string | null | undefined;
|
|
572
|
-
builderLogo?: string | null | undefined;
|
|
573
|
-
verified?: boolean | null | undefined;
|
|
574
|
-
volume?: DecimalString | null | undefined;
|
|
575
|
-
activeUsers?: number | null | undefined;
|
|
576
|
-
rank?: string | null | undefined;
|
|
577
|
-
}>>>;
|
|
578
|
-
declare const ListTraderLeaderboardResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
579
|
-
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
581
|
-
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
|
-
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
583
|
-
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
584
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
-
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
-
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
587
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
588
|
-
wallet: string | null | undefined;
|
|
589
|
-
rank?: string | null | undefined;
|
|
590
|
-
userName?: string | null | undefined;
|
|
591
|
-
vol?: DecimalString | null | undefined;
|
|
592
|
-
pnl?: DecimalString | null | undefined;
|
|
593
|
-
profileImage?: string | null | undefined;
|
|
594
|
-
xUsername?: string | null | undefined;
|
|
595
|
-
verifiedBadge?: boolean | null | undefined;
|
|
596
|
-
}, {
|
|
597
|
-
rank?: string | null | undefined;
|
|
598
|
-
proxyWallet?: string | null | undefined;
|
|
599
|
-
userName?: string | null | undefined;
|
|
600
|
-
vol?: DecimalString | null | undefined;
|
|
601
|
-
pnl?: DecimalString | null | undefined;
|
|
602
|
-
profileImage?: string | null | undefined;
|
|
603
|
-
xUsername?: string | null | undefined;
|
|
604
|
-
verifiedBadge?: boolean | null | undefined;
|
|
605
|
-
}>>>;
|
|
606
|
-
type LeaderboardEntry = z.infer<typeof LeaderboardEntrySchema>;
|
|
607
|
-
type BuilderVolumeEntry = z.infer<typeof BuilderVolumeEntrySchema>;
|
|
608
|
-
type TraderLeaderboardEntry = z.infer<typeof TraderLeaderboardEntrySchema>;
|
|
609
|
-
type ListBuilderLeaderboardResponse = z.infer<typeof ListBuilderLeaderboardResponseSchema>;
|
|
610
|
-
type ListBuilderVolumeResponse = z.infer<typeof ListBuilderVolumeResponseSchema>;
|
|
611
|
-
type ListTraderLeaderboardResponse = z.infer<typeof ListTraderLeaderboardResponseSchema>;
|
|
612
|
-
|
|
613
|
-
declare enum ComboPositionStatus {
|
|
614
|
-
Open = "OPEN",
|
|
615
|
-
Partial = "PARTIAL",
|
|
616
|
-
ResolvedWin = "RESOLVED_WIN",
|
|
617
|
-
ResolvedLoss = "RESOLVED_LOSS"
|
|
618
|
-
}
|
|
619
|
-
declare const ComboPositionStatusSchema: z.ZodEnum<typeof ComboPositionStatus>;
|
|
620
|
-
declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
621
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
623
|
-
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
624
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
625
|
-
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
626
|
-
initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
627
|
-
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
628
|
-
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
629
|
-
percentPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
630
|
-
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
631
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
632
|
-
percentRealizedPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
633
|
-
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
634
|
-
redeemable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
635
|
-
mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
636
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
declare const ComboPositionMarketSchema: z.ZodPipe<z.ZodObject<{
|
|
329
|
+
market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
637
330
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
-
|
|
639
|
-
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
|
-
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
332
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
333
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
|
+
icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
338
|
+
end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
339
|
+
event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
340
|
+
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
345
|
+
eventId: string | null | undefined;
|
|
346
|
+
eventSlug: string | null | undefined;
|
|
347
|
+
eventTitle: string | null | undefined;
|
|
348
|
+
eventImage: string | null | undefined;
|
|
349
|
+
}, {
|
|
350
|
+
event_id?: string | null | undefined;
|
|
351
|
+
event_slug?: string | null | undefined;
|
|
352
|
+
event_title?: string | null | undefined;
|
|
353
|
+
event_image?: string | null | undefined;
|
|
354
|
+
}>>>>;
|
|
647
355
|
}, z.core.$strip>, z.ZodTransform<{
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
size?: DecimalString | null | undefined;
|
|
653
|
-
avgPrice?: DecimalString | null | undefined;
|
|
654
|
-
initialValue?: DecimalString | null | undefined;
|
|
655
|
-
currentValue?: DecimalString | null | undefined;
|
|
656
|
-
cashPnl?: DecimalString | null | undefined;
|
|
657
|
-
percentPnl?: number | null | undefined;
|
|
658
|
-
totalBought?: DecimalString | null | undefined;
|
|
659
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
660
|
-
percentRealizedPnl?: number | null | undefined;
|
|
661
|
-
curPrice?: DecimalString | null | undefined;
|
|
662
|
-
redeemable?: boolean | null | undefined;
|
|
663
|
-
mergeable?: boolean | null | undefined;
|
|
664
|
-
title?: string | null | undefined;
|
|
356
|
+
marketId: string | null | undefined;
|
|
357
|
+
imageUrl: string | null | undefined;
|
|
358
|
+
iconUrl: string | null | undefined;
|
|
359
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
665
360
|
slug?: string | null | undefined;
|
|
666
|
-
|
|
667
|
-
eventId?: string | null | undefined;
|
|
668
|
-
eventSlug?: string | null | undefined;
|
|
361
|
+
title?: string | null | undefined;
|
|
669
362
|
outcome?: string | null | undefined;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
363
|
+
category?: string | null | undefined;
|
|
364
|
+
subcategory?: string | null | undefined;
|
|
365
|
+
tags?: string[] | null | undefined;
|
|
366
|
+
event?: {
|
|
367
|
+
eventId: string | null | undefined;
|
|
368
|
+
eventSlug: string | null | undefined;
|
|
369
|
+
eventTitle: string | null | undefined;
|
|
370
|
+
eventImage: string | null | undefined;
|
|
371
|
+
} | null | undefined;
|
|
674
372
|
}, {
|
|
675
|
-
|
|
676
|
-
proxyWallet?: string | null | undefined;
|
|
677
|
-
asset?: TokenId | null | undefined;
|
|
678
|
-
size?: DecimalString | null | undefined;
|
|
679
|
-
avgPrice?: DecimalString | null | undefined;
|
|
680
|
-
initialValue?: DecimalString | null | undefined;
|
|
681
|
-
currentValue?: DecimalString | null | undefined;
|
|
682
|
-
cashPnl?: DecimalString | null | undefined;
|
|
683
|
-
percentPnl?: number | null | undefined;
|
|
684
|
-
totalBought?: DecimalString | null | undefined;
|
|
685
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
686
|
-
percentRealizedPnl?: number | null | undefined;
|
|
687
|
-
curPrice?: DecimalString | null | undefined;
|
|
688
|
-
redeemable?: boolean | null | undefined;
|
|
689
|
-
mergeable?: boolean | null | undefined;
|
|
690
|
-
title?: string | null | undefined;
|
|
373
|
+
market_id?: string | null | undefined;
|
|
691
374
|
slug?: string | null | undefined;
|
|
692
|
-
|
|
693
|
-
eventId?: string | null | undefined;
|
|
694
|
-
eventSlug?: string | null | undefined;
|
|
695
|
-
outcome?: string | null | undefined;
|
|
696
|
-
outcomeIndex?: number | null | undefined;
|
|
697
|
-
oppositeOutcome?: string | null | undefined;
|
|
698
|
-
oppositeAsset?: TokenId | null | undefined;
|
|
699
|
-
endDate?: IsoCalendarDateString | null | undefined;
|
|
700
|
-
negativeRisk?: boolean | null | undefined;
|
|
701
|
-
}>>;
|
|
702
|
-
declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
703
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
704
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
705
|
-
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
706
|
-
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
707
|
-
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
708
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
709
|
-
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
710
|
-
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
711
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
712
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
713
|
-
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
714
|
-
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
715
|
-
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
716
|
-
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
717
|
-
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
|
-
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
719
|
-
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
720
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
721
|
-
wallet: string | null | undefined;
|
|
722
|
-
tokenId: TokenId | null | undefined;
|
|
723
|
-
oppositeTokenId: TokenId | null | undefined;
|
|
724
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
725
|
-
avgPrice?: DecimalString | null | undefined;
|
|
726
|
-
totalBought?: DecimalString | null | undefined;
|
|
727
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
728
|
-
curPrice?: DecimalString | null | undefined;
|
|
729
|
-
timestamp?: EpochMilliseconds | null | undefined;
|
|
730
|
-
title?: string | null | undefined;
|
|
731
|
-
slug?: string | null | undefined;
|
|
732
|
-
icon?: string | null | undefined;
|
|
733
|
-
eventSlug?: string | null | undefined;
|
|
734
|
-
outcome?: string | null | undefined;
|
|
735
|
-
outcomeIndex?: number | null | undefined;
|
|
736
|
-
oppositeOutcome?: string | null | undefined;
|
|
737
|
-
endDate?: MixedDateTimeString | null | undefined;
|
|
738
|
-
}, {
|
|
739
|
-
proxyWallet?: string | null | undefined;
|
|
740
|
-
asset?: TokenId | null | undefined;
|
|
741
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
742
|
-
avgPrice?: DecimalString | null | undefined;
|
|
743
|
-
totalBought?: DecimalString | null | undefined;
|
|
744
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
745
|
-
curPrice?: DecimalString | null | undefined;
|
|
746
|
-
timestamp?: EpochMilliseconds | null | undefined;
|
|
747
|
-
title?: string | null | undefined;
|
|
748
|
-
slug?: string | null | undefined;
|
|
749
|
-
icon?: string | null | undefined;
|
|
750
|
-
eventSlug?: string | null | undefined;
|
|
751
|
-
outcome?: string | null | undefined;
|
|
752
|
-
outcomeIndex?: number | null | undefined;
|
|
753
|
-
oppositeOutcome?: string | null | undefined;
|
|
754
|
-
oppositeAsset?: TokenId | null | undefined;
|
|
755
|
-
endDate?: MixedDateTimeString | null | undefined;
|
|
756
|
-
}>>;
|
|
757
|
-
declare const ValueSchema: z.ZodObject<{
|
|
758
|
-
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
759
|
-
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
760
|
-
}, z.core.$strip>;
|
|
761
|
-
declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
762
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
763
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
764
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
765
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
766
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
767
|
-
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
768
|
-
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
769
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
770
|
-
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
771
|
-
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
772
|
-
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
773
|
-
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
774
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
775
|
-
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
776
|
-
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
777
|
-
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
778
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
779
|
-
wallet: string | null | undefined;
|
|
780
|
-
tokenId: TokenId | null | undefined;
|
|
781
|
-
name?: string | null | undefined;
|
|
782
|
-
profileImage?: string | null | undefined;
|
|
783
|
-
verified?: boolean | null | undefined;
|
|
784
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
785
|
-
avgPrice?: DecimalString | null | undefined;
|
|
786
|
-
size?: DecimalString | null | undefined;
|
|
787
|
-
currPrice?: DecimalString | null | undefined;
|
|
788
|
-
currentValue?: DecimalString | null | undefined;
|
|
789
|
-
cashPnl?: DecimalString | null | undefined;
|
|
790
|
-
totalBought?: DecimalString | null | undefined;
|
|
791
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
792
|
-
totalPnl?: DecimalString | null | undefined;
|
|
793
|
-
outcome?: string | null | undefined;
|
|
794
|
-
outcomeIndex?: number | null | undefined;
|
|
795
|
-
}, {
|
|
796
|
-
proxyWallet?: string | null | undefined;
|
|
797
|
-
name?: string | null | undefined;
|
|
798
|
-
profileImage?: string | null | undefined;
|
|
799
|
-
verified?: boolean | null | undefined;
|
|
800
|
-
asset?: TokenId | null | undefined;
|
|
801
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
802
|
-
avgPrice?: DecimalString | null | undefined;
|
|
803
|
-
size?: DecimalString | null | undefined;
|
|
804
|
-
currPrice?: DecimalString | null | undefined;
|
|
805
|
-
currentValue?: DecimalString | null | undefined;
|
|
806
|
-
cashPnl?: DecimalString | null | undefined;
|
|
807
|
-
totalBought?: DecimalString | null | undefined;
|
|
808
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
809
|
-
totalPnl?: DecimalString | null | undefined;
|
|
810
|
-
outcome?: string | null | undefined;
|
|
811
|
-
outcomeIndex?: number | null | undefined;
|
|
812
|
-
}>>;
|
|
813
|
-
declare const MetaMarketPositionSchema: z.ZodObject<{
|
|
814
|
-
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
-
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
816
|
-
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
820
|
-
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
821
|
-
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
822
|
-
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
823
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
824
|
-
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
825
|
-
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
826
|
-
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
827
|
-
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
828
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
829
|
-
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
830
|
-
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
831
|
-
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
832
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
833
|
-
wallet: string | null | undefined;
|
|
834
|
-
tokenId: TokenId | null | undefined;
|
|
835
|
-
name?: string | null | undefined;
|
|
836
|
-
profileImage?: string | null | undefined;
|
|
837
|
-
verified?: boolean | null | undefined;
|
|
838
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
839
|
-
avgPrice?: DecimalString | null | undefined;
|
|
840
|
-
size?: DecimalString | null | undefined;
|
|
841
|
-
currPrice?: DecimalString | null | undefined;
|
|
842
|
-
currentValue?: DecimalString | null | undefined;
|
|
843
|
-
cashPnl?: DecimalString | null | undefined;
|
|
844
|
-
totalBought?: DecimalString | null | undefined;
|
|
845
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
846
|
-
totalPnl?: DecimalString | null | undefined;
|
|
847
|
-
outcome?: string | null | undefined;
|
|
848
|
-
outcomeIndex?: number | null | undefined;
|
|
849
|
-
}, {
|
|
850
|
-
proxyWallet?: string | null | undefined;
|
|
851
|
-
name?: string | null | undefined;
|
|
852
|
-
profileImage?: string | null | undefined;
|
|
853
|
-
verified?: boolean | null | undefined;
|
|
854
|
-
asset?: TokenId | null | undefined;
|
|
855
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
856
|
-
avgPrice?: DecimalString | null | undefined;
|
|
857
|
-
size?: DecimalString | null | undefined;
|
|
858
|
-
currPrice?: DecimalString | null | undefined;
|
|
859
|
-
currentValue?: DecimalString | null | undefined;
|
|
860
|
-
cashPnl?: DecimalString | null | undefined;
|
|
861
|
-
totalBought?: DecimalString | null | undefined;
|
|
862
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
863
|
-
totalPnl?: DecimalString | null | undefined;
|
|
864
|
-
outcome?: string | null | undefined;
|
|
865
|
-
outcomeIndex?: number | null | undefined;
|
|
866
|
-
}>>>>>;
|
|
867
|
-
}, z.core.$strip>;
|
|
868
|
-
declare const ComboPositionMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
869
|
-
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
870
|
-
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
-
event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
872
|
-
event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
873
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
874
|
-
eventId: string | null | undefined;
|
|
875
|
-
eventSlug: string | null | undefined;
|
|
876
|
-
eventTitle: string | null | undefined;
|
|
877
|
-
eventImage: string | null | undefined;
|
|
878
|
-
}, {
|
|
879
|
-
event_id?: string | null | undefined;
|
|
880
|
-
event_slug?: string | null | undefined;
|
|
881
|
-
event_title?: string | null | undefined;
|
|
882
|
-
event_image?: string | null | undefined;
|
|
883
|
-
}>>;
|
|
884
|
-
declare const ComboPositionMarketSchema: z.ZodPipe<z.ZodObject<{
|
|
885
|
-
market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
886
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
887
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
888
|
-
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
-
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
|
-
icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
891
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
892
|
-
subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
893
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
894
|
-
end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
895
|
-
event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
896
|
-
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
897
|
-
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
898
|
-
event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
899
|
-
event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
900
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
901
|
-
eventId: string | null | undefined;
|
|
902
|
-
eventSlug: string | null | undefined;
|
|
903
|
-
eventTitle: string | null | undefined;
|
|
904
|
-
eventImage: string | null | undefined;
|
|
905
|
-
}, {
|
|
906
|
-
event_id?: string | null | undefined;
|
|
907
|
-
event_slug?: string | null | undefined;
|
|
908
|
-
event_title?: string | null | undefined;
|
|
909
|
-
event_image?: string | null | undefined;
|
|
910
|
-
}>>>>;
|
|
911
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
912
|
-
marketId: string | null | undefined;
|
|
913
|
-
imageUrl: string | null | undefined;
|
|
914
|
-
iconUrl: string | null | undefined;
|
|
915
|
-
endDate: IsoDateTimeString | null | undefined;
|
|
916
|
-
slug?: string | null | undefined;
|
|
917
|
-
title?: string | null | undefined;
|
|
918
|
-
outcome?: string | null | undefined;
|
|
919
|
-
category?: string | null | undefined;
|
|
920
|
-
subcategory?: string | null | undefined;
|
|
921
|
-
tags?: string[] | null | undefined;
|
|
922
|
-
event?: {
|
|
923
|
-
eventId: string | null | undefined;
|
|
924
|
-
eventSlug: string | null | undefined;
|
|
925
|
-
eventTitle: string | null | undefined;
|
|
926
|
-
eventImage: string | null | undefined;
|
|
927
|
-
} | null | undefined;
|
|
928
|
-
}, {
|
|
929
|
-
market_id?: string | null | undefined;
|
|
930
|
-
slug?: string | null | undefined;
|
|
931
|
-
title?: string | null | undefined;
|
|
375
|
+
title?: string | null | undefined;
|
|
932
376
|
outcome?: string | null | undefined;
|
|
933
377
|
image_url?: string | null | undefined;
|
|
934
378
|
icon_url?: string | null | undefined;
|
|
@@ -1072,14 +516,19 @@ declare const ComboPositionLegSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1072
516
|
declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
1073
517
|
combo_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
1074
518
|
combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
519
|
+
side: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
1075
520
|
module_id: z.ZodNumber;
|
|
1076
521
|
user_address: z.ZodString;
|
|
1077
522
|
shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1078
523
|
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>>]>>>;
|
|
1079
524
|
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>>]>>>;
|
|
525
|
+
realized_payout_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
526
|
+
total_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>>]>>>;
|
|
1080
527
|
status: z.ZodEnum<typeof ComboPositionStatus>;
|
|
528
|
+
redeemable: z.ZodBoolean;
|
|
1081
529
|
first_entry_at: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
|
|
1082
530
|
resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
531
|
+
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>;
|
|
1083
532
|
legs_total: z.ZodNumber;
|
|
1084
533
|
legs_resolved: z.ZodNumber;
|
|
1085
534
|
legs_pending: z.ZodNumber;
|
|
@@ -1212,17 +661,22 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1212
661
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1213
662
|
conditionId: ComboConditionId;
|
|
1214
663
|
positionId: PositionId;
|
|
664
|
+
outcome: ComboPositionOutcome;
|
|
1215
665
|
moduleId: number;
|
|
1216
|
-
|
|
666
|
+
wallet: string;
|
|
1217
667
|
shares: DecimalString;
|
|
1218
668
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1219
669
|
entryCostUsdc: DecimalString | null | undefined;
|
|
670
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
671
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1220
672
|
firstEntryAt: IsoDateTimeString;
|
|
1221
673
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
674
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1222
675
|
legsTotal: number;
|
|
1223
676
|
legsResolved: number;
|
|
1224
677
|
legsPending: number;
|
|
1225
678
|
status: ComboPositionStatus;
|
|
679
|
+
redeemable: boolean;
|
|
1226
680
|
legs: {
|
|
1227
681
|
legIndex: number;
|
|
1228
682
|
legPositionId: PositionId;
|
|
@@ -1254,10 +708,12 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1254
708
|
}, {
|
|
1255
709
|
combo_condition_id: ComboConditionId;
|
|
1256
710
|
combo_position_id: PositionId;
|
|
711
|
+
side: ComboPositionOutcome;
|
|
1257
712
|
module_id: number;
|
|
1258
713
|
user_address: string;
|
|
1259
714
|
shares_balance: DecimalString;
|
|
1260
715
|
status: ComboPositionStatus;
|
|
716
|
+
redeemable: boolean;
|
|
1261
717
|
first_entry_at: IsoDateTimeString;
|
|
1262
718
|
legs_total: number;
|
|
1263
719
|
legs_resolved: number;
|
|
@@ -1292,20 +748,28 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1292
748
|
}[];
|
|
1293
749
|
entry_avg_price_usdc?: DecimalString | null | undefined;
|
|
1294
750
|
entry_cost_usdc?: DecimalString | null | undefined;
|
|
751
|
+
realized_payout_usdc?: DecimalString | null | undefined;
|
|
752
|
+
total_cost_usdc?: DecimalString | null | undefined;
|
|
1295
753
|
resolved_at?: IsoDateTimeString | null | undefined;
|
|
754
|
+
updated_at?: IsoDateTimeString | undefined;
|
|
1296
755
|
}>>;
|
|
1297
756
|
declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1298
757
|
combos: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1299
758
|
combo_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
1300
759
|
combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
760
|
+
side: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
1301
761
|
module_id: z.ZodNumber;
|
|
1302
762
|
user_address: z.ZodString;
|
|
1303
763
|
shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1304
764
|
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>>]>>>;
|
|
1305
765
|
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>>]>>>;
|
|
766
|
+
realized_payout_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
767
|
+
total_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>>]>>>;
|
|
1306
768
|
status: z.ZodEnum<typeof ComboPositionStatus>;
|
|
769
|
+
redeemable: z.ZodBoolean;
|
|
1307
770
|
first_entry_at: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
|
|
1308
771
|
resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
772
|
+
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>;
|
|
1309
773
|
legs_total: z.ZodNumber;
|
|
1310
774
|
legs_resolved: z.ZodNumber;
|
|
1311
775
|
legs_pending: z.ZodNumber;
|
|
@@ -1438,17 +902,22 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1438
902
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1439
903
|
conditionId: ComboConditionId;
|
|
1440
904
|
positionId: PositionId;
|
|
905
|
+
outcome: ComboPositionOutcome;
|
|
1441
906
|
moduleId: number;
|
|
1442
|
-
|
|
907
|
+
wallet: string;
|
|
1443
908
|
shares: DecimalString;
|
|
1444
909
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1445
910
|
entryCostUsdc: DecimalString | null | undefined;
|
|
911
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
912
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1446
913
|
firstEntryAt: IsoDateTimeString;
|
|
1447
914
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
915
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1448
916
|
legsTotal: number;
|
|
1449
917
|
legsResolved: number;
|
|
1450
918
|
legsPending: number;
|
|
1451
919
|
status: ComboPositionStatus;
|
|
920
|
+
redeemable: boolean;
|
|
1452
921
|
legs: {
|
|
1453
922
|
legIndex: number;
|
|
1454
923
|
legPositionId: PositionId;
|
|
@@ -1480,10 +949,12 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1480
949
|
}, {
|
|
1481
950
|
combo_condition_id: ComboConditionId;
|
|
1482
951
|
combo_position_id: PositionId;
|
|
952
|
+
side: ComboPositionOutcome;
|
|
1483
953
|
module_id: number;
|
|
1484
954
|
user_address: string;
|
|
1485
955
|
shares_balance: DecimalString;
|
|
1486
956
|
status: ComboPositionStatus;
|
|
957
|
+
redeemable: boolean;
|
|
1487
958
|
first_entry_at: IsoDateTimeString;
|
|
1488
959
|
legs_total: number;
|
|
1489
960
|
legs_resolved: number;
|
|
@@ -1518,7 +989,10 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1518
989
|
}[];
|
|
1519
990
|
entry_avg_price_usdc?: DecimalString | null | undefined;
|
|
1520
991
|
entry_cost_usdc?: DecimalString | null | undefined;
|
|
992
|
+
realized_payout_usdc?: DecimalString | null | undefined;
|
|
993
|
+
total_cost_usdc?: DecimalString | null | undefined;
|
|
1521
994
|
resolved_at?: IsoDateTimeString | null | undefined;
|
|
995
|
+
updated_at?: IsoDateTimeString | undefined;
|
|
1522
996
|
}>>>;
|
|
1523
997
|
pagination: z.ZodObject<{
|
|
1524
998
|
limit: z.ZodNumber;
|
|
@@ -1536,17 +1010,22 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1536
1010
|
combos: {
|
|
1537
1011
|
conditionId: ComboConditionId;
|
|
1538
1012
|
positionId: PositionId;
|
|
1013
|
+
outcome: ComboPositionOutcome;
|
|
1539
1014
|
moduleId: number;
|
|
1540
|
-
|
|
1015
|
+
wallet: string;
|
|
1541
1016
|
shares: DecimalString;
|
|
1542
1017
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1543
1018
|
entryCostUsdc: DecimalString | null | undefined;
|
|
1019
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
1020
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1544
1021
|
firstEntryAt: IsoDateTimeString;
|
|
1545
1022
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
1023
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1546
1024
|
legsTotal: number;
|
|
1547
1025
|
legsResolved: number;
|
|
1548
1026
|
legsPending: number;
|
|
1549
1027
|
status: ComboPositionStatus;
|
|
1028
|
+
redeemable: boolean;
|
|
1550
1029
|
legs: {
|
|
1551
1030
|
legIndex: number;
|
|
1552
1031
|
legPositionId: PositionId;
|
|
@@ -1580,17 +1059,22 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1580
1059
|
combos: {
|
|
1581
1060
|
conditionId: ComboConditionId;
|
|
1582
1061
|
positionId: PositionId;
|
|
1062
|
+
outcome: ComboPositionOutcome;
|
|
1583
1063
|
moduleId: number;
|
|
1584
|
-
|
|
1064
|
+
wallet: string;
|
|
1585
1065
|
shares: DecimalString;
|
|
1586
1066
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1587
1067
|
entryCostUsdc: DecimalString | null | undefined;
|
|
1068
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
1069
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1588
1070
|
firstEntryAt: IsoDateTimeString;
|
|
1589
1071
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
1072
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1590
1073
|
legsTotal: number;
|
|
1591
1074
|
legsResolved: number;
|
|
1592
1075
|
legsPending: number;
|
|
1593
1076
|
status: ComboPositionStatus;
|
|
1077
|
+
redeemable: boolean;
|
|
1594
1078
|
legs: {
|
|
1595
1079
|
legIndex: number;
|
|
1596
1080
|
legPositionId: PositionId;
|
|
@@ -1630,93 +1114,505 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1630
1114
|
declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1631
1115
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1632
1116
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1633
|
-
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1117
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1118
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1119
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1120
|
+
initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1121
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1122
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1123
|
+
percentPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1124
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1125
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1126
|
+
percentRealizedPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1127
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1128
|
+
redeemable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1129
|
+
mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1130
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1131
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1132
|
+
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1133
|
+
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1134
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1136
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1137
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1138
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1139
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>>>;
|
|
1140
|
+
negativeRisk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1141
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1142
|
+
wallet: string | null | undefined;
|
|
1143
|
+
tokenId: TokenId | null | undefined;
|
|
1144
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
1145
|
+
conditionId: CtfConditionId;
|
|
1146
|
+
size?: DecimalString | null | undefined;
|
|
1147
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1148
|
+
initialValue?: DecimalString | null | undefined;
|
|
1149
|
+
currentValue?: DecimalString | null | undefined;
|
|
1150
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1151
|
+
percentPnl?: number | null | undefined;
|
|
1152
|
+
totalBought?: DecimalString | null | undefined;
|
|
1153
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1154
|
+
percentRealizedPnl?: number | null | undefined;
|
|
1155
|
+
curPrice?: DecimalString | null | undefined;
|
|
1156
|
+
redeemable?: boolean | null | undefined;
|
|
1157
|
+
mergeable?: boolean | null | undefined;
|
|
1158
|
+
title?: string | null | undefined;
|
|
1159
|
+
slug?: string | null | undefined;
|
|
1160
|
+
icon?: string | null | undefined;
|
|
1161
|
+
eventId?: string | null | undefined;
|
|
1162
|
+
eventSlug?: string | null | undefined;
|
|
1163
|
+
outcome?: string | null | undefined;
|
|
1164
|
+
outcomeIndex?: number | null | undefined;
|
|
1165
|
+
oppositeOutcome?: string | null | undefined;
|
|
1166
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
1167
|
+
negativeRisk?: boolean | null | undefined;
|
|
1168
|
+
}, {
|
|
1169
|
+
conditionId: CtfConditionId;
|
|
1170
|
+
proxyWallet?: string | null | undefined;
|
|
1171
|
+
asset?: TokenId | null | undefined;
|
|
1172
|
+
size?: DecimalString | null | undefined;
|
|
1173
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1174
|
+
initialValue?: DecimalString | null | undefined;
|
|
1175
|
+
currentValue?: DecimalString | null | undefined;
|
|
1176
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1177
|
+
percentPnl?: number | null | undefined;
|
|
1178
|
+
totalBought?: DecimalString | null | undefined;
|
|
1179
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1180
|
+
percentRealizedPnl?: number | null | undefined;
|
|
1181
|
+
curPrice?: DecimalString | null | undefined;
|
|
1182
|
+
redeemable?: boolean | null | undefined;
|
|
1183
|
+
mergeable?: boolean | null | undefined;
|
|
1184
|
+
title?: string | null | undefined;
|
|
1185
|
+
slug?: string | null | undefined;
|
|
1186
|
+
icon?: string | null | undefined;
|
|
1187
|
+
eventId?: string | null | undefined;
|
|
1188
|
+
eventSlug?: string | null | undefined;
|
|
1189
|
+
outcome?: string | null | undefined;
|
|
1190
|
+
outcomeIndex?: number | null | undefined;
|
|
1191
|
+
oppositeOutcome?: string | null | undefined;
|
|
1192
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
1193
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
1194
|
+
negativeRisk?: boolean | null | undefined;
|
|
1195
|
+
}>>>;
|
|
1196
|
+
declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1197
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1198
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1199
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1200
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1201
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1202
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1203
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1204
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
1205
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1206
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
|
+
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1208
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1209
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1210
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1211
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1212
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1213
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
1214
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1215
|
+
wallet: string | null | undefined;
|
|
1216
|
+
tokenId: TokenId | null | undefined;
|
|
1217
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
1218
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1219
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1220
|
+
totalBought?: DecimalString | null | undefined;
|
|
1221
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1222
|
+
curPrice?: DecimalString | null | undefined;
|
|
1223
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1224
|
+
title?: string | null | undefined;
|
|
1225
|
+
slug?: string | null | undefined;
|
|
1226
|
+
icon?: string | null | undefined;
|
|
1227
|
+
eventSlug?: string | null | undefined;
|
|
1228
|
+
outcome?: string | null | undefined;
|
|
1229
|
+
outcomeIndex?: number | null | undefined;
|
|
1230
|
+
oppositeOutcome?: string | null | undefined;
|
|
1231
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
1232
|
+
}, {
|
|
1233
|
+
proxyWallet?: string | null | undefined;
|
|
1234
|
+
asset?: TokenId | null | undefined;
|
|
1235
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1236
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1237
|
+
totalBought?: DecimalString | null | undefined;
|
|
1238
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1239
|
+
curPrice?: DecimalString | null | undefined;
|
|
1240
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1241
|
+
title?: string | null | undefined;
|
|
1242
|
+
slug?: string | null | undefined;
|
|
1243
|
+
icon?: string | null | undefined;
|
|
1244
|
+
eventSlug?: string | null | undefined;
|
|
1245
|
+
outcome?: string | null | undefined;
|
|
1246
|
+
outcomeIndex?: number | null | undefined;
|
|
1247
|
+
oppositeOutcome?: string | null | undefined;
|
|
1248
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
1249
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
1250
|
+
}>>>;
|
|
1251
|
+
declare const FetchPortfolioValueResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1252
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1253
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1254
|
+
}, z.core.$strip>>;
|
|
1255
|
+
declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1256
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1257
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1258
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1259
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1260
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1261
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1262
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1263
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1264
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1265
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1266
|
+
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1267
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1268
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1269
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1270
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1271
|
+
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1272
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1273
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1274
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1275
|
+
wallet: string | null | undefined;
|
|
1276
|
+
tokenId: TokenId | null | undefined;
|
|
1277
|
+
name?: string | null | undefined;
|
|
1278
|
+
profileImage?: string | null | undefined;
|
|
1279
|
+
verified?: boolean | null | undefined;
|
|
1280
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1281
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1282
|
+
size?: DecimalString | null | undefined;
|
|
1283
|
+
currPrice?: DecimalString | null | undefined;
|
|
1284
|
+
currentValue?: DecimalString | null | undefined;
|
|
1285
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1286
|
+
totalBought?: DecimalString | null | undefined;
|
|
1287
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1288
|
+
totalPnl?: DecimalString | null | undefined;
|
|
1289
|
+
outcome?: string | null | undefined;
|
|
1290
|
+
outcomeIndex?: number | null | undefined;
|
|
1291
|
+
}, {
|
|
1292
|
+
proxyWallet?: string | null | undefined;
|
|
1293
|
+
name?: string | null | undefined;
|
|
1294
|
+
profileImage?: string | null | undefined;
|
|
1295
|
+
verified?: boolean | null | undefined;
|
|
1296
|
+
asset?: TokenId | null | undefined;
|
|
1297
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1298
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1299
|
+
size?: DecimalString | null | undefined;
|
|
1300
|
+
currPrice?: DecimalString | null | undefined;
|
|
1301
|
+
currentValue?: DecimalString | null | undefined;
|
|
1302
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1303
|
+
totalBought?: DecimalString | null | undefined;
|
|
1304
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1305
|
+
totalPnl?: DecimalString | null | undefined;
|
|
1306
|
+
outcome?: string | null | undefined;
|
|
1307
|
+
outcomeIndex?: number | null | undefined;
|
|
1308
|
+
}>>>>>;
|
|
1309
|
+
}, z.core.$strip>>;
|
|
1310
|
+
type Position = z.infer<typeof PositionSchema>;
|
|
1311
|
+
type ClosedPosition = z.infer<typeof ClosedPositionSchema>;
|
|
1312
|
+
type Value = z.infer<typeof ValueSchema>;
|
|
1313
|
+
type MarketPosition = z.infer<typeof MarketPositionSchema>;
|
|
1314
|
+
type MetaMarketPosition = z.infer<typeof MetaMarketPositionSchema>;
|
|
1315
|
+
type ComboPositionMarketEvent = z.infer<typeof ComboPositionMarketEventSchema>;
|
|
1316
|
+
type ComboPositionMarket = z.infer<typeof ComboPositionMarketSchema>;
|
|
1317
|
+
type ComboPositionLeg = z.infer<typeof ComboPositionLegSchema>;
|
|
1318
|
+
type ComboPosition = z.infer<typeof ComboPositionSchema>;
|
|
1319
|
+
type ListPositionsResponse = z.infer<typeof ListPositionsResponseSchema>;
|
|
1320
|
+
type ListClosedPositionsResponse = z.infer<typeof ListClosedPositionsResponseSchema>;
|
|
1321
|
+
type FetchPortfolioValueResponse = z.infer<typeof FetchPortfolioValueResponseSchema>;
|
|
1322
|
+
type ListMarketPositionsResponse = z.infer<typeof ListMarketPositionsResponseSchema>;
|
|
1323
|
+
type ListComboPositionsResponse = z.infer<typeof ListComboPositionsResponseSchema>;
|
|
1324
|
+
|
|
1325
|
+
declare enum ComboActivityType {
|
|
1326
|
+
Split = "SPLIT",
|
|
1327
|
+
Merge = "MERGE",
|
|
1328
|
+
Convert = "CONVERT",
|
|
1329
|
+
Compress = "COMPRESS",
|
|
1330
|
+
Wrap = "WRAP",
|
|
1331
|
+
Unwrap = "UNWRAP",
|
|
1332
|
+
Redeem = "REDEEM"
|
|
1333
|
+
}
|
|
1334
|
+
type ActivityBase = {
|
|
1335
|
+
/** Wallet address whose account history contains this activity. */
|
|
1336
|
+
wallet: Address;
|
|
1337
|
+
/** Activity time as Unix epoch milliseconds. */
|
|
1338
|
+
timestamp: EpochMilliseconds;
|
|
1339
|
+
/** Polygon transaction hash that produced or records this activity. */
|
|
1340
|
+
transactionHash: TxHash;
|
|
1341
|
+
/** Display name of the wallet owner at the time returned by the API. */
|
|
1342
|
+
name: string | null;
|
|
1343
|
+
/** Public pseudonym of the wallet owner at the time returned by the API. */
|
|
1344
|
+
pseudonym: string | null;
|
|
1345
|
+
/** Profile biography of the wallet owner at the time returned by the API. */
|
|
1346
|
+
bio: string | null;
|
|
1347
|
+
/** Source profile image URL for the wallet owner. */
|
|
1348
|
+
profileImage: string | null;
|
|
1349
|
+
/** Optimized profile image URL for the wallet owner. */
|
|
1350
|
+
profileImageOptimized: string | null;
|
|
1351
|
+
};
|
|
1352
|
+
type TradeActivityBase = ActivityBase & {
|
|
1353
|
+
/** A directional outcome-token trade. */
|
|
1354
|
+
type: ActivityType.TRADE;
|
|
1355
|
+
/** Whether this trade is for a Combo position instead of a binary market token. */
|
|
1356
|
+
isCombo: boolean;
|
|
1357
|
+
/** Direction of the wallet's trade. */
|
|
1358
|
+
side: Side;
|
|
1359
|
+
/** Number of shares traded by the wallet. */
|
|
1360
|
+
shares: DecimalString;
|
|
1361
|
+
/** The notional value of the traded shares in USD. */
|
|
1362
|
+
amount: DecimalString;
|
|
1363
|
+
/** The execution price per share in USD. */
|
|
1364
|
+
price: DecimalString;
|
|
1365
|
+
/** Human-readable title of the traded market or Combo. */
|
|
1366
|
+
title: string;
|
|
1367
|
+
/** Icon URL for the traded market or Combo, when available. */
|
|
1368
|
+
icon: string | null;
|
|
1369
|
+
};
|
|
1370
|
+
type ClobTradeActivity = TradeActivityBase & {
|
|
1371
|
+
/** CLOB market trades are binary market outcome-token trades. */
|
|
1372
|
+
isCombo: false;
|
|
1373
|
+
/** Condition id of the market traded by the wallet. */
|
|
1374
|
+
conditionId: CtfConditionId;
|
|
1375
|
+
/** Outcome token id bought or sold by the wallet. */
|
|
1376
|
+
tokenId: TokenId;
|
|
1377
|
+
/** Display label of the outcome token traded by the wallet. */
|
|
1378
|
+
outcome: string;
|
|
1379
|
+
/** Zero-based index of the outcome token in the market's outcome list. */
|
|
1380
|
+
outcomeIndex: number;
|
|
1381
|
+
/** URL slug of the market traded by the wallet. */
|
|
1382
|
+
slug: string;
|
|
1383
|
+
/** URL slug of the event containing the traded market. */
|
|
1384
|
+
eventSlug: string;
|
|
1385
|
+
};
|
|
1386
|
+
type ComboTradeActivity = TradeActivityBase & {
|
|
1387
|
+
/** Combo trades are protocol v2 Combo position trades. */
|
|
1388
|
+
isCombo: true;
|
|
1389
|
+
/** Combo condition id traded by the wallet. */
|
|
1390
|
+
conditionId: ComboConditionId;
|
|
1391
|
+
/** Combo position id bought or sold by the wallet. */
|
|
1392
|
+
positionId: PositionId;
|
|
1393
|
+
};
|
|
1394
|
+
type TradeActivity = ClobTradeActivity | ComboTradeActivity;
|
|
1395
|
+
type SplitActivity = ActivityBase & {
|
|
1396
|
+
/** Splitting collateral into a complete market set. */
|
|
1397
|
+
type: 'SPLIT';
|
|
1398
|
+
/** Condition id of the market whose complete set was created. */
|
|
1399
|
+
conditionId: CtfConditionId;
|
|
1400
|
+
/** The collateral amount split into the complete set in USD. */
|
|
1401
|
+
amount: DecimalString;
|
|
1402
|
+
/** Human-readable title of the market whose complete set was created. */
|
|
1403
|
+
title: string;
|
|
1404
|
+
/** URL slug of the market whose complete set was created. */
|
|
1405
|
+
slug: string;
|
|
1406
|
+
/** Icon URL for the market whose complete set was created, when available. */
|
|
1407
|
+
icon: string | null;
|
|
1408
|
+
/** URL slug of the event containing the split market. */
|
|
1409
|
+
eventSlug: string;
|
|
1410
|
+
};
|
|
1411
|
+
type MergeActivity = ActivityBase & {
|
|
1412
|
+
/** Merging a complete market set into collateral. */
|
|
1413
|
+
type: 'MERGE';
|
|
1414
|
+
/** Condition id of the market whose complete set was merged. */
|
|
1415
|
+
conditionId: CtfConditionId;
|
|
1416
|
+
/** The collateral amount received from merging the complete set in USD. */
|
|
1417
|
+
amount: DecimalString;
|
|
1418
|
+
/** Human-readable title of the market whose complete set was merged. */
|
|
1419
|
+
title: string;
|
|
1420
|
+
/** URL slug of the market whose complete set was merged. */
|
|
1421
|
+
slug: string;
|
|
1422
|
+
/** Icon URL for the market whose complete set was merged, when available. */
|
|
1423
|
+
icon: string | null;
|
|
1424
|
+
/** URL slug of the event containing the merged market. */
|
|
1425
|
+
eventSlug: string;
|
|
1426
|
+
};
|
|
1427
|
+
type RedeemActivity = ActivityBase & {
|
|
1428
|
+
/** Redeeming resolved market proceeds. */
|
|
1429
|
+
type: 'REDEEM';
|
|
1430
|
+
/** Condition id of the market redeemed by the wallet. */
|
|
1431
|
+
conditionId: CtfConditionId;
|
|
1432
|
+
/** The proceeds redeemed from the resolved market in USD. */
|
|
1433
|
+
amount: DecimalString;
|
|
1434
|
+
/** Human-readable title of the market redeemed by the wallet. */
|
|
1435
|
+
title: string;
|
|
1436
|
+
/** URL slug of the market redeemed by the wallet. */
|
|
1437
|
+
slug: string;
|
|
1438
|
+
/** Icon URL for the market redeemed by the wallet, when available. */
|
|
1439
|
+
icon: string | null;
|
|
1440
|
+
/** URL slug of the event containing the redeemed market. */
|
|
1441
|
+
eventSlug: string;
|
|
1442
|
+
};
|
|
1443
|
+
type ConversionActivity = ActivityBase & {
|
|
1444
|
+
/** A market conversion or migration activity. */
|
|
1445
|
+
type: 'CONVERSION';
|
|
1446
|
+
/** Condition id of the market involved in the conversion. */
|
|
1447
|
+
conditionId: CtfConditionId;
|
|
1448
|
+
/** The amount converted or migrated for the market in USD. */
|
|
1449
|
+
amount: DecimalString;
|
|
1450
|
+
/** Human-readable title of the market involved in the conversion. */
|
|
1451
|
+
title: string;
|
|
1452
|
+
/** URL slug of the market involved in the conversion. */
|
|
1453
|
+
slug: string;
|
|
1454
|
+
/** Icon URL for the market involved in the conversion, when available. */
|
|
1455
|
+
icon: string | null;
|
|
1456
|
+
/** URL slug of the event containing the converted market. */
|
|
1457
|
+
eventSlug: string;
|
|
1458
|
+
};
|
|
1459
|
+
type RewardActivity = ActivityBase & {
|
|
1460
|
+
/** An account-level reward credit. */
|
|
1461
|
+
type: 'REWARD';
|
|
1462
|
+
/** The reward amount credited to the wallet in USD. */
|
|
1463
|
+
amount: DecimalString;
|
|
1464
|
+
};
|
|
1465
|
+
type MakerRebateActivity = ActivityBase & {
|
|
1466
|
+
/** An account-level maker rebate credit. */
|
|
1467
|
+
type: 'MAKER_REBATE';
|
|
1468
|
+
/** The maker rebate amount credited to the wallet in USD. */
|
|
1469
|
+
amount: DecimalString;
|
|
1470
|
+
};
|
|
1471
|
+
type ReferralRewardActivity = ActivityBase & {
|
|
1472
|
+
/** An account-level referral reward credit. */
|
|
1473
|
+
type: 'REFERRAL_REWARD';
|
|
1474
|
+
/** The referral reward amount credited to the wallet in USD. */
|
|
1475
|
+
amount: DecimalString;
|
|
1476
|
+
};
|
|
1477
|
+
type YieldActivity = ActivityBase & {
|
|
1478
|
+
/** An account-level yield credit. */
|
|
1479
|
+
type: 'YIELD';
|
|
1480
|
+
/** The yield amount credited to the wallet in USD. */
|
|
1481
|
+
amount: DecimalString;
|
|
1482
|
+
};
|
|
1483
|
+
type Activity = TradeActivity | SplitActivity | MergeActivity | RedeemActivity | ConversionActivity | RewardActivity | MakerRebateActivity | ReferralRewardActivity | YieldActivity;
|
|
1484
|
+
type ComboActivityBase = {
|
|
1485
|
+
/** Stable row id derived from the transaction hash and log index. */
|
|
1486
|
+
id: ComboActivityId;
|
|
1487
|
+
/** Normalized lifecycle activity type. */
|
|
1488
|
+
type: ComboActivityType;
|
|
1489
|
+
/** Wallet address whose account history contains this activity. */
|
|
1490
|
+
wallet: Address;
|
|
1491
|
+
/** Combo condition id involved in this activity. */
|
|
1492
|
+
conditionId: ComboConditionId;
|
|
1493
|
+
/** Combo module id. */
|
|
1494
|
+
moduleId: number;
|
|
1495
|
+
/** Amount associated with the lifecycle event in USD. */
|
|
1496
|
+
amount: DecimalString | null;
|
|
1497
|
+
/** Activity time as Unix epoch milliseconds. */
|
|
1498
|
+
timestamp: EpochMilliseconds;
|
|
1499
|
+
/** Activity transaction time as an ISO date-time string. */
|
|
1500
|
+
transactionAt: IsoDateTimeString;
|
|
1501
|
+
/** Polygon transaction hash that produced this activity. */
|
|
1502
|
+
transactionHash: TxHash;
|
|
1503
|
+
/** Log index within the transaction. */
|
|
1504
|
+
logIndex: number;
|
|
1505
|
+
/** Polygon block number. */
|
|
1506
|
+
blockNumber: number;
|
|
1507
|
+
/** Combo legs enriched with market metadata at read time. */
|
|
1508
|
+
legs: ComboPositionLeg[];
|
|
1509
|
+
};
|
|
1510
|
+
type ComboSplitActivity = ComboActivityBase & {
|
|
1511
|
+
type: ComboActivityType.Split;
|
|
1512
|
+
};
|
|
1513
|
+
type ComboMergeActivity = ComboActivityBase & {
|
|
1514
|
+
type: ComboActivityType.Merge;
|
|
1515
|
+
};
|
|
1516
|
+
type ComboConvertActivity = ComboActivityBase & {
|
|
1517
|
+
type: ComboActivityType.Convert;
|
|
1518
|
+
};
|
|
1519
|
+
type ComboCompressActivity = ComboActivityBase & {
|
|
1520
|
+
type: ComboActivityType.Compress;
|
|
1521
|
+
};
|
|
1522
|
+
type ComboWrapActivity = ComboActivityBase & {
|
|
1523
|
+
type: ComboActivityType.Wrap;
|
|
1524
|
+
};
|
|
1525
|
+
type ComboUnwrapActivity = ComboActivityBase & {
|
|
1526
|
+
type: ComboActivityType.Unwrap;
|
|
1527
|
+
};
|
|
1528
|
+
type ComboRedeemActivity = ComboActivityBase & {
|
|
1529
|
+
type: ComboActivityType.Redeem;
|
|
1530
|
+
/** Redeemed Combo position id. Only redeem rows carry a source position id. */
|
|
1531
|
+
positionId: PositionId;
|
|
1532
|
+
/** Payout from the redemption in USD. Only redeem rows carry payout semantics. */
|
|
1533
|
+
payout: DecimalString | null;
|
|
1534
|
+
};
|
|
1535
|
+
type ComboActivity = ComboSplitActivity | ComboMergeActivity | ComboConvertActivity | ComboCompressActivity | ComboWrapActivity | ComboUnwrapActivity | ComboRedeemActivity;
|
|
1536
|
+
declare const ComboActivitySchema: z.ZodType<ComboActivity>;
|
|
1537
|
+
declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
1538
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1539
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1540
|
+
BUY: "BUY";
|
|
1541
|
+
SELL: "SELL";
|
|
1542
|
+
}>>>;
|
|
1543
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1544
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1634
1545
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1638
|
-
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1639
|
-
percentPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1640
|
-
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1641
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1642
|
-
percentRealizedPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1643
|
-
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1644
|
-
redeemable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1645
|
-
mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1546
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1547
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
1646
1548
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1647
1549
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1648
1550
|
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1649
|
-
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1650
1551
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1651
1552
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1652
1553
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1554
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1555
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1556
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1557
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1558
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1559
|
+
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1657
1560
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1658
1561
|
wallet: string | null | undefined;
|
|
1659
1562
|
tokenId: TokenId | null | undefined;
|
|
1660
|
-
|
|
1661
|
-
conditionId
|
|
1563
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1564
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1662
1565
|
size?: DecimalString | null | undefined;
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
currentValue?: DecimalString | null | undefined;
|
|
1666
|
-
cashPnl?: DecimalString | null | undefined;
|
|
1667
|
-
percentPnl?: number | null | undefined;
|
|
1668
|
-
totalBought?: DecimalString | null | undefined;
|
|
1669
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1670
|
-
percentRealizedPnl?: number | null | undefined;
|
|
1671
|
-
curPrice?: DecimalString | null | undefined;
|
|
1672
|
-
redeemable?: boolean | null | undefined;
|
|
1673
|
-
mergeable?: boolean | null | undefined;
|
|
1566
|
+
price?: DecimalString | null | undefined;
|
|
1567
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1674
1568
|
title?: string | null | undefined;
|
|
1675
1569
|
slug?: string | null | undefined;
|
|
1676
1570
|
icon?: string | null | undefined;
|
|
1677
|
-
eventId?: string | null | undefined;
|
|
1678
1571
|
eventSlug?: string | null | undefined;
|
|
1679
1572
|
outcome?: string | null | undefined;
|
|
1680
1573
|
outcomeIndex?: number | null | undefined;
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1574
|
+
name?: string | null | undefined;
|
|
1575
|
+
pseudonym?: string | null | undefined;
|
|
1576
|
+
bio?: string | null | undefined;
|
|
1577
|
+
profileImage?: string | null | undefined;
|
|
1578
|
+
profileImageOptimized?: string | null | undefined;
|
|
1579
|
+
transactionHash?: string | null | undefined;
|
|
1684
1580
|
}, {
|
|
1685
|
-
conditionId: CtfConditionId;
|
|
1686
1581
|
proxyWallet?: string | null | undefined;
|
|
1582
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1687
1583
|
asset?: TokenId | null | undefined;
|
|
1584
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1688
1585
|
size?: DecimalString | null | undefined;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
currentValue?: DecimalString | null | undefined;
|
|
1692
|
-
cashPnl?: DecimalString | null | undefined;
|
|
1693
|
-
percentPnl?: number | null | undefined;
|
|
1694
|
-
totalBought?: DecimalString | null | undefined;
|
|
1695
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1696
|
-
percentRealizedPnl?: number | null | undefined;
|
|
1697
|
-
curPrice?: DecimalString | null | undefined;
|
|
1698
|
-
redeemable?: boolean | null | undefined;
|
|
1699
|
-
mergeable?: boolean | null | undefined;
|
|
1586
|
+
price?: DecimalString | null | undefined;
|
|
1587
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1700
1588
|
title?: string | null | undefined;
|
|
1701
1589
|
slug?: string | null | undefined;
|
|
1702
1590
|
icon?: string | null | undefined;
|
|
1703
|
-
eventId?: string | null | undefined;
|
|
1704
1591
|
eventSlug?: string | null | undefined;
|
|
1705
1592
|
outcome?: string | null | undefined;
|
|
1706
1593
|
outcomeIndex?: number | null | undefined;
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1594
|
+
name?: string | null | undefined;
|
|
1595
|
+
pseudonym?: string | null | undefined;
|
|
1596
|
+
bio?: string | null | undefined;
|
|
1597
|
+
profileImage?: string | null | undefined;
|
|
1598
|
+
profileImageOptimized?: string | null | undefined;
|
|
1599
|
+
transactionHash?: string | null | undefined;
|
|
1600
|
+
}>>;
|
|
1601
|
+
declare const ActivitySchema: z.ZodType<Activity>;
|
|
1602
|
+
declare const TradedSchema: z.ZodObject<{
|
|
1603
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1604
|
+
traded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1605
|
+
}, z.core.$strip>;
|
|
1606
|
+
declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1713
1607
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1608
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1609
|
+
BUY: "BUY";
|
|
1610
|
+
SELL: "SELL";
|
|
1611
|
+
}>>>;
|
|
1714
1612
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1715
1613
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1719
|
-
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1614
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1615
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1720
1616
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
1721
1617
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1722
1618
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1724,18 +1620,19 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1724
1620
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1725
1621
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1726
1622
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1623
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1624
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1625
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1626
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1627
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1628
|
+
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1730
1629
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1731
1630
|
wallet: string | null | undefined;
|
|
1732
1631
|
tokenId: TokenId | null | undefined;
|
|
1733
|
-
|
|
1632
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1734
1633
|
conditionId?: CtfConditionId | null | undefined;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1738
|
-
curPrice?: DecimalString | null | undefined;
|
|
1634
|
+
size?: DecimalString | null | undefined;
|
|
1635
|
+
price?: DecimalString | null | undefined;
|
|
1739
1636
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1740
1637
|
title?: string | null | undefined;
|
|
1741
1638
|
slug?: string | null | undefined;
|
|
@@ -1743,16 +1640,19 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1743
1640
|
eventSlug?: string | null | undefined;
|
|
1744
1641
|
outcome?: string | null | undefined;
|
|
1745
1642
|
outcomeIndex?: number | null | undefined;
|
|
1746
|
-
|
|
1747
|
-
|
|
1643
|
+
name?: string | null | undefined;
|
|
1644
|
+
pseudonym?: string | null | undefined;
|
|
1645
|
+
bio?: string | null | undefined;
|
|
1646
|
+
profileImage?: string | null | undefined;
|
|
1647
|
+
profileImageOptimized?: string | null | undefined;
|
|
1648
|
+
transactionHash?: string | null | undefined;
|
|
1748
1649
|
}, {
|
|
1749
1650
|
proxyWallet?: string | null | undefined;
|
|
1651
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1750
1652
|
asset?: TokenId | null | undefined;
|
|
1751
1653
|
conditionId?: CtfConditionId | null | undefined;
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1755
|
-
curPrice?: DecimalString | null | undefined;
|
|
1654
|
+
size?: DecimalString | null | undefined;
|
|
1655
|
+
price?: DecimalString | null | undefined;
|
|
1756
1656
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1757
1657
|
title?: string | null | undefined;
|
|
1758
1658
|
slug?: string | null | undefined;
|
|
@@ -1760,82 +1660,315 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1760
1660
|
eventSlug?: string | null | undefined;
|
|
1761
1661
|
outcome?: string | null | undefined;
|
|
1762
1662
|
outcomeIndex?: number | null | undefined;
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1663
|
+
name?: string | null | undefined;
|
|
1664
|
+
pseudonym?: string | null | undefined;
|
|
1665
|
+
bio?: string | null | undefined;
|
|
1666
|
+
profileImage?: string | null | undefined;
|
|
1667
|
+
profileImageOptimized?: string | null | undefined;
|
|
1668
|
+
transactionHash?: string | null | undefined;
|
|
1766
1669
|
}>>>;
|
|
1767
|
-
declare const
|
|
1768
|
-
|
|
1670
|
+
declare const ListActivityResponseSchema: z.ZodArray<z.ZodType<Activity, unknown, z.core.$ZodTypeInternals<Activity, unknown>>>;
|
|
1671
|
+
declare const ListComboActivityResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1672
|
+
activity: z.ZodArray<z.ZodType<ComboActivity, unknown, z.core.$ZodTypeInternals<ComboActivity, unknown>>>;
|
|
1673
|
+
pagination: z.ZodObject<{
|
|
1674
|
+
limit: z.ZodNumber;
|
|
1675
|
+
offset: z.ZodNumber;
|
|
1676
|
+
has_more: z.ZodBoolean;
|
|
1677
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodCustom<PaginationCursor, PaginationCursor>>>;
|
|
1678
|
+
}, z.core.$strip>;
|
|
1679
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1680
|
+
pagination: {
|
|
1681
|
+
limit: number;
|
|
1682
|
+
offset: number;
|
|
1683
|
+
hasMore: boolean;
|
|
1684
|
+
nextCursor: PaginationCursor | null | undefined;
|
|
1685
|
+
};
|
|
1686
|
+
activity: ComboActivity[];
|
|
1687
|
+
}, {
|
|
1688
|
+
activity: ComboActivity[];
|
|
1689
|
+
pagination: {
|
|
1690
|
+
limit: number;
|
|
1691
|
+
offset: number;
|
|
1692
|
+
has_more: boolean;
|
|
1693
|
+
next_cursor?: PaginationCursor | null | undefined;
|
|
1694
|
+
};
|
|
1695
|
+
}>>;
|
|
1696
|
+
type Trade = z.infer<typeof TradeSchema>;
|
|
1697
|
+
type Traded = z.infer<typeof TradedSchema>;
|
|
1698
|
+
type ListTradesResponse = z.infer<typeof ListTradesResponseSchema>;
|
|
1699
|
+
type ListActivityResponse = z.infer<typeof ListActivityResponseSchema>;
|
|
1700
|
+
type ListComboActivityResponse = z.infer<typeof ListComboActivityResponseSchema>;
|
|
1701
|
+
|
|
1702
|
+
declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
1703
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1704
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1705
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1706
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1707
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1708
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1709
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1710
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1711
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1714
|
+
wallet: string | null | undefined;
|
|
1715
|
+
tokenId: TokenId | null | undefined;
|
|
1716
|
+
bio?: string | null | undefined;
|
|
1717
|
+
pseudonym?: string | null | undefined;
|
|
1718
|
+
amount?: DecimalString | null | undefined;
|
|
1719
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1720
|
+
outcomeIndex?: number | null | undefined;
|
|
1721
|
+
name?: string | null | undefined;
|
|
1722
|
+
profileImage?: string | null | undefined;
|
|
1723
|
+
profileImageOptimized?: string | null | undefined;
|
|
1724
|
+
}, {
|
|
1725
|
+
proxyWallet?: string | null | undefined;
|
|
1726
|
+
bio?: string | null | undefined;
|
|
1727
|
+
asset?: TokenId | null | undefined;
|
|
1728
|
+
pseudonym?: string | null | undefined;
|
|
1729
|
+
amount?: DecimalString | null | undefined;
|
|
1730
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1731
|
+
outcomeIndex?: number | null | undefined;
|
|
1732
|
+
name?: string | null | undefined;
|
|
1733
|
+
profileImage?: string | null | undefined;
|
|
1734
|
+
profileImageOptimized?: string | null | undefined;
|
|
1735
|
+
}>>;
|
|
1736
|
+
declare const MetaHolderSchema: z.ZodObject<{
|
|
1737
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1738
|
+
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1739
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1740
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1741
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1742
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1743
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1744
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1745
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1746
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1747
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1748
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1749
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1750
|
+
wallet: string | null | undefined;
|
|
1751
|
+
tokenId: TokenId | null | undefined;
|
|
1752
|
+
bio?: string | null | undefined;
|
|
1753
|
+
pseudonym?: string | null | undefined;
|
|
1754
|
+
amount?: DecimalString | null | undefined;
|
|
1755
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1756
|
+
outcomeIndex?: number | null | undefined;
|
|
1757
|
+
name?: string | null | undefined;
|
|
1758
|
+
profileImage?: string | null | undefined;
|
|
1759
|
+
profileImageOptimized?: string | null | undefined;
|
|
1760
|
+
}, {
|
|
1761
|
+
proxyWallet?: string | null | undefined;
|
|
1762
|
+
bio?: string | null | undefined;
|
|
1763
|
+
asset?: TokenId | null | undefined;
|
|
1764
|
+
pseudonym?: string | null | undefined;
|
|
1765
|
+
amount?: DecimalString | null | undefined;
|
|
1766
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1767
|
+
outcomeIndex?: number | null | undefined;
|
|
1768
|
+
name?: string | null | undefined;
|
|
1769
|
+
profileImage?: string | null | undefined;
|
|
1770
|
+
profileImageOptimized?: string | null | undefined;
|
|
1771
|
+
}>>>>>;
|
|
1772
|
+
}, z.core.$strip>;
|
|
1773
|
+
declare const OpenInterestSchema: z.ZodObject<{
|
|
1774
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1769
1775
|
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1770
|
-
}, z.core.$strip
|
|
1771
|
-
declare const
|
|
1776
|
+
}, z.core.$strip>;
|
|
1777
|
+
declare const MarketVolumeSchema: z.ZodObject<{
|
|
1778
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1779
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1780
|
+
}, z.core.$strip>;
|
|
1781
|
+
declare const LiveVolumeSchema: z.ZodObject<{
|
|
1782
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1783
|
+
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1784
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1785
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1786
|
+
}, z.core.$strip>>>>;
|
|
1787
|
+
}, z.core.$strip>;
|
|
1788
|
+
declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1772
1789
|
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1773
|
-
|
|
1790
|
+
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1774
1791
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1775
|
-
|
|
1776
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1777
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1792
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1778
1793
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1783
|
-
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1784
|
-
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1785
|
-
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1786
|
-
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1787
|
-
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1788
|
-
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1794
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1795
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1796
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1789
1797
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1798
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1799
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1800
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1790
1801
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1791
1802
|
wallet: string | null | undefined;
|
|
1792
1803
|
tokenId: TokenId | null | undefined;
|
|
1804
|
+
bio?: string | null | undefined;
|
|
1805
|
+
pseudonym?: string | null | undefined;
|
|
1806
|
+
amount?: DecimalString | null | undefined;
|
|
1807
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1808
|
+
outcomeIndex?: number | null | undefined;
|
|
1793
1809
|
name?: string | null | undefined;
|
|
1794
1810
|
profileImage?: string | null | undefined;
|
|
1795
|
-
|
|
1796
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
1797
|
-
avgPrice?: DecimalString | null | undefined;
|
|
1798
|
-
size?: DecimalString | null | undefined;
|
|
1799
|
-
currPrice?: DecimalString | null | undefined;
|
|
1800
|
-
currentValue?: DecimalString | null | undefined;
|
|
1801
|
-
cashPnl?: DecimalString | null | undefined;
|
|
1802
|
-
totalBought?: DecimalString | null | undefined;
|
|
1803
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1804
|
-
totalPnl?: DecimalString | null | undefined;
|
|
1805
|
-
outcome?: string | null | undefined;
|
|
1806
|
-
outcomeIndex?: number | null | undefined;
|
|
1811
|
+
profileImageOptimized?: string | null | undefined;
|
|
1807
1812
|
}, {
|
|
1808
1813
|
proxyWallet?: string | null | undefined;
|
|
1809
|
-
|
|
1810
|
-
profileImage?: string | null | undefined;
|
|
1811
|
-
verified?: boolean | null | undefined;
|
|
1814
|
+
bio?: string | null | undefined;
|
|
1812
1815
|
asset?: TokenId | null | undefined;
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
currPrice?: DecimalString | null | undefined;
|
|
1817
|
-
currentValue?: DecimalString | null | undefined;
|
|
1818
|
-
cashPnl?: DecimalString | null | undefined;
|
|
1819
|
-
totalBought?: DecimalString | null | undefined;
|
|
1820
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1821
|
-
totalPnl?: DecimalString | null | undefined;
|
|
1822
|
-
outcome?: string | null | undefined;
|
|
1816
|
+
pseudonym?: string | null | undefined;
|
|
1817
|
+
amount?: DecimalString | null | undefined;
|
|
1818
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1823
1819
|
outcomeIndex?: number | null | undefined;
|
|
1820
|
+
name?: string | null | undefined;
|
|
1821
|
+
profileImage?: string | null | undefined;
|
|
1822
|
+
profileImageOptimized?: string | null | undefined;
|
|
1824
1823
|
}>>>>>;
|
|
1825
1824
|
}, z.core.$strip>>;
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
type
|
|
1838
|
-
type
|
|
1839
|
-
type
|
|
1825
|
+
declare const ListOpenInterestResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1826
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1827
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1828
|
+
}, z.core.$strip>>;
|
|
1829
|
+
declare const FetchEventLiveVolumeResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1830
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1831
|
+
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1832
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1833
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1834
|
+
}, z.core.$strip>>>>;
|
|
1835
|
+
}, z.core.$strip>>;
|
|
1836
|
+
type Holder = z.infer<typeof HolderSchema>;
|
|
1837
|
+
type MetaHolder = z.infer<typeof MetaHolderSchema>;
|
|
1838
|
+
type OpenInterest = z.infer<typeof OpenInterestSchema>;
|
|
1839
|
+
type MarketVolume = z.infer<typeof MarketVolumeSchema>;
|
|
1840
|
+
type LiveVolume = z.infer<typeof LiveVolumeSchema>;
|
|
1841
|
+
type ListMarketHoldersResponse = z.infer<typeof ListMarketHoldersResponseSchema>;
|
|
1842
|
+
type ListOpenInterestResponse = z.infer<typeof ListOpenInterestResponseSchema>;
|
|
1843
|
+
type FetchEventLiveVolumeResponse = z.infer<typeof FetchEventLiveVolumeResponseSchema>;
|
|
1844
|
+
|
|
1845
|
+
declare const LeaderboardEntrySchema: z.ZodObject<{
|
|
1846
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1847
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1848
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1849
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1850
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1851
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1852
|
+
}, z.core.$strip>;
|
|
1853
|
+
declare const BuilderVolumeEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
1854
|
+
dt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
1855
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1856
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1857
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1858
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1859
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1860
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1861
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1862
|
+
bucketAt: IsoDateTimeString | null | undefined;
|
|
1863
|
+
builder?: string | null | undefined;
|
|
1864
|
+
builderLogo?: string | null | undefined;
|
|
1865
|
+
verified?: boolean | null | undefined;
|
|
1866
|
+
volume?: DecimalString | null | undefined;
|
|
1867
|
+
activeUsers?: number | null | undefined;
|
|
1868
|
+
rank?: string | null | undefined;
|
|
1869
|
+
}, {
|
|
1870
|
+
dt?: IsoDateTimeString | null | undefined;
|
|
1871
|
+
builder?: string | null | undefined;
|
|
1872
|
+
builderLogo?: string | null | undefined;
|
|
1873
|
+
verified?: boolean | null | undefined;
|
|
1874
|
+
volume?: DecimalString | null | undefined;
|
|
1875
|
+
activeUsers?: number | null | undefined;
|
|
1876
|
+
rank?: string | null | undefined;
|
|
1877
|
+
}>>;
|
|
1878
|
+
declare const TraderLeaderboardEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
1879
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1880
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
|
+
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
|
+
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1883
|
+
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1884
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1885
|
+
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1886
|
+
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1887
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1888
|
+
wallet: string | null | undefined;
|
|
1889
|
+
rank?: string | null | undefined;
|
|
1890
|
+
userName?: string | null | undefined;
|
|
1891
|
+
vol?: DecimalString | null | undefined;
|
|
1892
|
+
pnl?: DecimalString | null | undefined;
|
|
1893
|
+
profileImage?: string | null | undefined;
|
|
1894
|
+
xUsername?: string | null | undefined;
|
|
1895
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1896
|
+
}, {
|
|
1897
|
+
rank?: string | null | undefined;
|
|
1898
|
+
proxyWallet?: string | null | undefined;
|
|
1899
|
+
userName?: string | null | undefined;
|
|
1900
|
+
vol?: DecimalString | null | undefined;
|
|
1901
|
+
pnl?: DecimalString | null | undefined;
|
|
1902
|
+
profileImage?: string | null | undefined;
|
|
1903
|
+
xUsername?: string | null | undefined;
|
|
1904
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1905
|
+
}>>;
|
|
1906
|
+
declare const ListBuilderLeaderboardResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1907
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1908
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1909
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1910
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1911
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1912
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1913
|
+
}, z.core.$strip>>;
|
|
1914
|
+
declare const ListBuilderVolumeResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1915
|
+
dt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
1916
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1917
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1918
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1919
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1920
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1921
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1922
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1923
|
+
bucketAt: IsoDateTimeString | null | undefined;
|
|
1924
|
+
builder?: string | null | undefined;
|
|
1925
|
+
builderLogo?: string | null | undefined;
|
|
1926
|
+
verified?: boolean | null | undefined;
|
|
1927
|
+
volume?: DecimalString | null | undefined;
|
|
1928
|
+
activeUsers?: number | null | undefined;
|
|
1929
|
+
rank?: string | null | undefined;
|
|
1930
|
+
}, {
|
|
1931
|
+
dt?: IsoDateTimeString | null | undefined;
|
|
1932
|
+
builder?: string | null | undefined;
|
|
1933
|
+
builderLogo?: string | null | undefined;
|
|
1934
|
+
verified?: boolean | null | undefined;
|
|
1935
|
+
volume?: DecimalString | null | undefined;
|
|
1936
|
+
activeUsers?: number | null | undefined;
|
|
1937
|
+
rank?: string | null | undefined;
|
|
1938
|
+
}>>>;
|
|
1939
|
+
declare const ListTraderLeaderboardResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1940
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1941
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1942
|
+
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1943
|
+
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1944
|
+
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1945
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1946
|
+
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1947
|
+
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1948
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1949
|
+
wallet: string | null | undefined;
|
|
1950
|
+
rank?: string | null | undefined;
|
|
1951
|
+
userName?: string | null | undefined;
|
|
1952
|
+
vol?: DecimalString | null | undefined;
|
|
1953
|
+
pnl?: DecimalString | null | undefined;
|
|
1954
|
+
profileImage?: string | null | undefined;
|
|
1955
|
+
xUsername?: string | null | undefined;
|
|
1956
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1957
|
+
}, {
|
|
1958
|
+
rank?: string | null | undefined;
|
|
1959
|
+
proxyWallet?: string | null | undefined;
|
|
1960
|
+
userName?: string | null | undefined;
|
|
1961
|
+
vol?: DecimalString | null | undefined;
|
|
1962
|
+
pnl?: DecimalString | null | undefined;
|
|
1963
|
+
profileImage?: string | null | undefined;
|
|
1964
|
+
xUsername?: string | null | undefined;
|
|
1965
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1966
|
+
}>>>;
|
|
1967
|
+
type LeaderboardEntry = z.infer<typeof LeaderboardEntrySchema>;
|
|
1968
|
+
type BuilderVolumeEntry = z.infer<typeof BuilderVolumeEntrySchema>;
|
|
1969
|
+
type TraderLeaderboardEntry = z.infer<typeof TraderLeaderboardEntrySchema>;
|
|
1970
|
+
type ListBuilderLeaderboardResponse = z.infer<typeof ListBuilderLeaderboardResponseSchema>;
|
|
1971
|
+
type ListBuilderVolumeResponse = z.infer<typeof ListBuilderVolumeResponseSchema>;
|
|
1972
|
+
type ListTraderLeaderboardResponse = z.infer<typeof ListTraderLeaderboardResponseSchema>;
|
|
1840
1973
|
|
|
1841
|
-
export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type Address, AddressSchema, type BuilderVolumeEntry, BuilderVolumeEntrySchema, type ClobTradeActivity, type ClosedPosition, ClosedPositionSchema, type ComboPosition, type ComboPositionLeg, ComboPositionLegSchema, type ComboPositionMarket, type ComboPositionMarketEvent, ComboPositionMarketEventSchema, ComboPositionMarketSchema, ComboPositionSchema, ComboPositionStatus, ComboPositionStatusSchema, type ComboTradeActivity, type ConversionActivity, type FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type Hash64, Hash64Schema, 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 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 TimePeriod, TimePeriodSchema, type Trade, type TradeActivity, TradeSchema, type Traded, TradedSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, type Value, ValueSchema, type YieldActivity };
|
|
1974
|
+
export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type Address, AddressSchema, 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 FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type Hash64, Hash64Schema, 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 TimePeriod, TimePeriodSchema, type Trade, type TradeActivity, TradeSchema, type Traded, TradedSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, type Value, ValueSchema, type YieldActivity };
|