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