@apicity/polymarket 0.2.6 → 0.2.7
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 +362 -2
- package/dist/src/_helpers.d.ts +7 -1
- package/dist/src/_helpers.d.ts.map +1 -1
- package/dist/src/_helpers.js +162 -4
- package/dist/src/_helpers.js.map +1 -1
- package/dist/src/clob.d.ts +7 -1
- package/dist/src/clob.d.ts.map +1 -1
- package/dist/src/clob.js +207 -2
- package/dist/src/clob.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/polymarket.d.ts.map +1 -1
- package/dist/src/polymarket.js +6 -0
- package/dist/src/polymarket.js.map +1 -1
- package/dist/src/types.d.ts +238 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/zod.d.ts +392 -0
- package/dist/src/zod.d.ts.map +1 -1
- package/dist/src/zod.js +100 -7
- package/dist/src/zod.js.map +1 -1
- package/package.json +2 -2
package/dist/src/zod.d.ts
CHANGED
|
@@ -1,20 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export interface PolymarketClobApiCredentials {
|
|
3
|
+
key: string;
|
|
4
|
+
secret: string;
|
|
5
|
+
passphrase: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PolymarketClobL1Headers {
|
|
8
|
+
address: string;
|
|
9
|
+
signature: string;
|
|
10
|
+
timestamp: string | number;
|
|
11
|
+
nonce?: string | number;
|
|
12
|
+
}
|
|
13
|
+
export interface PolymarketClobL2HeaderArgs {
|
|
14
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
15
|
+
requestPath: string;
|
|
16
|
+
body?: string;
|
|
17
|
+
timestamp: number;
|
|
18
|
+
}
|
|
19
|
+
export interface PolymarketClobL2Headers {
|
|
20
|
+
address: string;
|
|
21
|
+
apiKey: string;
|
|
22
|
+
passphrase: string;
|
|
23
|
+
timestamp: string | number;
|
|
24
|
+
signature: string;
|
|
25
|
+
}
|
|
26
|
+
export type PolymarketClobL2HeaderSigner = (args: PolymarketClobL2HeaderArgs) => Promise<PolymarketClobL2Headers> | PolymarketClobL2Headers;
|
|
2
27
|
export declare const PolymarketOptionsSchema: z.ZodObject<{
|
|
3
28
|
gammaBaseURL: z.ZodOptional<z.ZodString>;
|
|
4
29
|
dataBaseURL: z.ZodOptional<z.ZodString>;
|
|
5
30
|
clobBaseURL: z.ZodOptional<z.ZodString>;
|
|
31
|
+
clobAddress: z.ZodOptional<z.ZodString>;
|
|
32
|
+
clobApiKey: z.ZodOptional<z.ZodString>;
|
|
33
|
+
clobApiSecret: z.ZodOptional<z.ZodString>;
|
|
34
|
+
clobApiPassphrase: z.ZodOptional<z.ZodString>;
|
|
35
|
+
clobApiCredentials: z.ZodOptional<z.ZodType<PolymarketClobApiCredentials, z.ZodTypeDef, PolymarketClobApiCredentials>>;
|
|
36
|
+
clobL1Headers: z.ZodOptional<z.ZodType<PolymarketClobL1Headers, z.ZodTypeDef, PolymarketClobL1Headers>>;
|
|
37
|
+
clobL2HeaderSigner: z.ZodOptional<z.ZodType<PolymarketClobL2HeaderSigner, z.ZodTypeDef, PolymarketClobL2HeaderSigner>>;
|
|
6
38
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
7
39
|
fetch: z.ZodOptional<z.ZodType<typeof fetch, z.ZodTypeDef, typeof fetch>>;
|
|
8
40
|
}, "strip", z.ZodTypeAny, {
|
|
9
41
|
gammaBaseURL?: string | undefined;
|
|
10
42
|
dataBaseURL?: string | undefined;
|
|
11
43
|
clobBaseURL?: string | undefined;
|
|
44
|
+
clobAddress?: string | undefined;
|
|
45
|
+
clobApiKey?: string | undefined;
|
|
46
|
+
clobApiSecret?: string | undefined;
|
|
47
|
+
clobApiPassphrase?: string | undefined;
|
|
48
|
+
clobApiCredentials?: PolymarketClobApiCredentials | undefined;
|
|
49
|
+
clobL1Headers?: PolymarketClobL1Headers | undefined;
|
|
50
|
+
clobL2HeaderSigner?: PolymarketClobL2HeaderSigner | undefined;
|
|
12
51
|
timeout?: number | undefined;
|
|
13
52
|
fetch?: typeof fetch | undefined;
|
|
14
53
|
}, {
|
|
15
54
|
gammaBaseURL?: string | undefined;
|
|
16
55
|
dataBaseURL?: string | undefined;
|
|
17
56
|
clobBaseURL?: string | undefined;
|
|
57
|
+
clobAddress?: string | undefined;
|
|
58
|
+
clobApiKey?: string | undefined;
|
|
59
|
+
clobApiSecret?: string | undefined;
|
|
60
|
+
clobApiPassphrase?: string | undefined;
|
|
61
|
+
clobApiCredentials?: PolymarketClobApiCredentials | undefined;
|
|
62
|
+
clobL1Headers?: PolymarketClobL1Headers | undefined;
|
|
63
|
+
clobL2HeaderSigner?: PolymarketClobL2HeaderSigner | undefined;
|
|
18
64
|
timeout?: number | undefined;
|
|
19
65
|
fetch?: typeof fetch | undefined;
|
|
20
66
|
}>;
|
|
@@ -60,4 +106,350 @@ export declare const PolymarketClobBatchPricesHistoryRequestSchema: z.ZodObject<
|
|
|
60
106
|
fidelity?: number | undefined;
|
|
61
107
|
}>;
|
|
62
108
|
export type PolymarketClobBatchPricesHistoryRequest = z.infer<typeof PolymarketClobBatchPricesHistoryRequestSchema>;
|
|
109
|
+
export declare const PolymarketClobSignatureTypeSchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
110
|
+
export declare const PolymarketClobOrderTypeSchema: z.ZodEnum<["GTC", "FOK", "GTD", "FAK"]>;
|
|
111
|
+
export declare const PolymarketClobSignedOrderSchema: z.ZodObject<{
|
|
112
|
+
maker: z.ZodString;
|
|
113
|
+
signer: z.ZodString;
|
|
114
|
+
tokenId: z.ZodString;
|
|
115
|
+
makerAmount: z.ZodString;
|
|
116
|
+
takerAmount: z.ZodString;
|
|
117
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
118
|
+
expiration: z.ZodString;
|
|
119
|
+
timestamp: z.ZodString;
|
|
120
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
121
|
+
builder: z.ZodString;
|
|
122
|
+
signature: z.ZodString;
|
|
123
|
+
salt: z.ZodNumber;
|
|
124
|
+
signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
side: "BUY" | "SELL";
|
|
127
|
+
maker: string;
|
|
128
|
+
signer: string;
|
|
129
|
+
tokenId: string;
|
|
130
|
+
makerAmount: string;
|
|
131
|
+
takerAmount: string;
|
|
132
|
+
expiration: string;
|
|
133
|
+
timestamp: string;
|
|
134
|
+
builder: string;
|
|
135
|
+
signature: string;
|
|
136
|
+
salt: number;
|
|
137
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
138
|
+
metadata?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
side: "BUY" | "SELL";
|
|
141
|
+
maker: string;
|
|
142
|
+
signer: string;
|
|
143
|
+
tokenId: string;
|
|
144
|
+
makerAmount: string;
|
|
145
|
+
takerAmount: string;
|
|
146
|
+
expiration: string;
|
|
147
|
+
timestamp: string;
|
|
148
|
+
builder: string;
|
|
149
|
+
signature: string;
|
|
150
|
+
salt: number;
|
|
151
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
152
|
+
metadata?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type PolymarketClobSignedOrder = z.infer<typeof PolymarketClobSignedOrderSchema>;
|
|
155
|
+
export declare const PolymarketClobPostOrderRequestSchema: z.ZodObject<{
|
|
156
|
+
order: z.ZodObject<{
|
|
157
|
+
maker: z.ZodString;
|
|
158
|
+
signer: z.ZodString;
|
|
159
|
+
tokenId: z.ZodString;
|
|
160
|
+
makerAmount: z.ZodString;
|
|
161
|
+
takerAmount: z.ZodString;
|
|
162
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
163
|
+
expiration: z.ZodString;
|
|
164
|
+
timestamp: z.ZodString;
|
|
165
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
166
|
+
builder: z.ZodString;
|
|
167
|
+
signature: z.ZodString;
|
|
168
|
+
salt: z.ZodNumber;
|
|
169
|
+
signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
side: "BUY" | "SELL";
|
|
172
|
+
maker: string;
|
|
173
|
+
signer: string;
|
|
174
|
+
tokenId: string;
|
|
175
|
+
makerAmount: string;
|
|
176
|
+
takerAmount: string;
|
|
177
|
+
expiration: string;
|
|
178
|
+
timestamp: string;
|
|
179
|
+
builder: string;
|
|
180
|
+
signature: string;
|
|
181
|
+
salt: number;
|
|
182
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
183
|
+
metadata?: string | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
side: "BUY" | "SELL";
|
|
186
|
+
maker: string;
|
|
187
|
+
signer: string;
|
|
188
|
+
tokenId: string;
|
|
189
|
+
makerAmount: string;
|
|
190
|
+
takerAmount: string;
|
|
191
|
+
expiration: string;
|
|
192
|
+
timestamp: string;
|
|
193
|
+
builder: string;
|
|
194
|
+
signature: string;
|
|
195
|
+
salt: number;
|
|
196
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
197
|
+
metadata?: string | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
owner: z.ZodString;
|
|
200
|
+
orderType: z.ZodOptional<z.ZodEnum<["GTC", "FOK", "GTD", "FAK"]>>;
|
|
201
|
+
deferExec: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
order: {
|
|
205
|
+
side: "BUY" | "SELL";
|
|
206
|
+
maker: string;
|
|
207
|
+
signer: string;
|
|
208
|
+
tokenId: string;
|
|
209
|
+
makerAmount: string;
|
|
210
|
+
takerAmount: string;
|
|
211
|
+
expiration: string;
|
|
212
|
+
timestamp: string;
|
|
213
|
+
builder: string;
|
|
214
|
+
signature: string;
|
|
215
|
+
salt: number;
|
|
216
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
217
|
+
metadata?: string | undefined;
|
|
218
|
+
};
|
|
219
|
+
owner: string;
|
|
220
|
+
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
221
|
+
deferExec?: boolean | undefined;
|
|
222
|
+
postOnly?: boolean | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
order: {
|
|
225
|
+
side: "BUY" | "SELL";
|
|
226
|
+
maker: string;
|
|
227
|
+
signer: string;
|
|
228
|
+
tokenId: string;
|
|
229
|
+
makerAmount: string;
|
|
230
|
+
takerAmount: string;
|
|
231
|
+
expiration: string;
|
|
232
|
+
timestamp: string;
|
|
233
|
+
builder: string;
|
|
234
|
+
signature: string;
|
|
235
|
+
salt: number;
|
|
236
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
237
|
+
metadata?: string | undefined;
|
|
238
|
+
};
|
|
239
|
+
owner: string;
|
|
240
|
+
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
241
|
+
deferExec?: boolean | undefined;
|
|
242
|
+
postOnly?: boolean | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
export type PolymarketClobPostOrderRequest = z.infer<typeof PolymarketClobPostOrderRequestSchema>;
|
|
245
|
+
export declare const PolymarketClobPostOrdersRequestSchema: z.ZodArray<z.ZodObject<{
|
|
246
|
+
order: z.ZodObject<{
|
|
247
|
+
maker: z.ZodString;
|
|
248
|
+
signer: z.ZodString;
|
|
249
|
+
tokenId: z.ZodString;
|
|
250
|
+
makerAmount: z.ZodString;
|
|
251
|
+
takerAmount: z.ZodString;
|
|
252
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
253
|
+
expiration: z.ZodString;
|
|
254
|
+
timestamp: z.ZodString;
|
|
255
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
256
|
+
builder: z.ZodString;
|
|
257
|
+
signature: z.ZodString;
|
|
258
|
+
salt: z.ZodNumber;
|
|
259
|
+
signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
side: "BUY" | "SELL";
|
|
276
|
+
maker: string;
|
|
277
|
+
signer: string;
|
|
278
|
+
tokenId: string;
|
|
279
|
+
makerAmount: string;
|
|
280
|
+
takerAmount: string;
|
|
281
|
+
expiration: string;
|
|
282
|
+
timestamp: string;
|
|
283
|
+
builder: string;
|
|
284
|
+
signature: string;
|
|
285
|
+
salt: number;
|
|
286
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
287
|
+
metadata?: string | undefined;
|
|
288
|
+
}>;
|
|
289
|
+
owner: z.ZodString;
|
|
290
|
+
orderType: z.ZodOptional<z.ZodEnum<["GTC", "FOK", "GTD", "FAK"]>>;
|
|
291
|
+
deferExec: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
order: {
|
|
295
|
+
side: "BUY" | "SELL";
|
|
296
|
+
maker: string;
|
|
297
|
+
signer: string;
|
|
298
|
+
tokenId: string;
|
|
299
|
+
makerAmount: string;
|
|
300
|
+
takerAmount: string;
|
|
301
|
+
expiration: string;
|
|
302
|
+
timestamp: string;
|
|
303
|
+
builder: string;
|
|
304
|
+
signature: string;
|
|
305
|
+
salt: number;
|
|
306
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
307
|
+
metadata?: string | undefined;
|
|
308
|
+
};
|
|
309
|
+
owner: string;
|
|
310
|
+
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
311
|
+
deferExec?: boolean | undefined;
|
|
312
|
+
postOnly?: boolean | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
order: {
|
|
315
|
+
side: "BUY" | "SELL";
|
|
316
|
+
maker: string;
|
|
317
|
+
signer: string;
|
|
318
|
+
tokenId: string;
|
|
319
|
+
makerAmount: string;
|
|
320
|
+
takerAmount: string;
|
|
321
|
+
expiration: string;
|
|
322
|
+
timestamp: string;
|
|
323
|
+
builder: string;
|
|
324
|
+
signature: string;
|
|
325
|
+
salt: number;
|
|
326
|
+
signatureType: 0 | 1 | 2 | 3;
|
|
327
|
+
metadata?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
owner: string;
|
|
330
|
+
orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
|
|
331
|
+
deferExec?: boolean | undefined;
|
|
332
|
+
postOnly?: boolean | undefined;
|
|
333
|
+
}>, "many">;
|
|
334
|
+
export type PolymarketClobPostOrdersRequest = z.infer<typeof PolymarketClobPostOrdersRequestSchema>;
|
|
335
|
+
export declare const PolymarketClobCancelOrderRequestSchema: z.ZodObject<{
|
|
336
|
+
orderID: z.ZodString;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
orderID: string;
|
|
339
|
+
}, {
|
|
340
|
+
orderID: string;
|
|
341
|
+
}>;
|
|
342
|
+
export type PolymarketClobCancelOrderRequest = z.infer<typeof PolymarketClobCancelOrderRequestSchema>;
|
|
343
|
+
export declare const PolymarketClobCancelOrdersRequestSchema: z.ZodArray<z.ZodString, "many">;
|
|
344
|
+
export type PolymarketClobCancelOrdersRequest = z.infer<typeof PolymarketClobCancelOrdersRequestSchema>;
|
|
345
|
+
export declare const PolymarketClobCancelMarketOrdersRequestSchema: z.ZodObject<{
|
|
346
|
+
market: z.ZodString;
|
|
347
|
+
asset_id: z.ZodString;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
market: string;
|
|
350
|
+
asset_id: string;
|
|
351
|
+
}, {
|
|
352
|
+
market: string;
|
|
353
|
+
asset_id: string;
|
|
354
|
+
}>;
|
|
355
|
+
export type PolymarketClobCancelMarketOrdersRequest = z.infer<typeof PolymarketClobCancelMarketOrdersRequestSchema>;
|
|
356
|
+
export declare const PolymarketClobBalanceAllowanceQuerySchema: z.ZodObject<{
|
|
357
|
+
asset_type: z.ZodEnum<["COLLATERAL", "CONDITIONAL"]>;
|
|
358
|
+
token_id: z.ZodOptional<z.ZodString>;
|
|
359
|
+
signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
asset_type: "COLLATERAL" | "CONDITIONAL";
|
|
362
|
+
token_id?: string | undefined;
|
|
363
|
+
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
asset_type: "COLLATERAL" | "CONDITIONAL";
|
|
366
|
+
token_id?: string | undefined;
|
|
367
|
+
signature_type?: 0 | 1 | 2 | 3 | undefined;
|
|
368
|
+
}>;
|
|
369
|
+
export type PolymarketClobBalanceAllowanceQuery = z.infer<typeof PolymarketClobBalanceAllowanceQuerySchema>;
|
|
370
|
+
export declare const PolymarketClobUserOrdersQuerySchema: z.ZodObject<{
|
|
371
|
+
id: z.ZodOptional<z.ZodString>;
|
|
372
|
+
market: z.ZodOptional<z.ZodString>;
|
|
373
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
374
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
market?: string | undefined;
|
|
377
|
+
asset_id?: string | undefined;
|
|
378
|
+
id?: string | undefined;
|
|
379
|
+
next_cursor?: string | undefined;
|
|
380
|
+
}, {
|
|
381
|
+
market?: string | undefined;
|
|
382
|
+
asset_id?: string | undefined;
|
|
383
|
+
id?: string | undefined;
|
|
384
|
+
next_cursor?: string | undefined;
|
|
385
|
+
}>;
|
|
386
|
+
export type PolymarketClobUserOrdersQuery = z.infer<typeof PolymarketClobUserOrdersQuerySchema>;
|
|
387
|
+
export declare const PolymarketClobUserTradesQuerySchema: z.ZodObject<{
|
|
388
|
+
id: z.ZodOptional<z.ZodString>;
|
|
389
|
+
maker_address: z.ZodOptional<z.ZodString>;
|
|
390
|
+
market: z.ZodOptional<z.ZodString>;
|
|
391
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
392
|
+
before: z.ZodOptional<z.ZodString>;
|
|
393
|
+
after: z.ZodOptional<z.ZodString>;
|
|
394
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
market?: string | undefined;
|
|
397
|
+
asset_id?: string | undefined;
|
|
398
|
+
id?: string | undefined;
|
|
399
|
+
next_cursor?: string | undefined;
|
|
400
|
+
maker_address?: string | undefined;
|
|
401
|
+
before?: string | undefined;
|
|
402
|
+
after?: string | undefined;
|
|
403
|
+
}, {
|
|
404
|
+
market?: string | undefined;
|
|
405
|
+
asset_id?: string | undefined;
|
|
406
|
+
id?: string | undefined;
|
|
407
|
+
next_cursor?: string | undefined;
|
|
408
|
+
maker_address?: string | undefined;
|
|
409
|
+
before?: string | undefined;
|
|
410
|
+
after?: string | undefined;
|
|
411
|
+
}>;
|
|
412
|
+
export type PolymarketClobUserTradesQuery = z.infer<typeof PolymarketClobUserTradesQuerySchema>;
|
|
413
|
+
export declare const PolymarketClobNotificationsQuerySchema: z.ZodObject<{
|
|
414
|
+
signature_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
signature_type: 0 | 1 | 2 | 3;
|
|
417
|
+
}, {
|
|
418
|
+
signature_type: 0 | 1 | 2 | 3;
|
|
419
|
+
}>;
|
|
420
|
+
export type PolymarketClobNotificationsQuery = z.infer<typeof PolymarketClobNotificationsQuerySchema>;
|
|
421
|
+
export declare const PolymarketClobDropNotificationsQuerySchema: z.ZodObject<{
|
|
422
|
+
ids: z.ZodArray<z.ZodString, "many">;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
ids: string[];
|
|
425
|
+
}, {
|
|
426
|
+
ids: string[];
|
|
427
|
+
}>;
|
|
428
|
+
export type PolymarketClobDropNotificationsQuery = z.infer<typeof PolymarketClobDropNotificationsQuerySchema>;
|
|
429
|
+
export declare const PolymarketClobOrderScoringQuerySchema: z.ZodObject<{
|
|
430
|
+
order_id: z.ZodString;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
order_id: string;
|
|
433
|
+
}, {
|
|
434
|
+
order_id: string;
|
|
435
|
+
}>;
|
|
436
|
+
export type PolymarketClobOrderScoringQuery = z.infer<typeof PolymarketClobOrderScoringQuerySchema>;
|
|
437
|
+
export declare const PolymarketClobOrdersScoringQuerySchema: z.ZodObject<{
|
|
438
|
+
order_ids: z.ZodArray<z.ZodString, "many">;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
order_ids: string[];
|
|
441
|
+
}, {
|
|
442
|
+
order_ids: string[];
|
|
443
|
+
}>;
|
|
444
|
+
export type PolymarketClobOrdersScoringQuery = z.infer<typeof PolymarketClobOrdersScoringQuerySchema>;
|
|
445
|
+
export declare const PolymarketClobOrdersScoringRequestSchema: z.ZodArray<z.ZodString, "many">;
|
|
446
|
+
export type PolymarketClobOrdersScoringRequest = z.infer<typeof PolymarketClobOrdersScoringRequestSchema>;
|
|
447
|
+
export declare const PolymarketClobHeartbeatRequestSchema: z.ZodObject<{
|
|
448
|
+
heartbeat_id: z.ZodString;
|
|
449
|
+
}, "strip", z.ZodTypeAny, {
|
|
450
|
+
heartbeat_id: string;
|
|
451
|
+
}, {
|
|
452
|
+
heartbeat_id: string;
|
|
453
|
+
}>;
|
|
454
|
+
export type PolymarketClobHeartbeatRequest = z.infer<typeof PolymarketClobHeartbeatRequestSchema>;
|
|
63
455
|
//# sourceMappingURL=zod.d.ts.map
|
package/dist/src/zod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,MAAM,WAAW,4BAA4B;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,E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jD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,0CAA0C;;;;;;EAErD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;;EAEhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;EAEjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,wCAAwC,iCAE5C,CAAC;AAEV,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;EAE/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC"}
|
package/dist/src/zod.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// Polymarket exposes three separate hosts, all of which serve a public,
|
|
6
|
-
// no-auth surface for read-only data. Each host can be overridden
|
|
7
|
-
// independently for testing/proxying. There is no apiKey field — the
|
|
8
|
-
// authenticated CLOB trading surface is intentionally not implemented here.
|
|
2
|
+
// Polymarket exposes three separate hosts for public data and the CLOB host
|
|
3
|
+
// also serves authenticated trading/account endpoints. L2 credentials are
|
|
4
|
+
// optional so public-read users can keep constructing a no-auth client.
|
|
9
5
|
export const PolymarketOptionsSchema = z.object({
|
|
10
6
|
gammaBaseURL: z.string().optional(),
|
|
11
7
|
dataBaseURL: z.string().optional(),
|
|
12
8
|
clobBaseURL: z.string().optional(),
|
|
9
|
+
clobAddress: z.string().optional(),
|
|
10
|
+
clobApiKey: z.string().optional(),
|
|
11
|
+
clobApiSecret: z.string().optional(),
|
|
12
|
+
clobApiPassphrase: z.string().optional(),
|
|
13
|
+
clobApiCredentials: z.custom().optional(),
|
|
14
|
+
clobL1Headers: z.custom().optional(),
|
|
15
|
+
clobL2HeaderSigner: z.custom().optional(),
|
|
13
16
|
timeout: z.number().optional(),
|
|
14
17
|
fetch: z.custom().optional(),
|
|
15
18
|
});
|
|
@@ -49,4 +52,94 @@ export const PolymarketClobBatchPricesHistoryRequestSchema = z.object({
|
|
|
49
52
|
endTs: z.number().optional(),
|
|
50
53
|
fidelity: z.number().optional(),
|
|
51
54
|
});
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
// Authenticated CLOB trading/account schemas
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
export const PolymarketClobSignatureTypeSchema = z.union([
|
|
59
|
+
z.literal(0),
|
|
60
|
+
z.literal(1),
|
|
61
|
+
z.literal(2),
|
|
62
|
+
z.literal(3),
|
|
63
|
+
]);
|
|
64
|
+
export const PolymarketClobOrderTypeSchema = z.enum([
|
|
65
|
+
"GTC",
|
|
66
|
+
"FOK",
|
|
67
|
+
"GTD",
|
|
68
|
+
"FAK",
|
|
69
|
+
]);
|
|
70
|
+
export const PolymarketClobSignedOrderSchema = z.object({
|
|
71
|
+
maker: z.string().min(1),
|
|
72
|
+
signer: z.string().min(1),
|
|
73
|
+
tokenId: z.string().min(1),
|
|
74
|
+
makerAmount: z.string().min(1),
|
|
75
|
+
takerAmount: z.string().min(1),
|
|
76
|
+
side: PolymarketClobSideSchema,
|
|
77
|
+
expiration: z.string().min(1),
|
|
78
|
+
timestamp: z.string().min(1),
|
|
79
|
+
metadata: z.string().optional(),
|
|
80
|
+
builder: z.string().min(1),
|
|
81
|
+
signature: z.string().min(1),
|
|
82
|
+
salt: z.number(),
|
|
83
|
+
signatureType: PolymarketClobSignatureTypeSchema,
|
|
84
|
+
});
|
|
85
|
+
export const PolymarketClobPostOrderRequestSchema = z.object({
|
|
86
|
+
order: PolymarketClobSignedOrderSchema,
|
|
87
|
+
owner: z.string().min(1),
|
|
88
|
+
orderType: PolymarketClobOrderTypeSchema.optional(),
|
|
89
|
+
deferExec: z.boolean().optional(),
|
|
90
|
+
postOnly: z.boolean().optional(),
|
|
91
|
+
});
|
|
92
|
+
export const PolymarketClobPostOrdersRequestSchema = z
|
|
93
|
+
.array(PolymarketClobPostOrderRequestSchema)
|
|
94
|
+
.min(1)
|
|
95
|
+
.max(15);
|
|
96
|
+
export const PolymarketClobCancelOrderRequestSchema = z.object({
|
|
97
|
+
orderID: z.string().min(1),
|
|
98
|
+
});
|
|
99
|
+
export const PolymarketClobCancelOrdersRequestSchema = z
|
|
100
|
+
.array(z.string().min(1))
|
|
101
|
+
.min(1)
|
|
102
|
+
.max(3000);
|
|
103
|
+
export const PolymarketClobCancelMarketOrdersRequestSchema = z.object({
|
|
104
|
+
market: z.string().min(1),
|
|
105
|
+
asset_id: z.string().min(1),
|
|
106
|
+
});
|
|
107
|
+
export const PolymarketClobBalanceAllowanceQuerySchema = z.object({
|
|
108
|
+
asset_type: z.enum(["COLLATERAL", "CONDITIONAL"]),
|
|
109
|
+
token_id: z.string().optional(),
|
|
110
|
+
signature_type: PolymarketClobSignatureTypeSchema.optional(),
|
|
111
|
+
});
|
|
112
|
+
export const PolymarketClobUserOrdersQuerySchema = z.object({
|
|
113
|
+
id: z.string().optional(),
|
|
114
|
+
market: z.string().optional(),
|
|
115
|
+
asset_id: z.string().optional(),
|
|
116
|
+
next_cursor: z.string().optional(),
|
|
117
|
+
});
|
|
118
|
+
export const PolymarketClobUserTradesQuerySchema = z.object({
|
|
119
|
+
id: z.string().optional(),
|
|
120
|
+
maker_address: z.string().optional(),
|
|
121
|
+
market: z.string().optional(),
|
|
122
|
+
asset_id: z.string().optional(),
|
|
123
|
+
before: z.string().optional(),
|
|
124
|
+
after: z.string().optional(),
|
|
125
|
+
next_cursor: z.string().optional(),
|
|
126
|
+
});
|
|
127
|
+
export const PolymarketClobNotificationsQuerySchema = z.object({
|
|
128
|
+
signature_type: PolymarketClobSignatureTypeSchema,
|
|
129
|
+
});
|
|
130
|
+
export const PolymarketClobDropNotificationsQuerySchema = z.object({
|
|
131
|
+
ids: z.array(z.string().min(1)).min(1),
|
|
132
|
+
});
|
|
133
|
+
export const PolymarketClobOrderScoringQuerySchema = z.object({
|
|
134
|
+
order_id: z.string().min(1),
|
|
135
|
+
});
|
|
136
|
+
export const PolymarketClobOrdersScoringQuerySchema = z.object({
|
|
137
|
+
order_ids: z.array(z.string().min(1)).min(1),
|
|
138
|
+
});
|
|
139
|
+
export const PolymarketClobOrdersScoringRequestSchema = z
|
|
140
|
+
.array(z.string().min(1))
|
|
141
|
+
.min(1);
|
|
142
|
+
export const PolymarketClobHeartbeatRequestSchema = z.object({
|
|
143
|
+
heartbeat_id: z.string(),
|
|
144
|
+
});
|
|
52
145
|
//# sourceMappingURL=zod.js.map
|
package/dist/src/zod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../src/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../src/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsCxB,4EAA4E;AAC5E,0EAA0E;AAC1E,wEAAwE;AACxE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM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C,GAAG,CAAC;KACtD,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACxB,GAAG,CAAC,CAAC,CAAC,CAAC;AAMV,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apicity/polymarket",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Polymarket
|
|
3
|
+
"version": "0.2.7",
|
|
4
|
+
"description": "Polymarket API provider — Gamma, Data, and CLOB market-data/trading endpoints.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|