@polymarket/bindings 0.1.0-beta.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-H6NL6UCA.js +2 -0
- package/dist/{chunk-GYP7YNXL.js.map → chunk-H6NL6UCA.js.map} +1 -1
- package/dist/chunk-N4P2EGRL.js +2 -0
- package/dist/chunk-N4P2EGRL.js.map +1 -0
- package/dist/chunk-QTXFNR2Y.js +2 -0
- package/dist/chunk-QTXFNR2Y.js.map +1 -0
- package/dist/clob/index.d.ts +153 -54
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/{rfq.d.ts → combos/index.d.ts} +182 -43
- package/dist/combos/index.js +2 -0
- package/dist/combos/index.js.map +1 -0
- package/dist/data/index.d.ts +1049 -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 +28 -9
- package/dist/index.js +1 -1
- package/dist/{orders-B7JX0nMz.d.ts → orders-ClcuI-yo.d.ts} +448 -4
- package/dist/perps/index.d.ts +406 -12
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/subscriptions/index.d.ts +382 -86
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/chunk-GYP7YNXL.js +0 -2
- package/dist/chunk-KYFSCD3H.js +0 -2
- package/dist/chunk-KYFSCD3H.js.map +0 -1
- package/dist/chunk-VBHCYSM7.js +0 -2
- package/dist/chunk-VBHCYSM7.js.map +0 -1
- package/dist/rfq.js +0 -2
- package/dist/rfq.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,109 @@ 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
|
-
|
|
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
|
+
ResolvedPartial = "RESOLVED_PARTIAL",
|
|
56
|
+
ResolvedWin = "RESOLVED_WIN",
|
|
57
|
+
ResolvedLoss = "RESOLVED_LOSS"
|
|
58
|
+
}
|
|
59
|
+
declare const ComboPositionStatusSchema: z.ZodEnum<typeof ComboPositionStatus>;
|
|
60
|
+
declare enum ComboPositionOutcome {
|
|
61
|
+
Yes = "YES",
|
|
62
|
+
No = "NO"
|
|
63
|
+
}
|
|
64
|
+
declare const ComboPositionOutcomeSchema: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
65
|
+
declare const PositionSchema: z.ZodPipe<z.ZodObject<{
|
|
203
66
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
-
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
205
|
-
BUY: "BUY";
|
|
206
|
-
SELL: "SELL";
|
|
207
|
-
}>>>;
|
|
208
67
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
209
|
-
conditionId: z.
|
|
68
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
210
69
|
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
|
-
|
|
70
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
71
|
+
initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
72
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
73
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
74
|
+
percentPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
76
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
77
|
+
percentRealizedPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
78
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
79
|
+
redeemable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
80
|
+
mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
213
81
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
82
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
83
|
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
84
|
+
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
85
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
86
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
87
|
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>>;
|
|
88
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
90
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>>>;
|
|
91
|
+
negativeRisk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
225
92
|
}, z.core.$strip>, z.ZodTransform<{
|
|
226
93
|
wallet: string | null | undefined;
|
|
227
94
|
tokenId: TokenId | null | undefined;
|
|
228
|
-
|
|
229
|
-
conditionId
|
|
95
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
96
|
+
conditionId: CtfConditionId;
|
|
230
97
|
size?: DecimalString | null | undefined;
|
|
231
|
-
|
|
232
|
-
|
|
98
|
+
avgPrice?: DecimalString | null | undefined;
|
|
99
|
+
initialValue?: DecimalString | null | undefined;
|
|
100
|
+
currentValue?: DecimalString | null | undefined;
|
|
101
|
+
cashPnl?: DecimalString | null | undefined;
|
|
102
|
+
percentPnl?: number | null | undefined;
|
|
103
|
+
totalBought?: DecimalString | null | undefined;
|
|
104
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
105
|
+
percentRealizedPnl?: number | null | undefined;
|
|
106
|
+
curPrice?: DecimalString | null | undefined;
|
|
107
|
+
redeemable?: boolean | null | undefined;
|
|
108
|
+
mergeable?: boolean | null | undefined;
|
|
233
109
|
title?: string | null | undefined;
|
|
234
110
|
slug?: string | null | undefined;
|
|
235
111
|
icon?: string | null | undefined;
|
|
112
|
+
eventId?: string | null | undefined;
|
|
236
113
|
eventSlug?: string | null | undefined;
|
|
237
114
|
outcome?: string | null | undefined;
|
|
238
115
|
outcomeIndex?: number | null | undefined;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
profileImage?: string | null | undefined;
|
|
243
|
-
profileImageOptimized?: string | null | undefined;
|
|
244
|
-
transactionHash?: string | null | undefined;
|
|
116
|
+
oppositeOutcome?: string | null | undefined;
|
|
117
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
118
|
+
negativeRisk?: boolean | null | undefined;
|
|
245
119
|
}, {
|
|
120
|
+
conditionId: CtfConditionId;
|
|
246
121
|
proxyWallet?: string | null | undefined;
|
|
247
|
-
side?: "BUY" | "SELL" | null | undefined;
|
|
248
122
|
asset?: TokenId | null | undefined;
|
|
249
|
-
conditionId?: CtfConditionId | null | undefined;
|
|
250
123
|
size?: DecimalString | null | undefined;
|
|
251
|
-
|
|
252
|
-
|
|
124
|
+
avgPrice?: DecimalString | null | undefined;
|
|
125
|
+
initialValue?: DecimalString | null | undefined;
|
|
126
|
+
currentValue?: DecimalString | null | undefined;
|
|
127
|
+
cashPnl?: DecimalString | null | undefined;
|
|
128
|
+
percentPnl?: number | null | undefined;
|
|
129
|
+
totalBought?: DecimalString | null | undefined;
|
|
130
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
131
|
+
percentRealizedPnl?: number | null | undefined;
|
|
132
|
+
curPrice?: DecimalString | null | undefined;
|
|
133
|
+
redeemable?: boolean | null | undefined;
|
|
134
|
+
mergeable?: boolean | null | undefined;
|
|
253
135
|
title?: string | null | undefined;
|
|
254
136
|
slug?: string | null | undefined;
|
|
255
137
|
icon?: string | null | undefined;
|
|
138
|
+
eventId?: string | null | undefined;
|
|
256
139
|
eventSlug?: string | null | undefined;
|
|
257
140
|
outcome?: string | null | undefined;
|
|
258
141
|
outcomeIndex?: number | null | undefined;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
profileImageOptimized?: string | null | undefined;
|
|
264
|
-
transactionHash?: string | null | undefined;
|
|
142
|
+
oppositeOutcome?: string | null | undefined;
|
|
143
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
144
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
145
|
+
negativeRisk?: boolean | null | undefined;
|
|
265
146
|
}>>;
|
|
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<{
|
|
147
|
+
declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
272
148
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
274
|
-
BUY: "BUY";
|
|
275
|
-
SELL: "SELL";
|
|
276
|
-
}>>>;
|
|
277
149
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
278
150
|
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
279
|
-
|
|
280
|
-
|
|
151
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
152
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
153
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
154
|
+
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
155
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
282
156
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
157
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -285,19 +159,18 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
285
159
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
160
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
161
|
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>>;
|
|
162
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
164
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
294
165
|
}, z.core.$strip>, z.ZodTransform<{
|
|
295
166
|
wallet: string | null | undefined;
|
|
296
167
|
tokenId: TokenId | null | undefined;
|
|
297
|
-
|
|
168
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
298
169
|
conditionId?: CtfConditionId | null | undefined;
|
|
299
|
-
|
|
300
|
-
|
|
170
|
+
avgPrice?: DecimalString | null | undefined;
|
|
171
|
+
totalBought?: DecimalString | null | undefined;
|
|
172
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
173
|
+
curPrice?: DecimalString | null | undefined;
|
|
301
174
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
302
175
|
title?: string | null | undefined;
|
|
303
176
|
slug?: string | null | undefined;
|
|
@@ -305,19 +178,16 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
305
178
|
eventSlug?: string | null | undefined;
|
|
306
179
|
outcome?: string | null | undefined;
|
|
307
180
|
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;
|
|
181
|
+
oppositeOutcome?: string | null | undefined;
|
|
182
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
314
183
|
}, {
|
|
315
184
|
proxyWallet?: string | null | undefined;
|
|
316
|
-
side?: "BUY" | "SELL" | null | undefined;
|
|
317
185
|
asset?: TokenId | null | undefined;
|
|
318
186
|
conditionId?: CtfConditionId | null | undefined;
|
|
319
|
-
|
|
320
|
-
|
|
187
|
+
avgPrice?: DecimalString | null | undefined;
|
|
188
|
+
totalBought?: DecimalString | null | undefined;
|
|
189
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
190
|
+
curPrice?: DecimalString | null | undefined;
|
|
321
191
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
322
192
|
title?: string | null | undefined;
|
|
323
193
|
slug?: string | null | undefined;
|
|
@@ -325,610 +195,185 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
325
195
|
eventSlug?: string | null | undefined;
|
|
326
196
|
outcome?: string | null | undefined;
|
|
327
197
|
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<{
|
|
198
|
+
oppositeOutcome?: string | null | undefined;
|
|
199
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
200
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
201
|
+
}>>;
|
|
202
|
+
declare const ValueSchema: z.ZodObject<{
|
|
203
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
342
207
|
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
208
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
209
|
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
-
|
|
210
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
211
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
212
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
213
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
214
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
215
|
+
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
216
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
217
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
218
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
219
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
220
|
+
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
221
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
352
223
|
}, z.core.$strip>, z.ZodTransform<{
|
|
353
224
|
wallet: string | null | undefined;
|
|
354
225
|
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
226
|
name?: string | null | undefined;
|
|
361
227
|
profileImage?: string | null | undefined;
|
|
362
|
-
|
|
228
|
+
verified?: boolean | null | undefined;
|
|
229
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
230
|
+
avgPrice?: DecimalString | null | undefined;
|
|
231
|
+
size?: DecimalString | null | undefined;
|
|
232
|
+
currPrice?: DecimalString | null | undefined;
|
|
233
|
+
currentValue?: DecimalString | null | undefined;
|
|
234
|
+
cashPnl?: DecimalString | null | undefined;
|
|
235
|
+
totalBought?: DecimalString | null | undefined;
|
|
236
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
237
|
+
totalPnl?: DecimalString | null | undefined;
|
|
238
|
+
outcome?: string | null | undefined;
|
|
239
|
+
outcomeIndex?: number | null | undefined;
|
|
363
240
|
}, {
|
|
364
241
|
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
242
|
name?: string | null | undefined;
|
|
372
243
|
profileImage?: string | null | undefined;
|
|
373
|
-
|
|
244
|
+
verified?: boolean | null | undefined;
|
|
245
|
+
asset?: TokenId | null | undefined;
|
|
246
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
247
|
+
avgPrice?: DecimalString | null | undefined;
|
|
248
|
+
size?: DecimalString | null | undefined;
|
|
249
|
+
currPrice?: DecimalString | null | undefined;
|
|
250
|
+
currentValue?: DecimalString | null | undefined;
|
|
251
|
+
cashPnl?: DecimalString | null | undefined;
|
|
252
|
+
totalBought?: DecimalString | null | undefined;
|
|
253
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
254
|
+
totalPnl?: DecimalString | null | undefined;
|
|
255
|
+
outcome?: string | null | undefined;
|
|
256
|
+
outcomeIndex?: number | null | undefined;
|
|
374
257
|
}>>;
|
|
375
|
-
declare const
|
|
258
|
+
declare const MetaMarketPositionSchema: z.ZodObject<{
|
|
376
259
|
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
-
|
|
260
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
378
261
|
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
262
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
263
|
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>>;
|
|
264
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
432
265
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
266
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
267
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
268
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
269
|
+
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
270
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
271
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
272
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
273
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
274
|
+
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
275
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
276
|
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
277
|
}, z.core.$strip>, z.ZodTransform<{
|
|
441
278
|
wallet: string | null | undefined;
|
|
442
279
|
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
280
|
name?: string | null | undefined;
|
|
449
281
|
profileImage?: string | null | undefined;
|
|
450
|
-
|
|
282
|
+
verified?: boolean | null | undefined;
|
|
283
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
284
|
+
avgPrice?: DecimalString | null | undefined;
|
|
285
|
+
size?: DecimalString | null | undefined;
|
|
286
|
+
currPrice?: DecimalString | null | undefined;
|
|
287
|
+
currentValue?: DecimalString | null | undefined;
|
|
288
|
+
cashPnl?: DecimalString | null | undefined;
|
|
289
|
+
totalBought?: DecimalString | null | undefined;
|
|
290
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
291
|
+
totalPnl?: DecimalString | null | undefined;
|
|
292
|
+
outcome?: string | null | undefined;
|
|
293
|
+
outcomeIndex?: number | null | undefined;
|
|
451
294
|
}, {
|
|
452
295
|
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
296
|
name?: string | null | undefined;
|
|
460
297
|
profileImage?: string | null | undefined;
|
|
461
|
-
|
|
298
|
+
verified?: boolean | null | undefined;
|
|
299
|
+
asset?: TokenId | null | undefined;
|
|
300
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
301
|
+
avgPrice?: DecimalString | null | undefined;
|
|
302
|
+
size?: DecimalString | null | undefined;
|
|
303
|
+
currPrice?: DecimalString | null | undefined;
|
|
304
|
+
currentValue?: DecimalString | null | undefined;
|
|
305
|
+
cashPnl?: DecimalString | null | undefined;
|
|
306
|
+
totalBought?: DecimalString | null | undefined;
|
|
307
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
308
|
+
totalPnl?: DecimalString | null | undefined;
|
|
309
|
+
outcome?: string | null | undefined;
|
|
310
|
+
outcomeIndex?: number | null | undefined;
|
|
462
311
|
}>>>>>;
|
|
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
312
|
}, 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>>;
|
|
313
|
+
declare const ComboPositionMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
314
|
+
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
+
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
+
event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
318
|
}, 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;
|
|
319
|
+
eventId: string | null | undefined;
|
|
320
|
+
eventSlug: string | null | undefined;
|
|
321
|
+
eventTitle: string | null | undefined;
|
|
322
|
+
eventImage: string | null | undefined;
|
|
535
323
|
}, {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
pnl?: DecimalString | null | undefined;
|
|
541
|
-
profileImage?: string | null | undefined;
|
|
542
|
-
xUsername?: string | null | undefined;
|
|
543
|
-
verifiedBadge?: boolean | null | undefined;
|
|
324
|
+
event_id?: string | null | undefined;
|
|
325
|
+
event_slug?: string | null | undefined;
|
|
326
|
+
event_title?: string | null | undefined;
|
|
327
|
+
event_image?: string | null | undefined;
|
|
544
328
|
}>>;
|
|
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>>;
|
|
329
|
+
declare const ComboPositionMarketSchema: z.ZodPipe<z.ZodObject<{
|
|
330
|
+
market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
637
331
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
-
|
|
639
|
-
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
|
-
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
333
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
334
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
339
|
+
end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
340
|
+
event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
341
|
+
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
346
|
+
eventId: string | null | undefined;
|
|
347
|
+
eventSlug: string | null | undefined;
|
|
348
|
+
eventTitle: string | null | undefined;
|
|
349
|
+
eventImage: string | null | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
event_id?: string | null | undefined;
|
|
352
|
+
event_slug?: string | null | undefined;
|
|
353
|
+
event_title?: string | null | undefined;
|
|
354
|
+
event_image?: string | null | undefined;
|
|
355
|
+
}>>>>;
|
|
647
356
|
}, 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;
|
|
357
|
+
marketId: string | null | undefined;
|
|
358
|
+
imageUrl: string | null | undefined;
|
|
359
|
+
iconUrl: string | null | undefined;
|
|
360
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
665
361
|
slug?: string | null | undefined;
|
|
666
|
-
|
|
667
|
-
eventId?: string | null | undefined;
|
|
668
|
-
eventSlug?: string | null | undefined;
|
|
362
|
+
title?: string | null | undefined;
|
|
669
363
|
outcome?: string | null | undefined;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
364
|
+
category?: string | null | undefined;
|
|
365
|
+
subcategory?: string | null | undefined;
|
|
366
|
+
tags?: string[] | null | undefined;
|
|
367
|
+
event?: {
|
|
368
|
+
eventId: string | null | undefined;
|
|
369
|
+
eventSlug: string | null | undefined;
|
|
370
|
+
eventTitle: string | null | undefined;
|
|
371
|
+
eventImage: string | null | undefined;
|
|
372
|
+
} | null | undefined;
|
|
674
373
|
}, {
|
|
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;
|
|
374
|
+
market_id?: string | null | undefined;
|
|
691
375
|
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;
|
|
376
|
+
title?: string | null | undefined;
|
|
932
377
|
outcome?: string | null | undefined;
|
|
933
378
|
image_url?: string | null | undefined;
|
|
934
379
|
icon_url?: string | null | undefined;
|
|
@@ -1072,14 +517,19 @@ declare const ComboPositionLegSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1072
517
|
declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
1073
518
|
combo_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
1074
519
|
combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
520
|
+
side: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
1075
521
|
module_id: z.ZodNumber;
|
|
1076
522
|
user_address: z.ZodString;
|
|
1077
523
|
shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1078
524
|
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
525
|
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>>]>>>;
|
|
526
|
+
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>>]>>>;
|
|
527
|
+
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
528
|
status: z.ZodEnum<typeof ComboPositionStatus>;
|
|
529
|
+
redeemable: z.ZodBoolean;
|
|
1081
530
|
first_entry_at: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
|
|
1082
531
|
resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
532
|
+
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>;
|
|
1083
533
|
legs_total: z.ZodNumber;
|
|
1084
534
|
legs_resolved: z.ZodNumber;
|
|
1085
535
|
legs_pending: z.ZodNumber;
|
|
@@ -1212,17 +662,22 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1212
662
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1213
663
|
conditionId: ComboConditionId;
|
|
1214
664
|
positionId: PositionId;
|
|
665
|
+
outcome: ComboPositionOutcome;
|
|
1215
666
|
moduleId: number;
|
|
1216
|
-
|
|
667
|
+
wallet: string;
|
|
1217
668
|
shares: DecimalString;
|
|
1218
669
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1219
670
|
entryCostUsdc: DecimalString | null | undefined;
|
|
671
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
672
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1220
673
|
firstEntryAt: IsoDateTimeString;
|
|
1221
674
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
675
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1222
676
|
legsTotal: number;
|
|
1223
677
|
legsResolved: number;
|
|
1224
678
|
legsPending: number;
|
|
1225
679
|
status: ComboPositionStatus;
|
|
680
|
+
redeemable: boolean;
|
|
1226
681
|
legs: {
|
|
1227
682
|
legIndex: number;
|
|
1228
683
|
legPositionId: PositionId;
|
|
@@ -1254,10 +709,12 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1254
709
|
}, {
|
|
1255
710
|
combo_condition_id: ComboConditionId;
|
|
1256
711
|
combo_position_id: PositionId;
|
|
712
|
+
side: ComboPositionOutcome;
|
|
1257
713
|
module_id: number;
|
|
1258
714
|
user_address: string;
|
|
1259
715
|
shares_balance: DecimalString;
|
|
1260
716
|
status: ComboPositionStatus;
|
|
717
|
+
redeemable: boolean;
|
|
1261
718
|
first_entry_at: IsoDateTimeString;
|
|
1262
719
|
legs_total: number;
|
|
1263
720
|
legs_resolved: number;
|
|
@@ -1292,20 +749,28 @@ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1292
749
|
}[];
|
|
1293
750
|
entry_avg_price_usdc?: DecimalString | null | undefined;
|
|
1294
751
|
entry_cost_usdc?: DecimalString | null | undefined;
|
|
752
|
+
realized_payout_usdc?: DecimalString | null | undefined;
|
|
753
|
+
total_cost_usdc?: DecimalString | null | undefined;
|
|
1295
754
|
resolved_at?: IsoDateTimeString | null | undefined;
|
|
755
|
+
updated_at?: IsoDateTimeString | undefined;
|
|
1296
756
|
}>>;
|
|
1297
757
|
declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1298
758
|
combos: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1299
759
|
combo_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
1300
760
|
combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
761
|
+
side: z.ZodEnum<typeof ComboPositionOutcome>;
|
|
1301
762
|
module_id: z.ZodNumber;
|
|
1302
763
|
user_address: z.ZodString;
|
|
1303
764
|
shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1304
765
|
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
766
|
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>>]>>>;
|
|
767
|
+
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>>]>>>;
|
|
768
|
+
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
769
|
status: z.ZodEnum<typeof ComboPositionStatus>;
|
|
770
|
+
redeemable: z.ZodBoolean;
|
|
1307
771
|
first_entry_at: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
|
|
1308
772
|
resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
773
|
+
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>;
|
|
1309
774
|
legs_total: z.ZodNumber;
|
|
1310
775
|
legs_resolved: z.ZodNumber;
|
|
1311
776
|
legs_pending: z.ZodNumber;
|
|
@@ -1438,17 +903,22 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1438
903
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1439
904
|
conditionId: ComboConditionId;
|
|
1440
905
|
positionId: PositionId;
|
|
906
|
+
outcome: ComboPositionOutcome;
|
|
1441
907
|
moduleId: number;
|
|
1442
|
-
|
|
908
|
+
wallet: string;
|
|
1443
909
|
shares: DecimalString;
|
|
1444
910
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1445
911
|
entryCostUsdc: DecimalString | null | undefined;
|
|
912
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
913
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1446
914
|
firstEntryAt: IsoDateTimeString;
|
|
1447
915
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
916
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1448
917
|
legsTotal: number;
|
|
1449
918
|
legsResolved: number;
|
|
1450
919
|
legsPending: number;
|
|
1451
920
|
status: ComboPositionStatus;
|
|
921
|
+
redeemable: boolean;
|
|
1452
922
|
legs: {
|
|
1453
923
|
legIndex: number;
|
|
1454
924
|
legPositionId: PositionId;
|
|
@@ -1480,10 +950,12 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1480
950
|
}, {
|
|
1481
951
|
combo_condition_id: ComboConditionId;
|
|
1482
952
|
combo_position_id: PositionId;
|
|
953
|
+
side: ComboPositionOutcome;
|
|
1483
954
|
module_id: number;
|
|
1484
955
|
user_address: string;
|
|
1485
956
|
shares_balance: DecimalString;
|
|
1486
957
|
status: ComboPositionStatus;
|
|
958
|
+
redeemable: boolean;
|
|
1487
959
|
first_entry_at: IsoDateTimeString;
|
|
1488
960
|
legs_total: number;
|
|
1489
961
|
legs_resolved: number;
|
|
@@ -1518,7 +990,10 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1518
990
|
}[];
|
|
1519
991
|
entry_avg_price_usdc?: DecimalString | null | undefined;
|
|
1520
992
|
entry_cost_usdc?: DecimalString | null | undefined;
|
|
993
|
+
realized_payout_usdc?: DecimalString | null | undefined;
|
|
994
|
+
total_cost_usdc?: DecimalString | null | undefined;
|
|
1521
995
|
resolved_at?: IsoDateTimeString | null | undefined;
|
|
996
|
+
updated_at?: IsoDateTimeString | undefined;
|
|
1522
997
|
}>>>;
|
|
1523
998
|
pagination: z.ZodObject<{
|
|
1524
999
|
limit: z.ZodNumber;
|
|
@@ -1536,17 +1011,22 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1536
1011
|
combos: {
|
|
1537
1012
|
conditionId: ComboConditionId;
|
|
1538
1013
|
positionId: PositionId;
|
|
1014
|
+
outcome: ComboPositionOutcome;
|
|
1539
1015
|
moduleId: number;
|
|
1540
|
-
|
|
1016
|
+
wallet: string;
|
|
1541
1017
|
shares: DecimalString;
|
|
1542
1018
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1543
1019
|
entryCostUsdc: DecimalString | null | undefined;
|
|
1020
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
1021
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1544
1022
|
firstEntryAt: IsoDateTimeString;
|
|
1545
1023
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
1024
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1546
1025
|
legsTotal: number;
|
|
1547
1026
|
legsResolved: number;
|
|
1548
1027
|
legsPending: number;
|
|
1549
1028
|
status: ComboPositionStatus;
|
|
1029
|
+
redeemable: boolean;
|
|
1550
1030
|
legs: {
|
|
1551
1031
|
legIndex: number;
|
|
1552
1032
|
legPositionId: PositionId;
|
|
@@ -1580,17 +1060,22 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1580
1060
|
combos: {
|
|
1581
1061
|
conditionId: ComboConditionId;
|
|
1582
1062
|
positionId: PositionId;
|
|
1063
|
+
outcome: ComboPositionOutcome;
|
|
1583
1064
|
moduleId: number;
|
|
1584
|
-
|
|
1065
|
+
wallet: string;
|
|
1585
1066
|
shares: DecimalString;
|
|
1586
1067
|
entryAvgPriceUsdc: DecimalString | null | undefined;
|
|
1587
1068
|
entryCostUsdc: DecimalString | null | undefined;
|
|
1069
|
+
realizedPayoutUsdc: DecimalString | null | undefined;
|
|
1070
|
+
totalCostUsdc: DecimalString | null | undefined;
|
|
1588
1071
|
firstEntryAt: IsoDateTimeString;
|
|
1589
1072
|
resolvedAt: IsoDateTimeString | null | undefined;
|
|
1073
|
+
updatedAt: IsoDateTimeString | undefined;
|
|
1590
1074
|
legsTotal: number;
|
|
1591
1075
|
legsResolved: number;
|
|
1592
1076
|
legsPending: number;
|
|
1593
1077
|
status: ComboPositionStatus;
|
|
1078
|
+
redeemable: boolean;
|
|
1594
1079
|
legs: {
|
|
1595
1080
|
legIndex: number;
|
|
1596
1081
|
legPositionId: PositionId;
|
|
@@ -1630,93 +1115,505 @@ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1630
1115
|
declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1631
1116
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1632
1117
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1633
|
-
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1118
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1119
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1120
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1121
|
+
initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1122
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1123
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1124
|
+
percentPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1125
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1126
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1127
|
+
percentRealizedPnl: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1128
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1129
|
+
redeemable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1130
|
+
mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1131
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1132
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1133
|
+
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1134
|
+
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1136
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1137
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1138
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1139
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1140
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>>>;
|
|
1141
|
+
negativeRisk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1142
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1143
|
+
wallet: string | null | undefined;
|
|
1144
|
+
tokenId: TokenId | null | undefined;
|
|
1145
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
1146
|
+
conditionId: CtfConditionId;
|
|
1147
|
+
size?: DecimalString | null | undefined;
|
|
1148
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1149
|
+
initialValue?: DecimalString | null | undefined;
|
|
1150
|
+
currentValue?: DecimalString | null | undefined;
|
|
1151
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1152
|
+
percentPnl?: number | null | undefined;
|
|
1153
|
+
totalBought?: DecimalString | null | undefined;
|
|
1154
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1155
|
+
percentRealizedPnl?: number | null | undefined;
|
|
1156
|
+
curPrice?: DecimalString | null | undefined;
|
|
1157
|
+
redeemable?: boolean | null | undefined;
|
|
1158
|
+
mergeable?: boolean | null | undefined;
|
|
1159
|
+
title?: string | null | undefined;
|
|
1160
|
+
slug?: string | null | undefined;
|
|
1161
|
+
icon?: string | null | undefined;
|
|
1162
|
+
eventId?: string | null | undefined;
|
|
1163
|
+
eventSlug?: string | null | undefined;
|
|
1164
|
+
outcome?: string | null | undefined;
|
|
1165
|
+
outcomeIndex?: number | null | undefined;
|
|
1166
|
+
oppositeOutcome?: string | null | undefined;
|
|
1167
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
1168
|
+
negativeRisk?: boolean | null | undefined;
|
|
1169
|
+
}, {
|
|
1170
|
+
conditionId: CtfConditionId;
|
|
1171
|
+
proxyWallet?: string | null | undefined;
|
|
1172
|
+
asset?: TokenId | null | undefined;
|
|
1173
|
+
size?: DecimalString | null | undefined;
|
|
1174
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1175
|
+
initialValue?: DecimalString | null | undefined;
|
|
1176
|
+
currentValue?: DecimalString | null | undefined;
|
|
1177
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1178
|
+
percentPnl?: number | null | undefined;
|
|
1179
|
+
totalBought?: DecimalString | null | undefined;
|
|
1180
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1181
|
+
percentRealizedPnl?: number | null | undefined;
|
|
1182
|
+
curPrice?: DecimalString | null | undefined;
|
|
1183
|
+
redeemable?: boolean | null | undefined;
|
|
1184
|
+
mergeable?: boolean | null | undefined;
|
|
1185
|
+
title?: string | null | undefined;
|
|
1186
|
+
slug?: string | null | undefined;
|
|
1187
|
+
icon?: string | null | undefined;
|
|
1188
|
+
eventId?: string | null | undefined;
|
|
1189
|
+
eventSlug?: string | null | undefined;
|
|
1190
|
+
outcome?: string | null | undefined;
|
|
1191
|
+
outcomeIndex?: number | null | undefined;
|
|
1192
|
+
oppositeOutcome?: string | null | undefined;
|
|
1193
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
1194
|
+
endDate?: IsoCalendarDateString | null | undefined;
|
|
1195
|
+
negativeRisk?: boolean | null | undefined;
|
|
1196
|
+
}>>>;
|
|
1197
|
+
declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1198
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1199
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1200
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1201
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1202
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1203
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1204
|
+
curPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1205
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
1206
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
|
+
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1209
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1210
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1211
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1212
|
+
oppositeOutcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1213
|
+
oppositeAsset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1214
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
|
|
1215
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1216
|
+
wallet: string | null | undefined;
|
|
1217
|
+
tokenId: TokenId | null | undefined;
|
|
1218
|
+
oppositeTokenId: TokenId | null | undefined;
|
|
1219
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1220
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1221
|
+
totalBought?: DecimalString | null | undefined;
|
|
1222
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1223
|
+
curPrice?: DecimalString | null | undefined;
|
|
1224
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1225
|
+
title?: string | null | undefined;
|
|
1226
|
+
slug?: string | null | undefined;
|
|
1227
|
+
icon?: string | null | undefined;
|
|
1228
|
+
eventSlug?: string | null | undefined;
|
|
1229
|
+
outcome?: string | null | undefined;
|
|
1230
|
+
outcomeIndex?: number | null | undefined;
|
|
1231
|
+
oppositeOutcome?: string | null | undefined;
|
|
1232
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
1233
|
+
}, {
|
|
1234
|
+
proxyWallet?: string | null | undefined;
|
|
1235
|
+
asset?: TokenId | null | undefined;
|
|
1236
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1237
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1238
|
+
totalBought?: DecimalString | null | undefined;
|
|
1239
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1240
|
+
curPrice?: DecimalString | null | undefined;
|
|
1241
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1242
|
+
title?: string | null | undefined;
|
|
1243
|
+
slug?: string | null | undefined;
|
|
1244
|
+
icon?: string | null | undefined;
|
|
1245
|
+
eventSlug?: string | null | undefined;
|
|
1246
|
+
outcome?: string | null | undefined;
|
|
1247
|
+
outcomeIndex?: number | null | undefined;
|
|
1248
|
+
oppositeOutcome?: string | null | undefined;
|
|
1249
|
+
oppositeAsset?: TokenId | null | undefined;
|
|
1250
|
+
endDate?: MixedDateTimeString | null | undefined;
|
|
1251
|
+
}>>>;
|
|
1252
|
+
declare const FetchPortfolioValueResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1253
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1254
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1255
|
+
}, z.core.$strip>>;
|
|
1256
|
+
declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1257
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1258
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1259
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1260
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1261
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1262
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1263
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1264
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1265
|
+
avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1266
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1267
|
+
currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1268
|
+
currentValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1269
|
+
cashPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1270
|
+
totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1271
|
+
realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1272
|
+
totalPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1273
|
+
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1274
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1275
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1276
|
+
wallet: string | null | undefined;
|
|
1277
|
+
tokenId: TokenId | null | undefined;
|
|
1278
|
+
name?: string | null | undefined;
|
|
1279
|
+
profileImage?: string | null | undefined;
|
|
1280
|
+
verified?: boolean | null | undefined;
|
|
1281
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1282
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1283
|
+
size?: DecimalString | null | undefined;
|
|
1284
|
+
currPrice?: DecimalString | null | undefined;
|
|
1285
|
+
currentValue?: DecimalString | null | undefined;
|
|
1286
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1287
|
+
totalBought?: DecimalString | null | undefined;
|
|
1288
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1289
|
+
totalPnl?: DecimalString | null | undefined;
|
|
1290
|
+
outcome?: string | null | undefined;
|
|
1291
|
+
outcomeIndex?: number | null | undefined;
|
|
1292
|
+
}, {
|
|
1293
|
+
proxyWallet?: string | null | undefined;
|
|
1294
|
+
name?: string | null | undefined;
|
|
1295
|
+
profileImage?: string | null | undefined;
|
|
1296
|
+
verified?: boolean | null | undefined;
|
|
1297
|
+
asset?: TokenId | null | undefined;
|
|
1298
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1299
|
+
avgPrice?: DecimalString | null | undefined;
|
|
1300
|
+
size?: DecimalString | null | undefined;
|
|
1301
|
+
currPrice?: DecimalString | null | undefined;
|
|
1302
|
+
currentValue?: DecimalString | null | undefined;
|
|
1303
|
+
cashPnl?: DecimalString | null | undefined;
|
|
1304
|
+
totalBought?: DecimalString | null | undefined;
|
|
1305
|
+
realizedPnl?: DecimalString | null | undefined;
|
|
1306
|
+
totalPnl?: DecimalString | null | undefined;
|
|
1307
|
+
outcome?: string | null | undefined;
|
|
1308
|
+
outcomeIndex?: number | null | undefined;
|
|
1309
|
+
}>>>>>;
|
|
1310
|
+
}, z.core.$strip>>;
|
|
1311
|
+
type Position = z.infer<typeof PositionSchema>;
|
|
1312
|
+
type ClosedPosition = z.infer<typeof ClosedPositionSchema>;
|
|
1313
|
+
type Value = z.infer<typeof ValueSchema>;
|
|
1314
|
+
type MarketPosition = z.infer<typeof MarketPositionSchema>;
|
|
1315
|
+
type MetaMarketPosition = z.infer<typeof MetaMarketPositionSchema>;
|
|
1316
|
+
type ComboPositionMarketEvent = z.infer<typeof ComboPositionMarketEventSchema>;
|
|
1317
|
+
type ComboPositionMarket = z.infer<typeof ComboPositionMarketSchema>;
|
|
1318
|
+
type ComboPositionLeg = z.infer<typeof ComboPositionLegSchema>;
|
|
1319
|
+
type ComboPosition = z.infer<typeof ComboPositionSchema>;
|
|
1320
|
+
type ListPositionsResponse = z.infer<typeof ListPositionsResponseSchema>;
|
|
1321
|
+
type ListClosedPositionsResponse = z.infer<typeof ListClosedPositionsResponseSchema>;
|
|
1322
|
+
type FetchPortfolioValueResponse = z.infer<typeof FetchPortfolioValueResponseSchema>;
|
|
1323
|
+
type ListMarketPositionsResponse = z.infer<typeof ListMarketPositionsResponseSchema>;
|
|
1324
|
+
type ListComboPositionsResponse = z.infer<typeof ListComboPositionsResponseSchema>;
|
|
1325
|
+
|
|
1326
|
+
declare enum ComboActivityType {
|
|
1327
|
+
Split = "SPLIT",
|
|
1328
|
+
Merge = "MERGE",
|
|
1329
|
+
Convert = "CONVERT",
|
|
1330
|
+
Compress = "COMPRESS",
|
|
1331
|
+
Wrap = "WRAP",
|
|
1332
|
+
Unwrap = "UNWRAP",
|
|
1333
|
+
Redeem = "REDEEM"
|
|
1334
|
+
}
|
|
1335
|
+
type ActivityBase = {
|
|
1336
|
+
/** Wallet address whose account history contains this activity. */
|
|
1337
|
+
wallet: Address;
|
|
1338
|
+
/** Activity time as Unix epoch milliseconds. */
|
|
1339
|
+
timestamp: EpochMilliseconds;
|
|
1340
|
+
/** Polygon transaction hash that produced or records this activity. */
|
|
1341
|
+
transactionHash: TxHash;
|
|
1342
|
+
/** Display name of the wallet owner at the time returned by the API. */
|
|
1343
|
+
name: string | null;
|
|
1344
|
+
/** Public pseudonym of the wallet owner at the time returned by the API. */
|
|
1345
|
+
pseudonym: string | null;
|
|
1346
|
+
/** Profile biography of the wallet owner at the time returned by the API. */
|
|
1347
|
+
bio: string | null;
|
|
1348
|
+
/** Source profile image URL for the wallet owner. */
|
|
1349
|
+
profileImage: string | null;
|
|
1350
|
+
/** Optimized profile image URL for the wallet owner. */
|
|
1351
|
+
profileImageOptimized: string | null;
|
|
1352
|
+
};
|
|
1353
|
+
type TradeActivityBase = ActivityBase & {
|
|
1354
|
+
/** A directional outcome-token trade. */
|
|
1355
|
+
type: ActivityType.TRADE;
|
|
1356
|
+
/** Whether this trade is for a Combo position instead of a binary market token. */
|
|
1357
|
+
isCombo: boolean;
|
|
1358
|
+
/** Direction of the wallet's trade. */
|
|
1359
|
+
side: Side;
|
|
1360
|
+
/** Number of shares traded by the wallet. */
|
|
1361
|
+
shares: DecimalString;
|
|
1362
|
+
/** The notional value of the traded shares in USD. */
|
|
1363
|
+
amount: DecimalString;
|
|
1364
|
+
/** The execution price per share in USD. */
|
|
1365
|
+
price: DecimalString;
|
|
1366
|
+
/** Human-readable title of the traded market or Combo. */
|
|
1367
|
+
title: string;
|
|
1368
|
+
/** Icon URL for the traded market or Combo, when available. */
|
|
1369
|
+
icon: string | null;
|
|
1370
|
+
};
|
|
1371
|
+
type ClobTradeActivity = TradeActivityBase & {
|
|
1372
|
+
/** CLOB market trades are binary market outcome-token trades. */
|
|
1373
|
+
isCombo: false;
|
|
1374
|
+
/** Condition id of the market traded by the wallet. */
|
|
1375
|
+
conditionId: CtfConditionId;
|
|
1376
|
+
/** Outcome token id bought or sold by the wallet. */
|
|
1377
|
+
tokenId: TokenId;
|
|
1378
|
+
/** Display label of the outcome token traded by the wallet. */
|
|
1379
|
+
outcome: string;
|
|
1380
|
+
/** Zero-based index of the outcome token in the market's outcome list. */
|
|
1381
|
+
outcomeIndex: number;
|
|
1382
|
+
/** URL slug of the market traded by the wallet. */
|
|
1383
|
+
slug: string;
|
|
1384
|
+
/** URL slug of the event containing the traded market. */
|
|
1385
|
+
eventSlug: string;
|
|
1386
|
+
};
|
|
1387
|
+
type ComboTradeActivity = TradeActivityBase & {
|
|
1388
|
+
/** Combo trades are protocol v2 Combo position trades. */
|
|
1389
|
+
isCombo: true;
|
|
1390
|
+
/** Combo condition id traded by the wallet. */
|
|
1391
|
+
conditionId: ComboConditionId;
|
|
1392
|
+
/** Combo position id bought or sold by the wallet. */
|
|
1393
|
+
positionId: PositionId;
|
|
1394
|
+
};
|
|
1395
|
+
type TradeActivity = ClobTradeActivity | ComboTradeActivity;
|
|
1396
|
+
type SplitActivity = ActivityBase & {
|
|
1397
|
+
/** Splitting collateral into a complete market set. */
|
|
1398
|
+
type: 'SPLIT';
|
|
1399
|
+
/** Condition id of the market whose complete set was created. */
|
|
1400
|
+
conditionId: CtfConditionId;
|
|
1401
|
+
/** The collateral amount split into the complete set in USD. */
|
|
1402
|
+
amount: DecimalString;
|
|
1403
|
+
/** Human-readable title of the market whose complete set was created. */
|
|
1404
|
+
title: string;
|
|
1405
|
+
/** URL slug of the market whose complete set was created. */
|
|
1406
|
+
slug: string;
|
|
1407
|
+
/** Icon URL for the market whose complete set was created, when available. */
|
|
1408
|
+
icon: string | null;
|
|
1409
|
+
/** URL slug of the event containing the split market. */
|
|
1410
|
+
eventSlug: string;
|
|
1411
|
+
};
|
|
1412
|
+
type MergeActivity = ActivityBase & {
|
|
1413
|
+
/** Merging a complete market set into collateral. */
|
|
1414
|
+
type: 'MERGE';
|
|
1415
|
+
/** Condition id of the market whose complete set was merged. */
|
|
1416
|
+
conditionId: CtfConditionId;
|
|
1417
|
+
/** The collateral amount received from merging the complete set in USD. */
|
|
1418
|
+
amount: DecimalString;
|
|
1419
|
+
/** Human-readable title of the market whose complete set was merged. */
|
|
1420
|
+
title: string;
|
|
1421
|
+
/** URL slug of the market whose complete set was merged. */
|
|
1422
|
+
slug: string;
|
|
1423
|
+
/** Icon URL for the market whose complete set was merged, when available. */
|
|
1424
|
+
icon: string | null;
|
|
1425
|
+
/** URL slug of the event containing the merged market. */
|
|
1426
|
+
eventSlug: string;
|
|
1427
|
+
};
|
|
1428
|
+
type RedeemActivity = ActivityBase & {
|
|
1429
|
+
/** Redeeming resolved market proceeds. */
|
|
1430
|
+
type: 'REDEEM';
|
|
1431
|
+
/** Condition id of the market redeemed by the wallet. */
|
|
1432
|
+
conditionId: CtfConditionId;
|
|
1433
|
+
/** The proceeds redeemed from the resolved market in USD. */
|
|
1434
|
+
amount: DecimalString;
|
|
1435
|
+
/** Human-readable title of the market redeemed by the wallet. */
|
|
1436
|
+
title: string;
|
|
1437
|
+
/** URL slug of the market redeemed by the wallet. */
|
|
1438
|
+
slug: string;
|
|
1439
|
+
/** Icon URL for the market redeemed by the wallet, when available. */
|
|
1440
|
+
icon: string | null;
|
|
1441
|
+
/** URL slug of the event containing the redeemed market. */
|
|
1442
|
+
eventSlug: string;
|
|
1443
|
+
};
|
|
1444
|
+
type ConversionActivity = ActivityBase & {
|
|
1445
|
+
/** A market conversion or migration activity. */
|
|
1446
|
+
type: 'CONVERSION';
|
|
1447
|
+
/** Condition id of the market involved in the conversion. */
|
|
1448
|
+
conditionId: CtfConditionId;
|
|
1449
|
+
/** The amount converted or migrated for the market in USD. */
|
|
1450
|
+
amount: DecimalString;
|
|
1451
|
+
/** Human-readable title of the market involved in the conversion. */
|
|
1452
|
+
title: string;
|
|
1453
|
+
/** URL slug of the market involved in the conversion. */
|
|
1454
|
+
slug: string;
|
|
1455
|
+
/** Icon URL for the market involved in the conversion, when available. */
|
|
1456
|
+
icon: string | null;
|
|
1457
|
+
/** URL slug of the event containing the converted market. */
|
|
1458
|
+
eventSlug: string;
|
|
1459
|
+
};
|
|
1460
|
+
type RewardActivity = ActivityBase & {
|
|
1461
|
+
/** An account-level reward credit. */
|
|
1462
|
+
type: 'REWARD';
|
|
1463
|
+
/** The reward amount credited to the wallet in USD. */
|
|
1464
|
+
amount: DecimalString;
|
|
1465
|
+
};
|
|
1466
|
+
type MakerRebateActivity = ActivityBase & {
|
|
1467
|
+
/** An account-level maker rebate credit. */
|
|
1468
|
+
type: 'MAKER_REBATE';
|
|
1469
|
+
/** The maker rebate amount credited to the wallet in USD. */
|
|
1470
|
+
amount: DecimalString;
|
|
1471
|
+
};
|
|
1472
|
+
type ReferralRewardActivity = ActivityBase & {
|
|
1473
|
+
/** An account-level referral reward credit. */
|
|
1474
|
+
type: 'REFERRAL_REWARD';
|
|
1475
|
+
/** The referral reward amount credited to the wallet in USD. */
|
|
1476
|
+
amount: DecimalString;
|
|
1477
|
+
};
|
|
1478
|
+
type YieldActivity = ActivityBase & {
|
|
1479
|
+
/** An account-level yield credit. */
|
|
1480
|
+
type: 'YIELD';
|
|
1481
|
+
/** The yield amount credited to the wallet in USD. */
|
|
1482
|
+
amount: DecimalString;
|
|
1483
|
+
};
|
|
1484
|
+
type Activity = TradeActivity | SplitActivity | MergeActivity | RedeemActivity | ConversionActivity | RewardActivity | MakerRebateActivity | ReferralRewardActivity | YieldActivity;
|
|
1485
|
+
type ComboActivityBase = {
|
|
1486
|
+
/** Stable row id derived from the transaction hash and log index. */
|
|
1487
|
+
id: ComboActivityId;
|
|
1488
|
+
/** Normalized lifecycle activity type. */
|
|
1489
|
+
type: ComboActivityType;
|
|
1490
|
+
/** Wallet address whose account history contains this activity. */
|
|
1491
|
+
wallet: Address;
|
|
1492
|
+
/** Combo condition id involved in this activity. */
|
|
1493
|
+
conditionId: ComboConditionId;
|
|
1494
|
+
/** Combo module id. */
|
|
1495
|
+
moduleId: number;
|
|
1496
|
+
/** Amount associated with the lifecycle event in USD. */
|
|
1497
|
+
amount: DecimalString | null;
|
|
1498
|
+
/** Activity time as Unix epoch milliseconds. */
|
|
1499
|
+
timestamp: EpochMilliseconds;
|
|
1500
|
+
/** Activity transaction time as an ISO date-time string. */
|
|
1501
|
+
transactionAt: IsoDateTimeString;
|
|
1502
|
+
/** Polygon transaction hash that produced this activity. */
|
|
1503
|
+
transactionHash: TxHash;
|
|
1504
|
+
/** Log index within the transaction. */
|
|
1505
|
+
logIndex: number;
|
|
1506
|
+
/** Polygon block number. */
|
|
1507
|
+
blockNumber: number;
|
|
1508
|
+
/** Combo legs enriched with market metadata at read time. */
|
|
1509
|
+
legs: ComboPositionLeg[];
|
|
1510
|
+
};
|
|
1511
|
+
type ComboSplitActivity = ComboActivityBase & {
|
|
1512
|
+
type: ComboActivityType.Split;
|
|
1513
|
+
};
|
|
1514
|
+
type ComboMergeActivity = ComboActivityBase & {
|
|
1515
|
+
type: ComboActivityType.Merge;
|
|
1516
|
+
};
|
|
1517
|
+
type ComboConvertActivity = ComboActivityBase & {
|
|
1518
|
+
type: ComboActivityType.Convert;
|
|
1519
|
+
};
|
|
1520
|
+
type ComboCompressActivity = ComboActivityBase & {
|
|
1521
|
+
type: ComboActivityType.Compress;
|
|
1522
|
+
};
|
|
1523
|
+
type ComboWrapActivity = ComboActivityBase & {
|
|
1524
|
+
type: ComboActivityType.Wrap;
|
|
1525
|
+
};
|
|
1526
|
+
type ComboUnwrapActivity = ComboActivityBase & {
|
|
1527
|
+
type: ComboActivityType.Unwrap;
|
|
1528
|
+
};
|
|
1529
|
+
type ComboRedeemActivity = ComboActivityBase & {
|
|
1530
|
+
type: ComboActivityType.Redeem;
|
|
1531
|
+
/** Redeemed Combo position id. Only redeem rows carry a source position id. */
|
|
1532
|
+
positionId: PositionId;
|
|
1533
|
+
/** Payout from the redemption in USD. Only redeem rows carry payout semantics. */
|
|
1534
|
+
payout: DecimalString | null;
|
|
1535
|
+
};
|
|
1536
|
+
type ComboActivity = ComboSplitActivity | ComboMergeActivity | ComboConvertActivity | ComboCompressActivity | ComboWrapActivity | ComboUnwrapActivity | ComboRedeemActivity;
|
|
1537
|
+
declare const ComboActivitySchema: z.ZodType<ComboActivity>;
|
|
1538
|
+
declare const TradeSchema: z.ZodPipe<z.ZodObject<{
|
|
1539
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1540
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1541
|
+
BUY: "BUY";
|
|
1542
|
+
SELL: "SELL";
|
|
1543
|
+
}>>>;
|
|
1544
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1545
|
+
conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
1634
1546
|
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>>;
|
|
1547
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1548
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
1646
1549
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1647
1550
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1648
1551
|
icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1649
|
-
eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1650
1552
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1651
1553
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1652
1554
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1555
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1556
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1557
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1558
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1559
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1560
|
+
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1657
1561
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1658
1562
|
wallet: string | null | undefined;
|
|
1659
1563
|
tokenId: TokenId | null | undefined;
|
|
1660
|
-
|
|
1661
|
-
conditionId
|
|
1564
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1565
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1662
1566
|
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;
|
|
1567
|
+
price?: DecimalString | null | undefined;
|
|
1568
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1674
1569
|
title?: string | null | undefined;
|
|
1675
1570
|
slug?: string | null | undefined;
|
|
1676
1571
|
icon?: string | null | undefined;
|
|
1677
|
-
eventId?: string | null | undefined;
|
|
1678
1572
|
eventSlug?: string | null | undefined;
|
|
1679
1573
|
outcome?: string | null | undefined;
|
|
1680
1574
|
outcomeIndex?: number | null | undefined;
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1575
|
+
name?: string | null | undefined;
|
|
1576
|
+
pseudonym?: string | null | undefined;
|
|
1577
|
+
bio?: string | null | undefined;
|
|
1578
|
+
profileImage?: string | null | undefined;
|
|
1579
|
+
profileImageOptimized?: string | null | undefined;
|
|
1580
|
+
transactionHash?: string | null | undefined;
|
|
1684
1581
|
}, {
|
|
1685
|
-
conditionId: CtfConditionId;
|
|
1686
1582
|
proxyWallet?: string | null | undefined;
|
|
1583
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1687
1584
|
asset?: TokenId | null | undefined;
|
|
1585
|
+
conditionId?: CtfConditionId | null | undefined;
|
|
1688
1586
|
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;
|
|
1587
|
+
price?: DecimalString | null | undefined;
|
|
1588
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1700
1589
|
title?: string | null | undefined;
|
|
1701
1590
|
slug?: string | null | undefined;
|
|
1702
1591
|
icon?: string | null | undefined;
|
|
1703
|
-
eventId?: string | null | undefined;
|
|
1704
1592
|
eventSlug?: string | null | undefined;
|
|
1705
1593
|
outcome?: string | null | undefined;
|
|
1706
1594
|
outcomeIndex?: number | null | undefined;
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1595
|
+
name?: string | null | undefined;
|
|
1596
|
+
pseudonym?: string | null | undefined;
|
|
1597
|
+
bio?: string | null | undefined;
|
|
1598
|
+
profileImage?: string | null | undefined;
|
|
1599
|
+
profileImageOptimized?: string | null | undefined;
|
|
1600
|
+
transactionHash?: string | null | undefined;
|
|
1601
|
+
}>>;
|
|
1602
|
+
declare const ActivitySchema: z.ZodType<Activity>;
|
|
1603
|
+
declare const TradedSchema: z.ZodObject<{
|
|
1604
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1605
|
+
traded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1606
|
+
}, z.core.$strip>;
|
|
1607
|
+
declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1713
1608
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1609
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1610
|
+
BUY: "BUY";
|
|
1611
|
+
SELL: "SELL";
|
|
1612
|
+
}>>>;
|
|
1714
1613
|
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1715
1614
|
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>>]>>>;
|
|
1615
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1616
|
+
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
1617
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
|
|
1721
1618
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1722
1619
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1724,18 +1621,19 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1724
1621
|
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1725
1622
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1726
1623
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1624
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1625
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1626
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1627
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1628
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1629
|
+
transactionHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1730
1630
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1731
1631
|
wallet: string | null | undefined;
|
|
1732
1632
|
tokenId: TokenId | null | undefined;
|
|
1733
|
-
|
|
1633
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1734
1634
|
conditionId?: CtfConditionId | null | undefined;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1738
|
-
curPrice?: DecimalString | null | undefined;
|
|
1635
|
+
size?: DecimalString | null | undefined;
|
|
1636
|
+
price?: DecimalString | null | undefined;
|
|
1739
1637
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1740
1638
|
title?: string | null | undefined;
|
|
1741
1639
|
slug?: string | null | undefined;
|
|
@@ -1743,16 +1641,19 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1743
1641
|
eventSlug?: string | null | undefined;
|
|
1744
1642
|
outcome?: string | null | undefined;
|
|
1745
1643
|
outcomeIndex?: number | null | undefined;
|
|
1746
|
-
|
|
1747
|
-
|
|
1644
|
+
name?: string | null | undefined;
|
|
1645
|
+
pseudonym?: string | null | undefined;
|
|
1646
|
+
bio?: string | null | undefined;
|
|
1647
|
+
profileImage?: string | null | undefined;
|
|
1648
|
+
profileImageOptimized?: string | null | undefined;
|
|
1649
|
+
transactionHash?: string | null | undefined;
|
|
1748
1650
|
}, {
|
|
1749
1651
|
proxyWallet?: string | null | undefined;
|
|
1652
|
+
side?: "BUY" | "SELL" | null | undefined;
|
|
1750
1653
|
asset?: TokenId | null | undefined;
|
|
1751
1654
|
conditionId?: CtfConditionId | null | undefined;
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
realizedPnl?: DecimalString | null | undefined;
|
|
1755
|
-
curPrice?: DecimalString | null | undefined;
|
|
1655
|
+
size?: DecimalString | null | undefined;
|
|
1656
|
+
price?: DecimalString | null | undefined;
|
|
1756
1657
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1757
1658
|
title?: string | null | undefined;
|
|
1758
1659
|
slug?: string | null | undefined;
|
|
@@ -1760,82 +1661,315 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
|
|
|
1760
1661
|
eventSlug?: string | null | undefined;
|
|
1761
1662
|
outcome?: string | null | undefined;
|
|
1762
1663
|
outcomeIndex?: number | null | undefined;
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1664
|
+
name?: string | null | undefined;
|
|
1665
|
+
pseudonym?: string | null | undefined;
|
|
1666
|
+
bio?: string | null | undefined;
|
|
1667
|
+
profileImage?: string | null | undefined;
|
|
1668
|
+
profileImageOptimized?: string | null | undefined;
|
|
1669
|
+
transactionHash?: string | null | undefined;
|
|
1766
1670
|
}>>>;
|
|
1767
|
-
declare const
|
|
1768
|
-
|
|
1671
|
+
declare const ListActivityResponseSchema: z.ZodArray<z.ZodType<Activity, unknown, z.core.$ZodTypeInternals<Activity, unknown>>>;
|
|
1672
|
+
declare const ListComboActivityResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1673
|
+
activity: z.ZodArray<z.ZodType<ComboActivity, unknown, z.core.$ZodTypeInternals<ComboActivity, unknown>>>;
|
|
1674
|
+
pagination: z.ZodObject<{
|
|
1675
|
+
limit: z.ZodNumber;
|
|
1676
|
+
offset: z.ZodNumber;
|
|
1677
|
+
has_more: z.ZodBoolean;
|
|
1678
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodCustom<PaginationCursor, PaginationCursor>>>;
|
|
1679
|
+
}, z.core.$strip>;
|
|
1680
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1681
|
+
pagination: {
|
|
1682
|
+
limit: number;
|
|
1683
|
+
offset: number;
|
|
1684
|
+
hasMore: boolean;
|
|
1685
|
+
nextCursor: PaginationCursor | null | undefined;
|
|
1686
|
+
};
|
|
1687
|
+
activity: ComboActivity[];
|
|
1688
|
+
}, {
|
|
1689
|
+
activity: ComboActivity[];
|
|
1690
|
+
pagination: {
|
|
1691
|
+
limit: number;
|
|
1692
|
+
offset: number;
|
|
1693
|
+
has_more: boolean;
|
|
1694
|
+
next_cursor?: PaginationCursor | null | undefined;
|
|
1695
|
+
};
|
|
1696
|
+
}>>;
|
|
1697
|
+
type Trade = z.infer<typeof TradeSchema>;
|
|
1698
|
+
type Traded = z.infer<typeof TradedSchema>;
|
|
1699
|
+
type ListTradesResponse = z.infer<typeof ListTradesResponseSchema>;
|
|
1700
|
+
type ListActivityResponse = z.infer<typeof ListActivityResponseSchema>;
|
|
1701
|
+
type ListComboActivityResponse = z.infer<typeof ListComboActivityResponseSchema>;
|
|
1702
|
+
|
|
1703
|
+
declare const HolderSchema: z.ZodPipe<z.ZodObject<{
|
|
1704
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1705
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1706
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1707
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1708
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1709
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1710
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1711
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1714
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1715
|
+
wallet: string | null | undefined;
|
|
1716
|
+
tokenId: TokenId | null | undefined;
|
|
1717
|
+
bio?: string | null | undefined;
|
|
1718
|
+
pseudonym?: string | null | undefined;
|
|
1719
|
+
amount?: DecimalString | null | undefined;
|
|
1720
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1721
|
+
outcomeIndex?: number | null | undefined;
|
|
1722
|
+
name?: string | null | undefined;
|
|
1723
|
+
profileImage?: string | null | undefined;
|
|
1724
|
+
profileImageOptimized?: string | null | undefined;
|
|
1725
|
+
}, {
|
|
1726
|
+
proxyWallet?: string | null | undefined;
|
|
1727
|
+
bio?: string | null | undefined;
|
|
1728
|
+
asset?: TokenId | null | undefined;
|
|
1729
|
+
pseudonym?: string | null | undefined;
|
|
1730
|
+
amount?: DecimalString | null | undefined;
|
|
1731
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1732
|
+
outcomeIndex?: number | null | undefined;
|
|
1733
|
+
name?: string | null | undefined;
|
|
1734
|
+
profileImage?: string | null | undefined;
|
|
1735
|
+
profileImageOptimized?: string | null | undefined;
|
|
1736
|
+
}>>;
|
|
1737
|
+
declare const MetaHolderSchema: z.ZodObject<{
|
|
1738
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1739
|
+
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1740
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1741
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1742
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
1743
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1744
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1745
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1746
|
+
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1747
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1748
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1749
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1750
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1751
|
+
wallet: string | null | undefined;
|
|
1752
|
+
tokenId: TokenId | null | undefined;
|
|
1753
|
+
bio?: string | null | undefined;
|
|
1754
|
+
pseudonym?: string | null | undefined;
|
|
1755
|
+
amount?: DecimalString | null | undefined;
|
|
1756
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1757
|
+
outcomeIndex?: number | null | undefined;
|
|
1758
|
+
name?: string | null | undefined;
|
|
1759
|
+
profileImage?: string | null | undefined;
|
|
1760
|
+
profileImageOptimized?: string | null | undefined;
|
|
1761
|
+
}, {
|
|
1762
|
+
proxyWallet?: string | null | undefined;
|
|
1763
|
+
bio?: string | null | undefined;
|
|
1764
|
+
asset?: TokenId | null | undefined;
|
|
1765
|
+
pseudonym?: string | null | undefined;
|
|
1766
|
+
amount?: DecimalString | null | undefined;
|
|
1767
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1768
|
+
outcomeIndex?: number | null | undefined;
|
|
1769
|
+
name?: string | null | undefined;
|
|
1770
|
+
profileImage?: string | null | undefined;
|
|
1771
|
+
profileImageOptimized?: string | null | undefined;
|
|
1772
|
+
}>>>>>;
|
|
1773
|
+
}, z.core.$strip>;
|
|
1774
|
+
declare const OpenInterestSchema: z.ZodObject<{
|
|
1775
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1769
1776
|
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
|
|
1777
|
+
}, z.core.$strip>;
|
|
1778
|
+
declare const MarketVolumeSchema: z.ZodObject<{
|
|
1779
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1780
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1781
|
+
}, z.core.$strip>;
|
|
1782
|
+
declare const LiveVolumeSchema: z.ZodObject<{
|
|
1783
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1784
|
+
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1785
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1786
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1787
|
+
}, z.core.$strip>>>>;
|
|
1788
|
+
}, z.core.$strip>;
|
|
1789
|
+
declare const ListMarketHoldersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1772
1790
|
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1773
|
-
|
|
1791
|
+
holders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1774
1792
|
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1775
|
-
|
|
1776
|
-
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1777
|
-
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1793
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1778
1794
|
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>>;
|
|
1795
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1796
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1797
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1789
1798
|
outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1799
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1800
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1801
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1790
1802
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1791
1803
|
wallet: string | null | undefined;
|
|
1792
1804
|
tokenId: TokenId | null | undefined;
|
|
1805
|
+
bio?: string | null | undefined;
|
|
1806
|
+
pseudonym?: string | null | undefined;
|
|
1807
|
+
amount?: DecimalString | null | undefined;
|
|
1808
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1809
|
+
outcomeIndex?: number | null | undefined;
|
|
1793
1810
|
name?: string | null | undefined;
|
|
1794
1811
|
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;
|
|
1812
|
+
profileImageOptimized?: string | null | undefined;
|
|
1807
1813
|
}, {
|
|
1808
1814
|
proxyWallet?: string | null | undefined;
|
|
1809
|
-
|
|
1810
|
-
profileImage?: string | null | undefined;
|
|
1811
|
-
verified?: boolean | null | undefined;
|
|
1815
|
+
bio?: string | null | undefined;
|
|
1812
1816
|
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;
|
|
1817
|
+
pseudonym?: string | null | undefined;
|
|
1818
|
+
amount?: DecimalString | null | undefined;
|
|
1819
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
1823
1820
|
outcomeIndex?: number | null | undefined;
|
|
1821
|
+
name?: string | null | undefined;
|
|
1822
|
+
profileImage?: string | null | undefined;
|
|
1823
|
+
profileImageOptimized?: string | null | undefined;
|
|
1824
1824
|
}>>>>>;
|
|
1825
1825
|
}, z.core.$strip>>;
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
type
|
|
1838
|
-
type
|
|
1839
|
-
type
|
|
1826
|
+
declare const ListOpenInterestResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1827
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1828
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1829
|
+
}, z.core.$strip>>;
|
|
1830
|
+
declare const FetchEventLiveVolumeResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1831
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1832
|
+
markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1833
|
+
market: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1834
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1835
|
+
}, z.core.$strip>>>>;
|
|
1836
|
+
}, z.core.$strip>>;
|
|
1837
|
+
type Holder = z.infer<typeof HolderSchema>;
|
|
1838
|
+
type MetaHolder = z.infer<typeof MetaHolderSchema>;
|
|
1839
|
+
type OpenInterest = z.infer<typeof OpenInterestSchema>;
|
|
1840
|
+
type MarketVolume = z.infer<typeof MarketVolumeSchema>;
|
|
1841
|
+
type LiveVolume = z.infer<typeof LiveVolumeSchema>;
|
|
1842
|
+
type ListMarketHoldersResponse = z.infer<typeof ListMarketHoldersResponseSchema>;
|
|
1843
|
+
type ListOpenInterestResponse = z.infer<typeof ListOpenInterestResponseSchema>;
|
|
1844
|
+
type FetchEventLiveVolumeResponse = z.infer<typeof FetchEventLiveVolumeResponseSchema>;
|
|
1845
|
+
|
|
1846
|
+
declare const LeaderboardEntrySchema: z.ZodObject<{
|
|
1847
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1848
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1849
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1850
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1851
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1852
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1853
|
+
}, z.core.$strip>;
|
|
1854
|
+
declare const BuilderVolumeEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
1855
|
+
dt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
1856
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1857
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1858
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1859
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1860
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1861
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1862
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1863
|
+
bucketAt: IsoDateTimeString | null | undefined;
|
|
1864
|
+
builder?: string | null | undefined;
|
|
1865
|
+
builderLogo?: string | null | undefined;
|
|
1866
|
+
verified?: boolean | null | undefined;
|
|
1867
|
+
volume?: DecimalString | null | undefined;
|
|
1868
|
+
activeUsers?: number | null | undefined;
|
|
1869
|
+
rank?: string | null | undefined;
|
|
1870
|
+
}, {
|
|
1871
|
+
dt?: IsoDateTimeString | null | undefined;
|
|
1872
|
+
builder?: string | null | undefined;
|
|
1873
|
+
builderLogo?: string | null | undefined;
|
|
1874
|
+
verified?: boolean | null | undefined;
|
|
1875
|
+
volume?: DecimalString | null | undefined;
|
|
1876
|
+
activeUsers?: number | null | undefined;
|
|
1877
|
+
rank?: string | null | undefined;
|
|
1878
|
+
}>>;
|
|
1879
|
+
declare const TraderLeaderboardEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
1880
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
|
+
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1883
|
+
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1884
|
+
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1885
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1886
|
+
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1887
|
+
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1888
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1889
|
+
wallet: string | null | undefined;
|
|
1890
|
+
rank?: string | null | undefined;
|
|
1891
|
+
userName?: string | null | undefined;
|
|
1892
|
+
vol?: DecimalString | null | undefined;
|
|
1893
|
+
pnl?: DecimalString | null | undefined;
|
|
1894
|
+
profileImage?: string | null | undefined;
|
|
1895
|
+
xUsername?: string | null | undefined;
|
|
1896
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1897
|
+
}, {
|
|
1898
|
+
rank?: string | null | undefined;
|
|
1899
|
+
proxyWallet?: string | null | undefined;
|
|
1900
|
+
userName?: string | null | undefined;
|
|
1901
|
+
vol?: DecimalString | null | undefined;
|
|
1902
|
+
pnl?: DecimalString | null | undefined;
|
|
1903
|
+
profileImage?: string | null | undefined;
|
|
1904
|
+
xUsername?: string | null | undefined;
|
|
1905
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1906
|
+
}>>;
|
|
1907
|
+
declare const ListBuilderLeaderboardResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1908
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1909
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1910
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1911
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1912
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1913
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1914
|
+
}, z.core.$strip>>;
|
|
1915
|
+
declare const ListBuilderVolumeResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1916
|
+
dt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
1917
|
+
builder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1918
|
+
builderLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1919
|
+
verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1920
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1921
|
+
activeUsers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1922
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1923
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1924
|
+
bucketAt: IsoDateTimeString | null | undefined;
|
|
1925
|
+
builder?: string | null | undefined;
|
|
1926
|
+
builderLogo?: string | null | undefined;
|
|
1927
|
+
verified?: boolean | null | undefined;
|
|
1928
|
+
volume?: DecimalString | null | undefined;
|
|
1929
|
+
activeUsers?: number | null | undefined;
|
|
1930
|
+
rank?: string | null | undefined;
|
|
1931
|
+
}, {
|
|
1932
|
+
dt?: IsoDateTimeString | null | undefined;
|
|
1933
|
+
builder?: string | null | undefined;
|
|
1934
|
+
builderLogo?: string | null | undefined;
|
|
1935
|
+
verified?: boolean | null | undefined;
|
|
1936
|
+
volume?: DecimalString | null | undefined;
|
|
1937
|
+
activeUsers?: number | null | undefined;
|
|
1938
|
+
rank?: string | null | undefined;
|
|
1939
|
+
}>>>;
|
|
1940
|
+
declare const ListTraderLeaderboardResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1941
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1942
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1943
|
+
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1944
|
+
vol: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1945
|
+
pnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
|
|
1946
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1947
|
+
xUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1948
|
+
verifiedBadge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1949
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1950
|
+
wallet: string | null | undefined;
|
|
1951
|
+
rank?: string | null | undefined;
|
|
1952
|
+
userName?: string | null | undefined;
|
|
1953
|
+
vol?: DecimalString | null | undefined;
|
|
1954
|
+
pnl?: DecimalString | null | undefined;
|
|
1955
|
+
profileImage?: string | null | undefined;
|
|
1956
|
+
xUsername?: string | null | undefined;
|
|
1957
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1958
|
+
}, {
|
|
1959
|
+
rank?: string | null | undefined;
|
|
1960
|
+
proxyWallet?: string | null | undefined;
|
|
1961
|
+
userName?: string | null | undefined;
|
|
1962
|
+
vol?: DecimalString | null | undefined;
|
|
1963
|
+
pnl?: DecimalString | null | undefined;
|
|
1964
|
+
profileImage?: string | null | undefined;
|
|
1965
|
+
xUsername?: string | null | undefined;
|
|
1966
|
+
verifiedBadge?: boolean | null | undefined;
|
|
1967
|
+
}>>>;
|
|
1968
|
+
type LeaderboardEntry = z.infer<typeof LeaderboardEntrySchema>;
|
|
1969
|
+
type BuilderVolumeEntry = z.infer<typeof BuilderVolumeEntrySchema>;
|
|
1970
|
+
type TraderLeaderboardEntry = z.infer<typeof TraderLeaderboardEntrySchema>;
|
|
1971
|
+
type ListBuilderLeaderboardResponse = z.infer<typeof ListBuilderLeaderboardResponseSchema>;
|
|
1972
|
+
type ListBuilderVolumeResponse = z.infer<typeof ListBuilderVolumeResponseSchema>;
|
|
1973
|
+
type ListTraderLeaderboardResponse = z.infer<typeof ListTraderLeaderboardResponseSchema>;
|
|
1840
1974
|
|
|
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 };
|
|
1975
|
+
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 };
|