pmxtjs 2.25.1 → 2.25.3

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.
@@ -6,7 +6,7 @@
6
6
  * OpenAPI client, matching the Python API exactly.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Baozi = exports.Probable = exports.Myriad = exports.KalshiDemo = exports.Limitless = exports.Kalshi = exports.Polymarket = exports.Exchange = void 0;
9
+ exports.PolymarketUS = exports.Smarkets = exports.Metaculus = exports.Opinion = exports.Baozi = exports.Probable = exports.Myriad = exports.KalshiDemo = exports.Limitless = exports.Kalshi = exports.Polymarket = exports.Exchange = void 0;
10
10
  const index_js_1 = require("../generated/src/index.js");
11
11
  const models_js_1 = require("./models.js");
12
12
  const server_manager_js_1 = require("./server-manager.js");
@@ -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,
@@ -1624,3 +1630,77 @@ class Baozi extends Exchange {
1624
1630
  }
1625
1631
  }
1626
1632
  exports.Baozi = Baozi;
1633
+ /**
1634
+ * Opinion exchange client.
1635
+ *
1636
+ * Polygon-based CLOB exchange. Public catalog endpoints work without
1637
+ * credentials; trading requires `apiKey` (proxy address) and `privateKey`.
1638
+ *
1639
+ * @example
1640
+ * ```typescript
1641
+ * const opinion = new Opinion();
1642
+ * const events = await opinion.fetchEvents();
1643
+ * ```
1644
+ */
1645
+ class Opinion extends Exchange {
1646
+ constructor(options = {}) {
1647
+ super("opinion", options);
1648
+ }
1649
+ }
1650
+ exports.Opinion = Opinion;
1651
+ /**
1652
+ * Metaculus exchange client.
1653
+ *
1654
+ * Forecasting platform. Public read-only access works without credentials;
1655
+ * authenticated calls accept a bearer token via `apiKey`.
1656
+ *
1657
+ * @example
1658
+ * ```typescript
1659
+ * const metaculus = new Metaculus();
1660
+ * const events = await metaculus.fetchEvents();
1661
+ * ```
1662
+ */
1663
+ class Metaculus extends Exchange {
1664
+ constructor(options = {}) {
1665
+ super("metaculus", options);
1666
+ }
1667
+ }
1668
+ exports.Metaculus = Metaculus;
1669
+ /**
1670
+ * Smarkets exchange client.
1671
+ *
1672
+ * UK-based betting exchange. Public catalog endpoints work without
1673
+ * credentials; trading requires Smarkets account email (`apiKey`) and
1674
+ * password (`privateKey`).
1675
+ *
1676
+ * @example
1677
+ * ```typescript
1678
+ * const smarkets = new Smarkets();
1679
+ * const events = await smarkets.fetchEvents();
1680
+ * ```
1681
+ */
1682
+ class Smarkets extends Exchange {
1683
+ constructor(options = {}) {
1684
+ super("smarkets", options);
1685
+ }
1686
+ }
1687
+ exports.Smarkets = Smarkets;
1688
+ /**
1689
+ * Polymarket US exchange client.
1690
+ *
1691
+ * US-regulated Polymarket venue. Public catalog endpoints work without
1692
+ * credentials; trading requires `apiKey` (keyId) and `privateKey`
1693
+ * (secretKey) issued by Polymarket US.
1694
+ *
1695
+ * @example
1696
+ * ```typescript
1697
+ * const polyUs = new PolymarketUS();
1698
+ * const events = await polyUs.fetchEvents();
1699
+ * ```
1700
+ */
1701
+ class PolymarketUS extends Exchange {
1702
+ constructor(options = {}) {
1703
+ super("polymarket_us", options);
1704
+ }
1705
+ }
1706
+ exports.PolymarketUS = PolymarketUS;
@@ -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 */