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,346 @@
1
+ /**
2
+ * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
3
+ * Generated at: 2026-02-18T15:48:13.451Z
4
+ * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
+ */
6
+ export declare const polymarketClobSpec: {
7
+ openapi: string;
8
+ info: {
9
+ title: string;
10
+ version: string;
11
+ contact: {
12
+ name: string;
13
+ url: string;
14
+ };
15
+ };
16
+ servers: {
17
+ url: string;
18
+ }[];
19
+ components: {
20
+ securitySchemes: {
21
+ L1Auth: {
22
+ type: string;
23
+ in: string;
24
+ name: string;
25
+ description: string;
26
+ };
27
+ L2Auth: {
28
+ type: string;
29
+ in: string;
30
+ name: string;
31
+ description: string;
32
+ };
33
+ };
34
+ };
35
+ paths: {
36
+ "/book": {
37
+ get: {
38
+ tags: string[];
39
+ summary: string;
40
+ parameters: {
41
+ name: string;
42
+ in: string;
43
+ required: boolean;
44
+ schema: {
45
+ type: string;
46
+ };
47
+ }[];
48
+ };
49
+ };
50
+ "/books": {
51
+ post: {
52
+ tags: string[];
53
+ summary: string;
54
+ };
55
+ };
56
+ "/price": {
57
+ get: {
58
+ tags: string[];
59
+ summary: string;
60
+ parameters: ({
61
+ name: string;
62
+ in: string;
63
+ required: boolean;
64
+ schema: {
65
+ type: string;
66
+ enum?: undefined;
67
+ };
68
+ } | {
69
+ name: string;
70
+ in: string;
71
+ required: boolean;
72
+ schema: {
73
+ type: string;
74
+ enum: string[];
75
+ };
76
+ })[];
77
+ };
78
+ };
79
+ "/prices": {
80
+ get: {
81
+ tags: string[];
82
+ summary: string;
83
+ };
84
+ post: {
85
+ tags: string[];
86
+ summary: string;
87
+ };
88
+ };
89
+ "/midpoint": {
90
+ get: {
91
+ tags: string[];
92
+ summary: string;
93
+ parameters: {
94
+ name: string;
95
+ in: string;
96
+ required: boolean;
97
+ schema: {
98
+ type: string;
99
+ };
100
+ }[];
101
+ };
102
+ };
103
+ "/spreads": {
104
+ post: {
105
+ tags: string[];
106
+ summary: string;
107
+ };
108
+ };
109
+ "/prices-history": {
110
+ get: {
111
+ tags: string[];
112
+ summary: string;
113
+ parameters: ({
114
+ name: string;
115
+ in: string;
116
+ required: boolean;
117
+ schema: {
118
+ type: string;
119
+ enum?: undefined;
120
+ };
121
+ } | {
122
+ name: string;
123
+ in: string;
124
+ schema: {
125
+ type: string;
126
+ enum?: undefined;
127
+ };
128
+ required?: undefined;
129
+ } | {
130
+ name: string;
131
+ in: string;
132
+ schema: {
133
+ type: string;
134
+ enum: string[];
135
+ };
136
+ required?: undefined;
137
+ })[];
138
+ };
139
+ };
140
+ "/auth/api-key": {
141
+ post: {
142
+ summary: string;
143
+ tags: string[];
144
+ security: {
145
+ L1Auth: never[];
146
+ }[];
147
+ parameters: {
148
+ $ref: string;
149
+ }[];
150
+ };
151
+ };
152
+ "/auth/derive-api-key": {
153
+ get: {
154
+ summary: string;
155
+ tags: string[];
156
+ security: {
157
+ L1Auth: never[];
158
+ }[];
159
+ parameters: {
160
+ $ref: string;
161
+ }[];
162
+ };
163
+ };
164
+ "/order": {
165
+ post: {
166
+ summary: string;
167
+ tags: string[];
168
+ security: {
169
+ L2Auth: never[];
170
+ }[];
171
+ parameters: {
172
+ $ref: string;
173
+ }[];
174
+ };
175
+ delete: {
176
+ summary: string;
177
+ tags: string[];
178
+ security: {
179
+ L2Auth: never[];
180
+ }[];
181
+ parameters: {
182
+ $ref: string;
183
+ }[];
184
+ };
185
+ };
186
+ "/orders": {
187
+ post: {
188
+ summary: string;
189
+ tags: string[];
190
+ security: {
191
+ L2Auth: never[];
192
+ }[];
193
+ parameters: {
194
+ $ref: string;
195
+ }[];
196
+ };
197
+ delete: {
198
+ summary: string;
199
+ tags: string[];
200
+ security: {
201
+ L2Auth: never[];
202
+ }[];
203
+ parameters: {
204
+ $ref: string;
205
+ }[];
206
+ };
207
+ };
208
+ "/cancel-all": {
209
+ delete: {
210
+ summary: string;
211
+ tags: string[];
212
+ security: {
213
+ L2Auth: never[];
214
+ }[];
215
+ parameters: {
216
+ $ref: string;
217
+ }[];
218
+ };
219
+ };
220
+ "/cancel-market-orders": {
221
+ delete: {
222
+ summary: string;
223
+ tags: string[];
224
+ security: {
225
+ L2Auth: never[];
226
+ }[];
227
+ parameters: {
228
+ $ref: string;
229
+ }[];
230
+ };
231
+ };
232
+ "/data/order/{id}": {
233
+ get: {
234
+ summary: string;
235
+ tags: string[];
236
+ security: {
237
+ L2Auth: never[];
238
+ }[];
239
+ parameters: ({
240
+ $ref: string;
241
+ name?: undefined;
242
+ in?: undefined;
243
+ required?: undefined;
244
+ schema?: undefined;
245
+ } | {
246
+ name: string;
247
+ in: string;
248
+ required: boolean;
249
+ schema: {
250
+ type: string;
251
+ };
252
+ $ref?: undefined;
253
+ })[];
254
+ };
255
+ };
256
+ "/data/orders": {
257
+ get: {
258
+ summary: string;
259
+ tags: string[];
260
+ security: {
261
+ L2Auth: never[];
262
+ }[];
263
+ parameters: ({
264
+ $ref: string;
265
+ name?: undefined;
266
+ in?: undefined;
267
+ schema?: undefined;
268
+ } | {
269
+ name: string;
270
+ in: string;
271
+ schema: {
272
+ type: string;
273
+ };
274
+ $ref?: undefined;
275
+ })[];
276
+ };
277
+ };
278
+ "/data/trades": {
279
+ get: {
280
+ summary: string;
281
+ tags: string[];
282
+ security: {
283
+ L2Auth: never[];
284
+ }[];
285
+ parameters: ({
286
+ $ref: string;
287
+ name?: undefined;
288
+ in?: undefined;
289
+ schema?: undefined;
290
+ } | {
291
+ name: string;
292
+ in: string;
293
+ schema: {
294
+ type: string;
295
+ };
296
+ $ref?: undefined;
297
+ })[];
298
+ };
299
+ };
300
+ "/order-scoring": {
301
+ get: {
302
+ summary: string;
303
+ tags: string[];
304
+ security: {
305
+ L2Auth: never[];
306
+ }[];
307
+ parameters: ({
308
+ $ref: string;
309
+ name?: undefined;
310
+ in?: undefined;
311
+ required?: undefined;
312
+ schema?: undefined;
313
+ } | {
314
+ name: string;
315
+ in: string;
316
+ required: boolean;
317
+ schema: {
318
+ type: string;
319
+ };
320
+ $ref?: undefined;
321
+ })[];
322
+ };
323
+ };
324
+ "/orders-scoring": {
325
+ post: {
326
+ summary: string;
327
+ tags: string[];
328
+ security: {
329
+ L2Auth: never[];
330
+ }[];
331
+ parameters: {
332
+ $ref: string;
333
+ }[];
334
+ };
335
+ };
336
+ "/geoblock": {
337
+ get: {
338
+ summary: string;
339
+ tags: string[];
340
+ servers: {
341
+ url: string;
342
+ }[];
343
+ };
344
+ };
345
+ };
346
+ };