pmxt-core 2.7.0 → 2.9.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.
Files changed (85) hide show
  1. package/dist/BaseExchange.d.ts +59 -0
  2. package/dist/BaseExchange.js +155 -0
  3. package/dist/exchanges/kalshi/api.d.ts +1763 -0
  4. package/dist/exchanges/kalshi/api.js +2554 -0
  5. package/dist/exchanges/kalshi/fetchEvents.d.ts +3 -2
  6. package/dist/exchanges/kalshi/fetchEvents.js +9 -16
  7. package/dist/exchanges/kalshi/fetchMarkets.d.ts +3 -2
  8. package/dist/exchanges/kalshi/fetchMarkets.js +27 -35
  9. package/dist/exchanges/kalshi/fetchOHLCV.d.ts +1 -2
  10. package/dist/exchanges/kalshi/fetchOHLCV.js +9 -11
  11. package/dist/exchanges/kalshi/index.d.ts +2 -1
  12. package/dist/exchanges/kalshi/index.js +161 -183
  13. package/dist/exchanges/kalshi/kalshi.test.js +51 -31
  14. package/dist/exchanges/limitless/api.d.ts +555 -0
  15. package/dist/exchanges/limitless/api.js +863 -0
  16. package/dist/exchanges/limitless/fetchEvents.d.ts +1 -2
  17. package/dist/exchanges/limitless/fetchEvents.js +9 -15
  18. package/dist/exchanges/limitless/fetchMarkets.d.ts +1 -2
  19. package/dist/exchanges/limitless/fetchMarkets.js +11 -18
  20. package/dist/exchanges/limitless/fetchOHLCV.d.ts +1 -2
  21. package/dist/exchanges/limitless/fetchOHLCV.js +2 -11
  22. package/dist/exchanges/limitless/fetchOrderBook.d.ts +1 -2
  23. package/dist/exchanges/limitless/fetchOrderBook.js +2 -11
  24. package/dist/exchanges/limitless/index.d.ts +1 -0
  25. package/dist/exchanges/limitless/index.js +28 -7
  26. package/dist/exchanges/limitless/websocket.d.ts +2 -1
  27. package/dist/exchanges/limitless/websocket.js +6 -4
  28. package/dist/exchanges/myriad/api.d.ts +294 -0
  29. package/dist/exchanges/myriad/api.js +690 -0
  30. package/dist/exchanges/myriad/fetchOHLCV.d.ts +1 -2
  31. package/dist/exchanges/myriad/fetchOHLCV.js +3 -11
  32. package/dist/exchanges/myriad/fetchOrderBook.d.ts +1 -2
  33. package/dist/exchanges/myriad/fetchOrderBook.js +3 -11
  34. package/dist/exchanges/myriad/index.d.ts +2 -0
  35. package/dist/exchanges/myriad/index.js +116 -103
  36. package/dist/exchanges/myriad/websocket.d.ts +2 -2
  37. package/dist/exchanges/myriad/websocket.js +28 -6
  38. package/dist/exchanges/polymarket/api-clob.d.ts +346 -0
  39. package/dist/exchanges/polymarket/api-clob.js +517 -0
  40. package/dist/exchanges/polymarket/api-data.d.ts +789 -0
  41. package/dist/exchanges/polymarket/api-data.js +860 -0
  42. package/dist/exchanges/polymarket/api-gamma.d.ts +556 -0
  43. package/dist/exchanges/polymarket/api-gamma.js +1161 -0
  44. package/dist/exchanges/polymarket/fetchEvents.js +0 -68
  45. package/dist/exchanges/polymarket/fetchMarkets.js +2 -2
  46. package/dist/exchanges/polymarket/fetchOHLCV.d.ts +1 -2
  47. package/dist/exchanges/polymarket/fetchOHLCV.js +4 -10
  48. package/dist/exchanges/polymarket/fetchOrderBook.d.ts +1 -2
  49. package/dist/exchanges/polymarket/fetchOrderBook.js +2 -10
  50. package/dist/exchanges/polymarket/fetchTrades.d.ts +1 -2
  51. package/dist/exchanges/polymarket/fetchTrades.js +2 -11
  52. package/dist/exchanges/polymarket/index.d.ts +10 -0
  53. package/dist/exchanges/polymarket/index.js +110 -5
  54. package/dist/exchanges/probable/api.d.ts +605 -0
  55. package/dist/exchanges/probable/api.js +887 -0
  56. package/dist/exchanges/probable/fetchEvents.d.ts +3 -3
  57. package/dist/exchanges/probable/fetchEvents.js +28 -25
  58. package/dist/exchanges/probable/fetchMarkets.d.ts +1 -1
  59. package/dist/exchanges/probable/fetchMarkets.js +25 -21
  60. package/dist/exchanges/probable/index.d.ts +1 -0
  61. package/dist/exchanges/probable/index.js +92 -10
  62. package/dist/exchanges/probable/utils.d.ts +1 -2
  63. package/dist/exchanges/probable/utils.js +4 -11
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.js +3 -1
  66. package/dist/types.d.ts +1 -0
  67. package/dist/utils/openapi.d.ts +9 -0
  68. package/dist/utils/openapi.js +59 -0
  69. package/package.json +4 -3
  70. package/dist/exchanges/kalshi/fetchOrderBook.d.ts +0 -3
  71. package/dist/exchanges/kalshi/fetchOrderBook.js +0 -59
  72. package/dist/exchanges/kalshi/fetchTrades.d.ts +0 -4
  73. package/dist/exchanges/kalshi/fetchTrades.js +0 -31
  74. package/dist/exchanges/limitless/fetchPositions.d.ts +0 -2
  75. package/dist/exchanges/limitless/fetchPositions.js +0 -34
  76. package/dist/exchanges/myriad/fetchTrades.d.ts +0 -4
  77. package/dist/exchanges/myriad/fetchTrades.js +0 -62
  78. package/dist/exchanges/polymarket/fetchPositions.d.ts +0 -2
  79. package/dist/exchanges/polymarket/fetchPositions.js +0 -34
  80. package/dist/exchanges/probable/fetchOHLCV.d.ts +0 -4
  81. package/dist/exchanges/probable/fetchOHLCV.js +0 -83
  82. package/dist/exchanges/probable/fetchOrderBook.d.ts +0 -3
  83. package/dist/exchanges/probable/fetchOrderBook.js +0 -37
  84. package/dist/exchanges/probable/fetchPositions.d.ts +0 -2
  85. package/dist/exchanges/probable/fetchPositions.js +0 -33
