pmxtjs 2.25.1 → 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.
- package/dist/esm/pmxt/client.js +6 -0
- package/dist/esm/pmxt/models.d.ts +12 -0
- package/dist/pmxt/client.js +6 -0
- package/dist/pmxt/models.d.ts +12 -0
- package/generated/package.json +1 -1
- package/package.json +2 -2
- package/pmxt/client.ts +6 -0
- package/pmxt/models.ts +18 -0
package/dist/esm/pmxt/client.js
CHANGED
|
@@ -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 */
|
package/dist/pmxt/client.js
CHANGED
|
@@ -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,
|
package/dist/pmxt/models.d.ts
CHANGED
|
@@ -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 */
|
package/generated/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.25.
|
|
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.
|
|
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
|
|