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
|
@@ -681,7 +681,8 @@ exports.DefaultApi = DefaultApi;
|
|
|
681
681
|
exports.CancelOrderOperationExchangeEnum = {
|
|
682
682
|
Polymarket: 'polymarket',
|
|
683
683
|
Kalshi: 'kalshi',
|
|
684
|
-
Limitless: 'limitless'
|
|
684
|
+
Limitless: 'limitless',
|
|
685
|
+
Probable: 'probable'
|
|
685
686
|
};
|
|
686
687
|
/**
|
|
687
688
|
* @export
|
|
@@ -689,7 +690,8 @@ exports.CancelOrderOperationExchangeEnum = {
|
|
|
689
690
|
exports.CloseExchangeEnum = {
|
|
690
691
|
Polymarket: 'polymarket',
|
|
691
692
|
Kalshi: 'kalshi',
|
|
692
|
-
Limitless: 'limitless'
|
|
693
|
+
Limitless: 'limitless',
|
|
694
|
+
Probable: 'probable'
|
|
693
695
|
};
|
|
694
696
|
/**
|
|
695
697
|
* @export
|
|
@@ -697,7 +699,8 @@ exports.CloseExchangeEnum = {
|
|
|
697
699
|
exports.CreateOrderOperationExchangeEnum = {
|
|
698
700
|
Polymarket: 'polymarket',
|
|
699
701
|
Kalshi: 'kalshi',
|
|
700
|
-
Limitless: 'limitless'
|
|
702
|
+
Limitless: 'limitless',
|
|
703
|
+
Probable: 'probable'
|
|
701
704
|
};
|
|
702
705
|
/**
|
|
703
706
|
* @export
|
|
@@ -705,7 +708,8 @@ exports.CreateOrderOperationExchangeEnum = {
|
|
|
705
708
|
exports.FetchBalanceExchangeEnum = {
|
|
706
709
|
Polymarket: 'polymarket',
|
|
707
710
|
Kalshi: 'kalshi',
|
|
708
|
-
Limitless: 'limitless'
|
|
711
|
+
Limitless: 'limitless',
|
|
712
|
+
Probable: 'probable'
|
|
709
713
|
};
|
|
710
714
|
/**
|
|
711
715
|
* @export
|
|
@@ -713,7 +717,8 @@ exports.FetchBalanceExchangeEnum = {
|
|
|
713
717
|
exports.FetchEventsOperationExchangeEnum = {
|
|
714
718
|
Polymarket: 'polymarket',
|
|
715
719
|
Kalshi: 'kalshi',
|
|
716
|
-
Limitless: 'limitless'
|
|
720
|
+
Limitless: 'limitless',
|
|
721
|
+
Probable: 'probable'
|
|
717
722
|
};
|
|
718
723
|
/**
|
|
719
724
|
* @export
|
|
@@ -721,7 +726,8 @@ exports.FetchEventsOperationExchangeEnum = {
|
|
|
721
726
|
exports.FetchMarketsOperationExchangeEnum = {
|
|
722
727
|
Polymarket: 'polymarket',
|
|
723
728
|
Kalshi: 'kalshi',
|
|
724
|
-
Limitless: 'limitless'
|
|
729
|
+
Limitless: 'limitless',
|
|
730
|
+
Probable: 'probable'
|
|
725
731
|
};
|
|
726
732
|
/**
|
|
727
733
|
* @export
|
|
@@ -729,7 +735,8 @@ exports.FetchMarketsOperationExchangeEnum = {
|
|
|
729
735
|
exports.FetchOHLCVOperationExchangeEnum = {
|
|
730
736
|
Polymarket: 'polymarket',
|
|
731
737
|
Kalshi: 'kalshi',
|
|
732
|
-
Limitless: 'limitless'
|
|
738
|
+
Limitless: 'limitless',
|
|
739
|
+
Probable: 'probable'
|
|
733
740
|
};
|
|
734
741
|
/**
|
|
735
742
|
* @export
|
|
@@ -737,7 +744,8 @@ exports.FetchOHLCVOperationExchangeEnum = {
|
|
|
737
744
|
exports.FetchOpenOrdersOperationExchangeEnum = {
|
|
738
745
|
Polymarket: 'polymarket',
|
|
739
746
|
Kalshi: 'kalshi',
|
|
740
|
-
Limitless: 'limitless'
|
|
747
|
+
Limitless: 'limitless',
|
|
748
|
+
Probable: 'probable'
|
|
741
749
|
};
|
|
742
750
|
/**
|
|
743
751
|
* @export
|
|
@@ -745,7 +753,8 @@ exports.FetchOpenOrdersOperationExchangeEnum = {
|
|
|
745
753
|
exports.FetchOrderExchangeEnum = {
|
|
746
754
|
Polymarket: 'polymarket',
|
|
747
755
|
Kalshi: 'kalshi',
|
|
748
|
-
Limitless: 'limitless'
|
|
756
|
+
Limitless: 'limitless',
|
|
757
|
+
Probable: 'probable'
|
|
749
758
|
};
|
|
750
759
|
/**
|
|
751
760
|
* @export
|
|
@@ -753,7 +762,8 @@ exports.FetchOrderExchangeEnum = {
|
|
|
753
762
|
exports.FetchOrderBookOperationExchangeEnum = {
|
|
754
763
|
Polymarket: 'polymarket',
|
|
755
764
|
Kalshi: 'kalshi',
|
|
756
|
-
Limitless: 'limitless'
|
|
765
|
+
Limitless: 'limitless',
|
|
766
|
+
Probable: 'probable'
|
|
757
767
|
};
|
|
758
768
|
/**
|
|
759
769
|
* @export
|
|
@@ -761,7 +771,8 @@ exports.FetchOrderBookOperationExchangeEnum = {
|
|
|
761
771
|
exports.FetchPositionsOperationExchangeEnum = {
|
|
762
772
|
Polymarket: 'polymarket',
|
|
763
773
|
Kalshi: 'kalshi',
|
|
764
|
-
Limitless: 'limitless'
|
|
774
|
+
Limitless: 'limitless',
|
|
775
|
+
Probable: 'probable'
|
|
765
776
|
};
|
|
766
777
|
/**
|
|
767
778
|
* @export
|
|
@@ -769,7 +780,8 @@ exports.FetchPositionsOperationExchangeEnum = {
|
|
|
769
780
|
exports.FetchTradesOperationExchangeEnum = {
|
|
770
781
|
Polymarket: 'polymarket',
|
|
771
782
|
Kalshi: 'kalshi',
|
|
772
|
-
Limitless: 'limitless'
|
|
783
|
+
Limitless: 'limitless',
|
|
784
|
+
Probable: 'probable'
|
|
773
785
|
};
|
|
774
786
|
/**
|
|
775
787
|
* @export
|
|
@@ -777,7 +789,8 @@ exports.FetchTradesOperationExchangeEnum = {
|
|
|
777
789
|
exports.FilterEventsOperationExchangeEnum = {
|
|
778
790
|
Polymarket: 'polymarket',
|
|
779
791
|
Kalshi: 'kalshi',
|
|
780
|
-
Limitless: 'limitless'
|
|
792
|
+
Limitless: 'limitless',
|
|
793
|
+
Probable: 'probable'
|
|
781
794
|
};
|
|
782
795
|
/**
|
|
783
796
|
* @export
|
|
@@ -785,7 +798,8 @@ exports.FilterEventsOperationExchangeEnum = {
|
|
|
785
798
|
exports.FilterMarketsOperationExchangeEnum = {
|
|
786
799
|
Polymarket: 'polymarket',
|
|
787
800
|
Kalshi: 'kalshi',
|
|
788
|
-
Limitless: 'limitless'
|
|
801
|
+
Limitless: 'limitless',
|
|
802
|
+
Probable: 'probable'
|
|
789
803
|
};
|
|
790
804
|
/**
|
|
791
805
|
* @export
|
|
@@ -793,7 +807,8 @@ exports.FilterMarketsOperationExchangeEnum = {
|
|
|
793
807
|
exports.GetExecutionPriceOperationExchangeEnum = {
|
|
794
808
|
Polymarket: 'polymarket',
|
|
795
809
|
Kalshi: 'kalshi',
|
|
796
|
-
Limitless: 'limitless'
|
|
810
|
+
Limitless: 'limitless',
|
|
811
|
+
Probable: 'probable'
|
|
797
812
|
};
|
|
798
813
|
/**
|
|
799
814
|
* @export
|
|
@@ -801,7 +816,8 @@ exports.GetExecutionPriceOperationExchangeEnum = {
|
|
|
801
816
|
exports.GetExecutionPriceDetailedExchangeEnum = {
|
|
802
817
|
Polymarket: 'polymarket',
|
|
803
818
|
Kalshi: 'kalshi',
|
|
804
|
-
Limitless: 'limitless'
|
|
819
|
+
Limitless: 'limitless',
|
|
820
|
+
Probable: 'probable'
|
|
805
821
|
};
|
|
806
822
|
/**
|
|
807
823
|
* @export
|
|
@@ -809,7 +825,8 @@ exports.GetExecutionPriceDetailedExchangeEnum = {
|
|
|
809
825
|
exports.WatchOrderBookOperationExchangeEnum = {
|
|
810
826
|
Polymarket: 'polymarket',
|
|
811
827
|
Kalshi: 'kalshi',
|
|
812
|
-
Limitless: 'limitless'
|
|
828
|
+
Limitless: 'limitless',
|
|
829
|
+
Probable: 'probable'
|
|
813
830
|
};
|
|
814
831
|
/**
|
|
815
832
|
* @export
|
|
@@ -817,7 +834,8 @@ exports.WatchOrderBookOperationExchangeEnum = {
|
|
|
817
834
|
exports.WatchPricesOperationExchangeEnum = {
|
|
818
835
|
Polymarket: 'polymarket',
|
|
819
836
|
Kalshi: 'kalshi',
|
|
820
|
-
Limitless: 'limitless'
|
|
837
|
+
Limitless: 'limitless',
|
|
838
|
+
Probable: 'probable'
|
|
821
839
|
};
|
|
822
840
|
/**
|
|
823
841
|
* @export
|
|
@@ -825,7 +843,8 @@ exports.WatchPricesOperationExchangeEnum = {
|
|
|
825
843
|
exports.WatchTradesOperationExchangeEnum = {
|
|
826
844
|
Polymarket: 'polymarket',
|
|
827
845
|
Kalshi: 'kalshi',
|
|
828
|
-
Limitless: 'limitless'
|
|
846
|
+
Limitless: 'limitless',
|
|
847
|
+
Probable: 'probable'
|
|
829
848
|
};
|
|
830
849
|
/**
|
|
831
850
|
* @export
|
|
@@ -833,7 +852,8 @@ exports.WatchTradesOperationExchangeEnum = {
|
|
|
833
852
|
exports.WatchUserPositionsOperationExchangeEnum = {
|
|
834
853
|
Polymarket: 'polymarket',
|
|
835
854
|
Kalshi: 'kalshi',
|
|
836
|
-
Limitless: 'limitless'
|
|
855
|
+
Limitless: 'limitless',
|
|
856
|
+
Probable: 'probable'
|
|
837
857
|
};
|
|
838
858
|
/**
|
|
839
859
|
* @export
|
|
@@ -841,5 +861,6 @@ exports.WatchUserPositionsOperationExchangeEnum = {
|
|
|
841
861
|
exports.WatchUserTransactionsExchangeEnum = {
|
|
842
862
|
Polymarket: 'polymarket',
|
|
843
863
|
Kalshi: 'kalshi',
|
|
844
|
-
Limitless: 'limitless'
|
|
864
|
+
Limitless: 'limitless',
|
|
865
|
+
Probable: 'probable'
|
|
845
866
|
};
|
|
@@ -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}
|
|
@@ -33,6 +33,7 @@ function MarketOutcomeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
36
|
+
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
36
37
|
'label': json['label'] == null ? undefined : json['label'],
|
|
37
38
|
'price': json['price'] == null ? undefined : json['price'],
|
|
38
39
|
'priceChange24h': json['priceChange24h'] == null ? undefined : json['priceChange24h'],
|
|
@@ -48,6 +49,7 @@ function MarketOutcomeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
'outcomeId': value['outcomeId'],
|
|
52
|
+
'marketId': value['marketId'],
|
|
51
53
|
'label': value['label'],
|
|
52
54
|
'price': value['price'],
|
|
53
55
|
'priceChange24h': value['priceChange24h'],
|
package/dist/pmxt/client.js
CHANGED
|
@@ -14,6 +14,7 @@ const server_manager_js_1 = require("./server-manager.js");
|
|
|
14
14
|
function convertMarket(raw) {
|
|
15
15
|
const outcomes = (raw.outcomes || []).map((o) => ({
|
|
16
16
|
outcomeId: o.outcomeId,
|
|
17
|
+
marketId: o.marketId,
|
|
17
18
|
label: o.label,
|
|
18
19
|
price: o.price,
|
|
19
20
|
priceChange24h: o.priceChange24h,
|
|
@@ -21,6 +22,7 @@ function convertMarket(raw) {
|
|
|
21
22
|
}));
|
|
22
23
|
const convertOutcome = (o) => o ? ({
|
|
23
24
|
outcomeId: o.outcomeId,
|
|
25
|
+
marketId: o.marketId,
|
|
24
26
|
label: o.label,
|
|
25
27
|
price: o.price,
|
|
26
28
|
priceChange24h: o.priceChange24h,
|
|
@@ -460,9 +462,23 @@ class Exchange {
|
|
|
460
462
|
async createOrder(params) {
|
|
461
463
|
await this.initPromise;
|
|
462
464
|
try {
|
|
465
|
+
// Resolve outcome shorthand: extract marketId/outcomeId from outcome object
|
|
466
|
+
let marketId = params.marketId;
|
|
467
|
+
let outcomeId = params.outcomeId;
|
|
468
|
+
if (params.outcome) {
|
|
469
|
+
if (marketId !== undefined || outcomeId !== undefined) {
|
|
470
|
+
throw new Error("Cannot specify both 'outcome' and 'marketId'/'outcomeId'. Use one or the other.");
|
|
471
|
+
}
|
|
472
|
+
const outcome = params.outcome;
|
|
473
|
+
if (!outcome.marketId) {
|
|
474
|
+
throw new Error("outcome.marketId is not set. Ensure the outcome comes from a fetched market.");
|
|
475
|
+
}
|
|
476
|
+
marketId = outcome.marketId;
|
|
477
|
+
outcomeId = outcome.outcomeId;
|
|
478
|
+
}
|
|
463
479
|
const paramsDict = {
|
|
464
|
-
marketId
|
|
465
|
-
outcomeId
|
|
480
|
+
marketId,
|
|
481
|
+
outcomeId,
|
|
466
482
|
side: params.side,
|
|
467
483
|
type: params.type,
|
|
468
484
|
amount: params.amount,
|
package/dist/pmxt/models.d.ts
CHANGED
|
@@ -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) */
|
|
@@ -49,7 +49,7 @@ async function example() {
|
|
|
49
49
|
const api = new DefaultApi();
|
|
50
50
|
|
|
51
51
|
const body = {
|
|
52
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
52
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
53
53
|
exchange: exchange_example,
|
|
54
54
|
// CancelOrderRequest (optional)
|
|
55
55
|
cancelOrderRequest: ...,
|
|
@@ -72,7 +72,7 @@ example().catch(console.error);
|
|
|
72
72
|
|
|
73
73
|
| Name | Type | Description | Notes |
|
|
74
74
|
|------------- | ------------- | ------------- | -------------|
|
|
75
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
75
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
76
76
|
| **cancelOrderRequest** | [CancelOrderRequest](CancelOrderRequest.md) | | [Optional] |
|
|
77
77
|
|
|
78
78
|
### Return type
|
|
@@ -119,7 +119,7 @@ async function example() {
|
|
|
119
119
|
const api = new DefaultApi();
|
|
120
120
|
|
|
121
121
|
const body = {
|
|
122
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
122
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
123
123
|
exchange: exchange_example,
|
|
124
124
|
// WatchUserPositionsRequest (optional)
|
|
125
125
|
watchUserPositionsRequest: ...,
|
|
@@ -142,7 +142,7 @@ example().catch(console.error);
|
|
|
142
142
|
|
|
143
143
|
| Name | Type | Description | Notes |
|
|
144
144
|
|------------- | ------------- | ------------- | -------------|
|
|
145
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
145
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
146
146
|
| **watchUserPositionsRequest** | [WatchUserPositionsRequest](WatchUserPositionsRequest.md) | | [Optional] |
|
|
147
147
|
|
|
148
148
|
### Return type
|
|
@@ -187,7 +187,7 @@ async function example() {
|
|
|
187
187
|
const api = new DefaultApi();
|
|
188
188
|
|
|
189
189
|
const body = {
|
|
190
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
190
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
191
191
|
exchange: exchange_example,
|
|
192
192
|
// CreateOrderRequest (optional)
|
|
193
193
|
createOrderRequest: ...,
|
|
@@ -210,7 +210,7 @@ example().catch(console.error);
|
|
|
210
210
|
|
|
211
211
|
| Name | Type | Description | Notes |
|
|
212
212
|
|------------- | ------------- | ------------- | -------------|
|
|
213
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
213
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
214
214
|
| **createOrderRequest** | [CreateOrderRequest](CreateOrderRequest.md) | | [Optional] |
|
|
215
215
|
|
|
216
216
|
### Return type
|
|
@@ -255,7 +255,7 @@ async function example() {
|
|
|
255
255
|
const api = new DefaultApi();
|
|
256
256
|
|
|
257
257
|
const body = {
|
|
258
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
258
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
259
259
|
exchange: exchange_example,
|
|
260
260
|
// FetchPositionsRequest (optional)
|
|
261
261
|
fetchPositionsRequest: ...,
|
|
@@ -278,7 +278,7 @@ example().catch(console.error);
|
|
|
278
278
|
|
|
279
279
|
| Name | Type | Description | Notes |
|
|
280
280
|
|------------- | ------------- | ------------- | -------------|
|
|
281
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
281
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
282
282
|
| **fetchPositionsRequest** | [FetchPositionsRequest](FetchPositionsRequest.md) | | [Optional] |
|
|
283
283
|
|
|
284
284
|
### Return type
|
|
@@ -323,7 +323,7 @@ async function example() {
|
|
|
323
323
|
const api = new DefaultApi();
|
|
324
324
|
|
|
325
325
|
const body = {
|
|
326
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
326
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
327
327
|
exchange: exchange_example,
|
|
328
328
|
// FetchEventsRequest (optional)
|
|
329
329
|
fetchEventsRequest: ...,
|
|
@@ -346,7 +346,7 @@ example().catch(console.error);
|
|
|
346
346
|
|
|
347
347
|
| Name | Type | Description | Notes |
|
|
348
348
|
|------------- | ------------- | ------------- | -------------|
|
|
349
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
349
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
350
350
|
| **fetchEventsRequest** | [FetchEventsRequest](FetchEventsRequest.md) | | [Optional] |
|
|
351
351
|
|
|
352
352
|
### Return type
|
|
@@ -391,7 +391,7 @@ async function example() {
|
|
|
391
391
|
const api = new DefaultApi();
|
|
392
392
|
|
|
393
393
|
const body = {
|
|
394
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
394
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
395
395
|
exchange: exchange_example,
|
|
396
396
|
// FetchMarketsRequest (optional)
|
|
397
397
|
fetchMarketsRequest: ...,
|
|
@@ -414,7 +414,7 @@ example().catch(console.error);
|
|
|
414
414
|
|
|
415
415
|
| Name | Type | Description | Notes |
|
|
416
416
|
|------------- | ------------- | ------------- | -------------|
|
|
417
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
417
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
418
418
|
| **fetchMarketsRequest** | [FetchMarketsRequest](FetchMarketsRequest.md) | | [Optional] |
|
|
419
419
|
|
|
420
420
|
### Return type
|
|
@@ -459,7 +459,7 @@ async function example() {
|
|
|
459
459
|
const api = new DefaultApi();
|
|
460
460
|
|
|
461
461
|
const body = {
|
|
462
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
462
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
463
463
|
exchange: exchange_example,
|
|
464
464
|
// FetchOHLCVRequest (optional)
|
|
465
465
|
fetchOHLCVRequest: ...,
|
|
@@ -482,7 +482,7 @@ example().catch(console.error);
|
|
|
482
482
|
|
|
483
483
|
| Name | Type | Description | Notes |
|
|
484
484
|
|------------- | ------------- | ------------- | -------------|
|
|
485
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
485
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
486
486
|
| **fetchOHLCVRequest** | [FetchOHLCVRequest](FetchOHLCVRequest.md) | | [Optional] |
|
|
487
487
|
|
|
488
488
|
### Return type
|
|
@@ -527,7 +527,7 @@ async function example() {
|
|
|
527
527
|
const api = new DefaultApi();
|
|
528
528
|
|
|
529
529
|
const body = {
|
|
530
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
530
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
531
531
|
exchange: exchange_example,
|
|
532
532
|
// FetchOpenOrdersRequest (optional)
|
|
533
533
|
fetchOpenOrdersRequest: ...,
|
|
@@ -550,7 +550,7 @@ example().catch(console.error);
|
|
|
550
550
|
|
|
551
551
|
| Name | Type | Description | Notes |
|
|
552
552
|
|------------- | ------------- | ------------- | -------------|
|
|
553
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
553
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
554
554
|
| **fetchOpenOrdersRequest** | [FetchOpenOrdersRequest](FetchOpenOrdersRequest.md) | | [Optional] |
|
|
555
555
|
|
|
556
556
|
### Return type
|
|
@@ -595,7 +595,7 @@ async function example() {
|
|
|
595
595
|
const api = new DefaultApi();
|
|
596
596
|
|
|
597
597
|
const body = {
|
|
598
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
598
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
599
599
|
exchange: exchange_example,
|
|
600
600
|
// CancelOrderRequest (optional)
|
|
601
601
|
cancelOrderRequest: ...,
|
|
@@ -618,7 +618,7 @@ example().catch(console.error);
|
|
|
618
618
|
|
|
619
619
|
| Name | Type | Description | Notes |
|
|
620
620
|
|------------- | ------------- | ------------- | -------------|
|
|
621
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
621
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
622
622
|
| **cancelOrderRequest** | [CancelOrderRequest](CancelOrderRequest.md) | | [Optional] |
|
|
623
623
|
|
|
624
624
|
### Return type
|
|
@@ -663,7 +663,7 @@ async function example() {
|
|
|
663
663
|
const api = new DefaultApi();
|
|
664
664
|
|
|
665
665
|
const body = {
|
|
666
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
666
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
667
667
|
exchange: exchange_example,
|
|
668
668
|
// FetchOrderBookRequest (optional)
|
|
669
669
|
fetchOrderBookRequest: ...,
|
|
@@ -686,7 +686,7 @@ example().catch(console.error);
|
|
|
686
686
|
|
|
687
687
|
| Name | Type | Description | Notes |
|
|
688
688
|
|------------- | ------------- | ------------- | -------------|
|
|
689
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
689
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
690
690
|
| **fetchOrderBookRequest** | [FetchOrderBookRequest](FetchOrderBookRequest.md) | | [Optional] |
|
|
691
691
|
|
|
692
692
|
### Return type
|
|
@@ -731,7 +731,7 @@ async function example() {
|
|
|
731
731
|
const api = new DefaultApi();
|
|
732
732
|
|
|
733
733
|
const body = {
|
|
734
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
734
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
735
735
|
exchange: exchange_example,
|
|
736
736
|
// FetchPositionsRequest (optional)
|
|
737
737
|
fetchPositionsRequest: ...,
|
|
@@ -754,7 +754,7 @@ example().catch(console.error);
|
|
|
754
754
|
|
|
755
755
|
| Name | Type | Description | Notes |
|
|
756
756
|
|------------- | ------------- | ------------- | -------------|
|
|
757
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
757
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
758
758
|
| **fetchPositionsRequest** | [FetchPositionsRequest](FetchPositionsRequest.md) | | [Optional] |
|
|
759
759
|
|
|
760
760
|
### Return type
|
|
@@ -799,7 +799,7 @@ async function example() {
|
|
|
799
799
|
const api = new DefaultApi();
|
|
800
800
|
|
|
801
801
|
const body = {
|
|
802
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
802
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
803
803
|
exchange: exchange_example,
|
|
804
804
|
// FetchTradesRequest (optional)
|
|
805
805
|
fetchTradesRequest: ...,
|
|
@@ -822,7 +822,7 @@ example().catch(console.error);
|
|
|
822
822
|
|
|
823
823
|
| Name | Type | Description | Notes |
|
|
824
824
|
|------------- | ------------- | ------------- | -------------|
|
|
825
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
825
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
826
826
|
| **fetchTradesRequest** | [FetchTradesRequest](FetchTradesRequest.md) | | [Optional] |
|
|
827
827
|
|
|
828
828
|
### Return type
|
|
@@ -869,7 +869,7 @@ async function example() {
|
|
|
869
869
|
const api = new DefaultApi();
|
|
870
870
|
|
|
871
871
|
const body = {
|
|
872
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
872
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
873
873
|
exchange: exchange_example,
|
|
874
874
|
// FilterEventsRequest (optional)
|
|
875
875
|
filterEventsRequest: ...,
|
|
@@ -892,7 +892,7 @@ example().catch(console.error);
|
|
|
892
892
|
|
|
893
893
|
| Name | Type | Description | Notes |
|
|
894
894
|
|------------- | ------------- | ------------- | -------------|
|
|
895
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
895
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
896
896
|
| **filterEventsRequest** | [FilterEventsRequest](FilterEventsRequest.md) | | [Optional] |
|
|
897
897
|
|
|
898
898
|
### Return type
|
|
@@ -939,7 +939,7 @@ async function example() {
|
|
|
939
939
|
const api = new DefaultApi();
|
|
940
940
|
|
|
941
941
|
const body = {
|
|
942
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
942
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
943
943
|
exchange: exchange_example,
|
|
944
944
|
// FilterMarketsRequest (optional)
|
|
945
945
|
filterMarketsRequest: ...,
|
|
@@ -962,7 +962,7 @@ example().catch(console.error);
|
|
|
962
962
|
|
|
963
963
|
| Name | Type | Description | Notes |
|
|
964
964
|
|------------- | ------------- | ------------- | -------------|
|
|
965
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
965
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
966
966
|
| **filterMarketsRequest** | [FilterMarketsRequest](FilterMarketsRequest.md) | | [Optional] |
|
|
967
967
|
|
|
968
968
|
### Return type
|
|
@@ -1007,7 +1007,7 @@ async function example() {
|
|
|
1007
1007
|
const api = new DefaultApi();
|
|
1008
1008
|
|
|
1009
1009
|
const body = {
|
|
1010
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1010
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1011
1011
|
exchange: exchange_example,
|
|
1012
1012
|
// GetExecutionPriceRequest (optional)
|
|
1013
1013
|
getExecutionPriceRequest: ...,
|
|
@@ -1030,7 +1030,7 @@ example().catch(console.error);
|
|
|
1030
1030
|
|
|
1031
1031
|
| Name | Type | Description | Notes |
|
|
1032
1032
|
|------------- | ------------- | ------------- | -------------|
|
|
1033
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1033
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1034
1034
|
| **getExecutionPriceRequest** | [GetExecutionPriceRequest](GetExecutionPriceRequest.md) | | [Optional] |
|
|
1035
1035
|
|
|
1036
1036
|
### Return type
|
|
@@ -1075,7 +1075,7 @@ async function example() {
|
|
|
1075
1075
|
const api = new DefaultApi();
|
|
1076
1076
|
|
|
1077
1077
|
const body = {
|
|
1078
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1078
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1079
1079
|
exchange: exchange_example,
|
|
1080
1080
|
// GetExecutionPriceRequest (optional)
|
|
1081
1081
|
getExecutionPriceRequest: ...,
|
|
@@ -1098,7 +1098,7 @@ example().catch(console.error);
|
|
|
1098
1098
|
|
|
1099
1099
|
| Name | Type | Description | Notes |
|
|
1100
1100
|
|------------- | ------------- | ------------- | -------------|
|
|
1101
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1101
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1102
1102
|
| **getExecutionPriceRequest** | [GetExecutionPriceRequest](GetExecutionPriceRequest.md) | | [Optional] |
|
|
1103
1103
|
|
|
1104
1104
|
### Return type
|
|
@@ -1202,7 +1202,7 @@ async function example() {
|
|
|
1202
1202
|
const api = new DefaultApi();
|
|
1203
1203
|
|
|
1204
1204
|
const body = {
|
|
1205
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1205
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1206
1206
|
exchange: exchange_example,
|
|
1207
1207
|
// WatchOrderBookRequest (optional)
|
|
1208
1208
|
watchOrderBookRequest: ...,
|
|
@@ -1225,7 +1225,7 @@ example().catch(console.error);
|
|
|
1225
1225
|
|
|
1226
1226
|
| Name | Type | Description | Notes |
|
|
1227
1227
|
|------------- | ------------- | ------------- | -------------|
|
|
1228
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1228
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1229
1229
|
| **watchOrderBookRequest** | [WatchOrderBookRequest](WatchOrderBookRequest.md) | | [Optional] |
|
|
1230
1230
|
|
|
1231
1231
|
### Return type
|
|
@@ -1270,7 +1270,7 @@ async function example() {
|
|
|
1270
1270
|
const api = new DefaultApi();
|
|
1271
1271
|
|
|
1272
1272
|
const body = {
|
|
1273
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1273
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1274
1274
|
exchange: exchange_example,
|
|
1275
1275
|
// WatchPricesRequest (optional)
|
|
1276
1276
|
watchPricesRequest: ...,
|
|
@@ -1293,7 +1293,7 @@ example().catch(console.error);
|
|
|
1293
1293
|
|
|
1294
1294
|
| Name | Type | Description | Notes |
|
|
1295
1295
|
|------------- | ------------- | ------------- | -------------|
|
|
1296
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1296
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1297
1297
|
| **watchPricesRequest** | [WatchPricesRequest](WatchPricesRequest.md) | | [Optional] |
|
|
1298
1298
|
|
|
1299
1299
|
### Return type
|
|
@@ -1340,7 +1340,7 @@ async function example() {
|
|
|
1340
1340
|
const api = new DefaultApi();
|
|
1341
1341
|
|
|
1342
1342
|
const body = {
|
|
1343
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1343
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1344
1344
|
exchange: exchange_example,
|
|
1345
1345
|
// WatchTradesRequest (optional)
|
|
1346
1346
|
watchTradesRequest: ...,
|
|
@@ -1363,7 +1363,7 @@ example().catch(console.error);
|
|
|
1363
1363
|
|
|
1364
1364
|
| Name | Type | Description | Notes |
|
|
1365
1365
|
|------------- | ------------- | ------------- | -------------|
|
|
1366
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1366
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1367
1367
|
| **watchTradesRequest** | [WatchTradesRequest](WatchTradesRequest.md) | | [Optional] |
|
|
1368
1368
|
|
|
1369
1369
|
### Return type
|
|
@@ -1408,7 +1408,7 @@ async function example() {
|
|
|
1408
1408
|
const api = new DefaultApi();
|
|
1409
1409
|
|
|
1410
1410
|
const body = {
|
|
1411
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1411
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1412
1412
|
exchange: exchange_example,
|
|
1413
1413
|
// WatchUserPositionsRequest (optional)
|
|
1414
1414
|
watchUserPositionsRequest: ...,
|
|
@@ -1431,7 +1431,7 @@ example().catch(console.error);
|
|
|
1431
1431
|
|
|
1432
1432
|
| Name | Type | Description | Notes |
|
|
1433
1433
|
|------------- | ------------- | ------------- | -------------|
|
|
1434
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1434
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1435
1435
|
| **watchUserPositionsRequest** | [WatchUserPositionsRequest](WatchUserPositionsRequest.md) | | [Optional] |
|
|
1436
1436
|
|
|
1437
1437
|
### Return type
|
|
@@ -1476,7 +1476,7 @@ async function example() {
|
|
|
1476
1476
|
const api = new DefaultApi();
|
|
1477
1477
|
|
|
1478
1478
|
const body = {
|
|
1479
|
-
// 'polymarket' | 'kalshi' | 'limitless' | The prediction market exchange to target.
|
|
1479
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1480
1480
|
exchange: exchange_example,
|
|
1481
1481
|
// WatchUserPositionsRequest (optional)
|
|
1482
1482
|
watchUserPositionsRequest: ...,
|
|
@@ -1499,7 +1499,7 @@ example().catch(console.error);
|
|
|
1499
1499
|
|
|
1500
1500
|
| Name | Type | Description | Notes |
|
|
1501
1501
|
|------------- | ------------- | ------------- | -------------|
|
|
1502
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless] |
|
|
1502
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1503
1503
|
| **watchUserPositionsRequest** | [WatchUserPositionsRequest](WatchUserPositionsRequest.md) | | [Optional] |
|
|
1504
1504
|
|
|
1505
1505
|
### Return type
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`outcomeId` | string
|
|
10
|
+
`marketId` | string
|
|
10
11
|
`label` | string
|
|
11
12
|
`price` | number
|
|
12
13
|
`priceChange24h` | number
|
|
@@ -20,6 +21,7 @@ import type { MarketOutcome } from 'pmxtjs'
|
|
|
20
21
|
// TODO: Update the object below with actual values
|
|
21
22
|
const example = {
|
|
22
23
|
"outcomeId": null,
|
|
24
|
+
"marketId": null,
|
|
23
25
|
"label": null,
|
|
24
26
|
"price": null,
|
|
25
27
|
"priceChange24h": null,
|