pmxtjs 2.35.16 → 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.
@@ -71,13 +71,13 @@ export interface EventFetchParams {
71
71
  */
72
72
  filter?: EventFilterCriteria;
73
73
  /**
74
- * Shorthand for filter.category -- merged into filter (takes precedence)
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
- * Shorthand for filter.tags -- merged into filter (takes precedence)
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 any of these tags
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 if market has ANY of these tags
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 (e.g., "Politics", "Sports").
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 associated with the event.
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 (e.g., "Politics", "Crypto").
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 associated with the market.
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
- * Shorthand for filter.category -- merged into filter (takes precedence)
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
- * Shorthand for filter.tags -- merged into filter (takes precedence)
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 any of these tags
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 if market has ANY of these tags
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 (e.g., "Politics", "Sports").
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 associated with the event.
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 (e.g., "Politics", "Crypto").
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 associated with the market.
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 | Shorthand for filter.category -- merged into filter (takes precedence) (optional)
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> | Shorthand for filter.tags -- merged into filter (takes precedence) (optional)
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` | Shorthand for filter.category -- merged into filter (takes precedence) | [Optional] [Defaults to `undefined`] |
783
- | **tags** | `Array<string>` | Shorthand for filter.tags -- merged into filter (takes precedence) | [Optional] |
782
+ | **category** | `string` | Filter by category. Each event belongs to a venue-assigned category such as \&quot;Sports\&quot;, \&quot;Politics\&quot;, \&quot;Crypto\&quot;, \&quot;Bitcoin\&quot;, \&quot;Soccer\&quot;, \&quot;Economic Policy\&quot; (Polymarket) or \&quot;Sports\&quot;, \&quot;Mentions\&quot; (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 \&quot;Politics\&quot; event might carry tags [\&quot;Politics\&quot;, \&quot;Geopolitics\&quot;, \&quot;Middle East\&quot;, \&quot;Iran\&quot;]. Common tags include \&quot;Crypto\&quot;, \&quot;Elections\&quot;, \&quot;Fed Rates\&quot;, \&quot;FIFA World Cup\&quot;, \&quot;Trump\&quot;. | [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 | Shorthand for filter.category -- merged into filter (takes precedence) (optional)
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> | Shorthand for filter.tags -- merged into filter (takes precedence) (optional)
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` | Shorthand for filter.category -- merged into filter (takes precedence) | [Optional] [Defaults to `undefined`] |
977
- | **tags** | `Array<string>` | Shorthand for filter.tags -- merged into filter (takes precedence) | [Optional] |
976
+ | **category** | `string` | Filter by category. Each event belongs to a venue-assigned category such as \&quot;Sports\&quot;, \&quot;Politics\&quot;, \&quot;Crypto\&quot;, \&quot;Bitcoin\&quot;, \&quot;Soccer\&quot;, \&quot;Economic Policy\&quot; (Polymarket) or \&quot;Sports\&quot;, \&quot;Mentions\&quot; (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 \&quot;Politics\&quot; event might carry tags [\&quot;Politics\&quot;, \&quot;Geopolitics\&quot;, \&quot;Middle East\&quot;, \&quot;Iran\&quot;]. Common tags include \&quot;Crypto\&quot;, \&quot;Elections\&quot;, \&quot;Fed Rates\&quot;, \&quot;FIFA World Cup\&quot;, \&quot;Trump\&quot;. | [Optional] |
978
978
 
979
979
  ### Return type
980
980
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.35.16",
3
+ "version": "2.35.18",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -82,13 +82,13 @@ export interface EventFetchParams {
82
82
  */
83
83
  filter?: EventFilterCriteria;
84
84
  /**
85
- * Shorthand for filter.category -- merged into filter (takes precedence)
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
- * Shorthand for filter.tags -- merged into filter (takes precedence)
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 any of these tags
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 if market has ANY of these tags
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 (e.g., "Politics", "Sports").
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 associated with the event.
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 (e.g., "Politics", "Crypto").
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 associated with the market.
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.16",
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.16"
46
+ "pmxt-core": "2.35.18"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",