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.
- pmxt/__init__.py +58 -0
- pmxt/client.py +713 -0
- pmxt/models.py +296 -0
- pmxt/server_manager.py +242 -0
- pmxt-1.0.0.dist-info/METADATA +250 -0
- pmxt-1.0.0.dist-info/RECORD +56 -0
- pmxt-1.0.0.dist-info/WHEEL +5 -0
- pmxt-1.0.0.dist-info/top_level.txt +2 -0
- pmxt_internal/__init__.py +124 -0
- pmxt_internal/api/__init__.py +5 -0
- pmxt_internal/api/default_api.py +3722 -0
- pmxt_internal/api_client.py +804 -0
- pmxt_internal/api_response.py +21 -0
- pmxt_internal/configuration.py +578 -0
- pmxt_internal/exceptions.py +219 -0
- pmxt_internal/models/__init__.py +54 -0
- pmxt_internal/models/balance.py +93 -0
- pmxt_internal/models/base_request.py +91 -0
- pmxt_internal/models/base_response.py +93 -0
- pmxt_internal/models/cancel_order_request.py +94 -0
- pmxt_internal/models/create_order200_response.py +99 -0
- pmxt_internal/models/create_order_params.py +111 -0
- pmxt_internal/models/create_order_request.py +102 -0
- pmxt_internal/models/error_detail.py +87 -0
- pmxt_internal/models/error_response.py +93 -0
- pmxt_internal/models/exchange_credentials.py +93 -0
- pmxt_internal/models/fetch_balance200_response.py +103 -0
- pmxt_internal/models/fetch_markets200_response.py +103 -0
- pmxt_internal/models/fetch_markets_request.py +102 -0
- pmxt_internal/models/fetch_ohlcv200_response.py +103 -0
- pmxt_internal/models/fetch_ohlcv_request.py +102 -0
- pmxt_internal/models/fetch_ohlcv_request_args_inner.py +140 -0
- pmxt_internal/models/fetch_open_orders200_response.py +103 -0
- pmxt_internal/models/fetch_open_orders_request.py +94 -0
- pmxt_internal/models/fetch_order_book200_response.py +99 -0
- pmxt_internal/models/fetch_order_book_request.py +94 -0
- pmxt_internal/models/fetch_positions200_response.py +103 -0
- pmxt_internal/models/fetch_positions_request.py +94 -0
- pmxt_internal/models/fetch_trades200_response.py +103 -0
- pmxt_internal/models/fetch_trades_request.py +102 -0
- pmxt_internal/models/get_markets_by_slug_request.py +94 -0
- pmxt_internal/models/health_check200_response.py +89 -0
- pmxt_internal/models/history_filter_params.py +101 -0
- pmxt_internal/models/market_filter_params.py +113 -0
- pmxt_internal/models/market_outcome.py +95 -0
- pmxt_internal/models/order.py +139 -0
- pmxt_internal/models/order_book.py +106 -0
- pmxt_internal/models/order_level.py +89 -0
- pmxt_internal/models/position.py +101 -0
- pmxt_internal/models/price_candle.py +97 -0
- pmxt_internal/models/search_markets_request.py +102 -0
- pmxt_internal/models/search_markets_request_args_inner.py +140 -0
- pmxt_internal/models/trade.py +105 -0
- pmxt_internal/models/unified_market.py +120 -0
- pmxt_internal/py.typed +0 -0
- 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
|
+
]
|