pmxtjs 2.25.0 → 2.25.2

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.
@@ -57,6 +57,18 @@ export interface CreateOrderParams {
57
57
  * @memberof CreateOrderParams
58
58
  */
59
59
  fee?: number;
60
+ /**
61
+ * Optional override for Limitless/Polymarket
62
+ * @type {number}
63
+ * @memberof CreateOrderParams
64
+ */
65
+ tickSize?: number;
66
+ /**
67
+ * Optional override to skip neg-risk lookup (Polymarket)
68
+ * @type {boolean}
69
+ * @memberof CreateOrderParams
70
+ */
71
+ negRisk?: boolean;
60
72
  }
61
73
  /**
62
74
  * @export
@@ -56,6 +56,8 @@ export function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'amount': json['amount'],
57
57
  'price': json['price'] == null ? undefined : json['price'],
58
58
  'fee': json['fee'] == null ? undefined : json['fee'],
59
+ 'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
60
+ 'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
59
61
  };
60
62
  }
61
63
  export function CreateOrderParamsToJSON(json) {
@@ -73,5 +75,7 @@ export function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false)
73
75
  'amount': value['amount'],
74
76
  'price': value['price'],
75
77
  'fee': value['fee'],
78
+ 'tickSize': value['tickSize'],
79
+ 'negRisk': value['negRisk'],
76
80
  };
77
81
  }
@@ -46,6 +46,18 @@ export interface UnifiedEvent {
46
46
  * @memberof UnifiedEvent
47
47
  */
48
48
  markets?: Array<UnifiedMarket>;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof UnifiedEvent
53
+ */
54
+ volume24h?: number;
55
+ /**
56
+ * Total / Lifetime volume (sum across markets; undefined if no market provides it)
57
+ * @type {number}
58
+ * @memberof UnifiedEvent
59
+ */
60
+ volume?: number;
49
61
  /**
50
62
  *
51
63
  * @type {string}
@@ -31,6 +31,8 @@ export function UnifiedEventFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'description': json['description'] == null ? undefined : json['description'],
32
32
  'slug': json['slug'] == null ? undefined : json['slug'],
33
33
  'markets': json['markets'] == null ? undefined : (json['markets'].map(UnifiedMarketFromJSON)),
34
+ 'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
35
+ 'volume': json['volume'] == null ? undefined : json['volume'],
34
36
  'url': json['url'] == null ? undefined : json['url'],
35
37
  'image': json['image'] == null ? undefined : json['image'],
36
38
  'category': json['category'] == null ? undefined : json['category'],
@@ -50,6 +52,8 @@ export function UnifiedEventToJSONTyped(value, ignoreDiscriminator = false) {
50
52
  'description': value['description'],
51
53
  'slug': value['slug'],
52
54
  'markets': value['markets'] == null ? undefined : (value['markets'].map(UnifiedMarketToJSON)),
55
+ 'volume24h': value['volume24h'],
56
+ 'volume': value['volume'],
53
57
  'url': value['url'],
54
58
  'image': value['image'],
55
59
  'category': value['category'],
@@ -34,6 +34,12 @@ export interface UnifiedMarket {
34
34
  * @memberof UnifiedMarket
35
35
  */
36
36
  description?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof UnifiedMarket
41
+ */
42
+ slug?: string;
37
43
  /**
38
44
  *
39
45
  * @type {Array<MarketOutcome>}
@@ -100,6 +106,24 @@ export interface UnifiedMarket {
100
106
  * @memberof UnifiedMarket
101
107
  */
102
108
  tags?: Array<string>;
