pmxt-core 2.49.8 → 2.49.10

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
3
- * Generated at: 2026-06-10T19:11:09.082Z
3
+ * Generated at: 2026-06-12T14:23:28.945Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const kalshiApiSpec: {
@@ -11,12 +11,6 @@ export declare const kalshiApiSpec: {
11
11
  };
12
12
  servers: {
13
13
  url: string;
14
- variables: {
15
- env: {
16
- default: string;
17
- enum: string[];
18
- };
19
- };
20
14
  }[];
21
15
  paths: {
22
16
  "/historical/cutoff": {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.kalshiApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
6
- * Generated at: 2026-06-10T19:11:09.082Z
6
+ * Generated at: 2026-06-12T14:23:28.945Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.kalshiApiSpec = {
@@ -14,16 +14,10 @@ exports.kalshiApiSpec = {
14
14
  },
15
15
  "servers": [
16
16
  {
17
- "url": "https://{env}.external-api.kalshi.com/trade-api/v2",
18
- "variables": {
19
- "env": {
20
- "default": "api",
21
- "enum": [
22
- "api",
23
- "demo-api"
24
- ]
25
- }
26
- }
17
+ "url": "https://external-api.kalshi.com/trade-api/v2"
18
+ },
19
+ {
20
+ "url": "https://external-api.demo.kalshi.co/trade-api/v2"
27
21
  }
28
22
  ],
29
23
  "paths": {
@@ -10,14 +10,14 @@
10
10
  * into core/src/exchanges/kalshi/api.ts by `npm run fetch:openapi`.
11
11
  * Do NOT put runtime config into api.ts — it will be overwritten.
12
12
  *
13
- * Environment mapping (aligns with the `{env}` server variable in Kalshi.yaml):
14
- * env = "api" → production: https://api.external-api.kalshi.com
15
- * env = "demo-api" → demo/paper: https://demo-api.external-api.kalshi.com
13
+ * Environment mapping:
14
+ * production: https://external-api.kalshi.com
15
+ * demo/paper: https://external-api.demo.kalshi.co
16
16
  */
17
17
  export declare const KALSHI_PROD_API_URL: string;
18
18
  export declare const KALSHI_DEMO_API_URL: string;
19
- export declare const KALSHI_PROD_WS_URL = "wss://api.external-api.kalshi.com/trade-api/ws/v2";
20
- export declare const KALSHI_DEMO_WS_URL = "wss://demo-api.external-api.kalshi.com/trade-api/ws/v2";
19
+ export declare const KALSHI_PROD_WS_URL = "wss://external-api-ws.kalshi.com/trade-api/ws/v2";
20
+ export declare const KALSHI_DEMO_WS_URL = "wss://external-api-ws.demo.kalshi.co/trade-api/ws/v2";
21
21
  export declare const KALSHI_PATHS: {
22
22
  TRADE_API: string;
23
23
  EVENTS: string;
@@ -39,12 +39,12 @@ export interface KalshiApiConfig {
39
39
  /**
40
40
  * Return a typed config object for the requested environment.
41
41
  *
42
- * @param demoMode - Pass `true` to target demo-api.external-api.kalshi.com.
42
+ * @param demoMode - Pass `true` to target external-api.demo.kalshi.co.
43
43
  *
44
44
  * @example
45
45
  * ```typescript
46
46
  * const config = getKalshiConfig(true);
47
- * // config.apiUrl === "https://demo-api.external-api.kalshi.com"
47
+ * // config.apiUrl === "https://external-api.demo.kalshi.co"
48
48
  * ```
49
49
  */
50
50
  export declare function getKalshiConfig(demoMode?: boolean, baseUrlOverride?: string): KalshiApiConfig;
@@ -11,9 +11,9 @@
11
11
  * into core/src/exchanges/kalshi/api.ts by `npm run fetch:openapi`.
12
12
  * Do NOT put runtime config into api.ts — it will be overwritten.
13
13
  *
14
- * Environment mapping (aligns with the `{env}` server variable in Kalshi.yaml):
15
- * env = "api" → production: https://api.external-api.kalshi.com
16
- * env = "demo-api" → demo/paper: https://demo-api.external-api.kalshi.com
14
+ * Environment mapping:
15
+ * production: https://external-api.kalshi.com
16
+ * demo/paper: https://external-api.demo.kalshi.co
17
17
  */
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.KALSHI_PATHS = exports.KALSHI_DEMO_WS_URL = exports.KALSHI_PROD_WS_URL = exports.KALSHI_DEMO_API_URL = exports.KALSHI_PROD_API_URL = void 0;
@@ -24,10 +24,10 @@ exports.getSeriesUrl = getSeriesUrl;
24
24
  exports.getPortfolioUrl = getPortfolioUrl;
25
25
  exports.getMarketsUrl = getMarketsUrl;
26
26
  // ── Base URL constants ────────────────────────────────────────────────────────
27
- exports.KALSHI_PROD_API_URL = process.env.KALSHI_BASE_URL || "https://api.external-api.kalshi.com";
28
- exports.KALSHI_DEMO_API_URL = process.env.KALSHI_DEMO_BASE_URL || "https://demo-api.external-api.kalshi.com";
29
- exports.KALSHI_PROD_WS_URL = "wss://api.external-api.kalshi.com/trade-api/ws/v2";
30
- exports.KALSHI_DEMO_WS_URL = "wss://demo-api.external-api.kalshi.com/trade-api/ws/v2";
27
+ exports.KALSHI_PROD_API_URL = process.env.KALSHI_BASE_URL || "https://external-api.kalshi.com";
28
+ exports.KALSHI_DEMO_API_URL = process.env.KALSHI_DEMO_BASE_URL || "https://external-api.demo.kalshi.co";
29
+ exports.KALSHI_PROD_WS_URL = "wss://external-api-ws.kalshi.com/trade-api/ws/v2";
30
+ exports.KALSHI_DEMO_WS_URL = "wss://external-api-ws.demo.kalshi.co/trade-api/ws/v2";
31
31
  // ── Path constants ────────────────────────────────────────────────────────────
32
32
  exports.KALSHI_PATHS = {
33
33
  TRADE_API: "/trade-api/v2",
@@ -42,12 +42,12 @@ exports.KALSHI_PATHS = {
42
42
  /**
43
43
  * Return a typed config object for the requested environment.
44
44
  *
45
- * @param demoMode - Pass `true` to target demo-api.external-api.kalshi.com.
45
+ * @param demoMode - Pass `true` to target external-api.demo.kalshi.co.
46
46
  *
47
47
  * @example
48
48
  * ```typescript
49
49
  * const config = getKalshiConfig(true);
50
- * // config.apiUrl === "https://demo-api.external-api.kalshi.com"
50
+ * // config.apiUrl === "https://external-api.demo.kalshi.co"
51
51
  * ```
52
52
  */
53
53
  function getKalshiConfig(demoMode = false, baseUrlOverride) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
3
- * Generated at: 2026-06-10T19:11:09.124Z
3
+ * Generated at: 2026-06-12T14:23:29.001Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const limitlessApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.limitlessApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
6
- * Generated at: 2026-06-10T19:11:09.124Z
6
+ * Generated at: 2026-06-12T14:23:29.001Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.limitlessApiSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
3
- * Generated at: 2026-06-10T19:11:09.135Z
3
+ * Generated at: 2026-06-12T14:23:29.015Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const myriadApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.myriadApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
6
- * Generated at: 2026-06-10T19:11:09.135Z
6
+ * Generated at: 2026-06-12T14:23:29.015Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.myriadApiSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
3
- * Generated at: 2026-06-10T19:11:09.140Z
3
+ * Generated at: 2026-06-12T14:23:29.018Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const opinionApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.opinionApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
6
- * Generated at: 2026-06-10T19:11:09.140Z
6
+ * Generated at: 2026-06-12T14:23:29.018Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.opinionApiSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
3
- * Generated at: 2026-06-10T19:11:09.088Z
3
+ * Generated at: 2026-06-12T14:23:28.956Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const polymarketClobSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.polymarketClobSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
6
- * Generated at: 2026-06-10T19:11:09.088Z
6
+ * Generated at: 2026-06-12T14:23:28.956Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.polymarketClobSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/Polymarket_Data_API.yaml
3
- * Generated at: 2026-06-10T19:11:09.105Z
3
+ * Generated at: 2026-06-12T14:23:28.975Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const polymarketDataSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.polymarketDataSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/Polymarket_Data_API.yaml
6
- * Generated at: 2026-06-10T19:11:09.105Z
6
+ * Generated at: 2026-06-12T14:23:28.975Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.polymarketDataSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
3
- * Generated at: 2026-06-10T19:11:09.102Z
3
+ * Generated at: 2026-06-12T14:23:28.971Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const polymarketGammaSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.polymarketGammaSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
6
- * Generated at: 2026-06-10T19:11:09.102Z
6
+ * Generated at: 2026-06-12T14:23:28.971Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.polymarketGammaSpec = {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
3
- * Generated at: 2026-06-10T19:11:09.128Z
3
+ * Generated at: 2026-06-12T14:23:29.007Z
4
4
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
5
5
  */
6
6
  export declare const probableApiSpec: {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.probableApiSpec = void 0;
4
4
  /**
5
5
  * Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
6
- * Generated at: 2026-06-10T19:11:09.128Z
6
+ * Generated at: 2026-06-12T14:23:29.007Z
7
7
  * Do not edit manually -- run "npm run fetch:openapi" to regenerate.
8
8
  */
9
9
  exports.probableApiSpec = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxt-core",
3
- "version": "2.49.8",
3
+ "version": "2.49.10",
4
4
  "description": "pmxt is a unified prediction market data API. The ccxt for prediction markets.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,8 +29,8 @@
29
29
  "test": "jest -c jest.config.js",
30
30
  "server": "tsx watch src/server/index.ts",
31
31
  "server:prod": "node dist/server/index.js",
32
- "generate:sdk:python": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g python -o ../sdks/python/generated --package-name pmxt_internal --additional-properties=projectName=pmxt-internal,packageVersion=2.49.8,library=urllib3",
33
- "generate:sdk:typescript": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g typescript-fetch -o ../sdks/typescript/generated --additional-properties=npmName=pmxtjs,npmVersion=2.49.8,supportsES6=true,typescriptThreePlus=true && node ../sdks/typescript/scripts/fix-generated.js",
32
+ "generate:sdk:python": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g python -o ../sdks/python/generated --package-name pmxt_internal --additional-properties=projectName=pmxt-internal,packageVersion=2.49.10,library=urllib3",
33
+ "generate:sdk:typescript": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g typescript-fetch -o ../sdks/typescript/generated --additional-properties=npmName=pmxtjs,npmVersion=2.49.10,supportsES6=true,typescriptThreePlus=true && node ../sdks/typescript/scripts/fix-generated.js",
34
34
  "fetch:openapi": "node scripts/fetch-openapi-specs.js",
35
35
  "extract:jsdoc": "node ../scripts/extract-jsdoc.js",
36
36
  "generate:docs": "npm run extract:jsdoc && node ../scripts/generate-api-docs.js",