pmxtjs 2.35.17 → 2.35.18
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/dist/esm/generated/src/models/EventFetchParams.d.ts +2 -2
- package/dist/esm/generated/src/models/EventFilterCriteria.d.ts +2 -2
- package/dist/esm/generated/src/models/MarketFilterCriteria.d.ts +2 -2
- package/dist/esm/generated/src/models/UnifiedEvent.d.ts +2 -2
- package/dist/esm/generated/src/models/UnifiedMarket.d.ts +2 -2
- package/dist/generated/src/models/EventFetchParams.d.ts +2 -2
- package/dist/generated/src/models/EventFilterCriteria.d.ts +2 -2
- package/dist/generated/src/models/MarketFilterCriteria.d.ts +2 -2
- package/dist/generated/src/models/UnifiedEvent.d.ts +2 -2
- package/dist/generated/src/models/UnifiedMarket.d.ts +2 -2
- package/generated/docs/DefaultApi.md +8 -8
- package/generated/package.json +1 -1
- package/generated/src/models/EventFetchParams.ts +2 -2
- package/generated/src/models/EventFilterCriteria.ts +2 -2
- package/generated/src/models/MarketFilterCriteria.ts +2 -2
- package/generated/src/models/UnifiedEvent.ts +2 -2
- package/generated/src/models/UnifiedMarket.ts +2 -2
- package/package.json +2 -2
|
@@ -71,13 +71,13 @@ export interface EventFetchParams {
|
|
|
71
71
|
*/
|
|
72
72
|
filter?: EventFilterCriteria;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Filter by category. Each event belongs to a venue-assigned category such as "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof EventFetchParams
|
|
77
77
|
*/
|
|
78
78
|
category?: string;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a "Politics" event might carry tags ["Politics", "Geopolitics", "Middle East", "Iran"]. Common tags include "Crypto", "Elections", "Fed Rates", "FIFA World Cup", "Trump".
|
|
81
81
|
* @type {Array<string>}
|
|
82
82
|
* @memberof EventFetchParams
|
|
83
83
|
*/
|
|
@@ -30,13 +30,13 @@ export interface EventFilterCriteria {
|
|
|
30
30
|
*/
|
|
31
31
|
searchIn?: Array<EventFilterCriteriaSearchInEnum>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Filter by category. Common values: "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof EventFilterCriteria
|
|
36
36
|
*/
|
|
37
37
|
category?: string;
|
|
38
38
|
/**
|
|
39
|
-
* Match events that have
|
|
39
|
+
* Match events that have ANY of these tags. Examples: ["Crypto"], ["Politics", "Geopolitics", "Middle East"], ["Sports", "FIFA World Cup"].
|
|
40
40
|
* @type {Array<string>}
|
|
41
41
|
* @memberof EventFilterCriteria
|
|
42
42
|
*/
|
|
@@ -64,13 +64,13 @@ export interface MarketFilterCriteria {
|
|
|
64
64
|
*/
|
|
65
65
|
resolutionDate?: MarketFilterCriteriaResolutionDate;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Filter by category. Common values: "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof MarketFilterCriteria
|
|
70
70
|
*/
|
|
71
71
|
category?: string;
|
|
72
72
|
/**
|
|
73
|
-
* Match
|
|
73
|
+
* Match markets that have ANY of these tags. Examples: ["Crypto", "Crypto Prices"], ["Politics", "Elections"], ["Sports", "FIFA World Cup"].
|
|
74
74
|
* @type {Array<string>}
|
|
75
75
|
* @memberof MarketFilterCriteria
|
|
76
76
|
*/
|
|
@@ -71,13 +71,13 @@ export interface UnifiedEvent {
|
|
|
71
71
|
*/
|
|
72
72
|
image?: string;
|
|
73
73
|
/**
|
|
74
|
-
* Optional category label
|
|
74
|
+
* Optional category label. Venue-defined — common values include "Sports", "Politics", "Crypto", "Economics", "Science", "Culture". Polymarket uses finer-grained categories like "Bitcoin", "Soccer", "Economic Policy"; Kalshi uses broader ones like "Sports" or "Mentions".
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof UnifiedEvent
|
|
77
77
|
*/
|
|
78
78
|
category?: string;
|
|
79
79
|
/**
|
|
80
|
-
* Optional list of tags
|
|
80
|
+
* Optional list of tags. More granular than category — e.g. ["Sports", "FIFA World Cup", "2026 FIFA World Cup"] or ["Politics", "Geopolitics", "Middle East"]. Tags vary by venue: Polymarket markets carry several, Kalshi typically one.
|
|
81
81
|
* @type {Array<string>}
|
|
82
82
|
* @memberof UnifiedEvent
|
|
83
83
|
*/
|
|
@@ -95,13 +95,13 @@ export interface UnifiedMarket {
|
|
|
95
95
|
*/
|
|
96
96
|
image?: string;
|
|
97
97
|
/**
|
|
98
|
-
* Optional category label
|
|
98
|
+
* Optional category label. Venue-defined — common values include "Sports", "Politics", "Crypto", "Economics", "Science", "Culture". Polymarket uses finer-grained categories like "Bitcoin", "Soccer", "Economic Policy"; Kalshi uses broader ones like "Sports" or "Mentions".
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @memberof UnifiedMarket
|
|
101
101
|
*/
|
|
102
102
|
category?: string;
|
|
103
103
|
/**
|
|
104
|
-
* Optional list of tags
|
|
104
|
+
* Optional list of tags. More granular than category — e.g. ["Crypto", "Crypto Prices", "Bitcoin"] or ["Politics", "Elections", "Trump"]. Tags vary by venue: Polymarket markets carry several, Kalshi typically one.
|
|
105
105
|
* @type {Array<string>}
|
|
106
106
|
* @memberof UnifiedMarket
|
|
107
107
|
*/
|
|
@@ -71,13 +71,13 @@ export interface EventFetchParams {
|
|
|
71
71
|
*/
|
|
72
72
|
filter?: EventFilterCriteria;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Filter by category. Each event belongs to a venue-assigned category such as "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof EventFetchParams
|
|
77
77
|
*/
|
|
78
78
|
category?: string;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a "Politics" event might carry tags ["Politics", "Geopolitics", "Middle East", "Iran"]. Common tags include "Crypto", "Elections", "Fed Rates", "FIFA World Cup", "Trump".
|
|
81
81
|
* @type {Array<string>}
|
|
82
82
|
* @memberof EventFetchParams
|
|
83
83
|
*/
|
|
@@ -30,13 +30,13 @@ export interface EventFilterCriteria {
|
|
|
30
30
|
*/
|
|
31
31
|
searchIn?: Array<EventFilterCriteriaSearchInEnum>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Filter by category. Common values: "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof EventFilterCriteria
|
|
36
36
|
*/
|
|
37
37
|
category?: string;
|
|
38
38
|
/**
|
|
39
|
-
* Match events that have
|
|
39
|
+
* Match events that have ANY of these tags. Examples: ["Crypto"], ["Politics", "Geopolitics", "Middle East"], ["Sports", "FIFA World Cup"].
|
|
40
40
|
* @type {Array<string>}
|
|
41
41
|
* @memberof EventFilterCriteria
|
|
42
42
|
*/
|
|
@@ -64,13 +64,13 @@ export interface MarketFilterCriteria {
|
|
|
64
64
|
*/
|
|
65
65
|
resolutionDate?: MarketFilterCriteriaResolutionDate;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Filter by category. Common values: "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof MarketFilterCriteria
|
|
70
70
|
*/
|
|
71
71
|
category?: string;
|
|
72
72
|
/**
|
|
73
|
-
* Match
|
|
73
|
+
* Match markets that have ANY of these tags. Examples: ["Crypto", "Crypto Prices"], ["Politics", "Elections"], ["Sports", "FIFA World Cup"].
|
|
74
74
|
* @type {Array<string>}
|
|
75
75
|
* @memberof MarketFilterCriteria
|
|
76
76
|
*/
|
|
@@ -71,13 +71,13 @@ export interface UnifiedEvent {
|
|
|
71
71
|
*/
|
|
72
72
|
image?: string;
|
|
73
73
|
/**
|
|
74
|
-
* Optional category label
|
|
74
|
+
* Optional category label. Venue-defined — common values include "Sports", "Politics", "Crypto", "Economics", "Science", "Culture". Polymarket uses finer-grained categories like "Bitcoin", "Soccer", "Economic Policy"; Kalshi uses broader ones like "Sports" or "Mentions".
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof UnifiedEvent
|
|
77
77
|
*/
|
|
78
78
|
category?: string;
|
|
79
79
|
/**
|
|
80
|
-
* Optional list of tags
|
|
80
|
+
* Optional list of tags. More granular than category — e.g. ["Sports", "FIFA World Cup", "2026 FIFA World Cup"] or ["Politics", "Geopolitics", "Middle East"]. Tags vary by venue: Polymarket markets carry several, Kalshi typically one.
|
|
81
81
|
* @type {Array<string>}
|
|
82
82
|
* @memberof UnifiedEvent
|
|
83
83
|
*/
|
|
@@ -95,13 +95,13 @@ export interface UnifiedMarket {
|
|
|
95
95
|
*/
|
|
96
96
|
image?: string;
|
|
97
97
|
/**
|
|
98
|
-
* Optional category label
|
|
98
|
+
* Optional category label. Venue-defined — common values include "Sports", "Politics", "Crypto", "Economics", "Science", "Culture". Polymarket uses finer-grained categories like "Bitcoin", "Soccer", "Economic Policy"; Kalshi uses broader ones like "Sports" or "Mentions".
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @memberof UnifiedMarket
|
|
101
101
|
*/
|
|
102
102
|
category?: string;
|
|
103
103
|
/**
|
|
104
|
-
* Optional list of tags
|
|
104
|
+
* Optional list of tags. More granular than category — e.g. ["Crypto", "Crypto Prices", "Bitcoin"] or ["Politics", "Elections", "Trump"]. Tags vary by venue: Polymarket markets carry several, Kalshi typically one.
|
|
105
105
|
* @type {Array<string>}
|
|
106
106
|
* @memberof UnifiedMarket
|
|
107
107
|
*/
|
|
@@ -746,9 +746,9 @@ async function example() {
|
|
|
746
746
|
slug: slug_example,
|
|
747
747
|
// EventFilterCriteria | Optional client-side filter applied after fetching (optional)
|
|
748
748
|
filter: ...,
|
|
749
|
-
// string |
|
|
749
|
+
// string | Filter by category. Each event belongs to a venue-assigned category such as \"Sports\", \"Politics\", \"Crypto\", \"Bitcoin\", \"Soccer\", \"Economic Policy\" (Polymarket) or \"Sports\", \"Mentions\" (Kalshi). (optional)
|
|
750
750
|
category: category_example,
|
|
751
|
-
// Array<string> |
|
|
751
|
+
// Array<string> | Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a \"Politics\" event might carry tags [\"Politics\", \"Geopolitics\", \"Middle East\", \"Iran\"]. Common tags include \"Crypto\", \"Elections\", \"Fed Rates\", \"FIFA World Cup\", \"Trump\". (optional)
|
|
752
752
|
tags: ...,
|
|
753
753
|
} satisfies FetchEventRequest;
|
|
754
754
|
|
|
@@ -779,8 +779,8 @@ example().catch(console.error);
|
|
|
779
779
|
| **eventId** | `string` | Direct lookup by event ID | [Optional] [Defaults to `undefined`] |
|
|
780
780
|
| **slug** | `string` | Lookup by event slug | [Optional] [Defaults to `undefined`] |
|
|
781
781
|
| **filter** | [](.md) | Optional client-side filter applied after fetching | [Optional] [Defaults to `undefined`] |
|
|
782
|
-
| **category** | `string` |
|
|
783
|
-
| **tags** | `Array<string>` |
|
|
782
|
+
| **category** | `string` | Filter by category. Each event belongs to a venue-assigned category such as \"Sports\", \"Politics\", \"Crypto\", \"Bitcoin\", \"Soccer\", \"Economic Policy\" (Polymarket) or \"Sports\", \"Mentions\" (Kalshi). | [Optional] [Defaults to `undefined`] |
|
|
783
|
+
| **tags** | `Array<string>` | Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a \"Politics\" event might carry tags [\"Politics\", \"Geopolitics\", \"Middle East\", \"Iran\"]. Common tags include \"Crypto\", \"Elections\", \"Fed Rates\", \"FIFA World Cup\", \"Trump\". | [Optional] |
|
|
784
784
|
|
|
785
785
|
### Return type
|
|
786
786
|
|
|
@@ -940,9 +940,9 @@ async function example() {
|
|
|
940
940
|
slug: slug_example,
|
|
941
941
|
// EventFilterCriteria | Optional client-side filter applied after fetching (optional)
|
|
942
942
|
filter: ...,
|
|
943
|
-
// string |
|
|
943
|
+
// string | Filter by category. Each event belongs to a venue-assigned category such as \"Sports\", \"Politics\", \"Crypto\", \"Bitcoin\", \"Soccer\", \"Economic Policy\" (Polymarket) or \"Sports\", \"Mentions\" (Kalshi). (optional)
|
|
944
944
|
category: category_example,
|
|
945
|
-
// Array<string> |
|
|
945
|
+
// Array<string> | Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a \"Politics\" event might carry tags [\"Politics\", \"Geopolitics\", \"Middle East\", \"Iran\"]. Common tags include \"Crypto\", \"Elections\", \"Fed Rates\", \"FIFA World Cup\", \"Trump\". (optional)
|
|
946
946
|
tags: ...,
|
|
947
947
|
} satisfies FetchEventsRequest;
|
|
948
948
|
|
|
@@ -973,8 +973,8 @@ example().catch(console.error);
|
|
|
973
973
|
| **eventId** | `string` | Direct lookup by event ID | [Optional] [Defaults to `undefined`] |
|
|
974
974
|
| **slug** | `string` | Lookup by event slug | [Optional] [Defaults to `undefined`] |
|
|
975
975
|
| **filter** | [](.md) | Optional client-side filter applied after fetching | [Optional] [Defaults to `undefined`] |
|
|
976
|
-
| **category** | `string` |
|
|
977
|
-
| **tags** | `Array<string>` |
|
|
976
|
+
| **category** | `string` | Filter by category. Each event belongs to a venue-assigned category such as \"Sports\", \"Politics\", \"Crypto\", \"Bitcoin\", \"Soccer\", \"Economic Policy\" (Polymarket) or \"Sports\", \"Mentions\" (Kalshi). | [Optional] [Defaults to `undefined`] |
|
|
977
|
+
| **tags** | `Array<string>` | Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a \"Politics\" event might carry tags [\"Politics\", \"Geopolitics\", \"Middle East\", \"Iran\"]. Common tags include \"Crypto\", \"Elections\", \"Fed Rates\", \"FIFA World Cup\", \"Trump\". | [Optional] |
|
|
978
978
|
|
|
979
979
|
### Return type
|
|
980
980
|
|
package/generated/package.json
CHANGED
|
@@ -82,13 +82,13 @@ export interface EventFetchParams {
|
|
|
82
82
|
*/
|
|
83
83
|
filter?: EventFilterCriteria;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Filter by category. Each event belongs to a venue-assigned category such as "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof EventFetchParams
|
|
88
88
|
*/
|
|
89
89
|
category?: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Filter by tags. Returns events matching ANY of the provided tags. Tags are more specific than categories -- for example a "Politics" event might carry tags ["Politics", "Geopolitics", "Middle East", "Iran"]. Common tags include "Crypto", "Elections", "Fed Rates", "FIFA World Cup", "Trump".
|
|
92
92
|
* @type {Array<string>}
|
|
93
93
|
* @memberof EventFetchParams
|
|
94
94
|
*/
|
|
@@ -47,13 +47,13 @@ export interface EventFilterCriteria {
|
|
|
47
47
|
*/
|
|
48
48
|
searchIn?: Array<EventFilterCriteriaSearchInEnum>;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Filter by category. Common values: "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof EventFilterCriteria
|
|
53
53
|
*/
|
|
54
54
|
category?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Match events that have
|
|
56
|
+
* Match events that have ANY of these tags. Examples: ["Crypto"], ["Politics", "Geopolitics", "Middle East"], ["Sports", "FIFA World Cup"].
|
|
57
57
|
* @type {Array<string>}
|
|
58
58
|
* @memberof EventFilterCriteria
|
|
59
59
|
*/
|
|
@@ -105,13 +105,13 @@ export interface MarketFilterCriteria {
|
|
|
105
105
|
*/
|
|
106
106
|
resolutionDate?: MarketFilterCriteriaResolutionDate;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Filter by category. Common values: "Sports", "Politics", "Crypto", "Bitcoin", "Soccer", "Economic Policy" (Polymarket) or "Sports", "Mentions" (Kalshi).
|
|
109
109
|
* @type {string}
|
|
110
110
|
* @memberof MarketFilterCriteria
|
|
111
111
|
*/
|
|
112
112
|
category?: string;
|
|
113
113
|
/**
|
|
114
|
-
* Match
|
|
114
|
+
* Match markets that have ANY of these tags. Examples: ["Crypto", "Crypto Prices"], ["Politics", "Elections"], ["Sports", "FIFA World Cup"].
|
|
115
115
|
* @type {Array<string>}
|
|
116
116
|
* @memberof MarketFilterCriteria
|
|
117
117
|
*/
|
|
@@ -82,13 +82,13 @@ export interface UnifiedEvent {
|
|
|
82
82
|
*/
|
|
83
83
|
image?: string;
|
|
84
84
|
/**
|
|
85
|
-
* Optional category label
|
|
85
|
+
* Optional category label. Venue-defined — common values include "Sports", "Politics", "Crypto", "Economics", "Science", "Culture". Polymarket uses finer-grained categories like "Bitcoin", "Soccer", "Economic Policy"; Kalshi uses broader ones like "Sports" or "Mentions".
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof UnifiedEvent
|
|
88
88
|
*/
|
|
89
89
|
category?: string;
|
|
90
90
|
/**
|
|
91
|
-
* Optional list of tags
|
|
91
|
+
* Optional list of tags. More granular than category — e.g. ["Sports", "FIFA World Cup", "2026 FIFA World Cup"] or ["Politics", "Geopolitics", "Middle East"]. Tags vary by venue: Polymarket markets carry several, Kalshi typically one.
|
|
92
92
|
* @type {Array<string>}
|
|
93
93
|
* @memberof UnifiedEvent
|
|
94
94
|
*/
|
|
@@ -106,13 +106,13 @@ export interface UnifiedMarket {
|
|
|
106
106
|
*/
|
|
107
107
|
image?: string;
|
|
108
108
|
/**
|
|
109
|
-
* Optional category label
|
|
109
|
+
* Optional category label. Venue-defined — common values include "Sports", "Politics", "Crypto", "Economics", "Science", "Culture". Polymarket uses finer-grained categories like "Bitcoin", "Soccer", "Economic Policy"; Kalshi uses broader ones like "Sports" or "Mentions".
|
|
110
110
|
* @type {string}
|
|
111
111
|
* @memberof UnifiedMarket
|
|
112
112
|
*/
|
|
113
113
|
category?: string;
|
|
114
114
|
/**
|
|
115
|
-
* Optional list of tags
|
|
115
|
+
* Optional list of tags. More granular than category — e.g. ["Crypto", "Crypto Prices", "Bitcoin"] or ["Politics", "Elections", "Trump"]. Tags vary by venue: Polymarket markets carry several, Kalshi typically one.
|
|
116
116
|
* @type {Array<string>}
|
|
117
117
|
* @memberof UnifiedMarket
|
|
118
118
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.18",
|
|
4
4
|
"description": "Unified prediction market data API - The ccxt for prediction markets",
|
|
5
5
|
"author": "PMXT Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"unified"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"pmxt-core": "2.35.
|
|
46
|
+
"pmxt-core": "2.35.18"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|