pmxt-core 2.21.2 → 2.22.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 (36) hide show
  1. package/dist/exchanges/kalshi/api.d.ts +1 -1
  2. package/dist/exchanges/kalshi/api.js +1 -1
  3. package/dist/exchanges/limitless/api.d.ts +1 -1
  4. package/dist/exchanges/limitless/api.js +1 -1
  5. package/dist/exchanges/myriad/api.d.ts +1 -1
  6. package/dist/exchanges/myriad/api.js +1 -1
  7. package/dist/exchanges/opinion/api.d.ts +412 -0
  8. package/dist/exchanges/opinion/api.js +477 -0
  9. package/dist/exchanges/opinion/auth.d.ts +15 -0
  10. package/dist/exchanges/opinion/auth.js +107 -0
  11. package/dist/exchanges/opinion/config.d.ts +5 -0
  12. package/dist/exchanges/opinion/config.js +9 -0
  13. package/dist/exchanges/opinion/errors.d.ts +8 -0
  14. package/dist/exchanges/opinion/errors.js +39 -0
  15. package/dist/exchanges/opinion/fetcher.d.ts +203 -0
  16. package/dist/exchanges/opinion/fetcher.js +300 -0
  17. package/dist/exchanges/opinion/index.d.ts +69 -0
  18. package/dist/exchanges/opinion/index.js +406 -0
  19. package/dist/exchanges/opinion/normalizer.d.ts +19 -0
  20. package/dist/exchanges/opinion/normalizer.js +231 -0
  21. package/dist/exchanges/opinion/utils.d.ts +23 -0
  22. package/dist/exchanges/opinion/utils.js +95 -0
  23. package/dist/exchanges/opinion/websocket.d.ts +83 -0
  24. package/dist/exchanges/opinion/websocket.js +365 -0
  25. package/dist/exchanges/polymarket/api-clob.d.ts +1 -1
  26. package/dist/exchanges/polymarket/api-clob.js +1 -1
  27. package/dist/exchanges/polymarket/api-data.d.ts +1 -1
  28. package/dist/exchanges/polymarket/api-data.js +1 -1
  29. package/dist/exchanges/polymarket/api-gamma.d.ts +1 -1
  30. package/dist/exchanges/polymarket/api-gamma.js +1 -1
  31. package/dist/exchanges/probable/api.d.ts +1 -1
  32. package/dist/exchanges/probable/api.js +1 -1
  33. package/dist/index.d.ts +4 -0
  34. package/dist/index.js +6 -2
  35. package/dist/server/app.js +8 -0
  36. package/package.json +5 -4
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
3
- * Generated at: 2026-03-20T15:55:56.054Z
3
+ * Generated at: 2026-03-22T18:41:21.593Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const kalshiApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.kalshiApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
6
- * Generated at: 2026-03-20T15:55:56.054Z
6
+ * Generated at: 2026-03-22T18:41:21.593Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.kalshiApiSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
3
- * Generated at: 2026-03-20T15:55:56.105Z
3
+ * Generated at: 2026-03-22T18:41:21.645Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const limitlessApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.limitlessApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
6
- * Generated at: 2026-03-20T15:55:56.105Z
6
+ * Generated at: 2026-03-22T18:41:21.645Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.limitlessApiSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
3
- * Generated at: 2026-03-20T15:55:56.118Z
3
+ * Generated at: 2026-03-22T18:41:21.660Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const myriadApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.myriadApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
6
- * Generated at: 2026-03-20T15:55:56.118Z
6
+ * Generated at: 2026-03-22T18:41:21.660Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.myriadApiSpec = {
@@ -0,0 +1,412 @@
1
+ /**
2
+ * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
3
+ * Generated at: 2026-03-22T18:41:21.666Z
4
+ * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
+ */
6
+ export declare const opinionApiSpec: {
7
+ openapi: string;
8
+ info: {
9
+ title: string;
10
+ version: string;
11
+ };
12
+ servers: {
13
+ url: string;
14
+ }[];
15
+ security: {
16
+ ApiKeyAuth: never[];
17
+ }[];
18
+ tags: {
19
+ name: string;
20
+ }[];
21
+ components: {
22
+ securitySchemes: {
23
+ ApiKeyAuth: {
24
+ type: string;
25
+ in: string;
26
+ name: string;
27
+ description: string;
28
+ };
29
+ };
30
+ };
31
+ paths: {
32
+ "/market": {
33
+ get: {
34
+ tags: string[];
35
+ summary: string;
36
+ operationId: string;
37
+ parameters: ({
38
+ name: string;
39
+ in: string;
40
+ schema: {
41
+ type: string;
42
+ default: number;
43
+ minimum: number;
44
+ maximum?: undefined;
45
+ enum?: undefined;
46
+ };
47
+ } | {
48
+ name: string;
49
+ in: string;
50
+ schema: {
51
+ type: string;
52
+ default: number;
53
+ maximum: number;
54
+ minimum?: undefined;
55
+ enum?: undefined;
56
+ };
57
+ } | {
58
+ name: string;
59
+ in: string;
60
+ schema: {
61
+ type: string;
62
+ enum: string[];
63
+ default?: undefined;
64
+ minimum?: undefined;
65
+ maximum?: undefined;
66
+ };
67
+ } | {
68
+ name: string;
69
+ in: string;
70
+ schema: {
71
+ type: string;
72
+ default: number;
73
+ enum: number[];
74
+ minimum?: undefined;
75
+ maximum?: undefined;
76
+ };
77
+ } | {
78
+ name: string;
79
+ in: string;
80
+ schema: {
81
+ type: string;
82
+ enum: number[];
83
+ default?: undefined;
84
+ minimum?: undefined;
85
+ maximum?: undefined;
86
+ };
87
+ } | {
88
+ name: string;
89
+ in: string;
90
+ schema: {
91
+ type: string;
92
+ default?: undefined;
93
+ minimum?: undefined;
94
+ maximum?: undefined;
95
+ enum?: undefined;
96
+ };
97
+ })[];
98
+ };
99
+ };
100
+ "/market/{marketId}": {
101
+ get: {
102
+ tags: string[];
103
+ summary: string;
104
+ operationId: string;
105
+ parameters: {
106
+ name: string;
107
+ in: string;
108
+ required: boolean;
109
+ schema: {
110
+ type: string;
111
+ format: string;
112
+ };
113
+ }[];
114
+ };
115
+ };
116
+ "/market/categorical/{marketId}": {
117
+ get: {
118
+ tags: string[];
119
+ summary: string;
120
+ operationId: string;
121
+ parameters: {
122
+ name: string;
123
+ in: string;
124
+ required: boolean;
125
+ schema: {
126
+ type: string;
127
+ format: string;
128
+ };
129
+ }[];
130
+ };
131
+ };
132
+ "/token/latest-price": {
133
+ get: {
134
+ tags: string[];
135
+ summary: string;
136
+ operationId: string;
137
+ parameters: {
138
+ name: string;
139
+ in: string;
140
+ required: boolean;
141
+ schema: {
142
+ type: string;
143
+ };
144
+ }[];
145
+ };
146
+ };
147
+ "/token/orderbook": {
148
+ get: {
149
+ tags: string[];
150
+ summary: string;
151
+ operationId: string;
152
+ parameters: {
153
+ name: string;
154
+ in: string;
155
+ required: boolean;
156
+ schema: {
157
+ type: string;
158
+ };
159
+ }[];
160
+ };
161
+ };
162
+ "/token/price-history": {
163
+ get: {
164
+ tags: string[];
165
+ summary: string;
166
+ operationId: string;
167
+ parameters: ({
168
+ name: string;
169
+ in: string;
170
+ required: boolean;
171
+ schema: {
172
+ type: string;
173
+ default?: undefined;
174
+ enum?: undefined;
175
+ format?: undefined;
176
+ };
177
+ } | {
178
+ name: string;
179
+ in: string;
180
+ schema: {
181
+ type: string;
182
+ default: string;
183
+ enum: string[];
184
+ format?: undefined;
185
+ };
186
+ required?: undefined;
187
+ } | {
188
+ name: string;
189
+ in: string;
190
+ schema: {
191
+ type: string;
192
+ format: string;
193
+ default?: undefined;
194
+ enum?: undefined;
195
+ };
196
+ required?: undefined;
197
+ })[];
198
+ };
199
+ };
200
+ "/quoteToken": {
201
+ get: {
202
+ tags: string[];
203
+ summary: string;
204
+ operationId: string;
205
+ parameters: ({
206
+ name: string;
207
+ in: string;
208
+ schema: {
209
+ type: string;
210
+ default: number;
211
+ };
212
+ } | {
213
+ name: string;
214
+ in: string;
215
+ schema: {
216
+ type: string;
217
+ default?: undefined;
218
+ };
219
+ })[];
220
+ };
221
+ };
222
+ "/trade/user/{walletAddress}": {
223
+ get: {
224
+ tags: string[];
225
+ summary: string;
226
+ operationId: string;
227
+ parameters: ({
228
+ name: string;
229
+ in: string;
230
+ required: boolean;
231
+ schema: {
232
+ type: string;
233
+ default?: undefined;
234
+ minimum?: undefined;
235
+ maximum?: undefined;
236
+ format?: undefined;
237
+ };
238
+ } | {
239
+ name: string;
240
+ in: string;
241
+ schema: {
242
+ type: string;
243
+ default: number;
244
+ minimum: number;
245
+ maximum?: undefined;
246
+ format?: undefined;
247
+ };
248
+ required?: undefined;
249
+ } | {
250
+ name: string;
251
+ in: string;
252
+ schema: {
253
+ type: string;
254
+ default: number;
255
+ maximum: number;
256
+ minimum?: undefined;
257
+ format?: undefined;
258
+ };
259
+ required?: undefined;
260
+ } | {
261
+ name: string;
262
+ in: string;
263
+ schema: {
264
+ type: string;
265
+ format: string;
266
+ default?: undefined;
267
+ minimum?: undefined;
268
+ maximum?: undefined;
269
+ };
270
+ required?: undefined;
271
+ } | {
272
+ name: string;
273
+ in: string;
274
+ schema: {
275
+ type: string;
276
+ default?: undefined;
277
+ minimum?: undefined;
278
+ maximum?: undefined;
279
+ format?: undefined;
280
+ };
281
+ required?: undefined;
282
+ })[];
283
+ };
284
+ };
285
+ "/positions/user/{walletAddress}": {
286
+ get: {
287
+ tags: string[];
288
+ summary: string;
289
+ operationId: string;
290
+ parameters: ({
291
+ name: string;
292
+ in: string;
293
+ required: boolean;
294
+ schema: {
295
+ type: string;
296
+ default?: undefined;
297
+ minimum?: undefined;
298
+ maximum?: undefined;
299
+ format?: undefined;
300
+ };
301
+ } | {
302
+ name: string;
303
+ in: string;
304
+ schema: {
305
+ type: string;
306
+ default: number;
307
+ minimum: number;
308
+ maximum?: undefined;
309
+ format?: undefined;
310
+ };
311
+ required?: undefined;
312
+ } | {
313
+ name: string;
314
+ in: string;
315
+ schema: {
316
+ type: string;
317
+ default: number;
318
+ maximum: number;
319
+ minimum?: undefined;
320
+ format?: undefined;
321
+ };
322
+ required?: undefined;
323
+ } | {
324
+ name: string;
325
+ in: string;
326
+ schema: {
327
+ type: string;
328
+ format: string;
329
+ default?: undefined;
330
+ minimum?: undefined;
331
+ maximum?: undefined;
332
+ };
333
+ required?: undefined;
334
+ } | {
335
+ name: string;
336
+ in: string;
337
+ schema: {
338
+ type: string;
339
+ default?: undefined;
340
+ minimum?: undefined;
341
+ maximum?: undefined;
342
+ format?: undefined;
343
+ };
344
+ required?: undefined;
345
+ })[];
346
+ };
347
+ };
348
+ "/order": {
349
+ get: {
350
+ tags: string[];
351
+ summary: string;
352
+ operationId: string;
353
+ parameters: ({
354
+ name: string;
355
+ in: string;
356
+ schema: {
357
+ type: string;
358
+ default: number;
359
+ minimum: number;
360
+ maximum?: undefined;
361
+ format?: undefined;
362
+ };
363
+ } | {
364
+ name: string;
365
+ in: string;
366
+ schema: {
367
+ type: string;
368
+ default: number;
369
+ maximum: number;
370
+ minimum?: undefined;
371
+ format?: undefined;
372
+ };
373
+ } | {
374
+ name: string;
375
+ in: string;
376
+ schema: {
377
+ type: string;
378
+ format: string;
379
+ default?: undefined;
380
+ minimum?: undefined;
381
+ maximum?: undefined;
382
+ };
383
+ } | {
384
+ name: string;
385
+ in: string;
386
+ schema: {
387
+ type: string;
388
+ default?: undefined;
389
+ minimum?: undefined;
390
+ maximum?: undefined;
391
+ format?: undefined;
392
+ };
393
+ })[];
394
+ };
395
+ };
396
+ "/order/{orderId}": {
397
+ get: {
398
+ tags: string[];
399
+ summary: string;
400
+ operationId: string;
401
+ parameters: {
402
+ name: string;
403
+ in: string;
404
+ required: boolean;
405
+ schema: {
406
+ type: string;
407
+ };
408
+ }[];
409
+ };
410
+ };
411
+ };
412
+ };