pmxtjs 2.2.0 → 2.4.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.
- package/README.md +2 -2
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +21 -0
- package/dist/esm/generated/src/apis/DefaultApi.js +42 -21
- package/dist/esm/generated/src/models/MarketOutcome.d.ts +6 -0
- package/dist/esm/generated/src/models/MarketOutcome.js +2 -0
- package/dist/esm/pmxt/client.js +18 -2
- package/dist/esm/pmxt/models.d.ts +2 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +21 -0
- package/dist/generated/src/apis/DefaultApi.js +42 -21
- package/dist/generated/src/models/MarketOutcome.d.ts +6 -0
- package/dist/generated/src/models/MarketOutcome.js +2 -0
- package/dist/pmxt/client.js +18 -2
- package/dist/pmxt/models.d.ts +2 -0
- package/generated/docs/DefaultApi.md +42 -42
- package/generated/docs/MarketOutcome.md +2 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +42 -21
- package/generated/src/models/MarketOutcome.ts +8 -0
- package/package.json +2 -2
- package/pmxt/client.ts +24 -2
- package/pmxt/models.ts +3 -0
package/README.md
CHANGED
|
@@ -107,9 +107,9 @@ const limitless = new pmxt.Limitless({
|
|
|
107
107
|
|
|
108
108
|
- `createOrder(params)` - Place a new order
|
|
109
109
|
```typescript
|
|
110
|
+
// Using outcome shorthand (recommended)
|
|
110
111
|
await poly.createOrder({
|
|
111
|
-
|
|
112
|
-
outcomeId: outcome.outcomeId,
|
|
112
|
+
outcome: market.yes,
|
|
113
113
|
side: 'buy',
|
|
114
114
|
type: 'limit',
|
|
115
115
|
amount: 10,
|
|
@@ -293,6 +293,7 @@ export declare const CancelOrderOperationExchangeEnum: {
|
|
|
293
293
|
readonly Polymarket: "polymarket";
|
|
294
294
|
readonly Kalshi: "kalshi";
|
|
295
295
|
readonly Limitless: "limitless";
|
|
296
|
+
readonly Probable: "probable";
|
|
296
297
|
};
|
|
297
298
|
export type CancelOrderOperationExchangeEnum = typeof CancelOrderOperationExchangeEnum[keyof typeof CancelOrderOperationExchangeEnum];
|
|
298
299
|
/**
|
|
@@ -302,6 +303,7 @@ export declare const CloseExchangeEnum: {
|
|
|
302
303
|
readonly Polymarket: "polymarket";
|
|
303
304
|
readonly Kalshi: "kalshi";
|
|
304
305
|
readonly Limitless: "limitless";
|
|
306
|
+
readonly Probable: "probable";
|
|
305
307
|
};
|
|
306
308
|
export type CloseExchangeEnum = typeof CloseExchangeEnum[keyof typeof CloseExchangeEnum];
|
|
307
309
|
/**
|
|
@@ -311,6 +313,7 @@ export declare const CreateOrderOperationExchangeEnum: {
|
|
|
311
313
|
readonly Polymarket: "polymarket";
|
|
312
314
|
readonly Kalshi: "kalshi";
|
|
313
315
|
readonly Limitless: "limitless";
|
|
316
|
+
readonly Probable: "probable";
|
|
314
317
|
};
|
|
315
318
|
export type CreateOrderOperationExchangeEnum = typeof CreateOrderOperationExchangeEnum[keyof typeof CreateOrderOperationExchangeEnum];
|
|
316
319
|
/**
|
|
@@ -320,6 +323,7 @@ export declare const FetchBalanceExchangeEnum: {
|
|
|
320
323
|
readonly Polymarket: "polymarket";
|
|
321
324
|
readonly Kalshi: "kalshi";
|
|
322
325
|
readonly Limitless: "limitless";
|
|
326
|
+
readonly Probable: "probable";
|
|
323
327
|
};
|
|
324
328
|
export type FetchBalanceExchangeEnum = typeof FetchBalanceExchangeEnum[keyof typeof FetchBalanceExchangeEnum];
|
|
325
329
|
/**
|
|
@@ -329,6 +333,7 @@ export declare const FetchEventsOperationExchangeEnum: {
|
|
|
329
333
|
readonly Polymarket: "polymarket";
|
|
330
334
|
readonly Kalshi: "kalshi";
|
|
331
335
|
readonly Limitless: "limitless";
|
|
336
|
+
readonly Probable: "probable";
|
|
332
337
|
};
|
|
333
338
|
export type FetchEventsOperationExchangeEnum = typeof FetchEventsOperationExchangeEnum[keyof typeof FetchEventsOperationExchangeEnum];
|
|
334
339
|
/**
|
|
@@ -338,6 +343,7 @@ export declare const FetchMarketsOperationExchangeEnum: {
|
|
|
338
343
|
readonly Polymarket: "polymarket";
|
|
339
344
|
readonly Kalshi: "kalshi";
|
|
340
345
|
readonly Limitless: "limitless";
|
|
346
|
+
readonly Probable: "probable";
|
|
341
347
|
};
|
|
342
348
|
export type FetchMarketsOperationExchangeEnum = typeof FetchMarketsOperationExchangeEnum[keyof typeof FetchMarketsOperationExchangeEnum];
|
|
343
349
|
/**
|
|
@@ -347,6 +353,7 @@ export declare const FetchOHLCVOperationExchangeEnum: {
|
|
|
347
353
|
readonly Polymarket: "polymarket";
|
|
348
354
|
readonly Kalshi: "kalshi";
|
|
349
355
|
readonly Limitless: "limitless";
|
|
356
|
+
readonly Probable: "probable";
|
|
350
357
|
};
|
|
351
358
|
export type FetchOHLCVOperationExchangeEnum = typeof FetchOHLCVOperationExchangeEnum[keyof typeof FetchOHLCVOperationExchangeEnum];
|
|
352
359
|
/**
|
|
@@ -356,6 +363,7 @@ export declare const FetchOpenOrdersOperationExchangeEnum: {
|
|
|
356
363
|
readonly Polymarket: "polymarket";
|
|
357
364
|
readonly Kalshi: "kalshi";
|
|
358
365
|
readonly Limitless: "limitless";
|
|
366
|
+
readonly Probable: "probable";
|
|
359
367
|
};
|
|
360
368
|
export type FetchOpenOrdersOperationExchangeEnum = typeof FetchOpenOrdersOperationExchangeEnum[keyof typeof FetchOpenOrdersOperationExchangeEnum];
|
|
361
369
|
/**
|
|
@@ -365,6 +373,7 @@ export declare const FetchOrderExchangeEnum: {
|
|
|
365
373
|
readonly Polymarket: "polymarket";
|
|
366
374
|
readonly Kalshi: "kalshi";
|
|
367
375
|
readonly Limitless: "limitless";
|
|
376
|
+
readonly Probable: "probable";
|
|
368
377
|
};
|
|
369
378
|
export type FetchOrderExchangeEnum = typeof FetchOrderExchangeEnum[keyof typeof FetchOrderExchangeEnum];
|
|
370
379
|
/**
|
|
@@ -374,6 +383,7 @@ export declare const FetchOrderBookOperationExchangeEnum: {
|
|
|
374
383
|
readonly Polymarket: "polymarket";
|
|
375
384
|
readonly Kalshi: "kalshi";
|
|
376
385
|
readonly Limitless: "limitless";
|
|
386
|
+
readonly Probable: "probable";
|
|
377
387
|
};
|
|
378
388
|
export type FetchOrderBookOperationExchangeEnum = typeof FetchOrderBookOperationExchangeEnum[keyof typeof FetchOrderBookOperationExchangeEnum];
|
|
379
389
|
/**
|
|
@@ -383,6 +393,7 @@ export declare const FetchPositionsOperationExchangeEnum: {
|
|
|
383
393
|
readonly Polymarket: "polymarket";
|
|
384
394
|
readonly Kalshi: "kalshi";
|
|
385
395
|
readonly Limitless: "limitless";
|
|
396
|
+
readonly Probable: "probable";
|
|
386
397
|
};
|
|
387
398
|
export type FetchPositionsOperationExchangeEnum = typeof FetchPositionsOperationExchangeEnum[keyof typeof FetchPositionsOperationExchangeEnum];
|
|
388
399
|
/**
|
|
@@ -392,6 +403,7 @@ export declare const FetchTradesOperationExchangeEnum: {
|
|
|
392
403
|
readonly Polymarket: "polymarket";
|
|
393
404
|
readonly Kalshi: "kalshi";
|
|
394
405
|
readonly Limitless: "limitless";
|
|
406
|
+
readonly Probable: "probable";
|
|
395
407
|
};
|
|
396
408
|
export type FetchTradesOperationExchangeEnum = typeof FetchTradesOperationExchangeEnum[keyof typeof FetchTradesOperationExchangeEnum];
|
|
397
409
|
/**
|
|
@@ -401,6 +413,7 @@ export declare const FilterEventsOperationExchangeEnum: {
|
|
|
401
413
|
readonly Polymarket: "polymarket";
|
|
402
414
|
readonly Kalshi: "kalshi";
|
|
403
415
|
readonly Limitless: "limitless";
|
|
416
|
+
readonly Probable: "probable";
|
|
404
417
|
};
|
|
405
418
|
export type FilterEventsOperationExchangeEnum = typeof FilterEventsOperationExchangeEnum[keyof typeof FilterEventsOperationExchangeEnum];
|
|
406
419
|
/**
|
|
@@ -410,6 +423,7 @@ export declare const FilterMarketsOperationExchangeEnum: {
|
|
|
410
423
|
readonly Polymarket: "polymarket";
|
|
411
424
|
readonly Kalshi: "kalshi";
|
|
412
425
|
readonly Limitless: "limitless";
|
|
426
|
+
readonly Probable: "probable";
|
|
413
427
|
};
|
|
414
428
|
export type FilterMarketsOperationExchangeEnum = typeof FilterMarketsOperationExchangeEnum[keyof typeof FilterMarketsOperationExchangeEnum];
|
|
415
429
|
/**
|
|
@@ -419,6 +433,7 @@ export declare const GetExecutionPriceOperationExchangeEnum: {
|
|
|
419
433
|
readonly Polymarket: "polymarket";
|
|
420
434
|
readonly Kalshi: "kalshi";
|
|
421
435
|
readonly Limitless: "limitless";
|
|
436
|
+
readonly Probable: "probable";
|
|
422
437
|
};
|
|
423
438
|
export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOperationExchangeEnum[keyof typeof GetExecutionPriceOperationExchangeEnum];
|
|
424
439
|
/**
|
|
@@ -428,6 +443,7 @@ export declare const GetExecutionPriceDetailedExchangeEnum: {
|
|
|
428
443
|
readonly Polymarket: "polymarket";
|
|
429
444
|
readonly Kalshi: "kalshi";
|
|
430
445
|
readonly Limitless: "limitless";
|
|
446
|
+
readonly Probable: "probable";
|
|
431
447
|
};
|
|
432
448
|
export type GetExecutionPriceDetailedExchangeEnum = typeof GetExecutionPriceDetailedExchangeEnum[keyof typeof GetExecutionPriceDetailedExchangeEnum];
|
|
433
449
|
/**
|
|
@@ -437,6 +453,7 @@ export declare const WatchOrderBookOperationExchangeEnum: {
|
|
|
437
453
|
readonly Polymarket: "polymarket";
|
|
438
454
|
readonly Kalshi: "kalshi";
|
|
439
455
|
readonly Limitless: "limitless";
|
|
456
|
+
readonly Probable: "probable";
|
|
440
457
|
};
|
|
441
458
|
export type WatchOrderBookOperationExchangeEnum = typeof WatchOrderBookOperationExchangeEnum[keyof typeof WatchOrderBookOperationExchangeEnum];
|
|
442
459
|
/**
|
|
@@ -446,6 +463,7 @@ export declare const WatchPricesOperationExchangeEnum: {
|
|
|
446
463
|
readonly Polymarket: "polymarket";
|
|
447
464
|
readonly Kalshi: "kalshi";
|
|
448
465
|
readonly Limitless: "limitless";
|
|
466
|
+
readonly Probable: "probable";
|
|
449
467
|
};
|
|
450
468
|
export type WatchPricesOperationExchangeEnum = typeof WatchPricesOperationExchangeEnum[keyof typeof WatchPricesOperationExchangeEnum];
|
|
451
469
|
/**
|
|
@@ -455,6 +473,7 @@ export declare const WatchTradesOperationExchangeEnum: {
|
|
|
455
473
|
readonly Polymarket: "polymarket";
|
|
456
474
|
readonly Kalshi: "kalshi";
|
|
457
475
|
readonly Limitless: "limitless";
|
|
476
|
+
readonly Probable: "probable";
|
|
458
477
|
};
|
|
459
478
|
export type WatchTradesOperationExchangeEnum = typeof WatchTradesOperationExchangeEnum[keyof typeof WatchTradesOperationExchangeEnum];
|
|
460
479
|
/**
|
|
@@ -464,6 +483,7 @@ export declare const WatchUserPositionsOperationExchangeEnum: {
|
|
|
464
483
|
readonly Polymarket: "polymarket";
|
|
465
484
|
readonly Kalshi: "kalshi";
|
|
466
485
|
readonly Limitless: "limitless";
|
|
486
|
+
readonly Probable: "probable";
|
|
467
487
|
};
|
|
468
488
|
export type WatchUserPositionsOperationExchangeEnum = typeof WatchUserPositionsOperationExchangeEnum[keyof typeof WatchUserPositionsOperationExchangeEnum];
|
|
469
489
|
/**
|
|
@@ -473,5 +493,6 @@ export declare const WatchUserTransactionsExchangeEnum: {
|
|
|
473
493
|
readonly Polymarket: "polymarket";
|
|
474
494
|
readonly Kalshi: "kalshi";
|
|
475
495
|
readonly Limitless: "limitless";
|
|
496
|
+
readonly Probable: "probable";
|
|
476
497
|
};
|
|
477
498
|
export type WatchUserTransactionsExchangeEnum = typeof WatchUserTransactionsExchangeEnum[keyof typeof WatchUserTransactionsExchangeEnum];
|
|
@@ -644,7 +644,8 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
644
644
|
export const CancelOrderOperationExchangeEnum = {
|
|
645
645
|
Polymarket: 'polymarket',
|
|
646
646
|
Kalshi: 'kalshi',
|
|
647
|
-
Limitless: 'limitless'
|
|
647
|
+
Limitless: 'limitless',
|
|
648
|
+
Probable: 'probable'
|
|
648
649
|
};
|
|
649
650
|
/**
|
|
650
651
|
* @export
|
|
@@ -652,7 +653,8 @@ export const CancelOrderOperationExchangeEnum = {
|
|
|
652
653
|
export const CloseExchangeEnum = {
|
|
653
654
|
Polymarket: 'polymarket',
|
|
654
655
|
Kalshi: 'kalshi',
|
|
655
|
-
Limitless: 'limitless'
|
|
656
|
+
Limitless: 'limitless',
|
|
657
|
+
Probable: 'probable'
|
|
656
658
|
};
|
|
657
659
|
/**
|
|
658
660
|
* @export
|
|
@@ -660,7 +662,8 @@ export const CloseExchangeEnum = {
|
|
|
660
662
|
export const CreateOrderOperationExchangeEnum = {
|
|
661
663
|
Polymarket: 'polymarket',
|
|
662
664
|
Kalshi: 'kalshi',
|
|
663
|
-
Limitless: 'limitless'
|
|
665
|
+
Limitless: 'limitless',
|
|
666
|
+
Probable: 'probable'
|
|
664
667
|
};
|
|
665
668
|
/**
|
|
666
669
|
* @export
|
|
@@ -668,7 +671,8 @@ export const CreateOrderOperationExchangeEnum = {
|
|
|
668
671
|
export const FetchBalanceExchangeEnum = {
|
|
669
672
|
Polymarket: 'polymarket',
|
|
670
673
|
Kalshi: 'kalshi',
|
|
671
|
-
Limitless: 'limitless'
|
|
674
|
+
Limitless: 'limitless',
|
|
675
|
+
Probable: 'probable'
|
|
672
676
|
};
|
|
673
677
|
/**
|
|
674
678
|
* @export
|
|
@@ -676,7 +680,8 @@ export const FetchBalanceExchangeEnum = {
|
|
|
676
680
|
export const FetchEventsOperationExchangeEnum = {
|
|
677
681
|
Polymarket: 'polymarket',
|
|
678
682
|
Kalshi: 'kalshi',
|
|
679
|
-
Limitless: 'limitless'
|
|
683
|
+
Limitless: 'limitless',
|
|
684
|
+
Probable: 'probable'
|
|
680
685
|
};
|
|
681
686
|
/**
|
|
682
687
|
* @export
|
|
@@ -684,7 +689,8 @@ export const FetchEventsOperationExchangeEnum = {
|
|
|
684
689
|
export const FetchMarketsOperationExchangeEnum = {
|
|
685
690
|
Polymarket: 'polymarket',
|
|
686
691
|
Kalshi: 'kalshi',
|
|
687
|
-
Limitless: 'limitless'
|
|
692
|
+
Limitless: 'limitless',
|
|
693
|
+
Probable: 'probable'
|
|
688
694
|
};
|
|
689
695
|
/**
|
|
690
696
|
* @export
|
|
@@ -692,7 +698,8 @@ export const FetchMarketsOperationExchangeEnum = {
|
|
|
692
698
|
export const FetchOHLCVOperationExchangeEnum = {
|
|
693
699
|
Polymarket: 'polymarket',
|
|
694
700
|
Kalshi: 'kalshi',
|
|
695
|
-
Limitless: 'limitless'
|
|
701
|
+
Limitless: 'limitless',
|
|
702
|
+
Probable: 'probable'
|
|
696
703
|
};
|
|
697
704
|
/**
|
|
698
705
|
* @export
|
|
@@ -700,7 +707,8 @@ export const FetchOHLCVOperationExchangeEnum = {
|
|
|
700
707
|
export const FetchOpenOrdersOperationExchangeEnum = {
|
|
701
708
|
Polymarket: 'polymarket',
|
|
702
709
|
Kalshi: 'kalshi',
|
|
703
|
-
Limitless: 'limitless'
|
|
710
|
+
Limitless: 'limitless',
|
|
711
|
+
Probable: 'probable'
|
|
704
712
|
};
|
|
705
713
|
/**
|
|
706
714
|
* @export
|
|
@@ -708,7 +716,8 @@ export const FetchOpenOrdersOperationExchangeEnum = {
|
|
|
708
716
|
export const FetchOrderExchangeEnum = {
|
|
709
717
|
Polymarket: 'polymarket',
|
|
710
718
|
Kalshi: 'kalshi',
|
|
711
|
-
Limitless: 'limitless'
|
|
719
|
+
Limitless: 'limitless',
|
|
720
|
+
Probable: 'probable'
|
|
712
721
|
};
|
|
713
722
|
/**
|
|
714
723
|
* @export
|
|
@@ -716,7 +725,8 @@ export const FetchOrderExchangeEnum = {
|
|
|
716
725
|
export const FetchOrderBookOperationExchangeEnum = {
|
|
717
726
|
Polymarket: 'polymarket',
|
|
718
727
|
Kalshi: 'kalshi',
|
|
719
|
-
Limitless: 'limitless'
|
|
728
|
+
Limitless: 'limitless',
|
|
729
|
+
Probable: 'probable'
|
|
720
730
|
};
|
|
721
731
|
/**
|
|
722
732
|
* @export
|
|
@@ -724,7 +734,8 @@ export const FetchOrderBookOperationExchangeEnum = {
|
|
|
724
734
|
export const FetchPositionsOperationExchangeEnum = {
|
|
725
735
|
Polymarket: 'polymarket',
|
|
726
736
|
Kalshi: 'kalshi',
|
|
727
|
-
Limitless: 'limitless'
|
|
737
|
+
Limitless: 'limitless',
|
|
738
|
+
Probable: 'probable'
|
|
728
739
|
};
|
|
729
740
|
/**
|
|
730
741
|
* @export
|
|
@@ -732,7 +743,8 @@ export const FetchPositionsOperationExchangeEnum = {
|
|
|
732
743
|
export const FetchTradesOperationExchangeEnum = {
|
|
733
744
|
Polymarket: 'polymarket',
|
|
734
745
|
Kalshi: 'kalshi',
|
|
735
|
-
Limitless: 'limitless'
|
|
746
|
+
Limitless: 'limitless',
|
|
747
|
+
Probable: 'probable'
|
|
736
748
|
};
|
|
737
749
|
/**
|
|
738
750
|
* @export
|
|
@@ -740,7 +752,8 @@ export const FetchTradesOperationExchangeEnum = {
|
|
|
740
752
|
export const FilterEventsOperationExchangeEnum = {
|
|
741
753
|
Polymarket: 'polymarket',
|
|
742
754
|
Kalshi: 'kalshi',
|
|
743
|
-
Limitless: 'limitless'
|
|
755
|
+
Limitless: 'limitless',
|
|
756
|
+
Probable: 'probable'
|
|
744
757
|
};
|
|
745
758
|
/**
|
|
746
759
|
* @export
|
|
@@ -748,7 +761,8 @@ export const FilterEventsOperationExchangeEnum = {
|
|
|
748
761
|
export const FilterMarketsOperationExchangeEnum = {
|
|
749
762
|
Polymarket: 'polymarket',
|
|
750
763
|
Kalshi: 'kalshi',
|
|
751
|
-
Limitless: 'limitless'
|
|
764
|
+
Limitless: 'limitless',
|
|
765
|
+
Probable: 'probable'
|
|
752
766
|
};
|
|
753
767
|
/**
|
|
754
768
|
* @export
|
|
@@ -756,7 +770,8 @@ export const FilterMarketsOperationExchangeEnum = {
|
|
|
756
770
|
export const GetExecutionPriceOperationExchangeEnum = {
|
|
757
771
|
Polymarket: 'polymarket',
|
|
758
772
|
Kalshi: 'kalshi',
|
|
759
|
-
Limitless: 'limitless'
|
|
773
|
+
Limitless: 'limitless',
|
|
774
|
+
Probable: 'probable'
|
|
760
775
|
};
|
|
761
776
|
/**
|
|
762
777
|
* @export
|
|
@@ -764,7 +779,8 @@ export const GetExecutionPriceOperationExchangeEnum = {
|
|
|
764
779
|
export const GetExecutionPriceDetailedExchangeEnum = {
|
|
765
780
|
Polymarket: 'polymarket',
|
|
766
781
|
Kalshi: 'kalshi',
|
|
767
|
-
Limitless: 'limitless'
|
|
782
|
+
Limitless: 'limitless',
|
|
783
|
+
Probable: 'probable'
|
|
768
784
|
};
|
|
769
785
|
/**
|
|
770
786
|
* @export
|
|
@@ -772,7 +788,8 @@ export const GetExecutionPriceDetailedExchangeEnum = {
|
|
|
772
788
|
export const WatchOrderBookOperationExchangeEnum = {
|
|
773
789
|
Polymarket: 'polymarket',
|
|
774
790
|
Kalshi: 'kalshi',
|
|
775
|
-
Limitless: 'limitless'
|
|
791
|
+
Limitless: 'limitless',
|
|
792
|
+
Probable: 'probable'
|
|
776
793
|
};
|
|
777
794
|
/**
|
|
778
795
|
* @export
|
|
@@ -780,7 +797,8 @@ export const WatchOrderBookOperationExchangeEnum = {
|
|
|
780
797
|
export const WatchPricesOperationExchangeEnum = {
|
|
781
798
|
Polymarket: 'polymarket',
|
|
782
799
|
Kalshi: 'kalshi',
|
|
783
|
-
Limitless: 'limitless'
|
|
800
|
+
Limitless: 'limitless',
|
|
801
|
+
Probable: 'probable'
|
|
784
802
|
};
|
|
785
803
|
/**
|
|
786
804
|
* @export
|
|
@@ -788,7 +806,8 @@ export const WatchPricesOperationExchangeEnum = {
|
|
|
788
806
|
export const WatchTradesOperationExchangeEnum = {
|
|
789
807
|
Polymarket: 'polymarket',
|
|
790
808
|
Kalshi: 'kalshi',
|
|
791
|
-
Limitless: 'limitless'
|
|
809
|
+
Limitless: 'limitless',
|
|
810
|
+
Probable: 'probable'
|
|
792
811
|
};
|
|
793
812
|
/**
|
|
794
813
|
* @export
|
|
@@ -796,7 +815,8 @@ export const WatchTradesOperationExchangeEnum = {
|
|
|
796
815
|
export const WatchUserPositionsOperationExchangeEnum = {
|
|
797
816
|
Polymarket: 'polymarket',
|
|
798
817
|
Kalshi: 'kalshi',
|
|
799
|
-
Limitless: 'limitless'
|
|
818
|
+
Limitless: 'limitless',
|
|
819
|
+
Probable: 'probable'
|
|
800
820
|
};
|
|
801
821
|
/**
|
|
802
822
|
* @export
|
|
@@ -804,5 +824,6 @@ export const WatchUserPositionsOperationExchangeEnum = {
|
|
|
804
824
|
export const WatchUserTransactionsExchangeEnum = {
|
|
805
825
|
Polymarket: 'polymarket',
|
|
806
826
|
Kalshi: 'kalshi',
|
|
807
|
-
Limitless: 'limitless'
|
|
827
|
+
Limitless: 'limitless',
|
|
828
|
+
Probable: 'probable'
|
|
808
829
|
};
|
|
@@ -21,6 +21,12 @@ export interface MarketOutcome {
|
|
|
21
21
|
* @memberof MarketOutcome
|
|
22
22
|
*/
|
|
23
23
|
outcomeId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The market this outcome belongs to (set automatically)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MarketOutcome
|
|
28
|
+
*/
|
|
29
|
+
marketId?: string;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -26,6 +26,7 @@ export function MarketOutcomeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
29
|
+
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
29
30
|
'label': json['label'] == null ? undefined : json['label'],
|
|
30
31
|
'price': json['price'] == null ? undefined : json['price'],
|
|
31
32
|
'priceChange24h': json['priceChange24h'] == null ? undefined : json['priceChange24h'],
|
|
@@ -41,6 +42,7 @@ export function MarketOutcomeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'outcomeId': value['outcomeId'],
|
|
45
|
+
'marketId': value['marketId'],
|
|
44
46
|
'label': value['label'],
|
|
45
47
|
'price': value['price'],
|
|
46
48
|
'priceChange24h': value['priceChange24h'],
|
package/dist/esm/pmxt/client.js
CHANGED
|
@@ -11,6 +11,7 @@ import { ServerManager } from "./server-manager.js";
|
|
|
11
11
|
function convertMarket(raw) {
|
|
12
12
|
const outcomes = (raw.outcomes || []).map((o) => ({
|
|
13
13
|
outcomeId: o.outcomeId,
|
|
14
|
+
marketId: o.marketId,
|
|
14
15
|
label: o.label,
|
|
15
16
|
price: o.price,
|
|
16
17
|
priceChange24h: o.priceChange24h,
|
|
@@ -18,6 +19,7 @@ function convertMarket(raw) {
|
|
|
18
19
|
}));
|
|
19
20
|
const convertOutcome = (o) => o ? ({
|
|
20
21
|
outcomeId: o.outcomeId,
|
|
22
|
+
marketId: o.marketId,
|
|
21
23
|
label: o.label,
|
|
22
24
|
price: o.price,
|
|
23
25
|
priceChange24h: o.priceChange24h,
|
|
@@ -457,9 +459,23 @@ export class Exchange {
|
|
|
457
459
|
async createOrder(params) {
|
|
458
460
|
await this.initPromise;
|
|
459
461
|
try {
|
|
462
|
+
// Resolve outcome shorthand: extract marketId/outcomeId from outcome object
|
|
463
|
+
let marketId = params.marketId;
|
|
464
|
+
let outcomeId = params.outcomeId;
|
|
465
|
+
if (params.outcome) {
|
|
466
|
+
if (marketId !== undefined || outcomeId !== undefined) {
|
|
467
|
+
throw new Error("Cannot specify both 'outcome' and 'marketId'/'outcomeId'. Use one or the other.");
|
|
468
|
+
}
|
|
469
|
+
const outcome = params.outcome;
|
|
470
|
+
if (!outcome.marketId) {
|
|
471
|
+
throw new Error("outcome.marketId is not set. Ensure the outcome comes from a fetched market.");
|
|
472
|
+
}
|
|
473
|
+
marketId = outcome.marketId;
|
|
474
|
+
outcomeId = outcome.outcomeId;
|
|
475
|
+
}
|
|
460
476
|
const paramsDict = {
|
|
461
|
-
marketId
|
|
462
|
-
outcomeId
|
|
477
|
+
marketId,
|
|
478
|
+
outcomeId,
|
|
463
479
|
side: params.side,
|
|
464
480
|
type: params.type,
|
|
465
481
|
amount: params.amount,
|
|
@@ -13,6 +13,8 @@ export interface MarketOutcome {
|
|
|
13
13
|
* - Kalshi: Market Ticker
|
|
14
14
|
*/
|
|
15
15
|
outcomeId: string;
|
|
16
|
+
/** The market this outcome belongs to (set automatically). */
|
|
17
|
+
marketId?: string;
|
|
16
18
|
/** Human-readable label (e.g., "Trump", "Yes") */
|
|
17
19
|
label: string;
|
|
18
20
|
/** Current price (0.0 to 1.0, representing probability) */
|
|
@@ -293,6 +293,7 @@ export declare const CancelOrderOperationExchangeEnum: {
|
|
|
293
293
|
readonly Polymarket: "polymarket";
|
|
294
294
|
readonly Kalshi: "kalshi";
|
|
295
295
|
readonly Limitless: "limitless";
|
|
296
|
+
readonly Probable: "probable";
|
|
296
297
|
};
|
|
297
298
|
export type CancelOrderOperationExchangeEnum = typeof CancelOrderOperationExchangeEnum[keyof typeof CancelOrderOperationExchangeEnum];
|
|
298
299
|
/**
|
|
@@ -302,6 +303,7 @@ export declare const CloseExchangeEnum: {
|
|
|
302
303
|
readonly Polymarket: "polymarket";
|
|
303
304
|
readonly Kalshi: "kalshi";
|
|
304
305
|
readonly Limitless: "limitless";
|
|
306
|
+
readonly Probable: "probable";
|
|
305
307
|
};
|
|
306
308
|
export type CloseExchangeEnum = typeof CloseExchangeEnum[keyof typeof CloseExchangeEnum];
|
|
307
309
|
/**
|
|
@@ -311,6 +313,7 @@ export declare const CreateOrderOperationExchangeEnum: {
|
|
|
311
313
|
readonly Polymarket: "polymarket";
|
|
312
314
|
readonly Kalshi: "kalshi";
|
|
313
315
|
readonly Limitless: "limitless";
|
|
316
|
+
readonly Probable: "probable";
|
|
314
317
|
};
|
|
315
318
|
export type CreateOrderOperationExchangeEnum = typeof CreateOrderOperationExchangeEnum[keyof typeof CreateOrderOperationExchangeEnum];
|
|
316
319
|
/**
|
|
@@ -320,6 +323,7 @@ export declare const FetchBalanceExchangeEnum: {
|
|
|
320
323
|
readonly Polymarket: "polymarket";
|
|
321
324
|
readonly Kalshi: "kalshi";
|
|
322
325
|
readonly Limitless: "limitless";
|
|
326
|
+
readonly Probable: "probable";
|
|
323
327
|
};
|
|
324
328
|
export type FetchBalanceExchangeEnum = typeof FetchBalanceExchangeEnum[keyof typeof FetchBalanceExchangeEnum];
|
|
325
329
|
/**
|
|
@@ -329,6 +333,7 @@ export declare const FetchEventsOperationExchangeEnum: {
|
|
|
329
333
|
readonly Polymarket: "polymarket";
|
|
330
334
|
readonly Kalshi: "kalshi";
|
|
331
335
|
readonly Limitless: "limitless";
|
|
336
|
+
readonly Probable: "probable";
|
|
332
337
|
};
|
|
333
338
|
export type FetchEventsOperationExchangeEnum = typeof FetchEventsOperationExchangeEnum[keyof typeof FetchEventsOperationExchangeEnum];
|
|
334
339
|
/**
|
|
@@ -338,6 +343,7 @@ export declare const FetchMarketsOperationExchangeEnum: {
|
|
|
338
343
|
readonly Polymarket: "polymarket";
|
|
339
344
|
readonly Kalshi: "kalshi";
|
|
340
345
|
readonly Limitless: "limitless";
|
|
346
|
+
readonly Probable: "probable";
|
|
341
347
|
};
|
|
342
348
|
export type FetchMarketsOperationExchangeEnum = typeof FetchMarketsOperationExchangeEnum[keyof typeof FetchMarketsOperationExchangeEnum];
|
|
343
349
|
/**
|
|
@@ -347,6 +353,7 @@ export declare const FetchOHLCVOperationExchangeEnum: {
|
|
|
347
353
|
readonly Polymarket: "polymarket";
|
|
348
354
|
readonly Kalshi: "kalshi";
|
|
349
355
|
readonly Limitless: "limitless";
|
|
356
|
+
readonly Probable: "probable";
|
|
350
357
|
};
|
|
351
358
|
export type FetchOHLCVOperationExchangeEnum = typeof FetchOHLCVOperationExchangeEnum[keyof typeof FetchOHLCVOperationExchangeEnum];
|
|
352
359
|
/**
|
|
@@ -356,6 +363,7 @@ export declare const FetchOpenOrdersOperationExchangeEnum: {
|
|
|
356
363
|
readonly Polymarket: "polymarket";
|
|
357
364
|
readonly Kalshi: "kalshi";
|
|
358
365
|
readonly Limitless: "limitless";
|
|
366
|
+
readonly Probable: "probable";
|
|
359
367
|
};
|
|
360
368
|
export type FetchOpenOrdersOperationExchangeEnum = typeof FetchOpenOrdersOperationExchangeEnum[keyof typeof FetchOpenOrdersOperationExchangeEnum];
|
|
361
369
|
/**
|
|
@@ -365,6 +373,7 @@ export declare const FetchOrderExchangeEnum: {
|
|
|
365
373
|
readonly Polymarket: "polymarket";
|
|
366
374
|
readonly Kalshi: "kalshi";
|
|
367
375
|
readonly Limitless: "limitless";
|
|
376
|
+
readonly Probable: "probable";
|
|
368
377
|
};
|
|
369
378
|
export type FetchOrderExchangeEnum = typeof FetchOrderExchangeEnum[keyof typeof FetchOrderExchangeEnum];
|
|
370
379
|
/**
|
|
@@ -374,6 +383,7 @@ export declare const FetchOrderBookOperationExchangeEnum: {
|
|
|
374
383
|
readonly Polymarket: "polymarket";
|
|
375
384
|
readonly Kalshi: "kalshi";
|
|
376
385
|
readonly Limitless: "limitless";
|
|
386
|
+
readonly Probable: "probable";
|
|
377
387
|
};
|
|
378
388
|
export type FetchOrderBookOperationExchangeEnum = typeof FetchOrderBookOperationExchangeEnum[keyof typeof FetchOrderBookOperationExchangeEnum];
|
|
379
389
|
/**
|
|
@@ -383,6 +393,7 @@ export declare const FetchPositionsOperationExchangeEnum: {
|
|
|
383
393
|
readonly Polymarket: "polymarket";
|
|
384
394
|
readonly Kalshi: "kalshi";
|
|
385
395
|
readonly Limitless: "limitless";
|
|
396
|
+
readonly Probable: "probable";
|
|
386
397
|
};
|
|
387
398
|
export type FetchPositionsOperationExchangeEnum = typeof FetchPositionsOperationExchangeEnum[keyof typeof FetchPositionsOperationExchangeEnum];
|
|
388
399
|
/**
|
|
@@ -392,6 +403,7 @@ export declare const FetchTradesOperationExchangeEnum: {
|
|
|
392
403
|
readonly Polymarket: "polymarket";
|
|
393
404
|
readonly Kalshi: "kalshi";
|
|
394
405
|
readonly Limitless: "limitless";
|
|
406
|
+
readonly Probable: "probable";
|
|
395
407
|
};
|
|
396
408
|
export type FetchTradesOperationExchangeEnum = typeof FetchTradesOperationExchangeEnum[keyof typeof FetchTradesOperationExchangeEnum];
|
|
397
409
|
/**
|
|
@@ -401,6 +413,7 @@ export declare const FilterEventsOperationExchangeEnum: {
|
|
|
401
413
|
readonly Polymarket: "polymarket";
|
|
402
414
|
readonly Kalshi: "kalshi";
|
|
403
415
|
readonly Limitless: "limitless";
|
|
416
|
+
readonly Probable: "probable";
|
|
404
417
|
};
|
|
405
418
|
export type FilterEventsOperationExchangeEnum = typeof FilterEventsOperationExchangeEnum[keyof typeof FilterEventsOperationExchangeEnum];
|
|
406
419
|
/**
|
|
@@ -410,6 +423,7 @@ export declare const FilterMarketsOperationExchangeEnum: {
|
|
|
410
423
|
readonly Polymarket: "polymarket";
|
|
411
424
|
readonly Kalshi: "kalshi";
|
|
412
425
|
readonly Limitless: "limitless";
|
|
426
|
+
readonly Probable: "probable";
|
|
413
427
|
};
|
|
414
428
|
export type FilterMarketsOperationExchangeEnum = typeof FilterMarketsOperationExchangeEnum[keyof typeof FilterMarketsOperationExchangeEnum];
|
|
415
429
|
/**
|
|
@@ -419,6 +433,7 @@ export declare const GetExecutionPriceOperationExchangeEnum: {
|
|
|
419
433
|
readonly Polymarket: "polymarket";
|
|
420
434
|
readonly Kalshi: "kalshi";
|
|
421
435
|
readonly Limitless: "limitless";
|
|
436
|
+
readonly Probable: "probable";
|
|
422
437
|
};
|
|
423
438
|
export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOperationExchangeEnum[keyof typeof GetExecutionPriceOperationExchangeEnum];
|
|
424
439
|
/**
|
|
@@ -428,6 +443,7 @@ export declare const GetExecutionPriceDetailedExchangeEnum: {
|
|
|
428
443
|
readonly Polymarket: "polymarket";
|
|
429
444
|
readonly Kalshi: "kalshi";
|
|
430
445
|
readonly Limitless: "limitless";
|
|
446
|
+
readonly Probable: "probable";
|
|
431
447
|
};
|
|
432
448
|
export type GetExecutionPriceDetailedExchangeEnum = typeof GetExecutionPriceDetailedExchangeEnum[keyof typeof GetExecutionPriceDetailedExchangeEnum];
|
|
433
449
|
/**
|
|
@@ -437,6 +453,7 @@ export declare const WatchOrderBookOperationExchangeEnum: {
|
|
|
437
453
|
readonly Polymarket: "polymarket";
|
|
438
454
|
readonly Kalshi: "kalshi";
|
|
439
455
|
readonly Limitless: "limitless";
|
|
456
|
+
readonly Probable: "probable";
|
|
440
457
|
};
|
|
441
458
|
export type WatchOrderBookOperationExchangeEnum = typeof WatchOrderBookOperationExchangeEnum[keyof typeof WatchOrderBookOperationExchangeEnum];
|
|
442
459
|
/**
|
|
@@ -446,6 +463,7 @@ export declare const WatchPricesOperationExchangeEnum: {
|
|
|
446
463
|
readonly Polymarket: "polymarket";
|
|
447
464
|
readonly Kalshi: "kalshi";
|
|
448
465
|
readonly Limitless: "limitless";
|
|
466
|
+
readonly Probable: "probable";
|
|
449
467
|
};
|
|
450
468
|
export type WatchPricesOperationExchangeEnum = typeof WatchPricesOperationExchangeEnum[keyof typeof WatchPricesOperationExchangeEnum];
|
|
451
469
|
/**
|
|
@@ -455,6 +473,7 @@ export declare const WatchTradesOperationExchangeEnum: {
|
|
|
455
473
|
readonly Polymarket: "polymarket";
|
|
456
474
|
readonly Kalshi: "kalshi";
|
|
457
475
|
readonly Limitless: "limitless";
|
|
476
|
+
readonly Probable: "probable";
|
|
458
477
|
};
|
|
459
478
|
export type WatchTradesOperationExchangeEnum = typeof WatchTradesOperationExchangeEnum[keyof typeof WatchTradesOperationExchangeEnum];
|
|
460
479
|
/**
|
|
@@ -464,6 +483,7 @@ export declare const WatchUserPositionsOperationExchangeEnum: {
|
|
|
464
483
|
readonly Polymarket: "polymarket";
|
|
465
484
|
readonly Kalshi: "kalshi";
|
|
466
485
|
readonly Limitless: "limitless";
|
|
486
|
+
readonly Probable: "probable";
|
|
467
487
|
};
|
|
468
488
|
export type WatchUserPositionsOperationExchangeEnum = typeof WatchUserPositionsOperationExchangeEnum[keyof typeof WatchUserPositionsOperationExchangeEnum];
|
|
469
489
|
/**
|
|
@@ -473,5 +493,6 @@ export declare const WatchUserTransactionsExchangeEnum: {
|
|
|
473
493
|
readonly Polymarket: "polymarket";
|
|
474
494
|
readonly Kalshi: "kalshi";
|
|
475
495
|
readonly Limitless: "limitless";
|
|
496
|
+
readonly Probable: "probable";
|
|
476
497
|
};
|
|
477
498
|
export type WatchUserTransactionsExchangeEnum = typeof WatchUserTransactionsExchangeEnum[keyof typeof WatchUserTransactionsExchangeEnum];
|