@@ -0,0 +1,556 @@
1
+ /**
2
+ * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
3
+ * Generated at: 2026-02-18T15:48:13.469Z
4
+ * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
+ */
6
+ export declare const polymarketGammaSpec: {
7
+ openapi: string;
8
+ info: {
9
+ title: string;
10
+ version: string;
11
+ };
12
+ servers: {
13
+ url: string;
14
+ }[];
15
+ tags: {
16
+ name: string;
17
+ }[];
18
+ paths: {
19
+ "/status": {
20
+ get: {
21
+ tags: string[];
22
+ summary: string;
23
+ operationId: string;
24
+ };
25
+ };
26
+ "/teams": {
27
+ get: {
28
+ tags: string[];
29
+ summary: string;
30
+ operationId: string;
31
+ parameters: ({
32
+ $ref: string;
33
+ name?: undefined;
34
+ in?: undefined;
35
+ schema?: undefined;
36
+ } | {
37
+ name: string;
38
+ in: string;
39
+ schema: {
40
+ type: string;
41
+ items: {
42
+ type: string;
43
+ };
44
+ };
45
+ $ref?: undefined;
46
+ })[];
47
+ };
48
+ };
49
+ "/sports": {
50
+ get: {
51
+ tags: string[];
52
+ summary: string;
53
+ operationId: string;
54
+ };
55
+ };
56
+ "/sports/market-types": {
57
+ get: {
58
+ tags: string[];
59
+ summary: string;
60
+ operationId: string;
61
+ };
62
+ };
63
+ "/tags": {
64
+ get: {
65
+ tags: string[];
66
+ summary: string;
67
+ operationId: string;
68
+ parameters: ({
69
+ $ref: string;
70
+ name?: undefined;
71
+ in?: undefined;
72
+ schema?: undefined;
73
+ } | {
74
+ name: string;
75
+ in: string;
76
+ schema: {
77
+ type: string;
78
+ };
79
+ $ref?: undefined;
80
+ })[];
81
+ };
82
+ };
83
+ "/tags/{id}": {
84
+ get: {
85
+ tags: string[];
86
+ summary: string;
87
+ operationId: string;
88
+ parameters: ({
89
+ $ref: string;
90
+ name?: undefined;
91
+ in?: undefined;
92
+ schema?: undefined;
93
+ } | {
94
+ name: string;
95
+ in: string;
96
+ schema: {
97
+ type: string;
98
+ };
99
+ $ref?: undefined;
100
+ })[];
101
+ };
102
+ };
103
+ "/tags/{id}/related-tags": {
104
+ get: {
105
+ tags: string[];
106
+ summary: string;
107
+ operationId: string;
108
+ parameters: ({
109
+ $ref: string;
110
+ name?: undefined;
111
+ in?: undefined;
112
+ schema?: undefined;
113
+ } | {
114
+ name: string;
115
+ in: string;
116
+ schema: {
117
+ type: string;
118
+ enum?: undefined;
119
+ };
120
+ $ref?: undefined;
121
+ } | {
122
+ name: string;
123
+ in: string;
124
+ schema: {
125
+ type: string;
126
+ enum: string[];
127
+ };
128
+ $ref?: undefined;
129
+ })[];
130
+ };
131
+ };
132
+ "/tags/slug/{slug}/related-tags": {
133
+ get: {
134
+ tags: string[];
135
+ summary: string;
136
+ operationId: string;
137
+ parameters: ({
138
+ $ref: string;
139
+ name?: undefined;
140
+ in?: undefined;
141
+ schema?: undefined;
142
+ } | {
143
+ name: string;
144
+ in: string;
145
+ schema: {
146
+ type: string;
147
+ enum?: undefined;
148
+ };
149
+ $ref?: undefined;
150
+ } | {
151
+ name: string;
152
+ in: string;
153
+ schema: {
154
+ type: string;
155
+ enum: string[];
156
+ };
157
+ $ref?: undefined;
158
+ })[];
159
+ };
160
+ };
161
+ "/tags/{id}/related-tags/tags": {
162
+ get: {
163
+ tags: string[];
164
+ summary: string;
165
+ operationId: string;
166
+ parameters: ({
167
+ $ref: string;
168
+ name?: undefined;
169
+ in?: undefined;
170
+ schema?: undefined;
171
+ } | {
172
+ name: string;
173
+ in: string;
174
+ schema: {
175
+ type: string;
176
+ enum?: undefined;
177
+ };
178
+ $ref?: undefined;
179
+ } | {
180
+ name: string;
181
+ in: string;
182
+ schema: {
183
+ type: string;
184
+ enum: string[];
185
+ };
186
+ $ref?: undefined;
187
+ })[];
188
+ };
189
+ };
190
+ "/tags/slug/{slug}/related-tags/tags": {
191
+ get: {
192
+ tags: string[];
193
+ summary: string;
194
+ operationId: string;
195
+ parameters: ({
196
+ $ref: string;
197
+ name?: undefined;
198
+ in?: undefined;
199
+ schema?: undefined;
200
+ } | {
201
+ name: string;
202
+ in: string;
203
+ schema: {
204
+ type: string;
205
+ enum?: undefined;
206
+ };
207
+ $ref?: undefined;
208
+ } | {
209
+ name: string;
210
+ in: string;
211
+ schema: {
212
+ type: string;
213
+ enum: string[];
214
+ };
215
+ $ref?: undefined;
216
+ })[];
217
+ };
218
+ };
219
+ "/events": {
220
+ get: {
221
+ tags: string[];
222
+ summary: string;
223
+ operationId: string;
224
+ parameters: ({
225
+ $ref: string;
226
+ name?: undefined;
227
+ in?: undefined;
228
+ schema?: undefined;
229
+ } | {
230
+ name: string;
231
+ in: string;
232
+ schema: {
233
+ type: string;
234
+ items: {
235
+ type: string;
236
+ };
237
+ format?: undefined;
238
+ };
239
+ $ref?: undefined;
240
+ } | {
241
+ name: string;
242
+ in: string;
243
+ schema: {
244
+ type: string;
245
+ items?: undefined;
246
+ format?: undefined;
247
+ };
248
+ $ref?: undefined;
249
+ } | {
250
+ name: string;
251
+ in: string;
252
+ schema: {
253
+ type: string;
254
+ format: string;
255
+ items?: undefined;
256
+ };
257
+ $ref?: undefined;
258
+ })[];
259
+ };
260
+ };
261
+ "/events/{id}": {
262
+ get: {
263
+ tags: string[];
264
+ summary: string;
265
+ operationId: string;
266
+ parameters: ({
267
+ $ref: string;
268
+ name?: undefined;
269
+ in?: undefined;
270
+ schema?: undefined;
271
+ } | {
272
+ name: string;
273
+ in: string;
274
+ schema: {
275
+ type: string;
276
+ };
277
+ $ref?: undefined;
278
+ })[];
279
+ };
280
+ };
281
+ "/events/{id}/tags": {
282
+ get: {
283
+ tags: string[];
284
+ summary: string;
285
+ operationId: string;
286
+ parameters: {
287
+ $ref: string;
288
+ }[];
289
+ };
290
+ };
291
+ "/events/slug/{slug}": {
292
+ get: {
293
+ tags: string[];
294
+ summary: string;
295
+ operationId: string;
296
+ parameters: ({
297
+ $ref: string;
298
+ name?: undefined;
299
+ in?: undefined;
300
+ schema?: undefined;
301
+ } | {
302
+ name: string;
303
+ in: string;
304
+ schema: {
305
+ type: string;
306
+ };
307
+ $ref?: undefined;
308
+ })[];
309
+ };
310
+ };
311
+ "/markets": {
312
+ get: {
313
+ tags: string[];
314
+ summary: string;
315
+ operationId: string;
316
+ parameters: ({
317
+ $ref: string;
318
+ name?: undefined;
319
+ in?: undefined;
320
+ schema?: undefined;
321
+ } | {
322
+ name: string;
323
+ in: string;
324
+ schema: {
325
+ type: string;
326
+ items: {
327
+ type: string;
328
+ };
329
+ format?: undefined;
330
+ };
331
+ $ref?: undefined;
332
+ } | {
333
+ name: string;
334
+ in: string;
335
+ schema: {
336
+ type: string;
337
+ items?: undefined;
338
+ format?: undefined;
339
+ };
340
+ $ref?: undefined;
341
+ } | {
342
+ name: string;
343
+ in: string;
344
+ schema: {
345
+ type: string;
346
+ format: string;
347
+ items?: undefined;
348
+ };
349
+ $ref?: undefined;
350
+ })[];
351
+ };
352
+ };
353
+ "/markets/{id}": {
354
+ get: {
355
+ tags: string[];
356
+ summary: string;
357
+ operationId: string;
358
+ parameters: ({
359
+ $ref: string;
360
+ name?: undefined;
361
+ in?: undefined;
362
+ schema?: undefined;
363
+ } | {
364
+ name: string;
365
+ in: string;
366
+ schema: {
367
+ type: string;
368
+ };
369
+ $ref?: undefined;
370
+ })[];
371
+ };
372
+ };
373
+ "/markets/{id}/tags": {
374
+ get: {
375
+ tags: string[];
376
+ summary: string;
377
+ operationId: string;
378
+ parameters: {
379
+ $ref: string;
380
+ }[];
381
+ };
382
+ };
383
+ "/markets/slug/{slug}": {
384
+ get: {
385
+ tags: string[];
386
+ summary: string;
387
+ operationId: string;
388
+ parameters: ({
389
+ $ref: string;
390
+ name?: undefined;
391
+ in?: undefined;
392
+ schema?: undefined;
393
+ } | {
394
+ name: string;
395
+ in: string;
396
+ schema: {
397
+ type: string;
398
+ };
399
+ $ref?: undefined;
400
+ })[];
401
+ };
402
+ };
403
+ "/series": {
404
+ get: {
405
+ tags: string[];
406
+ summary: string;
407
+ operationId: string;
408
+ parameters: ({
409
+ $ref: string;
410
+ name?: undefined;
411
+ in?: undefined;
412
+ schema?: undefined;
413
+ } | {
414
+ name: string;
415
+ in: string;
416
+ schema: {
417
+ type: string;
418
+ items: {
419
+ type: string;
420
+ };
421
+ };
422
+ $ref?: undefined;
423
+ } | {
424
+ name: string;
425
+ in: string;
426
+ schema: {
427
+ type: string;
428
+ items?: undefined;
429
+ };
430
+ $ref?: undefined;
431
+ })[];
432
+ };
433
+ };
434
+ "/series/{id}": {
435
+ get: {
436
+ tags: string[];
437
+ summary: string;
438
+ operationId: string;
439
+ parameters: ({
440
+ $ref: string;
441
+ name?: undefined;
442
+ in?: undefined;
443
+ schema?: undefined;
444
+ } | {
445
+ name: string;
446
+ in: string;
447
+ schema: {
448
+ type: string;
449
+ };
450
+ $ref?: undefined;
451
+ })[];
452
+ };
453
+ };
454
+ "/comments": {
455
+ get: {
456
+ tags: string[];
457
+ summary: string;
458
+ operationId: string;
459
+ parameters: ({
460
+ $ref: string;
461
+ name?: undefined;
462
+ in?: undefined;
463
+ schema?: undefined;
464
+ } | {
465
+ name: string;
466
+ in: string;
467
+ schema: {
468
+ type: string;
469
+ enum: string[];
470
+ };
471
+ $ref?: undefined;
472
+ } | {
473
+ name: string;
474
+ in: string;
475
+ schema: {
476
+ type: string;
477
+ enum?: undefined;
478
+ };
479
+ $ref?: undefined;
480
+ })[];
481
+ };
482
+ };
483
+ "/comments/{id}": {
484
+ get: {
485
+ tags: string[];
486
+ summary: string;
487
+ operationId: string;
488
+ parameters: ({
489
+ name: string;
490
+ in: string;
491
+ required: boolean;
492
+ schema: {
493
+ type: string;
494
+ };
495
+ } | {
496
+ name: string;
497
+ in: string;
498
+ schema: {
499
+ type: string;
500
+ };
501
+ required?: undefined;
502
+ })[];
503
+ };
504
+ };
505
+ "/public-profile": {
506
+ get: {
507
+ tags: string[];
508
+ summary: string;
509
+ operationId: string;
510
+ parameters: {
511
+ name: string;
512
+ in: string;
513
+ required: boolean;
514
+ schema: {
515
+ type: string;
516
+ pattern: string;
517
+ };
518
+ }[];
519
+ };
520
+ };
521
+ "/public-search": {
522
+ get: {
523
+ tags: string[];
524
+ summary: string;
525
+ operationId: string;
526
+ parameters: ({
527
+ name: string;
528
+ in: string;
529
+ required: boolean;
530
+ schema: {
531
+ type: string;
532
+ items?: undefined;
533
+ };
534
+ } | {
535
+ name: string;
536
+ in: string;
537
+ schema: {
538
+ type: string;
539
+ items?: undefined;
540
+ };
541
+ required?: undefined;
542
+ } | {
543
+ name: string;
544
+ in: string;
545
+ schema: {
546
+ type: string;
547
+ items: {
548
+ type: string;
549
+ };
550
+ };
551
+ required?: undefined;
552
+ })[];
553
+ };
554
+ };
555
+ };
556
+ };