pmxt 1.0.0__py3-none-any.whl

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.
Files changed (56) hide show
  1. pmxt/__init__.py +58 -0
  2. pmxt/client.py +713 -0
  3. pmxt/models.py +296 -0
  4. pmxt/server_manager.py +242 -0
  5. pmxt-1.0.0.dist-info/METADATA +250 -0
  6. pmxt-1.0.0.dist-info/RECORD +56 -0
  7. pmxt-1.0.0.dist-info/WHEEL +5 -0
  8. pmxt-1.0.0.dist-info/top_level.txt +2 -0
  9. pmxt_internal/__init__.py +124 -0
  10. pmxt_internal/api/__init__.py +5 -0
  11. pmxt_internal/api/default_api.py +3722 -0
  12. pmxt_internal/api_client.py +804 -0
  13. pmxt_internal/api_response.py +21 -0
  14. pmxt_internal/configuration.py +578 -0
  15. pmxt_internal/exceptions.py +219 -0
  16. pmxt_internal/models/__init__.py +54 -0
  17. pmxt_internal/models/balance.py +93 -0
  18. pmxt_internal/models/base_request.py +91 -0
  19. pmxt_internal/models/base_response.py +93 -0
  20. pmxt_internal/models/cancel_order_request.py +94 -0
  21. pmxt_internal/models/create_order200_response.py +99 -0
  22. pmxt_internal/models/create_order_params.py +111 -0
  23. pmxt_internal/models/create_order_request.py +102 -0
  24. pmxt_internal/models/error_detail.py +87 -0
  25. pmxt_internal/models/error_response.py +93 -0
  26. pmxt_internal/models/exchange_credentials.py +93 -0
  27. pmxt_internal/models/fetch_balance200_response.py +103 -0
  28. pmxt_internal/models/fetch_markets200_response.py +103 -0
  29. pmxt_internal/models/fetch_markets_request.py +102 -0
  30. pmxt_internal/models/fetch_ohlcv200_response.py +103 -0
  31. pmxt_internal/models/fetch_ohlcv_request.py +102 -0
  32. pmxt_internal/models/fetch_ohlcv_request_args_inner.py +140 -0
  33. pmxt_internal/models/fetch_open_orders200_response.py +103 -0
  34. pmxt_internal/models/fetch_open_orders_request.py +94 -0
  35. pmxt_internal/models/fetch_order_book200_response.py +99 -0
  36. pmxt_internal/models/fetch_order_book_request.py +94 -0
  37. pmxt_internal/models/fetch_positions200_response.py +103 -0
  38. pmxt_internal/models/fetch_positions_request.py +94 -0
  39. pmxt_internal/models/fetch_trades200_response.py +103 -0
  40. pmxt_internal/models/fetch_trades_request.py +102 -0
  41. pmxt_internal/models/get_markets_by_slug_request.py +94 -0
  42. pmxt_internal/models/health_check200_response.py +89 -0
  43. pmxt_internal/models/history_filter_params.py +101 -0
  44. pmxt_internal/models/market_filter_params.py +113 -0
  45. pmxt_internal/models/market_outcome.py +95 -0
  46. pmxt_internal/models/order.py +139 -0
  47. pmxt_internal/models/order_book.py +106 -0
  48. pmxt_internal/models/order_level.py +89 -0
  49. pmxt_internal/models/position.py +101 -0
  50. pmxt_internal/models/price_candle.py +97 -0
  51. pmxt_internal/models/search_markets_request.py +102 -0
  52. pmxt_internal/models/search_markets_request_args_inner.py +140 -0
  53. pmxt_internal/models/trade.py +105 -0
  54. pmxt_internal/models/unified_market.py +120 -0
  55. pmxt_internal/py.typed +0 -0
  56. pmxt_internal/rest.py +263 -0
pmxt/__init__.py ADDED
@@ -0,0 +1,58 @@
1
+ """
2
+ PMXT - Unified Prediction Market API
3
+
4
+ A unified interface for interacting with multiple prediction market exchanges
5
+ (Kalshi, Polymarket) identically.
6
+
7
+ Example:
8
+ >>> import pmxt
9
+ >>>
10
+ >>> # Initialize exchanges
11
+ >>> poly = pmxt.Polymarket()
12
+ >>> kalshi = pmxt.Kalshi()
13
+ >>>
14
+ >>> # Search for markets
15
+ >>> markets = await poly.search_markets("Trump")
16
+ >>> print(markets[0].title)
17
+ """
18
+
19
+ from .client import Polymarket, Kalshi, Exchange
20
+ from .server_manager import ServerManager
21
+ from .models import (
22
+ UnifiedMarket,
23
+ MarketOutcome,
24
+ PriceCandle,
25
+ OrderBook,
26
+ OrderLevel,
27
+ Trade,
28
+ Order,
29
+ Position,
30
+ Balance,
31
+ MarketFilterParams,
32
+ HistoryFilterParams,
33
+ CreateOrderParams,
34
+ )
35
+
36
+ __version__ = "1.0.0"
37
+ __all__ = [
38
+ # Exchanges
39
+ "Polymarket",
40
+ "Kalshi",
41
+ "Exchange",
42
+ # Server Management
43
+ "ServerManager",
44
+ # Data Models
45
+ "UnifiedMarket",
46
+ "MarketOutcome",
47
+ "PriceCandle",
48
+ "OrderBook",
49
+ "OrderLevel",
50
+ "Trade",
51
+ "Order",
52
+ "Position",
53
+ "Balance",
54
+ # Parameters
55
+ "MarketFilterParams",
56
+ "HistoryFilterParams",
57
+ "CreateOrderParams",
58
+ ]