pmxt-core 2.8.0 → 2.9.1

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,887 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.probableApiSpec = void 0;
4
+ /**
5
+ * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
6
+ * Generated at: 2026-02-18T16:13:58.565Z
7
+ * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
+ */
9
+ exports.probableApiSpec = {
10
+ "openapi": "3.0.0",
11
+ "info": {
12
+ "title": "Probable Markets API",
13
+ "version": "1.0.0",
14
+ "contact": {
15
+ "name": "Probable Markets"
16
+ }
17
+ },
18
+ "servers": [
19
+ {
20
+ "url": "https://api.probable.markets"
21
+ },
22
+ {
23
+ "url": "https://market-api.probable.markets"
24
+ }
25
+ ],
26
+ "tags": [
27
+ {
28
+ "name": "Authentication"
29
+ },
30
+ {
31
+ "name": "Events"
32
+ },
33
+ {
34
+ "name": "Markets"
35
+ },
36
+ {
37
+ "name": "Search"
38
+ },
39
+ {
40
+ "name": "Tags"
41
+ },
42
+ {
43
+ "name": "Orders"
44
+ },
45
+ {
46
+ "name": "Orderbook Data"
47
+ },
48
+ {
49
+ "name": "Trades"
50
+ },
51
+ {
52
+ "name": "User Data"
53
+ }
54
+ ],
55
+ "components": {
56
+ "securitySchemes": {
57
+ "ProbAddress": {
58
+ "type": "apiKey",
59
+ "in": "header",
60
+ "name": "prob_address",
61
+ "description": "EOA address (Externally Owned Account)"
62
+ },
63
+ "ProbSignature": {
64
+ "type": "apiKey",
65
+ "in": "header",
66
+ "name": "prob_signature",
67
+ "description": "EIP-712 signature (L1) or HMAC signature (L2)"
68
+ },
69
+ "ProbTimestamp": {
70
+ "type": "apiKey",
71
+ "in": "header",
72
+ "name": "prob_timestamp",
73
+ "description": "Unix timestamp"
74
+ },
75
+ "ProbNonce": {
76
+ "type": "apiKey",
77
+ "in": "header",
78
+ "name": "prob_nonce",
79
+ "description": "Nonce from /auth/nonce (Required for L1)"
80
+ },
81
+ "ProbApiKey": {
82
+ "type": "apiKey",
83
+ "in": "header",
84
+ "name": "prob_api_key",
85
+ "description": "API Key (Required for L2)"
86
+ },
87
+ "ProbPassphrase": {
88
+ "type": "apiKey",
89
+ "in": "header",
90
+ "name": "prob_passphrase",
91
+ "description": "API Passphrase (Required for L2)"
92
+ },
93
+ "ProbAccountType": {
94
+ "type": "apiKey",
95
+ "in": "header",
96
+ "name": "prob_account_type",
97
+ "description": "Optional. Set to 'eoa' for EOA flow."
98
+ }
99
+ }
100
+ },
101
+ "paths": {
102
+ "/public/api/v1/auth/nonce": {
103
+ "get": {
104
+ "tags": [
105
+ "Authentication"
106
+ ],
107
+ "summary": "Generate Nonce"
108
+ }
109
+ },
110
+ "/public/api/v1/auth/login": {
111
+ "post": {
112
+ "tags": [
113
+ "Authentication"
114
+ ],
115
+ "summary": "Login"
116
+ }
117
+ },
118
+ "/public/api/v1/auth/logout": {
119
+ "post": {
120
+ "tags": [
121
+ "Authentication"
122
+ ],
123
+ "summary": "Logout"
124
+ }
125
+ },
126
+ "/public/api/v1/auth/api-key/{chainId}": {
127
+ "parameters": [
128
+ {
129
+ "in": "path",
130
+ "name": "chainId",
131
+ "required": true,
132
+ "schema": {
133
+ "type": "integer"
134
+ }
135
+ }
136
+ ],
137
+ "post": {
138
+ "tags": [
139
+ "Authentication"
140
+ ],
141
+ "summary": "Generate API Key",
142
+ "security": [
143
+ {
144
+ "ProbAddress": [],
145
+ "ProbSignature": [],
146
+ "ProbTimestamp": [],
147
+ "ProbNonce": []
148
+ }
149
+ ]
150
+ },
151
+ "get": {
152
+ "tags": [
153
+ "Authentication"
154
+ ],
155
+ "summary": "Get API Key",
156
+ "security": [
157
+ {
158
+ "ProbAddress": [],
159
+ "ProbSignature": [],
160
+ "ProbTimestamp": [],
161
+ "ProbNonce": []
162
+ }
163
+ ]
164
+ },
165
+ "delete": {
166
+ "tags": [
167
+ "Authentication"
168
+ ],
169
+ "summary": "Delete API Key",
170
+ "security": [
171
+ {
172
+ "ProbAddress": [],
173
+ "ProbSignature": [],
174
+ "ProbTimestamp": [],
175
+ "ProbApiKey": [],
176
+ "ProbPassphrase": []
177
+ }
178
+ ]
179
+ }
180
+ },
181
+ "/public/api/v1/auth/verify/l1": {
182
+ "post": {
183
+ "tags": [
184
+ "Authentication"
185
+ ],
186
+ "summary": "Verify L1 Headers",
187
+ "security": [
188
+ {
189
+ "ProbAddress": [],
190
+ "ProbSignature": [],
191
+ "ProbTimestamp": [],
192
+ "ProbNonce": []
193
+ }
194
+ ]
195
+ }
196
+ },
197
+ "/public/api/v1/auth/verify/l2": {
198
+ "post": {
199
+ "tags": [
200
+ "Authentication"
201
+ ],
202
+ "summary": "Verify L2 Headers",
203
+ "security": [
204
+ {
205
+ "ProbAddress": [],
206
+ "ProbSignature": [],
207
+ "ProbTimestamp": [],
208
+ "ProbApiKey": [],
209
+ "ProbPassphrase": []
210
+ }
211
+ ]
212
+ }
213
+ },
214
+ "/public/api/v1/events/": {
215
+ "get": {
216
+ "tags": [
217
+ "Events"
218
+ ],
219
+ "summary": "List All Events",
220
+ "parameters": [
221
+ {
222
+ "in": "query",
223
+ "name": "page",
224
+ "schema": {
225
+ "type": "integer",
226
+ "default": 1
227
+ }
228
+ },
229
+ {
230
+ "in": "query",
231
+ "name": "limit",
232
+ "schema": {
233
+ "type": "integer",
234
+ "default": 20
235
+ }
236
+ },
237
+ {
238
+ "in": "query",
239
+ "name": "status",
240
+ "schema": {
241
+ "type": "string",
242
+ "enum": [
243
+ "active",
244
+ "closed",
245
+ "all"
246
+ ]
247
+ }
248
+ },
249
+ {
250
+ "in": "query",
251
+ "name": "tag_id",
252
+ "schema": {
253
+ "oneOf": [
254
+ {
255
+ "type": "integer"
256
+ },
257
+ {
258
+ "type": "array",
259
+ "items": {
260
+ "type": "integer"
261
+ }
262
+ }
263
+ ]
264
+ }
265
+ },
266
+ {
267
+ "in": "query",
268
+ "name": "sort",
269
+ "schema": {
270
+ "type": "string"
271
+ }
272
+ }
273
+ ]
274
+ }
275
+ },
276
+ "/public/api/v1/events/{id}": {
277
+ "get": {
278
+ "tags": [
279
+ "Events"
280
+ ],
281
+ "summary": "Get Event by ID",
282
+ "parameters": [
283
+ {
284
+ "in": "path",
285
+ "name": "id",
286
+ "required": true,
287
+ "schema": {
288
+ "type": "integer"
289
+ }
290
+ }
291
+ ]
292
+ }
293
+ },
294
+ "/public/api/v1/events/slug/{slug}": {
295
+ "get": {
296
+ "tags": [
297
+ "Events"
298
+ ],
299
+ "summary": "Get Event by Slug",
300
+ "parameters": [
301
+ {
302
+ "in": "path",
303
+ "name": "slug",
304
+ "required": true,
305
+ "schema": {
306
+ "type": "string"
307
+ }
308
+ }
309
+ ]
310
+ }
311
+ },
312
+ "/public/api/v1/events/{id}/tags": {
313
+ "get": {
314
+ "tags": [
315
+ "Events"
316
+ ],
317
+ "summary": "Get Tags for Event",
318
+ "parameters": [
319
+ {
320
+ "in": "path",
321
+ "name": "id",
322
+ "required": true,
323
+ "schema": {
324
+ "type": "integer"
325
+ }
326
+ }
327
+ ]
328
+ }
329
+ },
330
+ "/public/api/v1/markets/": {
331
+ "get": {
332
+ "tags": [
333
+ "Markets"
334
+ ],
335
+ "summary": "List All Markets",
336
+ "parameters": [
337
+ {
338
+ "in": "query",
339
+ "name": "page",
340
+ "schema": {
341
+ "type": "integer"
342
+ }
343
+ },
344
+ {
345
+ "in": "query",
346
+ "name": "active",
347
+ "schema": {
348
+ "type": "boolean"
349
+ }
350
+ },
351
+ {
352
+ "in": "query",
353
+ "name": "event_id",
354
+ "schema": {
355
+ "type": "integer"
356
+ }
357
+ }
358
+ ]
359
+ }
360
+ },
361
+ "/public/api/v1/markets/{id}": {
362
+ "get": {
363
+ "tags": [
364
+ "Markets"
365
+ ],
366
+ "summary": "Get Market by ID",
367
+ "parameters": [
368
+ {
369
+ "in": "path",
370
+ "name": "id",
371
+ "required": true,
372
+ "schema": {
373
+ "type": "integer"
374
+ }
375
+ }
376
+ ]
377
+ }
378
+ },
379
+ "/public/api/v1/markets/polymarket/{polymarketId}": {
380
+ "get": {
381
+ "tags": [
382
+ "Markets"
383
+ ],
384
+ "summary": "Get Market by Polymarket ID",
385
+ "parameters": [
386
+ {
387
+ "in": "path",
388
+ "name": "polymarketId",
389
+ "required": true,
390
+ "schema": {
391
+ "type": "string"
392
+ }
393
+ }
394
+ ]
395
+ }
396
+ },
397
+ "/public/api/v1/markets/bsc/{bscQuestionId}": {
398
+ "get": {
399
+ "tags": [
400
+ "Markets"
401
+ ],
402
+ "summary": "Get Market by BSC Question ID",
403
+ "parameters": [
404
+ {
405
+ "in": "path",
406
+ "name": "bscQuestionId",
407
+ "required": true,
408
+ "schema": {
409
+ "type": "string"
410
+ }
411
+ }
412
+ ]
413
+ }
414
+ },
415
+ "/public/api/v1/public-search/": {
416
+ "get": {
417
+ "tags": [
418
+ "Search"
419
+ ],
420
+ "summary": "Search Events and Markets",
421
+ "parameters": [
422
+ {
423
+ "in": "query",
424
+ "name": "q",
425
+ "required": true,
426
+ "schema": {
427
+ "type": "string"
428
+ }
429
+ },
430
+ {
431
+ "in": "query",
432
+ "name": "page",
433
+ "schema": {
434
+ "type": "integer"
435
+ }
436
+ },
437
+ {
438
+ "in": "query",
439
+ "name": "events_tag",
440
+ "schema": {
441
+ "type": "string"
442
+ }
443
+ },
444
+ {
445
+ "in": "query",
446
+ "name": "optimized",
447
+ "schema": {
448
+ "type": "boolean"
449
+ }
450
+ }
451
+ ]
452
+ }
453
+ },
454
+ "/public/api/v1/tags/": {
455
+ "get": {
456
+ "tags": [
457
+ "Tags"
458
+ ],
459
+ "summary": "List All Tags"
460
+ }
461
+ },
462
+ "/public/api/v1/order/{chainId}": {
463
+ "post": {
464
+ "tags": [
465
+ "Orders"
466
+ ],
467
+ "summary": "Place Order",
468
+ "parameters": [
469
+ {
470
+ "in": "path",
471
+ "name": "chainId",
472
+ "required": true,
473
+ "schema": {
474
+ "type": "integer"
475
+ }
476
+ }
477
+ ],
478
+ "security": [
479
+ {
480
+ "ProbAddress": [],
481
+ "ProbSignature": [],
482
+ "ProbTimestamp": [],
483
+ "ProbApiKey": [],
484
+ "ProbPassphrase": [],
485
+ "ProbAccountType": []
486
+ }
487
+ ]
488
+ }
489
+ },
490
+ "/public/api/v1/order/{chainId}/{orderId}": {
491
+ "delete": {
492
+ "tags": [
493
+ "Orders"
494
+ ],
495
+ "summary": "Cancel Order",
496
+ "parameters": [
497
+ {
498
+ "in": "path",
499
+ "name": "chainId",
500
+ "required": true,
501
+ "schema": {
502
+ "type": "integer"
503
+ }
504
+ },
505
+ {
506
+ "in": "path",
507
+ "name": "orderId",
508
+ "required": true,
509
+ "schema": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ {
514
+ "in": "query",
515
+ "name": "tokenId",
516
+ "required": true,
517
+ "schema": {
518
+ "type": "string"
519
+ }
520
+ }
521
+ ],
522
+ "security": [
523
+ {
524
+ "ProbAddress": [],
525
+ "ProbSignature": [],
526
+ "ProbTimestamp": [],
527
+ "ProbApiKey": [],
528
+ "ProbPassphrase": []
529
+ }
530
+ ]
531
+ }
532
+ },
533
+ "/public/api/v1/orders/{chainId}/{orderId}": {
534
+ "get": {
535
+ "tags": [
536
+ "Orders"
537
+ ],
538
+ "summary": "Get Order",
539
+ "parameters": [
540
+ {
541
+ "in": "path",
542
+ "name": "chainId",
543
+ "required": true,
544
+ "schema": {
545
+ "type": "integer"
546
+ }
547
+ },
548
+ {
549
+ "in": "path",
550
+ "name": "orderId",
551
+ "required": true,
552
+ "schema": {
553
+ "type": "string"
554
+ }
555
+ },
556
+ {
557
+ "in": "query",
558
+ "name": "tokenId",
559
+ "required": true,
560
+ "schema": {
561
+ "type": "string"
562
+ }
563
+ }
564
+ ],
565
+ "security": [
566
+ {
567
+ "ProbAddress": [],
568
+ "ProbSignature": [],
569
+ "ProbTimestamp": [],
570
+ "ProbApiKey": [],
571
+ "ProbPassphrase": []
572
+ }
573
+ ]
574
+ }
575
+ },
576
+ "/public/api/v1/orders/{chainId}/open": {
577
+ "get": {
578
+ "tags": [
579
+ "Orders"
580
+ ],
581
+ "summary": "Get Open Orders",
582
+ "parameters": [
583
+ {
584
+ "in": "path",
585
+ "name": "chainId",
586
+ "required": true,
587
+ "schema": {
588
+ "type": "integer"
589
+ }
590
+ },
591
+ {
592
+ "in": "query",
593
+ "name": "limit",
594
+ "schema": {
595
+ "type": "integer"
596
+ }
597
+ },
598
+ {
599
+ "in": "query",
600
+ "name": "page",
601
+ "schema": {
602
+ "type": "integer"
603
+ }
604
+ }
605
+ ],
606
+ "security": [
607
+ {
608
+ "ProbAddress": [],
609
+ "ProbSignature": [],
610
+ "ProbTimestamp": [],
611
+ "ProbApiKey": [],
612
+ "ProbPassphrase": []
613
+ }
614
+ ]
615
+ }
616
+ },
617
+ "/public/api/v1/price": {
618
+ "get": {
619
+ "tags": [
620
+ "Orderbook Data"
621
+ ],
622
+ "summary": "Get Price",
623
+ "parameters": [
624
+ {
625
+ "in": "query",
626
+ "name": "token_id",
627
+ "required": true,
628
+ "schema": {
629
+ "type": "string"
630
+ }
631
+ },
632
+ {
633
+ "in": "query",
634
+ "name": "side",
635
+ "required": true,
636
+ "schema": {
637
+ "type": "string",
638
+ "enum": [
639
+ "BUY",
640
+ "SELL"
641
+ ]
642
+ }
643
+ }
644
+ ]
645
+ }
646
+ },
647
+ "/public/api/v1/prices": {
648
+ "post": {
649
+ "tags": [
650
+ "Orderbook Data"
651
+ ],
652
+ "summary": "Get Prices (Batch)"
653
+ }
654
+ },
655
+ "/public/api/v1/midpoint": {
656
+ "get": {
657
+ "tags": [
658
+ "Orderbook Data"
659
+ ],
660
+ "summary": "Get Midpoint",
661
+ "parameters": [
662
+ {
663
+ "in": "query",
664
+ "name": "token_id",
665
+ "required": true,
666
+ "schema": {
667
+ "type": "string"
668
+ }
669
+ }
670
+ ]
671
+ }
672
+ },
673
+ "/public/api/v1/book": {
674
+ "get": {
675
+ "tags": [
676
+ "Orderbook Data"
677
+ ],
678
+ "summary": "Get Order Book",
679
+ "parameters": [
680
+ {
681
+ "in": "query",
682
+ "name": "token_id",
683
+ "required": true,
684
+ "schema": {
685
+ "type": "string"
686
+ }
687
+ }
688
+ ]
689
+ }
690
+ },
691
+ "/public/api/v1/prices-history": {
692
+ "get": {
693
+ "tags": [
694
+ "Orderbook Data"
695
+ ],
696
+ "summary": "Get Price History",
697
+ "parameters": [
698
+ {
699
+ "in": "query",
700
+ "name": "market",
701
+ "required": true,
702
+ "schema": {
703
+ "type": "string"
704
+ }
705
+ },
706
+ {
707
+ "in": "query",
708
+ "name": "interval",
709
+ "schema": {
710
+ "type": "string",
711
+ "enum": [
712
+ "max",
713
+ "1m",
714
+ "1h",
715
+ "6h",
716
+ "1d",
717
+ "1w"
718
+ ]
719
+ }
720
+ },
721
+ {
722
+ "in": "query",
723
+ "name": "startTs",
724
+ "schema": {
725
+ "type": "integer"
726
+ }
727
+ },
728
+ {
729
+ "in": "query",
730
+ "name": "endTs",
731
+ "schema": {
732
+ "type": "integer"
733
+ }
734
+ }
735
+ ]
736
+ }
737
+ },
738
+ "/public/api/v1/trade/{chainId}": {
739
+ "get": {
740
+ "tags": [
741
+ "Trades"
742
+ ],
743
+ "summary": "Get Trades (Authenticated)",
744
+ "parameters": [
745
+ {
746
+ "in": "path",
747
+ "name": "chainId",
748
+ "required": true,
749
+ "schema": {
750
+ "type": "integer"
751
+ }
752
+ },
753
+ {
754
+ "in": "query",
755
+ "name": "tokenId",
756
+ "required": true,
757
+ "schema": {
758
+ "type": "string"
759
+ }
760
+ },
761
+ {
762
+ "in": "query",
763
+ "name": "limit",
764
+ "schema": {
765
+ "type": "integer"
766
+ }
767
+ },
768
+ {
769
+ "in": "query",
770
+ "name": "next_cursor",
771
+ "schema": {
772
+ "type": "string"
773
+ }
774
+ }
775
+ ],
776
+ "security": [
777
+ {
778
+ "ProbAddress": [],
779
+ "ProbSignature": [],
780
+ "ProbTimestamp": [],
781
+ "ProbApiKey": [],
782
+ "ProbPassphrase": []
783
+ }
784
+ ]
785
+ }
786
+ },
787
+ "/public/api/v1/trades": {
788
+ "get": {
789
+ "tags": [
790
+ "Trades"
791
+ ],
792
+ "summary": "Get Public Trades",
793
+ "parameters": [
794
+ {
795
+ "in": "query",
796
+ "name": "user",
797
+ "schema": {
798
+ "type": "string"
799
+ }
800
+ },
801
+ {
802
+ "in": "query",
803
+ "name": "limit",
804
+ "schema": {
805
+ "type": "integer"
806
+ }
807
+ },
808
+ {
809
+ "in": "query",
810
+ "name": "side",
811
+ "schema": {
812
+ "type": "string"
813
+ }
814
+ }
815
+ ]
816
+ }
817
+ },
818
+ "/public/api/v1/activity": {
819
+ "get": {
820
+ "tags": [
821
+ "User Data"
822
+ ],
823
+ "summary": "User Activity",
824
+ "parameters": [
825
+ {
826
+ "in": "query",
827
+ "name": "user",
828
+ "required": true,
829
+ "schema": {
830
+ "type": "string"
831
+ }
832
+ },
833
+ {
834
+ "in": "query",
835
+ "name": "limit",
836
+ "schema": {
837
+ "type": "integer"
838
+ }
839
+ }
840
+ ]
841
+ }
842
+ },
843
+ "/public/api/v1/position/current": {
844
+ "get": {
845
+ "tags": [
846
+ "User Data"
847
+ ],
848
+ "summary": "Current Position",
849
+ "parameters": [
850
+ {
851
+ "in": "query",
852
+ "name": "user",
853
+ "required": true,
854
+ "schema": {
855
+ "type": "string"
856
+ }
857
+ },
858
+ {
859
+ "in": "query",
860
+ "name": "eventId",
861
+ "schema": {
862
+ "type": "integer"
863
+ }
864
+ }
865
+ ]
866
+ }
867
+ },
868
+ "/public/api/v1/pnl": {
869
+ "get": {
870
+ "tags": [
871
+ "User Data"
872
+ ],
873
+ "summary": "Profit and Loss",
874
+ "parameters": [
875
+ {
876
+ "in": "query",
877
+ "name": "user_address",
878
+ "required": true,
879
+ "schema": {
880
+ "type": "string"
881
+ }
882
+ }
883
+ ]
884
+ }
885
+ }
886
+ }
887
+ };