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.
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +58 -0
- package/dist/esm/generated/src/apis/DefaultApi.js +87 -29
- package/dist/esm/index.d.ts +6 -2
- package/dist/esm/index.js +6 -2
- package/dist/esm/pmxt/client.d.ts +62 -0
- package/dist/esm/pmxt/client.js +76 -0
- package/dist/esm/pmxt/models.d.ts +12 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +58 -0
- package/dist/generated/src/apis/DefaultApi.js +87 -29
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -1
- package/dist/pmxt/client.d.ts +62 -0
- package/dist/pmxt/client.js +81 -1
- package/dist/pmxt/models.d.ts +12 -0
- package/generated/docs/DefaultApi.md +58 -58
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +87 -29
- package/index.ts +6 -2
- package/package.json +2 -2
- package/pmxt/client.ts +80 -0
- package/pmxt/models.ts +18 -0
|
@@ -1565,13 +1565,15 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1565
1565
|
export const BuildOrderOperationExchangeEnum = {
|
|
1566
1566
|
Polymarket: 'polymarket',
|
|
1567
1567
|
Kalshi: 'kalshi',
|
|
1568
|
+
KalshiDemo: 'kalshi-demo',
|
|
1568
1569
|
Limitless: 'limitless',
|
|
1569
1570
|
Probable: 'probable',
|
|
1570
1571
|
Baozi: 'baozi',
|
|
1571
1572
|
Myriad: 'myriad',
|
|
1572
1573
|
Opinion: 'opinion',
|
|
1573
1574
|
Metaculus: 'metaculus',
|
|
1574
|
-
Smarkets: 'smarkets'
|
|
1575
|
+
Smarkets: 'smarkets',
|
|
1576
|
+
PolymarketUs: 'polymarket_us'
|
|
1575
1577
|
} as const;
|
|
1576
1578
|
export type BuildOrderOperationExchangeEnum = typeof BuildOrderOperationExchangeEnum[keyof typeof BuildOrderOperationExchangeEnum];
|
|
1577
1579
|
/**
|
|
@@ -1580,13 +1582,15 @@ export type BuildOrderOperationExchangeEnum = typeof BuildOrderOperationExchange
|
|
|
1580
1582
|
export const CancelOrderOperationExchangeEnum = {
|
|
1581
1583
|
Polymarket: 'polymarket',
|
|
1582
1584
|
Kalshi: 'kalshi',
|
|
1585
|
+
KalshiDemo: 'kalshi-demo',
|
|
1583
1586
|
Limitless: 'limitless',
|
|
1584
1587
|
Probable: 'probable',
|
|
1585
1588
|
Baozi: 'baozi',
|
|
1586
1589
|
Myriad: 'myriad',
|
|
1587
1590
|
Opinion: 'opinion',
|
|
1588
1591
|
Metaculus: 'metaculus',
|
|
1589
|
-
Smarkets: 'smarkets'
|
|
1592
|
+
Smarkets: 'smarkets',
|
|
1593
|
+
PolymarketUs: 'polymarket_us'
|
|
1590
1594
|
} as const;
|
|
1591
1595
|
export type CancelOrderOperationExchangeEnum = typeof CancelOrderOperationExchangeEnum[keyof typeof CancelOrderOperationExchangeEnum];
|
|
1592
1596
|
/**
|
|
@@ -1595,13 +1599,15 @@ export type CancelOrderOperationExchangeEnum = typeof CancelOrderOperationExchan
|
|
|
1595
1599
|
export const CloseOperationExchangeEnum = {
|
|
1596
1600
|
Polymarket: 'polymarket',
|
|
1597
1601
|
Kalshi: 'kalshi',
|
|
1602
|
+
KalshiDemo: 'kalshi-demo',
|
|
1598
1603
|
Limitless: 'limitless',
|
|
1599
1604
|
Probable: 'probable',
|
|
1600
1605
|
Baozi: 'baozi',
|
|
1601
1606
|
Myriad: 'myriad',
|
|
1602
1607
|
Opinion: 'opinion',
|
|
1603
1608
|
Metaculus: 'metaculus',
|
|
1604
|
-
Smarkets: 'smarkets'
|
|
1609
|
+
Smarkets: 'smarkets',
|
|
1610
|
+
PolymarketUs: 'polymarket_us'
|
|
1605
1611
|
} as const;
|
|
1606
1612
|
export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof typeof CloseOperationExchangeEnum];
|
|
1607
1613
|
/**
|
|
@@ -1610,13 +1616,15 @@ export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof
|
|
|
1610
1616
|
export const CreateOrderOperationExchangeEnum = {
|
|
1611
1617
|
Polymarket: 'polymarket',
|
|
1612
1618
|
Kalshi: 'kalshi',
|
|
1619
|
+
KalshiDemo: 'kalshi-demo',
|
|
1613
1620
|
Limitless: 'limitless',
|
|
1614
1621
|
Probable: 'probable',
|
|
1615
1622
|
Baozi: 'baozi',
|
|
1616
1623
|
Myriad: 'myriad',
|
|
1617
1624
|
Opinion: 'opinion',
|
|
1618
1625
|
Metaculus: 'metaculus',
|
|
1619
|
-
Smarkets: 'smarkets'
|
|
1626
|
+
Smarkets: 'smarkets',
|
|
1627
|
+
PolymarketUs: 'polymarket_us'
|
|
1620
1628
|
} as const;
|
|
1621
1629
|
export type CreateOrderOperationExchangeEnum = typeof CreateOrderOperationExchangeEnum[keyof typeof CreateOrderOperationExchangeEnum];
|
|
1622
1630
|
/**
|
|
@@ -1625,13 +1633,15 @@ export type CreateOrderOperationExchangeEnum = typeof CreateOrderOperationExchan
|
|
|
1625
1633
|
export const FetchAllOrdersOperationExchangeEnum = {
|
|
1626
1634
|
Polymarket: 'polymarket',
|
|
1627
1635
|
Kalshi: 'kalshi',
|
|
1636
|
+
KalshiDemo: 'kalshi-demo',
|
|
1628
1637
|
Limitless: 'limitless',
|
|
1629
1638
|
Probable: 'probable',
|
|
1630
1639
|
Baozi: 'baozi',
|
|
1631
1640
|
Myriad: 'myriad',
|
|
1632
1641
|
Opinion: 'opinion',
|
|
1633
1642
|
Metaculus: 'metaculus',
|
|
1634
|
-
Smarkets: 'smarkets'
|
|
1643
|
+
Smarkets: 'smarkets',
|
|
1644
|
+
PolymarketUs: 'polymarket_us'
|
|
1635
1645
|
} as const;
|
|
1636
1646
|
export type FetchAllOrdersOperationExchangeEnum = typeof FetchAllOrdersOperationExchangeEnum[keyof typeof FetchAllOrdersOperationExchangeEnum];
|
|
1637
1647
|
/**
|
|
@@ -1640,13 +1650,15 @@ export type FetchAllOrdersOperationExchangeEnum = typeof FetchAllOrdersOperation
|
|
|
1640
1650
|
export const FetchBalanceOperationExchangeEnum = {
|
|
1641
1651
|
Polymarket: 'polymarket',
|
|
1642
1652
|
Kalshi: 'kalshi',
|
|
1653
|
+
KalshiDemo: 'kalshi-demo',
|
|
1643
1654
|
Limitless: 'limitless',
|
|
1644
1655
|
Probable: 'probable',
|
|
1645
1656
|
Baozi: 'baozi',
|
|
1646
1657
|
Myriad: 'myriad',
|
|
1647
1658
|
Opinion: 'opinion',
|
|
1648
1659
|
Metaculus: 'metaculus',
|
|
1649
|
-
Smarkets: 'smarkets'
|
|
1660
|
+
Smarkets: 'smarkets',
|
|
1661
|
+
PolymarketUs: 'polymarket_us'
|
|
1650
1662
|
} as const;
|
|
1651
1663
|
export type FetchBalanceOperationExchangeEnum = typeof FetchBalanceOperationExchangeEnum[keyof typeof FetchBalanceOperationExchangeEnum];
|
|
1652
1664
|
/**
|
|
@@ -1655,13 +1667,15 @@ export type FetchBalanceOperationExchangeEnum = typeof FetchBalanceOperationExch
|
|
|
1655
1667
|
export const FetchClosedOrdersOperationExchangeEnum = {
|
|
1656
1668
|
Polymarket: 'polymarket',
|
|
1657
1669
|
Kalshi: 'kalshi',
|
|
1670
|
+
KalshiDemo: 'kalshi-demo',
|
|
1658
1671
|
Limitless: 'limitless',
|
|
1659
1672
|
Probable: 'probable',
|
|
1660
1673
|
Baozi: 'baozi',
|
|
1661
1674
|
Myriad: 'myriad',
|
|
1662
1675
|
Opinion: 'opinion',
|
|
1663
1676
|
Metaculus: 'metaculus',
|
|
1664
|
-
Smarkets: 'smarkets'
|
|
1677
|
+
Smarkets: 'smarkets',
|
|
1678
|
+
PolymarketUs: 'polymarket_us'
|
|
1665
1679
|
} as const;
|
|
1666
1680
|
export type FetchClosedOrdersOperationExchangeEnum = typeof FetchClosedOrdersOperationExchangeEnum[keyof typeof FetchClosedOrdersOperationExchangeEnum];
|
|
1667
1681
|
/**
|
|
@@ -1670,13 +1684,15 @@ export type FetchClosedOrdersOperationExchangeEnum = typeof FetchClosedOrdersOpe
|
|
|
1670
1684
|
export const FetchEventOperationExchangeEnum = {
|
|
1671
1685
|
Polymarket: 'polymarket',
|
|
1672
1686
|
Kalshi: 'kalshi',
|
|
1687
|
+
KalshiDemo: 'kalshi-demo',
|
|
1673
1688
|
Limitless: 'limitless',
|
|
1674
1689
|
Probable: 'probable',
|
|
1675
1690
|
Baozi: 'baozi',
|
|
1676
1691
|
Myriad: 'myriad',
|
|
1677
1692
|
Opinion: 'opinion',
|
|
1678
1693
|
Metaculus: 'metaculus',
|
|
1679
|
-
Smarkets: 'smarkets'
|
|
1694
|
+
Smarkets: 'smarkets',
|
|
1695
|
+
PolymarketUs: 'polymarket_us'
|
|
1680
1696
|
} as const;
|
|
1681
1697
|
export type FetchEventOperationExchangeEnum = typeof FetchEventOperationExchangeEnum[keyof typeof FetchEventOperationExchangeEnum];
|
|
1682
1698
|
/**
|
|
@@ -1685,13 +1701,15 @@ export type FetchEventOperationExchangeEnum = typeof FetchEventOperationExchange
|
|
|
1685
1701
|
export const FetchEventsOperationExchangeEnum = {
|
|
1686
1702
|
Polymarket: 'polymarket',
|
|
1687
1703
|
Kalshi: 'kalshi',
|
|
1704
|
+
KalshiDemo: 'kalshi-demo',
|
|
1688
1705
|
Limitless: 'limitless',
|
|
1689
1706
|
Probable: 'probable',
|
|
1690
1707
|
Baozi: 'baozi',
|
|
1691
1708
|
Myriad: 'myriad',
|
|
1692
1709
|
Opinion: 'opinion',
|
|
1693
1710
|
Metaculus: 'metaculus',
|
|
1694
|
-
Smarkets: 'smarkets'
|
|
1711
|
+
Smarkets: 'smarkets',
|
|
1712
|
+
PolymarketUs: 'polymarket_us'
|
|
1695
1713
|
} as const;
|
|
1696
1714
|
export type FetchEventsOperationExchangeEnum = typeof FetchEventsOperationExchangeEnum[keyof typeof FetchEventsOperationExchangeEnum];
|
|
1697
1715
|
/**
|
|
@@ -1700,13 +1718,15 @@ export type FetchEventsOperationExchangeEnum = typeof FetchEventsOperationExchan
|
|
|
1700
1718
|
export const FetchMarketOperationExchangeEnum = {
|
|
1701
1719
|
Polymarket: 'polymarket',
|
|
1702
1720
|
Kalshi: 'kalshi',
|
|
1721
|
+
KalshiDemo: 'kalshi-demo',
|
|
1703
1722
|
Limitless: 'limitless',
|
|
1704
1723
|
Probable: 'probable',
|
|
1705
1724
|
Baozi: 'baozi',
|
|
1706
1725
|
Myriad: 'myriad',
|
|
1707
1726
|
Opinion: 'opinion',
|
|
1708
1727
|
Metaculus: 'metaculus',
|
|
1709
|
-
Smarkets: 'smarkets'
|
|
1728
|
+
Smarkets: 'smarkets',
|
|
1729
|
+
PolymarketUs: 'polymarket_us'
|
|
1710
1730
|
} as const;
|
|
1711
1731
|
export type FetchMarketOperationExchangeEnum = typeof FetchMarketOperationExchangeEnum[keyof typeof FetchMarketOperationExchangeEnum];
|
|
1712
1732
|
/**
|
|
@@ -1715,13 +1735,15 @@ export type FetchMarketOperationExchangeEnum = typeof FetchMarketOperationExchan
|
|
|
1715
1735
|
export const FetchMarketsOperationExchangeEnum = {
|
|
1716
1736
|
Polymarket: 'polymarket',
|
|
1717
1737
|
Kalshi: 'kalshi',
|
|
1738
|
+
KalshiDemo: 'kalshi-demo',
|
|
1718
1739
|
Limitless: 'limitless',
|
|
1719
1740
|
Probable: 'probable',
|
|
1720
1741
|
Baozi: 'baozi',
|
|
1721
1742
|
Myriad: 'myriad',
|
|
1722
1743
|
Opinion: 'opinion',
|
|
1723
1744
|
Metaculus: 'metaculus',
|
|
1724
|
-
Smarkets: 'smarkets'
|
|
1745
|
+
Smarkets: 'smarkets',
|
|
1746
|
+
PolymarketUs: 'polymarket_us'
|
|
1725
1747
|
} as const;
|
|
1726
1748
|
export type FetchMarketsOperationExchangeEnum = typeof FetchMarketsOperationExchangeEnum[keyof typeof FetchMarketsOperationExchangeEnum];
|
|
1727
1749
|
/**
|
|
@@ -1730,13 +1752,15 @@ export type FetchMarketsOperationExchangeEnum = typeof FetchMarketsOperationExch
|
|
|
1730
1752
|
export const FetchMarketsPaginatedOperationExchangeEnum = {
|
|
1731
1753
|
Polymarket: 'polymarket',
|
|
1732
1754
|
Kalshi: 'kalshi',
|
|
1755
|
+
KalshiDemo: 'kalshi-demo',
|
|
1733
1756
|
Limitless: 'limitless',
|
|
1734
1757
|
Probable: 'probable',
|
|
1735
1758
|
Baozi: 'baozi',
|
|
1736
1759
|
Myriad: 'myriad',
|
|
1737
1760
|
Opinion: 'opinion',
|
|
1738
1761
|
Metaculus: 'metaculus',
|
|
1739
|
-
Smarkets: 'smarkets'
|
|
1762
|
+
Smarkets: 'smarkets',
|
|
1763
|
+
PolymarketUs: 'polymarket_us'
|
|
1740
1764
|
} as const;
|
|
1741
1765
|
export type FetchMarketsPaginatedOperationExchangeEnum = typeof FetchMarketsPaginatedOperationExchangeEnum[keyof typeof FetchMarketsPaginatedOperationExchangeEnum];
|
|
1742
1766
|
/**
|
|
@@ -1745,13 +1769,15 @@ export type FetchMarketsPaginatedOperationExchangeEnum = typeof FetchMarketsPagi
|
|
|
1745
1769
|
export const FetchMyTradesOperationExchangeEnum = {
|
|
1746
1770
|
Polymarket: 'polymarket',
|
|
1747
1771
|
Kalshi: 'kalshi',
|
|
1772
|
+
KalshiDemo: 'kalshi-demo',
|
|
1748
1773
|
Limitless: 'limitless',
|
|
1749
1774
|
Probable: 'probable',
|
|
1750
1775
|
Baozi: 'baozi',
|
|
1751
1776
|
Myriad: 'myriad',
|
|
1752
1777
|
Opinion: 'opinion',
|
|
1753
1778
|
Metaculus: 'metaculus',
|
|
1754
|
-
Smarkets: 'smarkets'
|
|
1779
|
+
Smarkets: 'smarkets',
|
|
1780
|
+
PolymarketUs: 'polymarket_us'
|
|
1755
1781
|
} as const;
|
|
1756
1782
|
export type FetchMyTradesOperationExchangeEnum = typeof FetchMyTradesOperationExchangeEnum[keyof typeof FetchMyTradesOperationExchangeEnum];
|
|
1757
1783
|
/**
|
|
@@ -1760,13 +1786,15 @@ export type FetchMyTradesOperationExchangeEnum = typeof FetchMyTradesOperationEx
|
|
|
1760
1786
|
export const FetchOHLCVOperationExchangeEnum = {
|
|
1761
1787
|
Polymarket: 'polymarket',
|
|
1762
1788
|
Kalshi: 'kalshi',
|
|
1789
|
+
KalshiDemo: 'kalshi-demo',
|
|
1763
1790
|
Limitless: 'limitless',
|
|
1764
1791
|
Probable: 'probable',
|
|
1765
1792
|
Baozi: 'baozi',
|
|
1766
1793
|
Myriad: 'myriad',
|
|
1767
1794
|
Opinion: 'opinion',
|
|
1768
1795
|
Metaculus: 'metaculus',
|
|
1769
|
-
Smarkets: 'smarkets'
|
|
1796
|
+
Smarkets: 'smarkets',
|
|
1797
|
+
PolymarketUs: 'polymarket_us'
|
|
1770
1798
|
} as const;
|
|
1771
1799
|
export type FetchOHLCVOperationExchangeEnum = typeof FetchOHLCVOperationExchangeEnum[keyof typeof FetchOHLCVOperationExchangeEnum];
|
|
1772
1800
|
/**
|
|
@@ -1775,13 +1803,15 @@ export type FetchOHLCVOperationExchangeEnum = typeof FetchOHLCVOperationExchange
|
|
|
1775
1803
|
export const FetchOpenOrdersOperationExchangeEnum = {
|
|
1776
1804
|
Polymarket: 'polymarket',
|
|
1777
1805
|
Kalshi: 'kalshi',
|
|
1806
|
+
KalshiDemo: 'kalshi-demo',
|
|
1778
1807
|
Limitless: 'limitless',
|
|
1779
1808
|
Probable: 'probable',
|
|
1780
1809
|
Baozi: 'baozi',
|
|
1781
1810
|
Myriad: 'myriad',
|
|
1782
1811
|
Opinion: 'opinion',
|
|
1783
1812
|
Metaculus: 'metaculus',
|
|
1784
|
-
Smarkets: 'smarkets'
|
|
1813
|
+
Smarkets: 'smarkets',
|
|
1814
|
+
PolymarketUs: 'polymarket_us'
|
|
1785
1815
|
} as const;
|
|
1786
1816
|
export type FetchOpenOrdersOperationExchangeEnum = typeof FetchOpenOrdersOperationExchangeEnum[keyof typeof FetchOpenOrdersOperationExchangeEnum];
|
|
1787
1817
|
/**
|
|
@@ -1790,13 +1820,15 @@ export type FetchOpenOrdersOperationExchangeEnum = typeof FetchOpenOrdersOperati
|
|
|
1790
1820
|
export const FetchOrderOperationExchangeEnum = {
|
|
1791
1821
|
Polymarket: 'polymarket',
|
|
1792
1822
|
Kalshi: 'kalshi',
|
|
1823
|
+
KalshiDemo: 'kalshi-demo',
|
|
1793
1824
|
Limitless: 'limitless',
|
|
1794
1825
|
Probable: 'probable',
|
|
1795
1826
|
Baozi: 'baozi',
|
|
1796
1827
|
Myriad: 'myriad',
|
|
1797
1828
|
Opinion: 'opinion',
|
|
1798
1829
|
Metaculus: 'metaculus',
|
|
1799
|
-
Smarkets: 'smarkets'
|
|
1830
|
+
Smarkets: 'smarkets',
|
|
1831
|
+
PolymarketUs: 'polymarket_us'
|
|
1800
1832
|
} as const;
|
|
1801
1833
|
export type FetchOrderOperationExchangeEnum = typeof FetchOrderOperationExchangeEnum[keyof typeof FetchOrderOperationExchangeEnum];
|
|
1802
1834
|
/**
|
|
@@ -1805,13 +1837,15 @@ export type FetchOrderOperationExchangeEnum = typeof FetchOrderOperationExchange
|
|
|
1805
1837
|
export const FetchOrderBookOperationExchangeEnum = {
|
|
1806
1838
|
Polymarket: 'polymarket',
|
|
1807
1839
|
Kalshi: 'kalshi',
|
|
1840
|
+
KalshiDemo: 'kalshi-demo',
|
|
1808
1841
|
Limitless: 'limitless',
|
|
1809
1842
|
Probable: 'probable',
|
|
1810
1843
|
Baozi: 'baozi',
|
|
1811
1844
|
Myriad: 'myriad',
|
|
1812
1845
|
Opinion: 'opinion',
|
|
1813
1846
|
Metaculus: 'metaculus',
|
|
1814
|
-
Smarkets: 'smarkets'
|
|
1847
|
+
Smarkets: 'smarkets',
|
|
1848
|
+
PolymarketUs: 'polymarket_us'
|
|
1815
1849
|
} as const;
|
|
1816
1850
|
export type FetchOrderBookOperationExchangeEnum = typeof FetchOrderBookOperationExchangeEnum[keyof typeof FetchOrderBookOperationExchangeEnum];
|
|
1817
1851
|
/**
|
|
@@ -1820,13 +1854,15 @@ export type FetchOrderBookOperationExchangeEnum = typeof FetchOrderBookOperation
|
|
|
1820
1854
|
export const FetchPositionsOperationExchangeEnum = {
|
|
1821
1855
|
Polymarket: 'polymarket',
|
|
1822
1856
|
Kalshi: 'kalshi',
|
|
1857
|
+
KalshiDemo: 'kalshi-demo',
|
|
1823
1858
|
Limitless: 'limitless',
|
|
1824
1859
|
Probable: 'probable',
|
|
1825
1860
|
Baozi: 'baozi',
|
|
1826
1861
|
Myriad: 'myriad',
|
|
1827
1862
|
Opinion: 'opinion',
|
|
1828
1863
|
Metaculus: 'metaculus',
|
|
1829
|
-
Smarkets: 'smarkets'
|
|
1864
|
+
Smarkets: 'smarkets',
|
|
1865
|
+
PolymarketUs: 'polymarket_us'
|
|
1830
1866
|
} as const;
|
|
1831
1867
|
export type FetchPositionsOperationExchangeEnum = typeof FetchPositionsOperationExchangeEnum[keyof typeof FetchPositionsOperationExchangeEnum];
|
|
1832
1868
|
/**
|
|
@@ -1835,13 +1871,15 @@ export type FetchPositionsOperationExchangeEnum = typeof FetchPositionsOperation
|
|
|
1835
1871
|
export const FetchTradesOperationExchangeEnum = {
|
|
1836
1872
|
Polymarket: 'polymarket',
|
|
1837
1873
|
Kalshi: 'kalshi',
|
|
1874
|
+
KalshiDemo: 'kalshi-demo',
|
|
1838
1875
|
Limitless: 'limitless',
|
|
1839
1876
|
Probable: 'probable',
|
|
1840
1877
|
Baozi: 'baozi',
|
|
1841
1878
|
Myriad: 'myriad',
|
|
1842
1879
|
Opinion: 'opinion',
|
|
1843
1880
|
Metaculus: 'metaculus',
|
|
1844
|
-
Smarkets: 'smarkets'
|
|
1881
|
+
Smarkets: 'smarkets',
|
|
1882
|
+
PolymarketUs: 'polymarket_us'
|
|
1845
1883
|
} as const;
|
|
1846
1884
|
export type FetchTradesOperationExchangeEnum = typeof FetchTradesOperationExchangeEnum[keyof typeof FetchTradesOperationExchangeEnum];
|
|
1847
1885
|
/**
|
|
@@ -1850,13 +1888,15 @@ export type FetchTradesOperationExchangeEnum = typeof FetchTradesOperationExchan
|
|
|
1850
1888
|
export const FilterEventsOperationExchangeEnum = {
|
|
1851
1889
|
Polymarket: 'polymarket',
|
|
1852
1890
|
Kalshi: 'kalshi',
|
|
1891
|
+
KalshiDemo: 'kalshi-demo',
|
|
1853
1892
|
Limitless: 'limitless',
|
|
1854
1893
|
Probable: 'probable',
|
|
1855
1894
|
Baozi: 'baozi',
|
|
1856
1895
|
Myriad: 'myriad',
|
|
1857
1896
|
Opinion: 'opinion',
|
|
1858
1897
|
Metaculus: 'metaculus',
|
|
1859
|
-
Smarkets: 'smarkets'
|
|
1898
|
+
Smarkets: 'smarkets',
|
|
1899
|
+
PolymarketUs: 'polymarket_us'
|
|
1860
1900
|
} as const;
|
|
1861
1901
|
export type FilterEventsOperationExchangeEnum = typeof FilterEventsOperationExchangeEnum[keyof typeof FilterEventsOperationExchangeEnum];
|
|
1862
1902
|
/**
|
|
@@ -1865,13 +1905,15 @@ export type FilterEventsOperationExchangeEnum = typeof FilterEventsOperationExch
|
|
|
1865
1905
|
export const FilterMarketsOperationExchangeEnum = {
|
|
1866
1906
|
Polymarket: 'polymarket',
|
|
1867
1907
|
Kalshi: 'kalshi',
|
|
1908
|
+
KalshiDemo: 'kalshi-demo',
|
|
1868
1909
|
Limitless: 'limitless',
|
|
1869
1910
|
Probable: 'probable',
|
|
1870
1911
|
Baozi: 'baozi',
|
|
1871
1912
|
Myriad: 'myriad',
|
|
1872
1913
|
Opinion: 'opinion',
|
|
1873
1914
|
Metaculus: 'metaculus',
|
|
1874
|
-
Smarkets: 'smarkets'
|
|
1915
|
+
Smarkets: 'smarkets',
|
|
1916
|
+
PolymarketUs: 'polymarket_us'
|
|
1875
1917
|
} as const;
|
|
1876
1918
|
export type FilterMarketsOperationExchangeEnum = typeof FilterMarketsOperationExchangeEnum[keyof typeof FilterMarketsOperationExchangeEnum];
|
|
1877
1919
|
/**
|
|
@@ -1880,13 +1922,15 @@ export type FilterMarketsOperationExchangeEnum = typeof FilterMarketsOperationEx
|
|
|
1880
1922
|
export const GetExecutionPriceOperationExchangeEnum = {
|
|
1881
1923
|
Polymarket: 'polymarket',
|
|
1882
1924
|
Kalshi: 'kalshi',
|
|
1925
|
+
KalshiDemo: 'kalshi-demo',
|
|
1883
1926
|
Limitless: 'limitless',
|
|
1884
1927
|
Probable: 'probable',
|
|
1885
1928
|
Baozi: 'baozi',
|
|
1886
1929
|
Myriad: 'myriad',
|
|
1887
1930
|
Opinion: 'opinion',
|
|
1888
1931
|
Metaculus: 'metaculus',
|
|
1889
|
-
Smarkets: 'smarkets'
|
|
1932
|
+
Smarkets: 'smarkets',
|
|
1933
|
+
PolymarketUs: 'polymarket_us'
|
|
1890
1934
|
} as const;
|
|
1891
1935
|
export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOperationExchangeEnum[keyof typeof GetExecutionPriceOperationExchangeEnum];
|
|
1892
1936
|
/**
|
|
@@ -1895,13 +1939,15 @@ export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOpe
|
|
|
1895
1939
|
export const GetExecutionPriceDetailedOperationExchangeEnum = {
|
|
1896
1940
|
Polymarket: 'polymarket',
|
|
1897
1941
|
Kalshi: 'kalshi',
|
|
1942
|
+
KalshiDemo: 'kalshi-demo',
|
|
1898
1943
|
Limitless: 'limitless',
|
|
1899
1944
|
Probable: 'probable',
|
|
1900
1945
|
Baozi: 'baozi',
|
|
1901
1946
|
Myriad: 'myriad',
|
|
1902
1947
|
Opinion: 'opinion',
|
|
1903
1948
|
Metaculus: 'metaculus',
|
|
1904
|
-
Smarkets: 'smarkets'
|
|
1949
|
+
Smarkets: 'smarkets',
|
|
1950
|
+
PolymarketUs: 'polymarket_us'
|
|
1905
1951
|
} as const;
|
|
1906
1952
|
export type GetExecutionPriceDetailedOperationExchangeEnum = typeof GetExecutionPriceDetailedOperationExchangeEnum[keyof typeof GetExecutionPriceDetailedOperationExchangeEnum];
|
|
1907
1953
|
/**
|
|
@@ -1910,13 +1956,15 @@ export type GetExecutionPriceDetailedOperationExchangeEnum = typeof GetExecution
|
|
|
1910
1956
|
export const LoadMarketsOperationExchangeEnum = {
|
|
1911
1957
|
Polymarket: 'polymarket',
|
|
1912
1958
|
Kalshi: 'kalshi',
|
|
1959
|
+
KalshiDemo: 'kalshi-demo',
|
|
1913
1960
|
Limitless: 'limitless',
|
|
1914
1961
|
Probable: 'probable',
|
|
1915
1962
|
Baozi: 'baozi',
|
|
1916
1963
|
Myriad: 'myriad',
|
|
1917
1964
|
Opinion: 'opinion',
|
|
1918
1965
|
Metaculus: 'metaculus',
|
|
1919
|
-
Smarkets: 'smarkets'
|
|
1966
|
+
Smarkets: 'smarkets',
|
|
1967
|
+
PolymarketUs: 'polymarket_us'
|
|
1920
1968
|
} as const;
|
|
1921
1969
|
export type LoadMarketsOperationExchangeEnum = typeof LoadMarketsOperationExchangeEnum[keyof typeof LoadMarketsOperationExchangeEnum];
|
|
1922
1970
|
/**
|
|
@@ -1925,13 +1973,15 @@ export type LoadMarketsOperationExchangeEnum = typeof LoadMarketsOperationExchan
|
|
|
1925
1973
|
export const SubmitOrderOperationExchangeEnum = {
|
|
1926
1974
|
Polymarket: 'polymarket',
|
|
1927
1975
|
Kalshi: 'kalshi',
|
|
1976
|
+
KalshiDemo: 'kalshi-demo',
|
|
1928
1977
|
Limitless: 'limitless',
|
|
1929
1978
|
Probable: 'probable',
|
|
1930
1979
|
Baozi: 'baozi',
|
|
1931
1980
|
Myriad: 'myriad',
|
|
1932
1981
|
Opinion: 'opinion',
|
|
1933
1982
|
Metaculus: 'metaculus',
|
|
1934
|
-
Smarkets: 'smarkets'
|
|
1983
|
+
Smarkets: 'smarkets',
|
|
1984
|
+
PolymarketUs: 'polymarket_us'
|
|
1935
1985
|
} as const;
|
|
1936
1986
|
export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
|
|
1937
1987
|
/**
|
|
@@ -1940,13 +1990,15 @@ export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchan
|
|
|
1940
1990
|
export const UnwatchAddressOperationExchangeEnum = {
|
|
1941
1991
|
Polymarket: 'polymarket',
|
|
1942
1992
|
Kalshi: 'kalshi',
|
|
1993
|
+
KalshiDemo: 'kalshi-demo',
|
|
1943
1994
|
Limitless: 'limitless',
|
|
1944
1995
|
Probable: 'probable',
|
|
1945
1996
|
Baozi: 'baozi',
|
|
1946
1997
|
Myriad: 'myriad',
|
|
1947
1998
|
Opinion: 'opinion',
|
|
1948
1999
|
Metaculus: 'metaculus',
|
|
1949
|
-
Smarkets: 'smarkets'
|
|
2000
|
+
Smarkets: 'smarkets',
|
|
2001
|
+
PolymarketUs: 'polymarket_us'
|
|
1950
2002
|
} as const;
|
|
1951
2003
|
export type UnwatchAddressOperationExchangeEnum = typeof UnwatchAddressOperationExchangeEnum[keyof typeof UnwatchAddressOperationExchangeEnum];
|
|
1952
2004
|
/**
|
|
@@ -1955,13 +2007,15 @@ export type UnwatchAddressOperationExchangeEnum = typeof UnwatchAddressOperation
|
|
|
1955
2007
|
export const WatchAddressOperationExchangeEnum = {
|
|
1956
2008
|
Polymarket: 'polymarket',
|
|
1957
2009
|
Kalshi: 'kalshi',
|
|
2010
|
+
KalshiDemo: 'kalshi-demo',
|
|
1958
2011
|
Limitless: 'limitless',
|
|
1959
2012
|
Probable: 'probable',
|
|
1960
2013
|
Baozi: 'baozi',
|
|
1961
2014
|
Myriad: 'myriad',
|
|
1962
2015
|
Opinion: 'opinion',
|
|
1963
2016
|
Metaculus: 'metaculus',
|
|
1964
|
-
Smarkets: 'smarkets'
|
|
2017
|
+
Smarkets: 'smarkets',
|
|
2018
|
+
PolymarketUs: 'polymarket_us'
|
|
1965
2019
|
} as const;
|
|
1966
2020
|
export type WatchAddressOperationExchangeEnum = typeof WatchAddressOperationExchangeEnum[keyof typeof WatchAddressOperationExchangeEnum];
|
|
1967
2021
|
/**
|
|
@@ -1970,13 +2024,15 @@ export type WatchAddressOperationExchangeEnum = typeof WatchAddressOperationExch
|
|
|
1970
2024
|
export const WatchOrderBookOperationExchangeEnum = {
|
|
1971
2025
|
Polymarket: 'polymarket',
|
|
1972
2026
|
Kalshi: 'kalshi',
|
|
2027
|
+
KalshiDemo: 'kalshi-demo',
|
|
1973
2028
|
Limitless: 'limitless',
|
|
1974
2029
|
Probable: 'probable',
|
|
1975
2030
|
Baozi: 'baozi',
|
|
1976
2031
|
Myriad: 'myriad',
|
|
1977
2032
|
Opinion: 'opinion',
|
|
1978
2033
|
Metaculus: 'metaculus',
|
|
1979
|
-
Smarkets: 'smarkets'
|
|
2034
|
+
Smarkets: 'smarkets',
|
|
2035
|
+
PolymarketUs: 'polymarket_us'
|
|
1980
2036
|
} as const;
|
|
1981
2037
|
export type WatchOrderBookOperationExchangeEnum = typeof WatchOrderBookOperationExchangeEnum[keyof typeof WatchOrderBookOperationExchangeEnum];
|
|
1982
2038
|
/**
|
|
@@ -1985,12 +2041,14 @@ export type WatchOrderBookOperationExchangeEnum = typeof WatchOrderBookOperation
|
|
|
1985
2041
|
export const WatchTradesOperationExchangeEnum = {
|
|
1986
2042
|
Polymarket: 'polymarket',
|
|
1987
2043
|
Kalshi: 'kalshi',
|
|
2044
|
+
KalshiDemo: 'kalshi-demo',
|
|
1988
2045
|
Limitless: 'limitless',
|
|
1989
2046
|
Probable: 'probable',
|
|
1990
2047
|
Baozi: 'baozi',
|
|
1991
2048
|
Myriad: 'myriad',
|
|
1992
2049
|
Opinion: 'opinion',
|
|
1993
2050
|
Metaculus: 'metaculus',
|
|
1994
|
-
Smarkets: 'smarkets'
|
|
2051
|
+
Smarkets: 'smarkets',
|
|
2052
|
+
PolymarketUs: 'polymarket_us'
|
|
1995
2053
|
} as const;
|
|
1996
2054
|
export type WatchTradesOperationExchangeEnum = typeof WatchTradesOperationExchangeEnum[keyof typeof WatchTradesOperationExchangeEnum];
|
package/index.ts
CHANGED
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
import { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi } from "./pmxt/client.js";
|
|
22
|
+
import { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, Opinion, Metaculus, Smarkets, PolymarketUS } from "./pmxt/client.js";
|
|
23
23
|
import { ServerManager } from "./pmxt/server-manager.js";
|
|
24
24
|
import * as models from "./pmxt/models.js";
|
|
25
25
|
import * as errors from "./pmxt/errors.js";
|
|
26
26
|
|
|
27
|
-
export { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, PolymarketOptions } from "./pmxt/client.js";
|
|
27
|
+
export { Exchange, Polymarket, Kalshi, KalshiDemo, Limitless, Myriad, Probable, Baozi, Opinion, Metaculus, Smarkets, PolymarketUS, PolymarketOptions } from "./pmxt/client.js";
|
|
28
28
|
export { ServerManager } from "./pmxt/server-manager.js";
|
|
29
29
|
export { MarketList } from "./pmxt/models.js";
|
|
30
30
|
export type * from "./pmxt/models.js";
|
|
@@ -50,6 +50,10 @@ const pmxt = {
|
|
|
50
50
|
Myriad,
|
|
51
51
|
Probable,
|
|
52
52
|
Baozi,
|
|
53
|
+
Opinion,
|
|
54
|
+
Metaculus,
|
|
55
|
+
Smarkets,
|
|
56
|
+
PolymarketUS,
|
|
53
57
|
ServerManager,
|
|
54
58
|
stopServer,
|
|
55
59
|
restartServer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.3",
|
|
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.3"
|
|
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,
|
|
@@ -1829,3 +1835,77 @@ export class Baozi extends Exchange {
|
|
|
1829
1835
|
super("baozi", options);
|
|
1830
1836
|
}
|
|
1831
1837
|
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Opinion exchange client.
|
|
1841
|
+
*
|
|
1842
|
+
* Polygon-based CLOB exchange. Public catalog endpoints work without
|
|
1843
|
+
* credentials; trading requires `apiKey` (proxy address) and `privateKey`.
|
|
1844
|
+
*
|
|
1845
|
+
* @example
|
|
1846
|
+
* ```typescript
|
|
1847
|
+
* const opinion = new Opinion();
|
|
1848
|
+
* const events = await opinion.fetchEvents();
|
|
1849
|
+
* ```
|
|
1850
|
+
*/
|
|
1851
|
+
export class Opinion extends Exchange {
|
|
1852
|
+
constructor(options: ExchangeOptions = {}) {
|
|
1853
|
+
super("opinion", options);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Metaculus exchange client.
|
|
1859
|
+
*
|
|
1860
|
+
* Forecasting platform. Public read-only access works without credentials;
|
|
1861
|
+
* authenticated calls accept a bearer token via `apiKey`.
|
|
1862
|
+
*
|
|
1863
|
+
* @example
|
|
1864
|
+
* ```typescript
|
|
1865
|
+
* const metaculus = new Metaculus();
|
|
1866
|
+
* const events = await metaculus.fetchEvents();
|
|
1867
|
+
* ```
|
|
1868
|
+
*/
|
|
1869
|
+
export class Metaculus extends Exchange {
|
|
1870
|
+
constructor(options: ExchangeOptions = {}) {
|
|
1871
|
+
super("metaculus", options);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Smarkets exchange client.
|
|
1877
|
+
*
|
|
1878
|
+
* UK-based betting exchange. Public catalog endpoints work without
|
|
1879
|
+
* credentials; trading requires Smarkets account email (`apiKey`) and
|
|
1880
|
+
* password (`privateKey`).
|
|
1881
|
+
*
|
|
1882
|
+
* @example
|
|
1883
|
+
* ```typescript
|
|
1884
|
+
* const smarkets = new Smarkets();
|
|
1885
|
+
* const events = await smarkets.fetchEvents();
|
|
1886
|
+
* ```
|
|
1887
|
+
*/
|
|
1888
|
+
export class Smarkets extends Exchange {
|
|
1889
|
+
constructor(options: ExchangeOptions = {}) {
|
|
1890
|
+
super("smarkets", options);
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Polymarket US exchange client.
|
|
1896
|
+
*
|
|
1897
|
+
* US-regulated Polymarket venue. Public catalog endpoints work without
|
|
1898
|
+
* credentials; trading requires `apiKey` (keyId) and `privateKey`
|
|
1899
|
+
* (secretKey) issued by Polymarket US.
|
|
1900
|
+
*
|
|
1901
|
+
* @example
|
|
1902
|
+
* ```typescript
|
|
1903
|
+
* const polyUs = new PolymarketUS();
|
|
1904
|
+
* const events = await polyUs.fetchEvents();
|
|
1905
|
+
* ```
|
|
1906
|
+
*/
|
|
1907
|
+
export class PolymarketUS extends Exchange {
|
|
1908
|
+
constructor(options: ExchangeOptions = {}) {
|
|
1909
|
+
super("polymarket_us", options);
|
|
1910
|
+
}
|
|
1911
|
+
}
|
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
|
|