pmxt-core 2.35.7 → 2.35.9
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/BaseExchange.d.ts +50 -11
- package/dist/BaseExchange.js +50 -8
- 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/polymarket/auth.d.ts +2 -2
- package/dist/exchanges/polymarket/auth.js +14 -3
- package/dist/exchanges/polymarket/errors.d.ts +18 -3
- package/dist/exchanges/polymarket/errors.js +48 -15
- package/dist/exchanges/polymarket/index.d.ts +1 -1
- package/dist/exchanges/polymarket/index.js +13 -15
- package/dist/exchanges/probable/api.d.ts +1 -1
- package/dist/exchanges/probable/api.js +1 -1
- package/dist/router/Router.d.ts +16 -3
- package/dist/router/Router.js +75 -5
- package/dist/router/Router.test.js +23 -2
- package/dist/router/types.d.ts +42 -0
- package/dist/server/method-verbs.json +32 -2
- package/dist/server/openapi.yaml +375 -15
- package/package.json +4 -4
package/dist/server/openapi.yaml
CHANGED
|
@@ -1505,10 +1505,22 @@ paths:
|
|
|
1505
1505
|
connections.
|
|
1506
1506
|
'/api/{exchange}/fetchMarketMatches':
|
|
1507
1507
|
get:
|
|
1508
|
-
summary:
|
|
1508
|
+
summary: Market Matches
|
|
1509
1509
|
operationId: fetchMarketMatches
|
|
1510
1510
|
parameters:
|
|
1511
1511
|
- $ref: '#/components/parameters/ExchangeParam'
|
|
1512
|
+
- in: query
|
|
1513
|
+
name: query
|
|
1514
|
+
required: false
|
|
1515
|
+
schema:
|
|
1516
|
+
type: string
|
|
1517
|
+
description: Keyword search across matched market titles.
|
|
1518
|
+
- in: query
|
|
1519
|
+
name: category
|
|
1520
|
+
required: false
|
|
1521
|
+
schema:
|
|
1522
|
+
type: string
|
|
1523
|
+
description: Filter matches by category.
|
|
1512
1524
|
- in: query
|
|
1513
1525
|
name: market
|
|
1514
1526
|
required: false
|
|
@@ -1521,6 +1533,7 @@ paths:
|
|
|
1521
1533
|
required: false
|
|
1522
1534
|
schema:
|
|
1523
1535
|
type: string
|
|
1536
|
+
description: Lookup a specific market by ID. Omit for browse mode.
|
|
1524
1537
|
- in: query
|
|
1525
1538
|
name: slug
|
|
1526
1539
|
required: false
|
|
@@ -1557,9 +1570,25 @@ paths:
|
|
|
1557
1570
|
required: false
|
|
1558
1571
|
schema:
|
|
1559
1572
|
type: boolean
|
|
1573
|
+
- in: query
|
|
1574
|
+
name: minDifference
|
|
1575
|
+
required: false
|
|
1576
|
+
schema:
|
|
1577
|
+
type: number
|
|
1578
|
+
description: Minimum price difference between venues. Browse mode only.
|
|
1579
|
+
- in: query
|
|
1580
|
+
name: sort
|
|
1581
|
+
required: false
|
|
1582
|
+
schema:
|
|
1583
|
+
type: string
|
|
1584
|
+
enum:
|
|
1585
|
+
- confidence
|
|
1586
|
+
- volume
|
|
1587
|
+
- priceDifference
|
|
1588
|
+
description: Sort order. Browse mode only.
|
|
1560
1589
|
responses:
|
|
1561
1590
|
'200':
|
|
1562
|
-
description:
|
|
1591
|
+
description: Market Matches response
|
|
1563
1592
|
content:
|
|
1564
1593
|
application/json:
|
|
1565
1594
|
schema:
|
|
@@ -1572,15 +1601,28 @@ paths:
|
|
|
1572
1601
|
items:
|
|
1573
1602
|
$ref: '#/components/schemas/MatchResult'
|
|
1574
1603
|
description: >-
|
|
1575
|
-
Find the same or related market on other venues.
|
|
1576
|
-
|
|
1577
|
-
|
|
1604
|
+
Find the same or related market on other venues. Two modes: **Lookup mode** (marketId/slug/url provided): Given
|
|
1605
|
+
a market on one venue, discover semantically equivalent markets across every other venue PMXT ingests. **Browse
|
|
1606
|
+
mode** (no identifier): Returns all matched market pairs from the catalog. Supports query, category,
|
|
1607
|
+
minDifference, and sort params for filtering.
|
|
1578
1608
|
'/api/{exchange}/fetchEventMatches':
|
|
1579
1609
|
get:
|
|
1580
|
-
summary:
|
|
1610
|
+
summary: Event Matches
|
|
1581
1611
|
operationId: fetchEventMatches
|
|
1582
1612
|
parameters:
|
|
1583
1613
|
- $ref: '#/components/parameters/ExchangeParam'
|
|
1614
|
+
- in: query
|
|
1615
|
+
name: query
|
|
1616
|
+
required: false
|
|
1617
|
+
schema:
|
|
1618
|
+
type: string
|
|
1619
|
+
description: Keyword search across matched event titles.
|
|
1620
|
+
- in: query
|
|
1621
|
+
name: category
|
|
1622
|
+
required: false
|
|
1623
|
+
schema:
|
|
1624
|
+
type: string
|
|
1625
|
+
description: Filter matches by category.
|
|
1584
1626
|
- in: query
|
|
1585
1627
|
name: event
|
|
1586
1628
|
required: false
|
|
@@ -1593,6 +1635,7 @@ paths:
|
|
|
1593
1635
|
required: false
|
|
1594
1636
|
schema:
|
|
1595
1637
|
type: string
|
|
1638
|
+
description: Lookup a specific event by ID. Omit for browse mode.
|
|
1596
1639
|
- in: query
|
|
1597
1640
|
name: slug
|
|
1598
1641
|
required: false
|
|
@@ -1626,7 +1669,7 @@ paths:
|
|
|
1626
1669
|
type: boolean
|
|
1627
1670
|
responses:
|
|
1628
1671
|
'200':
|
|
1629
|
-
description:
|
|
1672
|
+
description: Event Matches response
|
|
1630
1673
|
content:
|
|
1631
1674
|
application/json:
|
|
1632
1675
|
schema:
|
|
@@ -1639,8 +1682,10 @@ paths:
|
|
|
1639
1682
|
items:
|
|
1640
1683
|
$ref: '#/components/schemas/EventMatchResult'
|
|
1641
1684
|
description: >-
|
|
1642
|
-
Find the same or related event on other venues.
|
|
1643
|
-
|
|
1685
|
+
Find the same or related event on other venues. Two modes: **Lookup mode** (eventId/slug provided): Given an
|
|
1686
|
+
event on one venue, discover semantically equivalent events across every other venue PMXT ingests. **Browse
|
|
1687
|
+
mode** (no identifier): Returns all matched event pairs from the catalog. Supports query and category params for
|
|
1688
|
+
filtering.
|
|
1644
1689
|
'/api/{exchange}/compareMarketPrices':
|
|
1645
1690
|
post:
|
|
1646
1691
|
summary: Compare Prices Across Venues
|
|
@@ -1681,12 +1726,224 @@ paths:
|
|
|
1681
1726
|
description: >-
|
|
1682
1727
|
Compare live prices for the same market across venues. Finds identity matches and returns side-by-side best
|
|
1683
1728
|
bid/ask prices so you can spot price differences at a glance.
|
|
1729
|
+
'/api/{exchange}/fetchRelatedMarkets':
|
|
1730
|
+
get:
|
|
1731
|
+
summary: Find Related Markets
|
|
1732
|
+
operationId: fetchRelatedMarkets
|
|
1733
|
+
parameters:
|
|
1734
|
+
- $ref: '#/components/parameters/ExchangeParam'
|
|
1735
|
+
- in: query
|
|
1736
|
+
name: query
|
|
1737
|
+
required: false
|
|
1738
|
+
schema:
|
|
1739
|
+
type: string
|
|
1740
|
+
description: Keyword search across matched market titles.
|
|
1741
|
+
- in: query
|
|
1742
|
+
name: category
|
|
1743
|
+
required: false
|
|
1744
|
+
schema:
|
|
1745
|
+
type: string
|
|
1746
|
+
description: Filter matches by category.
|
|
1747
|
+
- in: query
|
|
1748
|
+
name: market
|
|
1749
|
+
required: false
|
|
1750
|
+
schema:
|
|
1751
|
+
allOf:
|
|
1752
|
+
- $ref: '#/components/schemas/UnifiedMarket'
|
|
1753
|
+
description: Pass a UnifiedMarket directly instead of marketId/slug/url.
|
|
1754
|
+
- in: query
|
|
1755
|
+
name: marketId
|
|
1756
|
+
required: false
|
|
1757
|
+
schema:
|
|
1758
|
+
type: string
|
|
1759
|
+
description: Lookup a specific market by ID. Omit for browse mode.
|
|
1760
|
+
- in: query
|
|
1761
|
+
name: slug
|
|
1762
|
+
required: false
|
|
1763
|
+
schema:
|
|
1764
|
+
type: string
|
|
1765
|
+
- in: query
|
|
1766
|
+
name: url
|
|
1767
|
+
required: false
|
|
1768
|
+
schema:
|
|
1769
|
+
type: string
|
|
1770
|
+
- in: query
|
|
1771
|
+
name: relation
|
|
1772
|
+
required: false
|
|
1773
|
+
schema:
|
|
1774
|
+
type: string
|
|
1775
|
+
enum:
|
|
1776
|
+
- identity
|
|
1777
|
+
- subset
|
|
1778
|
+
- superset
|
|
1779
|
+
- overlap
|
|
1780
|
+
- disjoint
|
|
1781
|
+
- in: query
|
|
1782
|
+
name: minConfidence
|
|
1783
|
+
required: false
|
|
1784
|
+
schema:
|
|
1785
|
+
type: number
|
|
1786
|
+
- in: query
|
|
1787
|
+
name: limit
|
|
1788
|
+
required: false
|
|
1789
|
+
schema:
|
|
1790
|
+
type: number
|
|
1791
|
+
- in: query
|
|
1792
|
+
name: includePrices
|
|
1793
|
+
required: false
|
|
1794
|
+
schema:
|
|
1795
|
+
type: boolean
|
|
1796
|
+
- in: query
|
|
1797
|
+
name: minDifference
|
|
1798
|
+
required: false
|
|
1799
|
+
schema:
|
|
1800
|
+
type: number
|
|
1801
|
+
description: Minimum price difference between venues. Browse mode only.
|
|
1802
|
+
- in: query
|
|
1803
|
+
name: sort
|
|
1804
|
+
required: false
|
|
1805
|
+
schema:
|
|
1806
|
+
type: string
|
|
1807
|
+
enum:
|
|
1808
|
+
- confidence
|
|
1809
|
+
- volume
|
|
1810
|
+
- priceDifference
|
|
1811
|
+
description: Sort order. Browse mode only.
|
|
1812
|
+
responses:
|
|
1813
|
+
'200':
|
|
1814
|
+
description: Find Related Markets response
|
|
1815
|
+
content:
|
|
1816
|
+
application/json:
|
|
1817
|
+
schema:
|
|
1818
|
+
allOf:
|
|
1819
|
+
- $ref: '#/components/schemas/BaseResponse'
|
|
1820
|
+
- type: object
|
|
1821
|
+
properties:
|
|
1822
|
+
data:
|
|
1823
|
+
type: array
|
|
1824
|
+
items:
|
|
1825
|
+
$ref: '#/components/schemas/PriceComparison'
|
|
1826
|
+
description: >-
|
|
1827
|
+
Find related markets across venues. Discovers subset/superset market relationships where one market's outcome
|
|
1828
|
+
implies another, with live prices.
|
|
1829
|
+
'/api/{exchange}/fetchMatchedMarkets':
|
|
1830
|
+
get:
|
|
1831
|
+
summary: Matched Markets
|
|
1832
|
+
operationId: fetchMatchedMarkets
|
|
1833
|
+
parameters:
|
|
1834
|
+
- $ref: '#/components/parameters/ExchangeParam'
|
|
1835
|
+
- in: query
|
|
1836
|
+
name: minDifference
|
|
1837
|
+
required: false
|
|
1838
|
+
schema:
|
|
1839
|
+
type: number
|
|
1840
|
+
- in: query
|
|
1841
|
+
name: category
|
|
1842
|
+
required: false
|
|
1843
|
+
schema:
|
|
1844
|
+
type: string
|
|
1845
|
+
- in: query
|
|
1846
|
+
name: limit
|
|
1847
|
+
required: false
|
|
1848
|
+
schema:
|
|
1849
|
+
type: number
|
|
1850
|
+
- in: query
|
|
1851
|
+
name: relations
|
|
1852
|
+
required: false
|
|
1853
|
+
schema:
|
|
1854
|
+
type: array
|
|
1855
|
+
items:
|
|
1856
|
+
type: string
|
|
1857
|
+
enum:
|
|
1858
|
+
- identity
|
|
1859
|
+
- subset
|
|
1860
|
+
- superset
|
|
1861
|
+
- overlap
|
|
1862
|
+
- disjoint
|
|
1863
|
+
description: 'Comma-separated relation types to include (default: ''identity'').'
|
|
1864
|
+
responses:
|
|
1865
|
+
'200':
|
|
1866
|
+
description: Matched Markets response
|
|
1867
|
+
content:
|
|
1868
|
+
application/json:
|
|
1869
|
+
schema:
|
|
1870
|
+
allOf:
|
|
1871
|
+
- $ref: '#/components/schemas/BaseResponse'
|
|
1872
|
+
- type: object
|
|
1873
|
+
properties:
|
|
1874
|
+
data:
|
|
1875
|
+
type: array
|
|
1876
|
+
items:
|
|
1877
|
+
$ref: '#/components/schemas/MatchedMarketPair'
|
|
1878
|
+
deprecated: true
|
|
1879
|
+
'/api/{exchange}/fetchMatchedPrices':
|
|
1880
|
+
get:
|
|
1881
|
+
summary: Compare Matched Market Prices
|
|
1882
|
+
operationId: fetchMatchedPrices
|
|
1883
|
+
parameters:
|
|
1884
|
+
- $ref: '#/components/parameters/ExchangeParam'
|
|
1885
|
+
- in: query
|
|
1886
|
+
name: minDifference
|
|
1887
|
+
required: false
|
|
1888
|
+
schema:
|
|
1889
|
+
type: number
|
|
1890
|
+
- in: query
|
|
1891
|
+
name: category
|
|
1892
|
+
required: false
|
|
1893
|
+
schema:
|
|
1894
|
+
type: string
|
|
1895
|
+
- in: query
|
|
1896
|
+
name: limit
|
|
1897
|
+
required: false
|
|
1898
|
+
schema:
|
|
1899
|
+
type: number
|
|
1900
|
+
- in: query
|
|
1901
|
+
name: relations
|
|
1902
|
+
required: false
|
|
1903
|
+
schema:
|
|
1904
|
+
type: array
|
|
1905
|
+
items:
|
|
1906
|
+
type: string
|
|
1907
|
+
enum:
|
|
1908
|
+
- identity
|
|
1909
|
+
- subset
|
|
1910
|
+
- superset
|
|
1911
|
+
- overlap
|
|
1912
|
+
- disjoint
|
|
1913
|
+
description: 'Comma-separated relation types to include (default: ''identity'').'
|
|
1914
|
+
responses:
|
|
1915
|
+
'200':
|
|
1916
|
+
description: Compare Matched Market Prices response
|
|
1917
|
+
content:
|
|
1918
|
+
application/json:
|
|
1919
|
+
schema:
|
|
1920
|
+
allOf:
|
|
1921
|
+
- $ref: '#/components/schemas/BaseResponse'
|
|
1922
|
+
- type: object
|
|
1923
|
+
properties:
|
|
1924
|
+
data:
|
|
1925
|
+
type: array
|
|
1926
|
+
items:
|
|
1927
|
+
$ref: '#/components/schemas/MatchedMarketPair'
|
|
1928
|
+
deprecated: true
|
|
1684
1929
|
'/api/{exchange}/fetchHedges':
|
|
1685
1930
|
get:
|
|
1686
1931
|
summary: Find Hedging Opportunities
|
|
1687
1932
|
operationId: fetchHedges
|
|
1688
1933
|
parameters:
|
|
1689
1934
|
- $ref: '#/components/parameters/ExchangeParam'
|
|
1935
|
+
- in: query
|
|
1936
|
+
name: query
|
|
1937
|
+
required: false
|
|
1938
|
+
schema:
|
|
1939
|
+
type: string
|
|
1940
|
+
description: Keyword search across matched market titles.
|
|
1941
|
+
- in: query
|
|
1942
|
+
name: category
|
|
1943
|
+
required: false
|
|
1944
|
+
schema:
|
|
1945
|
+
type: string
|
|
1946
|
+
description: Filter matches by category.
|
|
1690
1947
|
- in: query
|
|
1691
1948
|
name: market
|
|
1692
1949
|
required: false
|
|
@@ -1699,6 +1956,7 @@ paths:
|
|
|
1699
1956
|
required: false
|
|
1700
1957
|
schema:
|
|
1701
1958
|
type: string
|
|
1959
|
+
description: Lookup a specific market by ID. Omit for browse mode.
|
|
1702
1960
|
- in: query
|
|
1703
1961
|
name: slug
|
|
1704
1962
|
required: false
|
|
@@ -1735,6 +1993,22 @@ paths:
|
|
|
1735
1993
|
required: false
|
|
1736
1994
|
schema:
|
|
1737
1995
|
type: boolean
|
|
1996
|
+
- in: query
|
|
1997
|
+
name: minDifference
|
|
1998
|
+
required: false
|
|
1999
|
+
schema:
|
|
2000
|
+
type: number
|
|
2001
|
+
description: Minimum price difference between venues. Browse mode only.
|
|
2002
|
+
- in: query
|
|
2003
|
+
name: sort
|
|
2004
|
+
required: false
|
|
2005
|
+
schema:
|
|
2006
|
+
type: string
|
|
2007
|
+
enum:
|
|
2008
|
+
- confidence
|
|
2009
|
+
- volume
|
|
2010
|
+
- priceDifference
|
|
2011
|
+
description: Sort order. Browse mode only.
|
|
1738
2012
|
responses:
|
|
1739
2013
|
'200':
|
|
1740
2014
|
description: Find Hedging Opportunities response
|
|
@@ -1749,9 +2023,7 @@ paths:
|
|
|
1749
2023
|
type: array
|
|
1750
2024
|
items:
|
|
1751
2025
|
$ref: '#/components/schemas/PriceComparison'
|
|
1752
|
-
|
|
1753
|
-
Find hedging opportunities across venues. Discovers subset/superset market relationships where one market's
|
|
1754
|
-
outcome implies another, enabling cross-venue hedging strategies with live prices.
|
|
2026
|
+
deprecated: true
|
|
1755
2027
|
'/api/{exchange}/fetchArbitrage':
|
|
1756
2028
|
get:
|
|
1757
2029
|
summary: Find Arbitrage Opportunities
|
|
@@ -1801,9 +2073,7 @@ paths:
|
|
|
1801
2073
|
type: array
|
|
1802
2074
|
items:
|
|
1803
2075
|
$ref: '#/components/schemas/ArbitrageOpportunity'
|
|
1804
|
-
|
|
1805
|
-
Scan for arbitrage opportunities across venues. Finds identity matches where the same market is priced
|
|
1806
|
-
differently on different venues, returning opportunities sorted by spread size.
|
|
2076
|
+
deprecated: true
|
|
1807
2077
|
components:
|
|
1808
2078
|
parameters:
|
|
1809
2079
|
ExchangeParam:
|
|
@@ -2740,12 +3010,19 @@ components:
|
|
|
2740
3010
|
FetchMarketMatchesParams:
|
|
2741
3011
|
type: object
|
|
2742
3012
|
properties:
|
|
3013
|
+
query:
|
|
3014
|
+
type: string
|
|
3015
|
+
description: Keyword search across matched market titles.
|
|
3016
|
+
category:
|
|
3017
|
+
type: string
|
|
3018
|
+
description: Filter matches by category.
|
|
2743
3019
|
market:
|
|
2744
3020
|
allOf:
|
|
2745
3021
|
- $ref: '#/components/schemas/UnifiedMarket'
|
|
2746
3022
|
description: Pass a UnifiedMarket directly instead of marketId/slug/url.
|
|
2747
3023
|
marketId:
|
|
2748
3024
|
type: string
|
|
3025
|
+
description: Lookup a specific market by ID. Omit for browse mode.
|
|
2749
3026
|
slug:
|
|
2750
3027
|
type: string
|
|
2751
3028
|
url:
|
|
@@ -2764,15 +3041,32 @@ components:
|
|
|
2764
3041
|
type: number
|
|
2765
3042
|
includePrices:
|
|
2766
3043
|
type: boolean
|
|
3044
|
+
minDifference:
|
|
3045
|
+
type: number
|
|
3046
|
+
description: Minimum price difference between venues. Browse mode only.
|
|
3047
|
+
sort:
|
|
3048
|
+
type: string
|
|
3049
|
+
enum:
|
|
3050
|
+
- confidence
|
|
3051
|
+
- volume
|
|
3052
|
+
- priceDifference
|
|
3053
|
+
description: Sort order. Browse mode only.
|
|
2767
3054
|
FetchEventMatchesParams:
|
|
2768
3055
|
type: object
|
|
2769
3056
|
properties:
|
|
3057
|
+
query:
|
|
3058
|
+
type: string
|
|
3059
|
+
description: Keyword search across matched event titles.
|
|
3060
|
+
category:
|
|
3061
|
+
type: string
|
|
3062
|
+
description: Filter matches by category.
|
|
2770
3063
|
event:
|
|
2771
3064
|
allOf:
|
|
2772
3065
|
- $ref: '#/components/schemas/UnifiedEvent'
|
|
2773
3066
|
description: Pass a UnifiedEvent directly instead of eventId/slug.
|
|
2774
3067
|
eventId:
|
|
2775
3068
|
type: string
|
|
3069
|
+
description: Lookup a specific event by ID. Omit for browse mode.
|
|
2776
3070
|
slug:
|
|
2777
3071
|
type: string
|
|
2778
3072
|
relation:
|
|
@@ -2814,6 +3108,10 @@ components:
|
|
|
2814
3108
|
properties:
|
|
2815
3109
|
market:
|
|
2816
3110
|
$ref: '#/components/schemas/UnifiedMarket'
|
|
3111
|
+
sourceMarket:
|
|
3112
|
+
allOf:
|
|
3113
|
+
- $ref: '#/components/schemas/UnifiedMarket'
|
|
3114
|
+
description: 'The source market this was matched against. Present in browse mode (no marketId), absent in lookup mode.'
|
|
2817
3115
|
relation:
|
|
2818
3116
|
type: string
|
|
2819
3117
|
enum:
|
|
@@ -2929,6 +3227,68 @@ components:
|
|
|
2929
3227
|
- sellVenue
|
|
2930
3228
|
- buyPrice
|
|
2931
3229
|
- sellPrice
|
|
3230
|
+
FetchMatchedMarketsParams:
|
|
3231
|
+
type: object
|
|
3232
|
+
properties:
|
|
3233
|
+
minDifference:
|
|
3234
|
+
type: number
|
|
3235
|
+
category:
|
|
3236
|
+
type: string
|
|
3237
|
+
limit:
|
|
3238
|
+
type: number
|
|
3239
|
+
relations:
|
|
3240
|
+
type: array
|
|
3241
|
+
items:
|
|
3242
|
+
type: string
|
|
3243
|
+
enum:
|
|
3244
|
+
- identity
|
|
3245
|
+
- subset
|
|
3246
|
+
- superset
|
|
3247
|
+
- overlap
|
|
3248
|
+
- disjoint
|
|
3249
|
+
description: 'Comma-separated relation types to include (default: ''identity'').'
|
|
3250
|
+
MatchedMarketPair:
|
|
3251
|
+
type: object
|
|
3252
|
+
properties:
|
|
3253
|
+
marketA:
|
|
3254
|
+
$ref: '#/components/schemas/UnifiedMarket'
|
|
3255
|
+
marketB:
|
|
3256
|
+
$ref: '#/components/schemas/UnifiedMarket'
|
|
3257
|
+
priceDifference:
|
|
3258
|
+
type: number
|
|
3259
|
+
venueA:
|
|
3260
|
+
type: string
|
|
3261
|
+
venueB:
|
|
3262
|
+
type: string
|
|
3263
|
+
priceA:
|
|
3264
|
+
type: number
|
|
3265
|
+
priceB:
|
|
3266
|
+
type: number
|
|
3267
|
+
relation:
|
|
3268
|
+
type: string
|
|
3269
|
+
enum:
|
|
3270
|
+
- identity
|
|
3271
|
+
- subset
|
|
3272
|
+
- superset
|
|
3273
|
+
- overlap
|
|
3274
|
+
- disjoint
|
|
3275
|
+
description: 'The set-theoretic relation between the two markets (e.g. identity, subset).'
|
|
3276
|
+
confidence:
|
|
3277
|
+
type: number
|
|
3278
|
+
description: Match confidence score (0.0 to 1.0).
|
|
3279
|
+
reasoning:
|
|
3280
|
+
oneOf:
|
|
3281
|
+
- type: string
|
|
3282
|
+
- {}
|
|
3283
|
+
description: Why the two markets were matched.
|
|
3284
|
+
required:
|
|
3285
|
+
- marketA
|
|
3286
|
+
- marketB
|
|
3287
|
+
- priceDifference
|
|
3288
|
+
- venueA
|
|
3289
|
+
- venueB
|
|
3290
|
+
- priceA
|
|
3291
|
+
- priceB
|
|
2932
3292
|
ExchangeCredentials:
|
|
2933
3293
|
type: object
|
|
2934
3294
|
description: Optional authentication credentials for exchange operations.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxt-core",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.9",
|
|
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.35.
|
|
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.35.
|
|
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.35.9,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.35.9,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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@limitless-exchange/sdk": "^1.0.2",
|
|
49
49
|
"@opinion-labs/opinion-clob-sdk": "^0.6.0",
|
|
50
|
-
"@polymarket/clob-client": "^
|
|
50
|
+
"@polymarket/clob-client-v2": "^1.0.0",
|
|
51
51
|
"@prob/clob": "0.5.0",
|
|
52
52
|
"@solana/web3.js": "^1.98.4",
|
|
53
53
|
"@types/express": "^5.0.6",
|