109
+ /**
110
+ * Minimum price increment (e.g., 0.01, 0.001)
111
+ * @type {number}
112
+ * @memberof UnifiedMarket
113
+ */
114
+ tickSize?: number;
115
+ /**
116
+ * Venue-native lifecycle status (e.g. 'active', 'closed', 'archived').
117
+ * @type {string}
118
+ * @memberof UnifiedMarket
119
+ */
120
+ status?: string;
121
+ /**
122
+ * On-chain contract / condition identifier where applicable (Polymarket conditionId, etc.).
123
+ * @type {string}
124
+ * @memberof UnifiedMarket
125
+ */
126
+ contractAddress?: string;
103
127
  /**
104
128
  *
105
129
  * @type {MarketOutcome}
@@ -29,6 +29,7 @@ export function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'marketId': json['marketId'] == null ? undefined : json['marketId'],
30
30
  'title': json['title'] == null ? undefined : json['title'],
31
31
  'description': json['description'] == null ? undefined : json['description'],
32
+ 'slug': json['slug'] == null ? undefined : json['slug'],
32
33
  'outcomes': json['outcomes'] == null ? undefined : (json['outcomes'].map(MarketOutcomeFromJSON)),
33
34
  'eventId': json['eventId'] == null ? undefined : json['eventId'],
34
35
  'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
@@ -40,6 +41,9 @@ export function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'image': json['image'] == null ? undefined : json['image'],
41
42
  'category': json['category'] == null ? undefined : json['category'],
42
43
  'tags': json['tags'] == null ? undefined : json['tags'],
44
+ 'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
45
+ 'status': json['status'] == null ? undefined : json['status'],
46
+ 'contractAddress': json['contractAddress'] == null ? undefined : json['contractAddress'],
43
47
  'yes': json['yes'] == null ? undefined : MarketOutcomeFromJSON(json['yes']),
44
48
  'no': json['no'] == null ? undefined : MarketOutcomeFromJSON(json['no']),
45
49
  'up': json['up'] == null ? undefined : MarketOutcomeFromJSON(json['up']),
@@ -57,6 +61,7 @@ export function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
57
61
  'marketId': value['marketId'],
58
62
  'title': value['title'],
59
63
  'description': value['description'],
64
+ 'slug': value['slug'],
60
65
  'outcomes': value['outcomes'] == null ? undefined : (value['outcomes'].map(MarketOutcomeToJSON)),
61
66
  'eventId': value['eventId'],
62
67
  'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
@@ -68,6 +73,9 @@ export function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
68
73
  'image': value['image'],
69
74
  'category': value['category'],
70
75
  'tags': value['tags'],
76
+ 'tickSize': value['tickSize'],
77
+ 'status': value['status'],
78
+ 'contractAddress': value['contractAddress'],
71
79
  'yes': MarketOutcomeToJSON(value['yes']),
72
80
  'no': MarketOutcomeToJSON(value['no']),
73
81
  'up': MarketOutcomeToJSON(value['up']),
@@ -39,6 +39,7 @@ function convertMarket(raw) {
39
39
  return {
40
40
  marketId: raw.marketId,
41
41
  title: raw.title,
42
+ slug: raw.slug,
42
43
  outcomes,
43
44
  volume24h: raw.volume24h || 0,
44
45
  liquidity: raw.liquidity || 0,
@@ -50,6 +51,9 @@ function convertMarket(raw) {
50
51
  image: raw.image,
51
52
  category: raw.category,
52
53
  tags: raw.tags,
54
+ tickSize: raw.tickSize,
55
+ status: raw.status,
56
+ contractAddress: raw.contractAddress,
53
57
  eventId: raw.eventId,
54
58
  yes: convertOutcome(raw.yes),
55
59
  no: convertOutcome(raw.no),
@@ -147,6 +151,8 @@ function convertEvent(raw) {
147
151
  description: raw.description,
148
152
  slug: raw.slug,
149
153
  markets,
154
+ volume24h: raw.volume24h,
155
+ volume: raw.volume,
150
156
  url: raw.url,
151
157
  image: raw.image,
152
158
  category: raw.category,
@@ -32,6 +32,8 @@ export interface UnifiedMarket {
32
32
  marketId: string;
33
33
  /** Market title */
34
34
  title: string;
35
+ /** Market slug (URL-friendly identifier) */
36
+ slug?: string;
35
37
  /** All tradeable outcomes */
36
38
  outcomes: MarketOutcome[];
37
39
  /** 24-hour trading volume (USD) */
