pmxt-core 2.37.9 → 2.37.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.
- package/dist/exchanges/kalshi/api.d.ts +1 -1
- package/dist/exchanges/kalshi/api.js +1 -1
- package/dist/exchanges/limitless/api.d.ts +1 -1
- package/dist/exchanges/limitless/api.js +1 -1
- package/dist/exchanges/myriad/api.d.ts +1 -1
- package/dist/exchanges/myriad/api.js +1 -1
- package/dist/exchanges/opinion/api.d.ts +1 -1
- package/dist/exchanges/opinion/api.js +1 -1
- package/dist/exchanges/polymarket/api-clob.d.ts +1 -1
- package/dist/exchanges/polymarket/api-clob.js +1 -1
- package/dist/exchanges/polymarket/api-data.d.ts +1 -1
- package/dist/exchanges/polymarket/api-data.js +1 -1
- package/dist/exchanges/polymarket/api-gamma.d.ts +1 -1
- package/dist/exchanges/polymarket/api-gamma.js +1 -1
- package/dist/exchanges/probable/api.d.ts +1 -1
- package/dist/exchanges/probable/api.js +1 -1
- package/dist/server/app.js +10 -0
- package/dist/server/openapi.yaml +64 -8
- package/package.json +3 -3
|
@@ -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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.269Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const kalshiApiSpec: {
|
|
@@ -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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.269Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.kalshiApiSpec = {
|
|
@@ -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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.317Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.317Z
|
|
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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.331Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.331Z
|
|
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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.337Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.337Z
|
|
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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.277Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.277Z
|
|
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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.294Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.294Z
|
|
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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.290Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.290Z
|
|
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-05-
|
|
3
|
+
* Generated at: 2026-05-08T14:38:32.324Z
|
|
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-05-
|
|
6
|
+
* Generated at: 2026-05-08T14:38:32.324Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.probableApiSpec = {
|
package/dist/server/app.js
CHANGED
|
@@ -239,6 +239,16 @@ function createApp(options = {}) {
|
|
|
239
239
|
});
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
+
if (exchange.has &&
|
|
243
|
+
methodName in exchange.has &&
|
|
244
|
+
exchange.has[methodName] === false) {
|
|
245
|
+
res.status(501).json({
|
|
246
|
+
success: false,
|
|
247
|
+
error: `Method '${methodName}' is not supported by '${exchangeName}'. ` +
|
|
248
|
+
`Use exchange: "router" for cross-venue methods.`,
|
|
249
|
+
});
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
242
252
|
const result = await exchange[methodName](...args);
|
|
243
253
|
res.json({ success: true, data: result });
|
|
244
254
|
}
|
package/dist/server/openapi.yaml
CHANGED
|
@@ -1561,7 +1561,14 @@ paths:
|
|
|
1561
1561
|
summary: Market Matches
|
|
1562
1562
|
operationId: fetchMarketMatches
|
|
1563
1563
|
parameters:
|
|
1564
|
-
-
|
|
1564
|
+
- in: path
|
|
1565
|
+
name: exchange
|
|
1566
|
+
schema:
|
|
1567
|
+
type: string
|
|
1568
|
+
enum:
|
|
1569
|
+
- router
|
|
1570
|
+
required: true
|
|
1571
|
+
description: The prediction market exchange to target.
|
|
1565
1572
|
- in: query
|
|
1566
1573
|
name: query
|
|
1567
1574
|
required: false
|
|
@@ -1663,7 +1670,14 @@ paths:
|
|
|
1663
1670
|
summary: Event Matches
|
|
1664
1671
|
operationId: fetchEventMatches
|
|
1665
1672
|
parameters:
|
|
1666
|
-
-
|
|
1673
|
+
- in: path
|
|
1674
|
+
name: exchange
|
|
1675
|
+
schema:
|
|
1676
|
+
type: string
|
|
1677
|
+
enum:
|
|
1678
|
+
- router
|
|
1679
|
+
required: true
|
|
1680
|
+
description: The prediction market exchange to target.
|
|
1667
1681
|
- in: query
|
|
1668
1682
|
name: query
|
|
1669
1683
|
required: false
|
|
@@ -1744,7 +1758,14 @@ paths:
|
|
|
1744
1758
|
summary: Compare Prices Across Venues
|
|
1745
1759
|
operationId: compareMarketPrices
|
|
1746
1760
|
parameters:
|
|
1747
|
-
-
|
|
1761
|
+
- in: path
|
|
1762
|
+
name: exchange
|
|
1763
|
+
schema:
|
|
1764
|
+
type: string
|
|
1765
|
+
enum:
|
|
1766
|
+
- router
|
|
1767
|
+
required: true
|
|
1768
|
+
description: The prediction market exchange to target.
|
|
1748
1769
|
requestBody:
|
|
1749
1770
|
content:
|
|
1750
1771
|
application/json:
|
|
@@ -1784,7 +1805,14 @@ paths:
|
|
|
1784
1805
|
summary: Find Related Markets
|
|
1785
1806
|
operationId: fetchRelatedMarkets
|
|
1786
1807
|
parameters:
|
|
1787
|
-
-
|
|
1808
|
+
- in: path
|
|
1809
|
+
name: exchange
|
|
1810
|
+
schema:
|
|
1811
|
+
type: string
|
|
1812
|
+
enum:
|
|
1813
|
+
- router
|
|
1814
|
+
required: true
|
|
1815
|
+
description: The prediction market exchange to target.
|
|
1788
1816
|
- in: query
|
|
1789
1817
|
name: query
|
|
1790
1818
|
required: false
|
|
@@ -1884,7 +1912,14 @@ paths:
|
|
|
1884
1912
|
summary: Matched Markets
|
|
1885
1913
|
operationId: fetchMatchedMarkets
|
|
1886
1914
|
parameters:
|
|
1887
|
-
-
|
|
1915
|
+
- in: path
|
|
1916
|
+
name: exchange
|
|
1917
|
+
schema:
|
|
1918
|
+
type: string
|
|
1919
|
+
enum:
|
|
1920
|
+
- router
|
|
1921
|
+
required: true
|
|
1922
|
+
description: The prediction market exchange to target.
|
|
1888
1923
|
- in: query
|
|
1889
1924
|
name: minDifference
|
|
1890
1925
|
required: false
|
|
@@ -1934,7 +1969,14 @@ paths:
|
|
|
1934
1969
|
summary: Compare Matched Market Prices
|
|
1935
1970
|
operationId: fetchMatchedPrices
|
|
1936
1971
|
parameters:
|
|
1937
|
-
-
|
|
1972
|
+
- in: path
|
|
1973
|
+
name: exchange
|
|
1974
|
+
schema:
|
|
1975
|
+
type: string
|
|
1976
|
+
enum:
|
|
1977
|
+
- router
|
|
1978
|
+
required: true
|
|
1979
|
+
description: The prediction market exchange to target.
|
|
1938
1980
|
- in: query
|
|
1939
1981
|
name: minDifference
|
|
1940
1982
|
required: false
|
|
@@ -1984,7 +2026,14 @@ paths:
|
|
|
1984
2026
|
summary: Find Hedging Opportunities
|
|
1985
2027
|
operationId: fetchHedges
|
|
1986
2028
|
parameters:
|
|
1987
|
-
-
|
|
2029
|
+
- in: path
|
|
2030
|
+
name: exchange
|
|
2031
|
+
schema:
|
|
2032
|
+
type: string
|
|
2033
|
+
enum:
|
|
2034
|
+
- router
|
|
2035
|
+
required: true
|
|
2036
|
+
description: The prediction market exchange to target.
|
|
1988
2037
|
- in: query
|
|
1989
2038
|
name: query
|
|
1990
2039
|
required: false
|
|
@@ -2082,7 +2131,14 @@ paths:
|
|
|
2082
2131
|
summary: Find Arbitrage Opportunities
|
|
2083
2132
|
operationId: fetchArbitrage
|
|
2084
2133
|
parameters:
|
|
2085
|
-
-
|
|
2134
|
+
- in: path
|
|
2135
|
+
name: exchange
|
|
2136
|
+
schema:
|
|
2137
|
+
type: string
|
|
2138
|
+
enum:
|
|
2139
|
+
- router
|
|
2140
|
+
required: true
|
|
2141
|
+
description: The prediction market exchange to target.
|
|
2086
2142
|
- in: query
|
|
2087
2143
|
name: minSpread
|
|
2088
2144
|
required: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxt-core",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.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.37.
|
|
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.37.
|
|
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.37.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.37.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",
|