@apicity/polymarket 0.5.4 → 0.6.1
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/README.md +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/zod.d.ts +194 -526
- package/dist/src/zod.d.ts.map +1 -1
- package/dist/src/zod.js.map +1 -1
- package/package.json +2 -2
package/dist/src/zod.d.ts
CHANGED
|
@@ -32,161 +32,102 @@ export declare const PolymarketOptionsSchema: z.ZodObject<{
|
|
|
32
32
|
clobApiKey: z.ZodOptional<z.ZodString>;
|
|
33
33
|
clobApiSecret: z.ZodOptional<z.ZodString>;
|
|
34
34
|
clobApiPassphrase: z.ZodOptional<z.ZodString>;
|
|
35
|
-
clobApiCredentials: z.ZodOptional<z.
|
|
36
|
-
clobL1Headers: z.ZodOptional<z.
|
|
37
|
-
clobL2HeaderSigner: z.ZodOptional<z.
|
|
35
|
+
clobApiCredentials: z.ZodOptional<z.ZodCustom<PolymarketClobApiCredentials, PolymarketClobApiCredentials>>;
|
|
36
|
+
clobL1Headers: z.ZodOptional<z.ZodCustom<PolymarketClobL1Headers, PolymarketClobL1Headers>>;
|
|
37
|
+
clobL2HeaderSigner: z.ZodOptional<z.ZodCustom<PolymarketClobL2HeaderSigner, PolymarketClobL2HeaderSigner>>;
|
|
38
38
|
clobPrivateKey: z.ZodOptional<z.ZodString>;
|
|
39
39
|
clobFunderAddress: z.ZodOptional<z.ZodString>;
|
|
40
|
-
clobSignatureType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
40
|
+
clobSignatureType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
41
41
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
fetch: z.ZodOptional<z.
|
|
43
|
-
},
|
|
44
|
-
gammaBaseURL?: string | undefined;
|
|
45
|
-
dataBaseURL?: string | undefined;
|
|
46
|
-
clobBaseURL?: string | undefined;
|
|
47
|
-
clobAddress?: string | undefined;
|
|
48
|
-
clobApiKey?: string | undefined;
|
|
49
|
-
clobApiSecret?: string | undefined;
|
|
50
|
-
clobApiPassphrase?: string | undefined;
|
|
51
|
-
clobApiCredentials?: PolymarketClobApiCredentials | undefined;
|
|
52
|
-
clobL1Headers?: PolymarketClobL1Headers | undefined;
|
|
53
|
-
clobL2HeaderSigner?: PolymarketClobL2HeaderSigner | undefined;
|
|
54
|
-
clobPrivateKey?: string | undefined;
|
|
55
|
-
clobFunderAddress?: string | undefined;
|
|
56
|
-
clobSignatureType?: 0 | 1 | 2 | 3 | undefined;
|
|
57
|
-
timeout?: number | undefined;
|
|
58
|
-
fetch?: typeof fetch | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
gammaBaseURL?: string | undefined;
|
|
61
|
-
dataBaseURL?: string | undefined;
|
|
62
|
-
clobBaseURL?: string | undefined;
|
|
63
|
-
clobAddress?: string | undefined;
|
|
64
|
-
clobApiKey?: string | undefined;
|
|
65
|
-
clobApiSecret?: string | undefined;
|
|
66
|
-
clobApiPassphrase?: string | undefined;
|
|
67
|
-
clobApiCredentials?: PolymarketClobApiCredentials | undefined;
|
|
68
|
-
clobL1Headers?: PolymarketClobL1Headers | undefined;
|
|
69
|
-
clobL2HeaderSigner?: PolymarketClobL2HeaderSigner | undefined;
|
|
70
|
-
clobPrivateKey?: string | undefined;
|
|
71
|
-
clobFunderAddress?: string | undefined;
|
|
72
|
-
clobSignatureType?: 0 | 1 | 2 | 3 | undefined;
|
|
73
|
-
timeout?: number | undefined;
|
|
74
|
-
fetch?: typeof fetch | undefined;
|
|
75
|
-
}>;
|
|
42
|
+
fetch: z.ZodOptional<z.ZodCustom<typeof fetch, typeof fetch>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
76
44
|
export type PolymarketOptions = z.infer<typeof PolymarketOptionsSchema>;
|
|
77
|
-
export declare const PolymarketClobSideSchema: z.ZodEnum<
|
|
45
|
+
export declare const PolymarketClobSideSchema: z.ZodEnum<{
|
|
46
|
+
BUY: "BUY";
|
|
47
|
+
SELL: "SELL";
|
|
48
|
+
}>;
|
|
78
49
|
export declare const PolymarketClobTokenBatchRequestSchema: z.ZodArray<z.ZodObject<{
|
|
79
50
|
token_id: z.ZodString;
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}>, "many">;
|
|
85
|
-
export type PolymarketClobTokenBatchRequest = z.infer<typeof PolymarketClobTokenBatchRequestSchema>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
export type PolymarketClobTokenBatchRequest = z.input<typeof PolymarketClobTokenBatchRequestSchema>;
|
|
53
|
+
export type PolymarketClobTokenBatchRequestInput = PolymarketClobTokenBatchRequest;
|
|
54
|
+
export type PolymarketClobTokenBatchParsedRequest = z.output<typeof PolymarketClobTokenBatchRequestSchema>;
|
|
86
55
|
export declare const PolymarketClobPricesBatchRequestSchema: z.ZodArray<z.ZodObject<{
|
|
87
56
|
token_id: z.ZodString;
|
|
88
|
-
side: z.ZodEnum<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
export
|
|
97
|
-
|
|
57
|
+
side: z.ZodEnum<{
|
|
58
|
+
BUY: "BUY";
|
|
59
|
+
SELL: "SELL";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
export type PolymarketClobPricesBatchRequest = z.input<typeof PolymarketClobPricesBatchRequestSchema>;
|
|
63
|
+
export type PolymarketClobPricesBatchRequestInput = PolymarketClobPricesBatchRequest;
|
|
64
|
+
export type PolymarketClobPricesBatchParsedRequest = z.output<typeof PolymarketClobPricesBatchRequestSchema>;
|
|
65
|
+
export declare const PolymarketClobPriceHistoryIntervalSchema: z.ZodEnum<{
|
|
66
|
+
"1m": "1m";
|
|
67
|
+
"1h": "1h";
|
|
68
|
+
"6h": "6h";
|
|
69
|
+
"1d": "1d";
|
|
70
|
+
"1w": "1w";
|
|
71
|
+
max: "max";
|
|
72
|
+
}>;
|
|
98
73
|
export declare const PolymarketClobBatchPricesHistoryRequestSchema: z.ZodObject<{
|
|
99
|
-
markets: z.ZodArray<z.ZodString
|
|
100
|
-
interval: z.ZodOptional<z.ZodEnum<
|
|
74
|
+
markets: z.ZodArray<z.ZodString>;
|
|
75
|
+
interval: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
"1m": "1m";
|
|
77
|
+
"1h": "1h";
|
|
78
|
+
"6h": "6h";
|
|
79
|
+
"1d": "1d";
|
|
80
|
+
"1w": "1w";
|
|
81
|
+
max: "max";
|
|
82
|
+
}>>;
|
|
101
83
|
startTs: z.ZodOptional<z.ZodNumber>;
|
|
102
84
|
endTs: z.ZodOptional<z.ZodNumber>;
|
|
103
85
|
fidelity: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
endTs?: number | undefined;
|
|
109
|
-
fidelity?: number | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
markets: string[];
|
|
112
|
-
interval?: "1m" | "1h" | "6h" | "1d" | "1w" | "max" | undefined;
|
|
113
|
-
startTs?: number | undefined;
|
|
114
|
-
endTs?: number | undefined;
|
|
115
|
-
fidelity?: number | undefined;
|
|
116
|
-
}>;
|
|
117
|
-
export type PolymarketClobBatchPricesHistoryRequest = z.infer<typeof PolymarketClobBatchPricesHistoryRequestSchema>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type PolymarketClobBatchPricesHistoryRequest = z.input<typeof PolymarketClobBatchPricesHistoryRequestSchema>;
|
|
88
|
+
export type PolymarketClobBatchPricesHistoryRequestInput = PolymarketClobBatchPricesHistoryRequest;
|
|
89
|
+
export type PolymarketClobBatchPricesHistoryParsedRequest = z.output<typeof PolymarketClobBatchPricesHistoryRequestSchema>;
|
|
118
90
|
export declare const PolymarketClobTokenIdsQuerySchema: z.ZodObject<{
|
|
119
|
-
token_ids: z.ZodArray<z.ZodString
|
|
120
|
-
},
|
|
121
|
-
token_ids: string[];
|
|
122
|
-
}, {
|
|
123
|
-
token_ids: string[];
|
|
124
|
-
}>;
|
|
91
|
+
token_ids: z.ZodArray<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
125
93
|
export type PolymarketClobTokenIdsQuery = z.infer<typeof PolymarketClobTokenIdsQuerySchema>;
|
|
126
|
-
export declare const PolymarketClobPricesQuerySchema: z.
|
|
127
|
-
token_ids: z.ZodArray<z.ZodString
|
|
128
|
-
sides: z.ZodArray<z.ZodEnum<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
token_ids: string[];
|
|
134
|
-
sides: ("BUY" | "SELL")[];
|
|
135
|
-
}>, {
|
|
136
|
-
token_ids: string[];
|
|
137
|
-
sides: ("BUY" | "SELL")[];
|
|
138
|
-
}, {
|
|
139
|
-
token_ids: string[];
|
|
140
|
-
sides: ("BUY" | "SELL")[];
|
|
141
|
-
}>;
|
|
94
|
+
export declare const PolymarketClobPricesQuerySchema: z.ZodObject<{
|
|
95
|
+
token_ids: z.ZodArray<z.ZodString>;
|
|
96
|
+
sides: z.ZodArray<z.ZodEnum<{
|
|
97
|
+
BUY: "BUY";
|
|
98
|
+
SELL: "SELL";
|
|
99
|
+
}>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
142
101
|
export type PolymarketClobPricesQuery = z.infer<typeof PolymarketClobPricesQuerySchema>;
|
|
143
|
-
export declare const PolymarketClobLiveActivityRequestSchema: z.ZodArray<z.ZodString
|
|
144
|
-
export type PolymarketClobLiveActivityRequest = z.
|
|
145
|
-
export
|
|
146
|
-
export
|
|
102
|
+
export declare const PolymarketClobLiveActivityRequestSchema: z.ZodArray<z.ZodString>;
|
|
103
|
+
export type PolymarketClobLiveActivityRequest = z.input<typeof PolymarketClobLiveActivityRequestSchema>;
|
|
104
|
+
export type PolymarketClobLiveActivityRequestInput = PolymarketClobLiveActivityRequest;
|
|
105
|
+
export type PolymarketClobLiveActivityParsedRequest = z.output<typeof PolymarketClobLiveActivityRequestSchema>;
|
|
106
|
+
export declare const PolymarketClobSignatureTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
107
|
+
export declare const PolymarketClobOrderTypeSchema: z.ZodEnum<{
|
|
108
|
+
GTC: "GTC";
|
|
109
|
+
FOK: "FOK";
|
|
110
|
+
GTD: "GTD";
|
|
111
|
+
FAK: "FAK";
|
|
112
|
+
}>;
|
|
147
113
|
export declare const PolymarketClobSignedOrderSchema: z.ZodObject<{
|
|
148
114
|
maker: z.ZodString;
|
|
149
115
|
signer: z.ZodString;
|
|
150
116
|
tokenId: z.ZodString;
|
|
151
117
|
makerAmount: z.ZodString;
|
|
152
118
|
takerAmount: z.ZodString;
|
|
153
|
-
side: z.ZodEnum<
|
|
119
|
+
side: z.ZodEnum<{
|
|
120
|
+
BUY: "BUY";
|
|
121
|
+
SELL: "SELL";
|
|
122
|
+
}>;
|
|
154
123
|
expiration: z.ZodString;
|
|
155
124
|
timestamp: z.ZodString;
|
|
156
125
|
metadata: z.ZodOptional<z.ZodString>;
|
|
157
126
|
builder: z.ZodString;
|
|
158
127
|
signature: z.ZodString;
|
|
159
128
|
salt: z.ZodNumber;
|
|
160
|
-
signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
161
|
-
},
|
|
162
|
-
side: "BUY" | "SELL";
|
|
163
|
-
maker: string;
|
|
164
|
-
signer: string;
|
|
165
|
-
tokenId: string;
|
|
166
|
-
makerAmount: string;
|
|
167
|
-
takerAmount: string;
|
|
168
|
-
expiration: string;
|
|
169
|
-
timestamp: string;
|
|
170
|
-
builder: string;
|
|
171
|
-
signature: string;
|
|
172
|
-
salt: number;
|
|
173
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
174
|
-
metadata?: string | undefined;
|
|
175
|
-
}, {
|
|
176
|
-
side: "BUY" | "SELL";
|
|
177
|
-
maker: string;
|
|
178
|
-
signer: string;
|
|
179
|
-
tokenId: string;
|
|
180
|
-
makerAmount: string;
|
|
181
|
-
takerAmount: string;
|
|
182
|
-
expiration: string;
|
|
183
|
-
timestamp: string;
|
|
184
|
-
builder: string;
|
|
185
|
-
signature: string;
|
|
186
|
-
salt: number;
|
|
187
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
188
|
-
metadata?: string | undefined;
|
|
189
|
-
}>;
|
|
129
|
+
signatureType: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
130
|
+
}, z.core.$strip>;
|
|
190
131
|
export type PolymarketClobSignedOrder = z.infer<typeof PolymarketClobSignedOrderSchema>;
|
|
191
132
|
export declare const PolymarketClobPostOrderRequestSchema: z.ZodObject<{
|
|
192
133
|
order: z.ZodObject<{
|
|
@@ -195,112 +136,48 @@ export declare const PolymarketClobPostOrderRequestSchema: z.ZodObject<{
|
|
|
195
136
|
tokenId: z.ZodString;
|
|
196
137
|
makerAmount: z.ZodString;
|
|
197
138
|
takerAmount: z.ZodString;
|
|
198
|
-
side: z.ZodEnum<
|
|
139
|
+
side: z.ZodEnum<{
|
|
140
|
+
BUY: "BUY";
|
|
141
|
+
SELL: "SELL";
|
|
142
|
+
}>;
|
|
199
143
|
expiration: z.ZodString;
|
|
200
144
|
timestamp: z.ZodString;
|
|
201
145
|
metadata: z.ZodOptional<z.ZodString>;
|
|
202
146
|
builder: z.ZodString;
|
|
203
147
|
signature: z.ZodString;
|
|
204
148
|
salt: z.ZodNumber;
|
|
205
|
-
signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
206
|
-
},
|
|
207
|
-
side: "BUY" | "SELL";
|
|
208
|
-
maker: string;
|
|
209
|
-
signer: string;
|
|
210
|
-
tokenId: string;
|
|
211
|
-
makerAmount: string;
|
|
212
|
-
takerAmount: string;
|
|
213
|
-
expiration: string;
|
|
214
|
-
timestamp: string;
|
|
215
|
-
builder: string;
|
|
216
|
-
signature: string;
|
|
217
|
-
salt: number;
|
|
218
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
219
|
-
metadata?: string | undefined;
|
|
220
|
-
}, {
|
|
221
|
-
side: "BUY" | "SELL";
|
|
222
|
-
maker: string;
|
|
223
|
-
signer: string;
|
|
224
|
-
tokenId: string;
|
|
225
|
-
makerAmount: string;
|
|
226
|
-
takerAmount: string;
|
|
227
|
-
expiration: string;
|
|
228
|
-
timestamp: string;
|
|
229
|
-
builder: string;
|
|
230
|
-
signature: string;
|
|
231
|
-
salt: number;
|
|
232
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
233
|
-
metadata?: string | undefined;
|
|
234
|
-
}>;
|
|
149
|
+
signatureType: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
150
|
+
}, z.core.$strip>;
|
|
235
151
|
owner: z.ZodString;
|
|
236
|
-
orderType: z.ZodOptional<z.ZodEnum<
|
|
152
|
+
orderType: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
GTC: "GTC";
|
|
154
|
+
FOK: "FOK";
|
|
155
|
+
GTD: "GTD";
|
|
156
|
+
FAK: "FAK";
|
|
157
|
+
}>>;
|
|
237
158
|
deferExec: z.ZodOptional<z.ZodBoolean>;
|
|
238
159
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
signer: string;
|
|
244
|
-
tokenId: string;
|
|
245
|
-
makerAmount: string;
|
|
246
|
-
takerAmount: string;
|
|
247
|
-
expiration: string;
|
|
248
|
-
timestamp: string;
|
|
249
|
-
builder: string;
|
|
250
|
-
signature: string;
|
|
251
|
-
salt: number;
|
|
252
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
253
|
-
metadata?: string | undefined;
|
|
254
|
-
};
|
|
255
|
-
owner: string;
|
|
256
|
-
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
257
|
-
deferExec?: boolean | undefined;
|
|
258
|
-
postOnly?: boolean | undefined;
|
|
259
|
-
}, {
|
|
260
|
-
order: {
|
|
261
|
-
side: "BUY" | "SELL";
|
|
262
|
-
maker: string;
|
|
263
|
-
signer: string;
|
|
264
|
-
tokenId: string;
|
|
265
|
-
makerAmount: string;
|
|
266
|
-
takerAmount: string;
|
|
267
|
-
expiration: string;
|
|
268
|
-
timestamp: string;
|
|
269
|
-
builder: string;
|
|
270
|
-
signature: string;
|
|
271
|
-
salt: number;
|
|
272
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
273
|
-
metadata?: string | undefined;
|
|
274
|
-
};
|
|
275
|
-
owner: string;
|
|
276
|
-
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
277
|
-
deferExec?: boolean | undefined;
|
|
278
|
-
postOnly?: boolean | undefined;
|
|
279
|
-
}>;
|
|
280
|
-
export type PolymarketClobPostOrderRequest = z.infer<typeof PolymarketClobPostOrderRequestSchema>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
export type PolymarketClobPostOrderRequest = z.input<typeof PolymarketClobPostOrderRequestSchema>;
|
|
162
|
+
export type PolymarketClobPostOrderRequestInput = PolymarketClobPostOrderRequest;
|
|
163
|
+
export type PolymarketClobPostOrderParsedRequest = z.output<typeof PolymarketClobPostOrderRequestSchema>;
|
|
281
164
|
export declare const PolymarketClobPlaceOrderRequestSchema: z.ZodObject<{
|
|
282
165
|
tokenID: z.ZodString;
|
|
283
|
-
side: z.ZodEnum<
|
|
166
|
+
side: z.ZodEnum<{
|
|
167
|
+
BUY: "BUY";
|
|
168
|
+
SELL: "SELL";
|
|
169
|
+
}>;
|
|
284
170
|
price: z.ZodNumber;
|
|
285
171
|
size: z.ZodNumber;
|
|
286
|
-
orderType: z.ZodOptional<z.ZodEnum<
|
|
172
|
+
orderType: z.ZodOptional<z.ZodEnum<{
|
|
173
|
+
GTC: "GTC";
|
|
174
|
+
GTD: "GTD";
|
|
175
|
+
}>>;
|
|
287
176
|
expiration: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
},
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
size: number;
|
|
293
|
-
expiration?: number | undefined;
|
|
294
|
-
orderType?: "GTC" | "GTD" | undefined;
|
|
295
|
-
}, {
|
|
296
|
-
side: "BUY" | "SELL";
|
|
297
|
-
tokenID: string;
|
|
298
|
-
price: number;
|
|
299
|
-
size: number;
|
|
300
|
-
expiration?: number | undefined;
|
|
301
|
-
orderType?: "GTC" | "GTD" | undefined;
|
|
302
|
-
}>;
|
|
303
|
-
export type PolymarketClobPlaceOrderRequest = z.infer<typeof PolymarketClobPlaceOrderRequestSchema>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type PolymarketClobPlaceOrderRequest = z.input<typeof PolymarketClobPlaceOrderRequestSchema>;
|
|
179
|
+
export type PolymarketClobPlaceOrderRequestInput = PolymarketClobPlaceOrderRequest;
|
|
180
|
+
export type PolymarketClobPlaceOrderParsedRequest = z.output<typeof PolymarketClobPlaceOrderRequestSchema>;
|
|
304
181
|
export declare const PolymarketClobPostOrdersRequestSchema: z.ZodArray<z.ZodObject<{
|
|
305
182
|
order: z.ZodObject<{
|
|
306
183
|
maker: z.ZodString;
|
|
@@ -308,140 +185,63 @@ export declare const PolymarketClobPostOrdersRequestSchema: z.ZodArray<z.ZodObje
|
|
|
308
185
|
tokenId: z.ZodString;
|
|
309
186
|
makerAmount: z.ZodString;
|
|
310
187
|
takerAmount: z.ZodString;
|
|
311
|
-
side: z.ZodEnum<
|
|
188
|
+
side: z.ZodEnum<{
|
|
189
|
+
BUY: "BUY";
|
|
190
|
+
SELL: "SELL";
|
|
191
|
+
}>;
|
|
312
192
|
expiration: z.ZodString;
|
|
313
193
|
timestamp: z.ZodString;
|
|
314
194
|
metadata: z.ZodOptional<z.ZodString>;
|
|
315
195
|
builder: z.ZodString;
|
|
316
196
|
signature: z.ZodString;
|
|
317
197
|
salt: z.ZodNumber;
|
|
318
|
-
signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
319
|
-
},
|
|
320
|
-
side: "BUY" | "SELL";
|
|
321
|
-
maker: string;
|
|
322
|
-
signer: string;
|
|
323
|
-
tokenId: string;
|
|
324
|
-
makerAmount: string;
|
|
325
|
-
takerAmount: string;
|
|
326
|
-
expiration: string;
|
|
327
|
-
timestamp: string;
|
|
328
|
-
builder: string;
|
|
329
|
-
signature: string;
|
|
330
|
-
salt: number;
|
|
331
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
332
|
-
metadata?: string | undefined;
|
|
333
|
-
}, {
|
|
334
|
-
side: "BUY" | "SELL";
|
|
335
|
-
maker: string;
|
|
336
|
-
signer: string;
|
|
337
|
-
tokenId: string;
|
|
338
|
-
makerAmount: string;
|
|
339
|
-
takerAmount: string;
|
|
340
|
-
expiration: string;
|
|
341
|
-
timestamp: string;
|
|
342
|
-
builder: string;
|
|
343
|
-
signature: string;
|
|
344
|
-
salt: number;
|
|
345
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
346
|
-
metadata?: string | undefined;
|
|
347
|
-
}>;
|
|
198
|
+
signatureType: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
199
|
+
}, z.core.$strip>;
|
|
348
200
|
owner: z.ZodString;
|
|
349
|
-
orderType: z.ZodOptional<z.ZodEnum<
|
|
201
|
+
orderType: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
GTC: "GTC";
|
|
203
|
+
FOK: "FOK";
|
|
204
|
+
GTD: "GTD";
|
|
205
|
+
FAK: "FAK";
|
|
206
|
+
}>>;
|
|
350
207
|
deferExec: z.ZodOptional<z.ZodBoolean>;
|
|
351
208
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
signer: string;
|
|
357
|
-
tokenId: string;
|
|
358
|
-
makerAmount: string;
|
|
359
|
-
takerAmount: string;
|
|
360
|
-
expiration: string;
|
|
361
|
-
timestamp: string;
|
|
362
|
-
builder: string;
|
|
363
|
-
signature: string;
|
|
364
|
-
salt: number;
|
|
365
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
366
|
-
metadata?: string | undefined;
|
|
367
|
-
};
|
|
368
|
-
owner: string;
|
|
369
|
-
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
370
|
-
deferExec?: boolean | undefined;
|
|
371
|
-
postOnly?: boolean | undefined;
|
|
372
|
-
}, {
|
|
373
|
-
order: {
|
|
374
|
-
side: "BUY" | "SELL";
|
|
375
|
-
maker: string;
|
|
376
|
-
signer: string;
|
|
377
|
-
tokenId: string;
|
|
378
|
-
makerAmount: string;
|
|
379
|
-
takerAmount: string;
|
|
380
|
-
expiration: string;
|
|
381
|
-
timestamp: string;
|
|
382
|
-
builder: string;
|
|
383
|
-
signature: string;
|
|
384
|
-
salt: number;
|
|
385
|
-
signatureType: 0 | 1 | 2 | 3;
|
|
386
|
-
metadata?: string | undefined;
|
|
387
|
-
};
|
|
388
|
-
owner: string;
|
|
389
|
-
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
390
|
-
deferExec?: boolean | undefined;
|
|
391
|
-
postOnly?: boolean | undefined;
|
|
392
|
-
}>, "many">;
|
|
393
|
-
export type PolymarketClobPostOrdersRequest = z.infer<typeof PolymarketClobPostOrdersRequestSchema>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
export type PolymarketClobPostOrdersRequest = z.input<typeof PolymarketClobPostOrdersRequestSchema>;
|
|
211
|
+
export type PolymarketClobPostOrdersRequestInput = PolymarketClobPostOrdersRequest;
|
|
212
|
+
export type PolymarketClobPostOrdersParsedRequest = z.output<typeof PolymarketClobPostOrdersRequestSchema>;
|
|
394
213
|
export declare const PolymarketClobCancelOrderRequestSchema: z.ZodObject<{
|
|
395
214
|
orderID: z.ZodString;
|
|
396
|
-
},
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
export type
|
|
402
|
-
export
|
|
403
|
-
export type
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export type PolymarketClobCancelOrderRequest = z.input<typeof PolymarketClobCancelOrderRequestSchema>;
|
|
217
|
+
export type PolymarketClobCancelOrderRequestInput = PolymarketClobCancelOrderRequest;
|
|
218
|
+
export type PolymarketClobCancelOrderParsedRequest = z.output<typeof PolymarketClobCancelOrderRequestSchema>;
|
|
219
|
+
export declare const PolymarketClobCancelOrdersRequestSchema: z.ZodArray<z.ZodString>;
|
|
220
|
+
export type PolymarketClobCancelOrdersRequest = z.input<typeof PolymarketClobCancelOrdersRequestSchema>;
|
|
221
|
+
export type PolymarketClobCancelOrdersRequestInput = PolymarketClobCancelOrdersRequest;
|
|
222
|
+
export type PolymarketClobCancelOrdersParsedRequest = z.output<typeof PolymarketClobCancelOrdersRequestSchema>;
|
|
404
223
|
export declare const PolymarketClobCancelMarketOrdersRequestSchema: z.ZodObject<{
|
|
405
224
|
market: z.ZodString;
|
|
406
225
|
asset_id: z.ZodString;
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
market: string;
|
|
412
|
-
asset_id: string;
|
|
413
|
-
}>;
|
|
414
|
-
export type PolymarketClobCancelMarketOrdersRequest = z.infer<typeof PolymarketClobCancelMarketOrdersRequestSchema>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export type PolymarketClobCancelMarketOrdersRequest = z.input<typeof PolymarketClobCancelMarketOrdersRequestSchema>;
|
|
228
|
+
export type PolymarketClobCancelMarketOrdersRequestInput = PolymarketClobCancelMarketOrdersRequest;
|
|
229
|
+
export type PolymarketClobCancelMarketOrdersParsedRequest = z.output<typeof PolymarketClobCancelMarketOrdersRequestSchema>;
|
|
415
230
|
export declare const PolymarketClobBalanceAllowanceQuerySchema: z.ZodObject<{
|
|
416
|
-
asset_type: z.ZodEnum<
|
|
231
|
+
asset_type: z.ZodEnum<{
|
|
232
|
+
COLLATERAL: "COLLATERAL";
|
|
233
|
+
CONDITIONAL: "CONDITIONAL";
|
|
234
|
+
}>;
|
|
417
235
|
token_id: z.ZodOptional<z.ZodString>;
|
|
418
|
-
signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
419
|
-
},
|
|
420
|
-
asset_type: "COLLATERAL" | "CONDITIONAL";
|
|
421
|
-
token_id?: string | undefined;
|
|
422
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
423
|
-
}, {
|
|
424
|
-
asset_type: "COLLATERAL" | "CONDITIONAL";
|
|
425
|
-
token_id?: string | undefined;
|
|
426
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
427
|
-
}>;
|
|
236
|
+
signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
237
|
+
}, z.core.$strip>;
|
|
428
238
|
export type PolymarketClobBalanceAllowanceQuery = z.infer<typeof PolymarketClobBalanceAllowanceQuerySchema>;
|
|
429
239
|
export declare const PolymarketClobUserOrdersQuerySchema: z.ZodObject<{
|
|
430
240
|
id: z.ZodOptional<z.ZodString>;
|
|
431
241
|
market: z.ZodOptional<z.ZodString>;
|
|
432
242
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
433
243
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
434
|
-
},
|
|
435
|
-
market?: string | undefined;
|
|
436
|
-
asset_id?: string | undefined;
|
|
437
|
-
id?: string | undefined;
|
|
438
|
-
next_cursor?: string | undefined;
|
|
439
|
-
}, {
|
|
440
|
-
market?: string | undefined;
|
|
441
|
-
asset_id?: string | undefined;
|
|
442
|
-
id?: string | undefined;
|
|
443
|
-
next_cursor?: string | undefined;
|
|
444
|
-
}>;
|
|
244
|
+
}, z.core.$strip>;
|
|
445
245
|
export type PolymarketClobUserOrdersQuery = z.infer<typeof PolymarketClobUserOrdersQuerySchema>;
|
|
446
246
|
export declare const PolymarketClobUserTradesQuerySchema: z.ZodObject<{
|
|
447
247
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -451,246 +251,130 @@ export declare const PolymarketClobUserTradesQuerySchema: z.ZodObject<{
|
|
|
451
251
|
before: z.ZodOptional<z.ZodString>;
|
|
452
252
|
after: z.ZodOptional<z.ZodString>;
|
|
453
253
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
454
|
-
},
|
|
455
|
-
market?: string | undefined;
|
|
456
|
-
asset_id?: string | undefined;
|
|
457
|
-
id?: string | undefined;
|
|
458
|
-
next_cursor?: string | undefined;
|
|
459
|
-
maker_address?: string | undefined;
|
|
460
|
-
before?: string | undefined;
|
|
461
|
-
after?: string | undefined;
|
|
462
|
-
}, {
|
|
463
|
-
market?: string | undefined;
|
|
464
|
-
asset_id?: string | undefined;
|
|
465
|
-
id?: string | undefined;
|
|
466
|
-
next_cursor?: string | undefined;
|
|
467
|
-
maker_address?: string | undefined;
|
|
468
|
-
before?: string | undefined;
|
|
469
|
-
after?: string | undefined;
|
|
470
|
-
}>;
|
|
254
|
+
}, z.core.$strip>;
|
|
471
255
|
export type PolymarketClobUserTradesQuery = z.infer<typeof PolymarketClobUserTradesQuerySchema>;
|
|
472
256
|
export declare const PolymarketClobNotificationsQuerySchema: z.ZodObject<{
|
|
473
|
-
signature_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
474
|
-
},
|
|
475
|
-
signature_type: 0 | 1 | 2 | 3;
|
|
476
|
-
}, {
|
|
477
|
-
signature_type: 0 | 1 | 2 | 3;
|
|
478
|
-
}>;
|
|
257
|
+
signature_type: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
258
|
+
}, z.core.$strip>;
|
|
479
259
|
export type PolymarketClobNotificationsQuery = z.infer<typeof PolymarketClobNotificationsQuerySchema>;
|
|
480
260
|
export declare const PolymarketClobDropNotificationsQuerySchema: z.ZodObject<{
|
|
481
|
-
ids: z.ZodArray<z.ZodString
|
|
482
|
-
},
|
|
483
|
-
ids: string[];
|
|
484
|
-
}, {
|
|
485
|
-
ids: string[];
|
|
486
|
-
}>;
|
|
261
|
+
ids: z.ZodArray<z.ZodString>;
|
|
262
|
+
}, z.core.$strip>;
|
|
487
263
|
export type PolymarketClobDropNotificationsQuery = z.infer<typeof PolymarketClobDropNotificationsQuerySchema>;
|
|
488
264
|
export declare const PolymarketClobOrderScoringQuerySchema: z.ZodObject<{
|
|
489
265
|
order_id: z.ZodString;
|
|
490
|
-
},
|
|
491
|
-
order_id: string;
|
|
492
|
-
}, {
|
|
493
|
-
order_id: string;
|
|
494
|
-
}>;
|
|
266
|
+
}, z.core.$strip>;
|
|
495
267
|
export type PolymarketClobOrderScoringQuery = z.infer<typeof PolymarketClobOrderScoringQuerySchema>;
|
|
496
268
|
export declare const PolymarketClobOrdersScoringQuerySchema: z.ZodObject<{
|
|
497
|
-
order_ids: z.ZodArray<z.ZodString
|
|
498
|
-
},
|
|
499
|
-
order_ids: string[];
|
|
500
|
-
}, {
|
|
501
|
-
order_ids: string[];
|
|
502
|
-
}>;
|
|
269
|
+
order_ids: z.ZodArray<z.ZodString>;
|
|
270
|
+
}, z.core.$strip>;
|
|
503
271
|
export type PolymarketClobOrdersScoringQuery = z.infer<typeof PolymarketClobOrdersScoringQuerySchema>;
|
|
504
|
-
export declare const PolymarketClobOrdersScoringRequestSchema: z.ZodArray<z.ZodString
|
|
505
|
-
export type PolymarketClobOrdersScoringRequest = z.
|
|
272
|
+
export declare const PolymarketClobOrdersScoringRequestSchema: z.ZodArray<z.ZodString>;
|
|
273
|
+
export type PolymarketClobOrdersScoringRequest = z.input<typeof PolymarketClobOrdersScoringRequestSchema>;
|
|
274
|
+
export type PolymarketClobOrdersScoringRequestInput = PolymarketClobOrdersScoringRequest;
|
|
275
|
+
export type PolymarketClobOrdersScoringParsedRequest = z.output<typeof PolymarketClobOrdersScoringRequestSchema>;
|
|
506
276
|
export declare const PolymarketClobHeartbeatRequestSchema: z.ZodObject<{
|
|
507
277
|
heartbeat_id: z.ZodString;
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}>;
|
|
513
|
-
export type PolymarketClobHeartbeatRequest = z.infer<typeof PolymarketClobHeartbeatRequestSchema>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
export type PolymarketClobHeartbeatRequest = z.input<typeof PolymarketClobHeartbeatRequestSchema>;
|
|
280
|
+
export type PolymarketClobHeartbeatRequestInput = PolymarketClobHeartbeatRequest;
|
|
281
|
+
export type PolymarketClobHeartbeatParsedRequest = z.output<typeof PolymarketClobHeartbeatRequestSchema>;
|
|
514
282
|
export declare const PolymarketClobRewardsUserQuerySchema: z.ZodObject<{
|
|
515
283
|
date: z.ZodString;
|
|
516
|
-
signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
284
|
+
signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
517
285
|
maker_address: z.ZodOptional<z.ZodString>;
|
|
518
286
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
519
287
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
520
|
-
},
|
|
521
|
-
date: string;
|
|
522
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
523
|
-
next_cursor?: string | undefined;
|
|
524
|
-
maker_address?: string | undefined;
|
|
525
|
-
sponsored?: boolean | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
date: string;
|
|
528
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
529
|
-
next_cursor?: string | undefined;
|
|
530
|
-
maker_address?: string | undefined;
|
|
531
|
-
sponsored?: boolean | undefined;
|
|
532
|
-
}>;
|
|
288
|
+
}, z.core.$strip>;
|
|
533
289
|
export type PolymarketClobRewardsUserQuery = z.infer<typeof PolymarketClobRewardsUserQuerySchema>;
|
|
534
290
|
export declare const PolymarketClobRewardsUserTotalQuerySchema: z.ZodObject<{
|
|
535
291
|
date: z.ZodString;
|
|
536
|
-
signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
292
|
+
signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
537
293
|
maker_address: z.ZodOptional<z.ZodString>;
|
|
538
294
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
-
},
|
|
540
|
-
date: string;
|
|
541
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
542
|
-
maker_address?: string | undefined;
|
|
543
|
-
sponsored?: boolean | undefined;
|
|
544
|
-
}, {
|
|
545
|
-
date: string;
|
|
546
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
547
|
-
maker_address?: string | undefined;
|
|
548
|
-
sponsored?: boolean | undefined;
|
|
549
|
-
}>;
|
|
295
|
+
}, z.core.$strip>;
|
|
550
296
|
export type PolymarketClobRewardsUserTotalQuery = z.infer<typeof PolymarketClobRewardsUserTotalQuerySchema>;
|
|
551
297
|
export declare const PolymarketClobRewardPercentagesQuerySchema: z.ZodObject<{
|
|
552
|
-
signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
298
|
+
signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
553
299
|
maker_address: z.ZodOptional<z.ZodString>;
|
|
554
|
-
},
|
|
555
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
556
|
-
maker_address?: string | undefined;
|
|
557
|
-
}, {
|
|
558
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
559
|
-
maker_address?: string | undefined;
|
|
560
|
-
}>;
|
|
300
|
+
}, z.core.$strip>;
|
|
561
301
|
export type PolymarketClobRewardPercentagesQuery = z.infer<typeof PolymarketClobRewardPercentagesQuerySchema>;
|
|
562
302
|
export declare const PolymarketClobRewardsUserMarketsQuerySchema: z.ZodObject<{
|
|
563
303
|
date: z.ZodOptional<z.ZodString>;
|
|
564
|
-
signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
304
|
+
signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
565
305
|
maker_address: z.ZodOptional<z.ZodString>;
|
|
566
306
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
567
307
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
568
308
|
page_size: z.ZodOptional<z.ZodNumber>;
|
|
569
309
|
q: z.ZodOptional<z.ZodString>;
|
|
570
|
-
tag_slug: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
310
|
+
tag_slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
571
311
|
favorite_markets: z.ZodOptional<z.ZodBoolean>;
|
|
572
312
|
no_competition: z.ZodOptional<z.ZodBoolean>;
|
|
573
313
|
only_mergeable: z.ZodOptional<z.ZodBoolean>;
|
|
574
314
|
only_open_orders: z.ZodOptional<z.ZodBoolean>;
|
|
575
315
|
only_open_positions: z.ZodOptional<z.ZodBoolean>;
|
|
576
|
-
order_by: z.ZodOptional<z.ZodEnum<
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
|
|
593
|
-
position?: "ASC" | "DESC" | undefined;
|
|
594
|
-
}, {
|
|
595
|
-
date?: string | undefined;
|
|
596
|
-
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
597
|
-
next_cursor?: string | undefined;
|
|
598
|
-
maker_address?: string | undefined;
|
|
599
|
-
sponsored?: boolean | undefined;
|
|
600
|
-
page_size?: number | undefined;
|
|
601
|
-
q?: string | undefined;
|
|
602
|
-
tag_slug?: string | string[] | undefined;
|
|
603
|
-
favorite_markets?: boolean | undefined;
|
|
604
|
-
no_competition?: boolean | undefined;
|
|
605
|
-
only_mergeable?: boolean | undefined;
|
|
606
|
-
only_open_orders?: boolean | undefined;
|
|
607
|
-
only_open_positions?: boolean | undefined;
|
|
608
|
-
order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
|
|
609
|
-
position?: "ASC" | "DESC" | undefined;
|
|
610
|
-
}>;
|
|
316
|
+
order_by: z.ZodOptional<z.ZodEnum<{
|
|
317
|
+
currentRewards: "currentRewards";
|
|
318
|
+
volume24hr: "volume24hr";
|
|
319
|
+
volume1wk: "volume1wk";
|
|
320
|
+
volume1mo: "volume1mo";
|
|
321
|
+
volume1yr: "volume1yr";
|
|
322
|
+
liquidity: "liquidity";
|
|
323
|
+
endDate: "endDate";
|
|
324
|
+
createdAt: "createdAt";
|
|
325
|
+
competitive: "competitive";
|
|
326
|
+
}>>;
|
|
327
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
ASC: "ASC";
|
|
329
|
+
DESC: "DESC";
|
|
330
|
+
}>>;
|
|
331
|
+
}, z.core.$strip>;
|
|
611
332
|
export type PolymarketClobRewardsUserMarketsQuery = z.infer<typeof PolymarketClobRewardsUserMarketsQuerySchema>;
|
|
612
333
|
export declare const PolymarketClobRewardsCurrentQuerySchema: z.ZodObject<{
|
|
613
334
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
614
335
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
615
|
-
},
|
|
616
|
-
next_cursor?: string | undefined;
|
|
617
|
-
sponsored?: boolean | undefined;
|
|
618
|
-
}, {
|
|
619
|
-
next_cursor?: string | undefined;
|
|
620
|
-
sponsored?: boolean | undefined;
|
|
621
|
-
}>;
|
|
336
|
+
}, z.core.$strip>;
|
|
622
337
|
export type PolymarketClobRewardsCurrentQuery = z.infer<typeof PolymarketClobRewardsCurrentQuerySchema>;
|
|
623
338
|
export declare const PolymarketClobRewardsMarketQuerySchema: z.ZodObject<{
|
|
624
339
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
625
340
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
626
|
-
},
|
|
627
|
-
next_cursor?: string | undefined;
|
|
628
|
-
sponsored?: boolean | undefined;
|
|
629
|
-
}, {
|
|
630
|
-
next_cursor?: string | undefined;
|
|
631
|
-
sponsored?: boolean | undefined;
|
|
632
|
-
}>;
|
|
341
|
+
}, z.core.$strip>;
|
|
633
342
|
export type PolymarketClobRewardsMarketQuery = z.infer<typeof PolymarketClobRewardsMarketQuerySchema>;
|
|
634
343
|
export declare const PolymarketClobRewardsMultiMarketsQuerySchema: z.ZodObject<{
|
|
635
344
|
q: z.ZodOptional<z.ZodString>;
|
|
636
|
-
tag_slug: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
637
|
-
event_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
345
|
+
tag_slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
346
|
+
event_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
638
347
|
event_title: z.ZodOptional<z.ZodString>;
|
|
639
348
|
sponsored: z.ZodOptional<z.ZodBoolean>;
|
|
640
349
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
641
350
|
page_size: z.ZodOptional<z.ZodNumber>;
|
|
642
|
-
order_by: z.ZodOptional<z.ZodEnum<
|
|
643
|
-
|
|
351
|
+
order_by: z.ZodOptional<z.ZodEnum<{
|
|
352
|
+
currentRewards: "currentRewards";
|
|
353
|
+
volume24hr: "volume24hr";
|
|
354
|
+
volume1wk: "volume1wk";
|
|
355
|
+
volume1mo: "volume1mo";
|
|
356
|
+
volume1yr: "volume1yr";
|
|
357
|
+
liquidity: "liquidity";
|
|
358
|
+
endDate: "endDate";
|
|
359
|
+
createdAt: "createdAt";
|
|
360
|
+
competitive: "competitive";
|
|
361
|
+
}>>;
|
|
362
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
ASC: "ASC";
|
|
364
|
+
DESC: "DESC";
|
|
365
|
+
}>>;
|
|
644
366
|
min_volume: z.ZodOptional<z.ZodNumber>;
|
|
645
367
|
max_volume: z.ZodOptional<z.ZodNumber>;
|
|
646
368
|
min_spread: z.ZodOptional<z.ZodNumber>;
|
|
647
369
|
max_spread: z.ZodOptional<z.ZodNumber>;
|
|
648
370
|
min_price: z.ZodOptional<z.ZodNumber>;
|
|
649
371
|
max_price: z.ZodOptional<z.ZodNumber>;
|
|
650
|
-
},
|
|
651
|
-
next_cursor?: string | undefined;
|
|
652
|
-
sponsored?: boolean | undefined;
|
|
653
|
-
page_size?: number | undefined;
|
|
654
|
-
q?: string | undefined;
|
|
655
|
-
tag_slug?: string | string[] | undefined;
|
|
656
|
-
order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
|
|
657
|
-
position?: "ASC" | "DESC" | undefined;
|
|
658
|
-
event_id?: string | string[] | undefined;
|
|
659
|
-
event_title?: string | undefined;
|
|
660
|
-
min_volume?: number | undefined;
|
|
661
|
-
max_volume?: number | undefined;
|
|
662
|
-
min_spread?: number | undefined;
|
|
663
|
-
max_spread?: number | undefined;
|
|
664
|
-
min_price?: number | undefined;
|
|
665
|
-
max_price?: number | undefined;
|
|
666
|
-
}, {
|
|
667
|
-
next_cursor?: string | undefined;
|
|
668
|
-
sponsored?: boolean | undefined;
|
|
669
|
-
page_size?: number | undefined;
|
|
670
|
-
q?: string | undefined;
|
|
671
|
-
tag_slug?: string | string[] | undefined;
|
|
672
|
-
order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
|
|
673
|
-
position?: "ASC" | "DESC" | undefined;
|
|
674
|
-
event_id?: string | string[] | undefined;
|
|
675
|
-
event_title?: string | undefined;
|
|
676
|
-
min_volume?: number | undefined;
|
|
677
|
-
max_volume?: number | undefined;
|
|
678
|
-
min_spread?: number | undefined;
|
|
679
|
-
max_spread?: number | undefined;
|
|
680
|
-
min_price?: number | undefined;
|
|
681
|
-
max_price?: number | undefined;
|
|
682
|
-
}>;
|
|
372
|
+
}, z.core.$strip>;
|
|
683
373
|
export type PolymarketClobRewardsMultiMarketsQuery = z.infer<typeof PolymarketClobRewardsMultiMarketsQuerySchema>;
|
|
684
374
|
export declare const PolymarketClobRebatesCurrentQuerySchema: z.ZodObject<{
|
|
685
375
|
date: z.ZodString;
|
|
686
376
|
maker_address: z.ZodString;
|
|
687
|
-
},
|
|
688
|
-
date: string;
|
|
689
|
-
maker_address: string;
|
|
690
|
-
}, {
|
|
691
|
-
date: string;
|
|
692
|
-
maker_address: string;
|
|
693
|
-
}>;
|
|
377
|
+
}, z.core.$strip>;
|
|
694
378
|
export type PolymarketClobRebatesCurrentQuery = z.infer<typeof PolymarketClobRebatesCurrentQuerySchema>;
|
|
695
379
|
export declare const PolymarketClobBuilderTradesQuerySchema: z.ZodObject<{
|
|
696
380
|
builder_code: z.ZodString;
|
|
@@ -700,22 +384,6 @@ export declare const PolymarketClobBuilderTradesQuerySchema: z.ZodObject<{
|
|
|
700
384
|
before: z.ZodOptional<z.ZodString>;
|
|
701
385
|
after: z.ZodOptional<z.ZodString>;
|
|
702
386
|
next_cursor: z.ZodOptional<z.ZodString>;
|
|
703
|
-
},
|
|
704
|
-
builder_code: string;
|
|
705
|
-
market?: string | undefined;
|
|
706
|
-
asset_id?: string | undefined;
|
|
707
|
-
id?: string | undefined;
|
|
708
|
-
next_cursor?: string | undefined;
|
|
709
|
-
before?: string | undefined;
|
|
710
|
-
after?: string | undefined;
|
|
711
|
-
}, {
|
|
712
|
-
builder_code: string;
|
|
713
|
-
market?: string | undefined;
|
|
714
|
-
asset_id?: string | undefined;
|
|
715
|
-
id?: string | undefined;
|
|
716
|
-
next_cursor?: string | undefined;
|
|
717
|
-
before?: string | undefined;
|
|
718
|
-
after?: string | undefined;
|
|
719
|
-
}>;
|
|
387
|
+
}, z.core.$strip>;
|
|
720
388
|
export type PolymarketClobBuilderTradesQuery = z.infer<typeof PolymarketClobBuilderTradesQuerySchema>;
|
|
721
389
|
//# sourceMappingURL=zod.d.ts.map
|