@@ -54,6 +56,12 @@ export interface UnifiedMarket {
54
56
  category?: string;
55
57
  /** Market tags */
56
58
  tags?: string[];
59
+ /** Minimum price increment (e.g., 0.01, 0.001) */
60
+ tickSize?: number;
61
+ /** Venue-native lifecycle status (e.g. 'active', 'closed', 'archived'). */
62
+ status?: string;
63
+ /** On-chain contract / condition identifier where applicable (Polymarket conditionId, etc.). */
64
+ contractAddress?: string;
57
65
  /** ID of the parent event this market belongs to */
58
66
  eventId?: string;
59
67
  /** Convenience access to the Yes outcome for binary markets. */
@@ -322,6 +330,10 @@ export interface UnifiedEvent {
322
330
  slug: string;
323
331
  /** Related markets in this event */
324
332
  markets: MarketList;
333
+ /** 24-hour trading volume (USD) */
334
+ volume24h?: number;
335
+ /** Total / Lifetime volume (sum across markets; undefined if no market provides it) */
336
+ volume?: number;
325
337
  /** Event URL */
326
338
  url: string;
327
339
  /** Event image URL */
@@ -57,6 +57,18 @@ export interface CreateOrderParams {
57
57
  * @memberof CreateOrderParams
58
58
  */
59
59
  fee?: number;
60
+ /**
61
+ * Optional override for Limitless/Polymarket
62
+ * @type {number}
63
+ * @memberof CreateOrderParams
64
+ */
65
+ tickSize?: number;
66
+ /**
67
+ * Optional override to skip neg-risk lookup (Polymarket)
68
+ * @type {boolean}
69
+ * @memberof CreateOrderParams
70
+ */
71
+ negRisk?: boolean;
60
72
  }
61
73
  /**
62
74
  * @export
@@ -64,6 +64,8 @@ function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'amount': json['amount'],
65
65
  'price': json['price'] == null ? undefined : json['price'],
66
66
  'fee': json['fee'] == null ? undefined : json['fee'],
67
+ 'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
68
+ 'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
67
69
  };
68
70
  }
69
71
  function CreateOrderParamsToJSON(json) {
@@ -81,5 +83,7 @@ function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false) {
81
83
  'amount': value['amount'],
82
84
  'price': value['price'],
83
85
  'fee': value['fee'],
86
+ 'tickSize': value['tickSize'],
87
+ 'negRisk': value['negRisk'],
84
88
  };
85
89
  }
@@ -46,6 +46,18 @@ export interface UnifiedEvent {
46
46
  * @memberof UnifiedEvent
47
47
  */
48
48
  markets?: Array<UnifiedMarket>;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof UnifiedEvent
53
+ */
54
+ volume24h?: number;
55
+ /**
56
+ * Total / Lifetime volume (sum across markets; undefined if no market provides it)
57
+ * @type {number}
58
+ * @memberof UnifiedEvent
59
+ */
60
+ volume?: number;
49
61
  /**
50
62
  *
51
63
  * @type {string}
@@ -38,6 +38,8 @@ function UnifiedEventFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'description': json['description'] == null ? undefined : json['description'],
39
39
  'slug': json['slug'] == null ? undefined : json['slug'],
40
40
  'markets': json['markets'] == null ? undefined : (json['markets'].map(UnifiedMarket_1.UnifiedMarketFromJSON)),
41
+ 'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
42
+ 'volume': json['volume'] == null ? undefined : json['volume'],
41
43
  'url': json['url'] == null ? undefined : json['url'],
42
44
  'image': json['image'] == null ? undefined : json['image'],
43
45
  'category': json['category'] == null ? undefined : json['category'],
@@ -57,6 +59,8 @@ function UnifiedEventToJSONTyped(value, ignoreDiscriminator = false) {
57
59
  'description': value['description'],
58
60
  'slug': value['slug'],
59
61
  'markets': value['markets'] == null ? undefined : (value['markets'].map(UnifiedMarket_1.UnifiedMarketToJSON)),
62
+ 'volume24h': value['volume24h'],
63
+ 'volume': value['volume'],
60
64
  'url': value['url'],
61
65
  'image': value['image'],
62
66
  'category': value['category'],
@@ -34,6 +34,12 @@ export interface UnifiedMarket {
34
34
  * @memberof UnifiedMarket
35
35
  */
36
36
  description?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof UnifiedMarket
41
+ */
42
+ slug?: string;
37
43
  /**
38
44
  *
39
45
  * @type {Array<MarketOutcome>}
@@ -100,6 +106,24 @@ export interface UnifiedMarket {
100
106
  * @memberof UnifiedMarket
101
107
  */
102
108
  tags?: Array<string>;
109
+ /**
110
+ * Minimum price increment (e.g., 0.01, 0.001)
111
+ * @type {number}
112
+ * @memberof UnifiedMarket
113
+ */
114
+ tickSize?: number;
115
+ /**
116
+ * Venue-native lifecycle status (e.g. 'active', 'closed', 'archived').
117
+ * @type {string}
118
+ * @memberof UnifiedMarket
119
+ */
120
+ status?: string;
121
+ /**
122
+ * On-chain contract / condition identifier where applicable (Polymarket conditionId, etc.).
123
+ * @type {string}
124
+ * @memberof UnifiedMarket
125
+ */
126
+ contractAddress?: string;
103
127
  /**
104
128
  *
105
129
  * @type {MarketOutcome}
@@ -36,6 +36,7 @@ function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'marketId': json['marketId'] == null ? undefined : json['marketId'],
37
37
  'title': json['title'] == null ? undefined : json['title'],
38
38
  'description': json['description'] == null ? undefined : json['description'],
39
+ 'slug': json['slug'] == null ? undefined : json['slug'],
39
40
  'outcomes': json['outcomes'] == null ? undefined : (json['outcomes'].map(MarketOutcome_1.MarketOutcomeFromJSON)),
40
41
  'eventId': json['eventId'] == null ? undefined : json['eventId'],
41
42
  'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
@@ -47,6 +48,9 @@ function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'image': json['image'] == null ? undefined : json['image'],
48
49
  'category': json['category'] == null ? undefined : json['category'],
49
50
  'tags': json['tags'] == null ? undefined : json['tags'],
51
+ 'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
52
+ 'status': json['status'] == null ? undefined : json['status'],
53
+ 'contractAddress': json['contractAddress'] == null ? undefined : json['contractAddress'],
50
54
  'yes': json['yes'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['yes']),
51
55
  'no': json['no'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['no']),
52
56
  'up': json['up'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['up']),
@@ -64,6 +68,7 @@ function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
64
68
  'marketId': value['marketId'],
65
69
  'title': value['title'],
66
70
  'description': value['description'],
71
+ 'slug': value['slug'],
67
72
  'outcomes': value['outcomes'] == null ? undefined : (value['outcomes'].map(MarketOutcome_1.MarketOutcomeToJSON)),
68
73
  'eventId': value['eventId'],
69
74
  'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
@@ -75,6 +80,9 @@ function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
75
80
  'image': value['image'],
76
81
  'category': value['category'],
77
82
  'tags': value['tags'],
83
+ 'tickSize': value['tickSize'],
84
+ 'status': value['status'],
85
+ 'contractAddress': value['contractAddress'],
78
86
  'yes': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['yes']),
79
87
  'no': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['no']),
80
88
  'up': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['up']),
@@ -42,6 +42,7 @@ function convertMarket(raw) {
42
42
  return {
43
43
  marketId: raw.marketId,
44
44
  title: raw.title,
45
+ slug: raw.slug,
45
46
  outcomes,
46
47
  volume24h: raw.volume24h || 0,
47
48
  liquidity: raw.liquidity || 0,
@@ -53,6 +54,9 @@ function convertMarket(raw) {
53
54
  image: raw.image,
54
55
  category: raw.category,
55
56
  tags: raw.tags,
57
+ tickSize: raw.tickSize,
58
+ status: raw.status,
59
+ contractAddress: raw.contractAddress,
56
60
  eventId: raw.eventId,
57
61
  yes: convertOutcome(raw.yes),
58
62
  no: convertOutcome(raw.no),
@@ -150,6 +154,8 @@ function convertEvent(raw) {
150
154
  description: raw.description,
151
155
  slug: raw.slug,
152
156
  markets,
157
+ volume24h: raw.volume24h,
158
+ volume: raw.volume,
153
159
  url: raw.url,
154
160
  image: raw.image,
155
161
  category: raw.category,
@@ -32,6 +32,8 @@ export interface UnifiedMarket {
32
32
  marketId: string;
33
33
  /** Market title */
34
34
  title: string;
35
+ /** Market slug (URL-friendly identifier) */
36
+ slug?: string;
35
37
  /** All tradeable outcomes */
36
38
  outcomes: MarketOutcome[];
37
39
  /** 24-hour trading volume (USD) */
@@ -54,6 +56,12 @@ export interface UnifiedMarket {
54
56
  category?: string;
55
57
  /** Market tags */
56
58
  tags?: string[];
59
+ /** Minimum price increment (e.g., 0.01, 0.001) */
60
+ tickSize?: number;
61
+ /** Venue-native lifecycle status (e.g. 'active', 'closed', 'archived'). */
62
+ status?: string;
63
+ /** On-chain contract / condition identifier where applicable (Polymarket conditionId, etc.). */
64
+ contractAddress?: string;
57
65
  /** ID of the parent event this market belongs to */
58
66
  eventId?: string;
59
67
  /** Convenience access to the Yes outcome for binary markets. */
@@ -322,6 +330,10 @@ export interface UnifiedEvent {
322
330
  slug: string;
323
331
  /** Related markets in this event */
324
332
  markets: MarketList;
333
+ /** 24-hour trading volume (USD) */
334
+ volume24h?: number;
335
+ /** Total / Lifetime volume (sum across markets; undefined if no market provides it) */
336
+ volume?: number;
325
337
  /** Event URL */
326
338
  url: string;
327
339
  /** Event image URL */
@@ -13,6 +13,8 @@ Name | Type
13
13
  `amount` | number
14
14
  `price` | number
15
15
  `fee` | number
16
+ `tickSize` | number
17
+ `negRisk` | boolean
16
18
 
17
19
  ## Example
18
20
 
@@ -28,6 +30,8 @@ const example = {
28
30
  "amount": null,
29
31
  "price": null,
30
32
  "fee": null,
33
+ "tickSize": null,
34
+ "negRisk": null,
31
35
  } satisfies CreateOrderParams
32
36
 
33
37
  console.log(example)
@@ -12,6 +12,8 @@ Name | Type
12
12
  `description` | string
13
13
  `slug` | string
14
14
  `markets` | [Array&lt;UnifiedMarket&gt;](UnifiedMarket.md)
15
+ `volume24h` | number
16
+ `volume` | number
15
17
  `url` | string
16
18
  `image` | string
17
19
  `category` | string
@@ -29,6 +31,8 @@ const example = {
29
31
  "description": null,
30
32
  "slug": null,
31
33
  "markets": null,
34
+ "volume24h": null,
35
+ "volume": null,
32
36
  "url": null,
33
37
  "image": null,
34
38
  "category": null,
@@ -9,6 +9,7 @@ Name | Type
9
9
  `marketId` | string
10
10
  `title` | string
11
11
  `description` | string
12
+ `slug` | string
12
13
  `outcomes` | [Array&lt;MarketOutcome&gt;](MarketOutcome.md)
13
14
  `eventId` | string
14
15
  `resolutionDate` | Date
@@ -20,6 +21,9 @@ Name | Type
20
21
  `image` | string
21
22
  `category` | string
22
23
  `tags` | Array&lt;string&gt;
24
+ `tickSize` | number
25
+ `status` | string
26
+ `contractAddress` | string
23
27
  `yes` | [MarketOutcome](MarketOutcome.md)
24
28
  `no` | [MarketOutcome](MarketOutcome.md)
25
29
  `up` | [MarketOutcome](MarketOutcome.md)
@@ -35,6 +39,7 @@ const example = {
35
39
  "marketId": null,
36
40
  "title": null,
37
41
  "description": null,
42
+ "slug": null,
38
43
  "outcomes": null,
39
44
  "eventId": null,
40
45
  "resolutionDate": null,
@@ -46,6 +51,9 @@ const example = {
46
51
  "image": null,
47
52
  "category": null,
48
53
  "tags": null,
54
+ "tickSize": null,
55
+ "status": null,
56
+ "contractAddress": null,
49
57
  "yes": null,
50
58
  "no": null,
51
59
  "up": null,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.25.0",
3
+ "version": "2.25.2",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -61,6 +61,18 @@ export interface CreateOrderParams {
61
61
  * @memberof CreateOrderParams
62
62
  */
63
63
  fee?: number;
64
+ /**
65
+ * Optional override for Limitless/Polymarket
66
+ * @type {number}
67
+ * @memberof CreateOrderParams
68
+ */
69
+ tickSize?: number;
70
+ /**
71
+ * Optional override to skip neg-risk lookup (Polymarket)
72
+ * @type {boolean}
73
+ * @memberof CreateOrderParams
74
+ */
75
+ negRisk?: boolean;
64
76
  }
65
77
 
66
78
 
@@ -112,6 +124,8 @@ export function CreateOrderParamsFromJSONTyped(json: any, ignoreDiscriminator: b
112
124
  'amount': json['amount'],
113
125
  'price': json['price'] == null ? undefined : json['price'],
114
126
  'fee': json['fee'] == null ? undefined : json['fee'],
127
+ 'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
128
+ 'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
115
129
  };
116
130
  }
117
131
 
@@ -133,6 +147,8 @@ export function CreateOrderParamsToJSONTyped(value?: CreateOrderParams | null, i
133
147
  'amount': value['amount'],
134
148
  'price': value['price'],
135
149
  'fee': value['fee'],
150
+ 'tickSize': value['tickSize'],
151
+ 'negRisk': value['negRisk'],
136
152
  };
137
153
  }
138
154
 
@@ -57,6 +57,18 @@ export interface UnifiedEvent {
57
57
  * @memberof UnifiedEvent
58
58
  */
59
59
  markets?: Array<UnifiedMarket>;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof UnifiedEvent
64
+ */
65
+ volume24h?: number;
66
+ /**
67
+ * Total / Lifetime volume (sum across markets; undefined if no market provides it)
68
+ * @type {number}
69
+ * @memberof UnifiedEvent
70
+ */
71
+ volume?: number;
60
72
  /**
61
73
  *
62
74
  * @type {string}
@@ -105,6 +117,8 @@ export function UnifiedEventFromJSONTyped(json: any, ignoreDiscriminator: boolea
105
117
  'description': json['description'] == null ? undefined : json['description'],
106
118
  'slug': json['slug'] == null ? undefined : json['slug'],
107
119
  'markets': json['markets'] == null ? undefined : ((json['markets'] as Array<any>).map(UnifiedMarketFromJSON)),
120
+ 'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
121
+ 'volume': json['volume'] == null ? undefined : json['volume'],
108
122
  'url': json['url'] == null ? undefined : json['url'],
109
123
  'image': json['image'] == null ? undefined : json['image'],
110
124
  'category': json['category'] == null ? undefined : json['category'],
@@ -128,6 +142,8 @@ export function UnifiedEventToJSONTyped(value?: UnifiedEvent | null, ignoreDiscr
128
142
  'description': value['description'],
129
143
  'slug': value['slug'],
130
144
  'markets': value['markets'] == null ? undefined : ((value['markets'] as Array<any>).map(UnifiedMarketToJSON)),
145
+ 'volume24h': value['volume24h'],
146
+ 'volume': value['volume'],
131
147
  'url': value['url'],
132
148
  'image': value['image'],
133
149
  'category': value['category'],
@@ -45,6 +45,12 @@ export interface UnifiedMarket {
45
45
  * @memberof UnifiedMarket
46
46
  */
47
47
  description?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UnifiedMarket
52
+ */
53
+ slug?: string;
48
54
  /**
49
55
  *
50
56
  * @type {Array<MarketOutcome>}
@@ -111,6 +117,24 @@ export interface UnifiedMarket {
111
117
  * @memberof UnifiedMarket
112
118
  */
113
119
  tags?: Array<string>;
120
+ /**
121
+ * Minimum price increment (e.g., 0.01, 0.001)
122
+ * @type {number}
123
+ * @memberof UnifiedMarket
124
+ */
125
+ tickSize?: number;
126
+ /**
127
+ * Venue-native lifecycle status (e.g. 'active', 'closed', 'archived').
128
+ * @type {string}
129
+ * @memberof UnifiedMarket
130
+ */
131
+ status?: string;
132
+ /**
133
+ * On-chain contract / condition identifier where applicable (Polymarket conditionId, etc.).
134
+ * @type {string}
135
+ * @memberof UnifiedMarket
136
+ */
137
+ contractAddress?: string;
114
138
  /**
115
139
  *
116
140
  * @type {MarketOutcome}
@@ -157,6 +181,7 @@ export function UnifiedMarketFromJSONTyped(json: any, ignoreDiscriminator: boole
157
181
  'marketId': json['marketId'] == null ? undefined : json['marketId'],
158
182
  'title': json['title'] == null ? undefined : json['title'],
159
183
  'description': json['description'] == null ? undefined : json['description'],
184
+ 'slug': json['slug'] == null ? undefined : json['slug'],
160
185
  'outcomes': json['outcomes'] == null ? undefined : ((json['outcomes'] as Array<any>).map(MarketOutcomeFromJSON)),
161
186
  'eventId': json['eventId'] == null ? undefined : json['eventId'],
162
187
  'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
@@ -168,6 +193,9 @@ export function UnifiedMarketFromJSONTyped(json: any, ignoreDiscriminator: boole
168
193
  'image': json['image'] == null ? undefined : json['image'],
169
194
  'category': json['category'] == null ? undefined : json['category'],
170
195
  'tags': json['tags'] == null ? undefined : json['tags'],
196
+ 'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
197
+ 'status': json['status'] == null ? undefined : json['status'],
198
+ 'contractAddress': json['contractAddress'] == null ? undefined : json['contractAddress'],
171
199
  'yes': json['yes'] == null ? undefined : MarketOutcomeFromJSON(json['yes']),
172
200
  'no': json['no'] == null ? undefined : MarketOutcomeFromJSON(json['no']),
173
201
  'up': json['up'] == null ? undefined : MarketOutcomeFromJSON(json['up']),
@@ -189,6 +217,7 @@ export function UnifiedMarketToJSONTyped(value?: UnifiedMarket | null, ignoreDis
189
217
  'marketId': value['marketId'],
190
218
  'title': value['title'],
191
219
  'description': value['description'],
220
+ 'slug': value['slug'],
192
221
  'outcomes': value['outcomes'] == null ? undefined : ((value['outcomes'] as Array<any>).map(MarketOutcomeToJSON)),
193
222
  'eventId': value['eventId'],
194
223
  'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
@@ -200,6 +229,9 @@ export function UnifiedMarketToJSONTyped(value?: UnifiedMarket | null, ignoreDis
200
229
  'image': value['image'],
201
230
  'category': value['category'],
202
231
  'tags': value['tags'],
232
+ 'tickSize': value['tickSize'],
233
+ 'status': value['status'],
234
+ 'contractAddress': value['contractAddress'],
203
235
  'yes': MarketOutcomeToJSON(value['yes']),
204
236
  'no': MarketOutcomeToJSON(value['no']),
205
237
  'up': MarketOutcomeToJSON(value['up']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.25.0",
3
+ "version": "2.25.2",
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.25.0"
46
+ "pmxt-core": "2.25.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",
package/pmxt/client.ts CHANGED
@@ -77,6 +77,7 @@ function convertMarket(raw: any): UnifiedMarket {
77
77
  return {
78
78
  marketId: raw.marketId,
79
79
  title: raw.title,
80
+ slug: raw.slug,
80
81
  outcomes,
81
82
  volume24h: raw.volume24h || 0,
82
83
  liquidity: raw.liquidity || 0,
@@ -88,6 +89,9 @@ function convertMarket(raw: any): UnifiedMarket {
88
89
  image: raw.image,
89
90
  category: raw.category,
90
91
  tags: raw.tags,
92
+ tickSize: raw.tickSize,
93
+ status: raw.status,
94
+ contractAddress: raw.contractAddress,
91
95
  eventId: raw.eventId,
92
96
  yes: convertOutcome(raw.yes),
93
97
  no: convertOutcome(raw.no),
@@ -197,6 +201,8 @@ function convertEvent(raw: any): UnifiedEvent {
197
201
  description: raw.description,
198
202
  slug: raw.slug,
199
203
  markets,
204
+ volume24h: raw.volume24h,
205
+ volume: raw.volume,
200
206
  url: raw.url,
201
207
  image: raw.image,
202
208
  category: raw.category,
package/pmxt/models.ts CHANGED
@@ -41,6 +41,9 @@ export interface UnifiedMarket {
41
41
  /** Market title */
42
42
  title: string;
43
43
 
44
+ /** Market slug (URL-friendly identifier) */
45
+ slug?: string;
46
+
44
47
  /** All tradeable outcomes */
45
48
  outcomes: MarketOutcome[];
46
49
 
@@ -74,6 +77,15 @@ export interface UnifiedMarket {
74
77
  /** Market tags */
75
78
  tags?: string[];
76
79
 
80
+ /** Minimum price increment (e.g., 0.01, 0.001) */
81
+ tickSize?: number;
82
+
83
+ /** Venue-native lifecycle status (e.g. 'active', 'closed', 'archived'). */
84
+ status?: string;
85
+
86
+ /** On-chain contract / condition identifier where applicable (Polymarket conditionId, etc.). */
87
+ contractAddress?: string;
88
+
77
89
  /** ID of the parent event this market belongs to */
78
90
  eventId?: string;
79
91
 
@@ -469,6 +481,12 @@ export interface UnifiedEvent {
469
481
  /** Related markets in this event */
470
482
  markets: MarketList;
471
483
 
484
+ /** 24-hour trading volume (USD) */
485
+ volume24h?: number;
486
+
487
+ /** Total / Lifetime volume (sum across markets; undefined if no market provides it) */
488
+ volume?: number;
489
+
472
490
  /** Event URL */
473
491
  url: string;
474
492