pmxt 0.1.0__tar.gz → 1.0.0b1__tar.gz

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 (72) hide show
  1. pmxt-1.0.0b1/PKG-INFO +250 -0
  2. pmxt-1.0.0b1/README.md +216 -0
  3. pmxt-1.0.0b1/generated/pmxt_internal/__init__.py +120 -0
  4. pmxt-1.0.0b1/generated/pmxt_internal/api/__init__.py +5 -0
  5. pmxt-1.0.0b1/generated/pmxt_internal/api/default_api.py +3722 -0
  6. pmxt-1.0.0b1/generated/pmxt_internal/api_client.py +804 -0
  7. pmxt-1.0.0b1/generated/pmxt_internal/api_response.py +21 -0
  8. pmxt-1.0.0b1/generated/pmxt_internal/configuration.py +578 -0
  9. pmxt-1.0.0b1/generated/pmxt_internal/exceptions.py +219 -0
  10. pmxt-1.0.0b1/generated/pmxt_internal/models/__init__.py +52 -0
  11. pmxt-1.0.0b1/generated/pmxt_internal/models/balance.py +93 -0
  12. pmxt-1.0.0b1/generated/pmxt_internal/models/base_response.py +93 -0
  13. pmxt-1.0.0b1/generated/pmxt_internal/models/cancel_order_request.py +88 -0
  14. pmxt-1.0.0b1/generated/pmxt_internal/models/create_order200_response.py +99 -0
  15. pmxt-1.0.0b1/generated/pmxt_internal/models/create_order_params.py +111 -0
  16. pmxt-1.0.0b1/generated/pmxt_internal/models/create_order_request.py +96 -0
  17. pmxt-1.0.0b1/generated/pmxt_internal/models/error_detail.py +87 -0
  18. pmxt-1.0.0b1/generated/pmxt_internal/models/error_response.py +93 -0
  19. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_balance200_response.py +103 -0
  20. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_markets200_response.py +103 -0
  21. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_markets_request.py +96 -0
  22. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_ohlcv200_response.py +103 -0
  23. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_ohlcv_request.py +96 -0
  24. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_ohlcv_request_args_inner.py +140 -0
  25. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_open_orders200_response.py +103 -0
  26. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_open_orders_request.py +88 -0
  27. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_order_book200_response.py +99 -0
  28. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_order_book_request.py +88 -0
  29. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_positions200_response.py +103 -0
  30. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_positions_request.py +88 -0
  31. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_trades200_response.py +103 -0
  32. pmxt-1.0.0b1/generated/pmxt_internal/models/fetch_trades_request.py +96 -0
  33. pmxt-1.0.0b1/generated/pmxt_internal/models/get_markets_by_slug_request.py +88 -0
  34. pmxt-1.0.0b1/generated/pmxt_internal/models/health_check200_response.py +89 -0
  35. pmxt-1.0.0b1/generated/pmxt_internal/models/history_filter_params.py +101 -0
  36. pmxt-1.0.0b1/generated/pmxt_internal/models/market_filter_params.py +113 -0
  37. pmxt-1.0.0b1/generated/pmxt_internal/models/market_outcome.py +91 -0
  38. pmxt-1.0.0b1/generated/pmxt_internal/models/order.py +127 -0
  39. pmxt-1.0.0b1/generated/pmxt_internal/models/order_book.py +104 -0
  40. pmxt-1.0.0b1/generated/pmxt_internal/models/order_level.py +89 -0
  41. pmxt-1.0.0b1/generated/pmxt_internal/models/position.py +101 -0
  42. pmxt-1.0.0b1/generated/pmxt_internal/models/price_candle.py +97 -0
  43. pmxt-1.0.0b1/generated/pmxt_internal/models/search_markets_request.py +96 -0
  44. pmxt-1.0.0b1/generated/pmxt_internal/models/search_markets_request_args_inner.py +140 -0
  45. pmxt-1.0.0b1/generated/pmxt_internal/models/trade.py +105 -0
  46. pmxt-1.0.0b1/generated/pmxt_internal/models/unified_market.py +105 -0
  47. pmxt-1.0.0b1/generated/pmxt_internal/py.typed +0 -0
  48. pmxt-1.0.0b1/generated/pmxt_internal/rest.py +263 -0
  49. pmxt-1.0.0b1/pmxt/__init__.py +58 -0
  50. pmxt-1.0.0b1/pmxt/client.py +660 -0
  51. pmxt-1.0.0b1/pmxt/models.py +296 -0
  52. pmxt-1.0.0b1/pmxt/server_manager.py +242 -0
  53. pmxt-1.0.0b1/pmxt.egg-info/PKG-INFO +250 -0
  54. pmxt-1.0.0b1/pmxt.egg-info/SOURCES.txt +58 -0
  55. pmxt-1.0.0b1/pmxt.egg-info/dependency_links.txt +1 -0
  56. pmxt-1.0.0b1/pmxt.egg-info/requires.txt +10 -0
  57. pmxt-1.0.0b1/pmxt.egg-info/top_level.txt +2 -0
  58. pmxt-1.0.0b1/pyproject.toml +64 -0
  59. pmxt-1.0.0b1/setup.cfg +4 -0
  60. pmxt-1.0.0b1/tests/test_integration.py +150 -0
  61. pmxt-0.1.0/Cargo.lock +0 -1452
  62. pmxt-0.1.0/Cargo.toml +0 -23
  63. pmxt-0.1.0/PKG-INFO +0 -57
  64. pmxt-0.1.0/README.md +0 -47
  65. pmxt-0.1.0/bindings/python/Cargo.toml +0 -21
  66. pmxt-0.1.0/bindings/python/README.md +0 -47
  67. pmxt-0.1.0/bindings/python/src/lib.rs +0 -280
  68. pmxt-0.1.0/crates/core/Cargo.toml +0 -18
  69. pmxt-0.1.0/crates/core/src/lib.rs +0 -195
  70. pmxt-0.1.0/crates/test-market/Cargo.toml +0 -20
  71. pmxt-0.1.0/crates/test-market/src/lib.rs +0 -269
  72. pmxt-0.1.0/pyproject.toml +0 -18
pmxt-1.0.0b1/PKG-INFO ADDED
@@ -0,0 +1,250 @@
1
+ Metadata-Version: 2.4
2
+ Name: pmxt
3
+ Version: 1.0.0b1
4
+ Summary: Unified prediction market data API - The ccxt for prediction markets
5
+ Author: PMXT Contributors
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/qoery-com/pmxt
8
+ Project-URL: Documentation, https://github.com/qoery-com/pmxt#readme
9
+ Project-URL: Repository, https://github.com/qoery-com/pmxt
10
+ Project-URL: Issues, https://github.com/qoery-com/pmxt/issues
11
+ Keywords: prediction markets,polymarket,kalshi,trading,api
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Office/Business :: Financial
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.8
24
+ Description-Content-Type: text/markdown
25
+ Requires-Dist: urllib3>=1.26.0
26
+ Requires-Dist: python-dateutil>=2.8.0
27
+ Requires-Dist: pydantic>=2.0.0
28
+ Requires-Dist: typing-extensions>=4.0.0
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
31
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
32
+ Requires-Dist: black>=23.0.0; extra == "dev"
33
+ Requires-Dist: mypy>=1.0.0; extra == "dev"
34
+
35
+ # PMXT Python SDK
36
+
37
+ A unified Python interface for interacting with multiple prediction market exchanges (Kalshi, Polymarket).
38
+
39
+ > **Note**: This SDK requires the PMXT sidecar server to be running. See [Installation](#installation) below.
40
+
41
+ ## Installation
42
+
43
+ ```bash
44
+ pip install pmxt
45
+ ```
46
+
47
+ **Prerequisites**: The Python SDK requires the PMXT server, which is distributed via npm:
48
+
49
+ ```bash
50
+ npm install -g pmxtjs
51
+ ```
52
+
53
+ That's it! The server will start automatically when you use the SDK.
54
+
55
+ ## Quick Start
56
+
57
+ ```python
58
+ import pmxt
59
+
60
+ # Initialize exchanges (server starts automatically!)
61
+ poly = pmxt.Polymarket()
62
+ kalshi = pmxt.Kalshi()
63
+
64
+ # Search for markets
65
+ markets = poly.search_markets("Trump")
66
+ print(markets[0].title)
67
+
68
+ # Get outcome details
69
+ outcome = markets[0].outcomes[0]
70
+ print(f"{outcome.label}: {outcome.price * 100:.1f}%")
71
+
72
+ # Fetch historical data (use outcome.id!)
73
+ candles = poly.fetch_ohlcv(
74
+ outcome.id,
75
+ pmxt.HistoryFilterParams(resolution="1d", limit=30)
76
+ )
77
+
78
+ # Get current order book
79
+ order_book = poly.fetch_order_book(outcome.id)
80
+ spread = order_book.asks[0].price - order_book.bids[0].price
81
+ print(f"Spread: {spread * 100:.2f}%")
82
+ ```
83
+
84
+ ### How It Works
85
+
86
+ The Python SDK automatically manages the PMXT sidecar server:
87
+
88
+ 1. **First API call**: Checks if server is running
89
+ 2. **Auto-start**: Starts server if needed (takes ~1-2 seconds)
90
+ 3. **Reuse**: Multiple Python processes share the same server
91
+ 4. **Zero config**: Just import and use!
92
+
93
+ ### Manual Server Control (Optional)
94
+
95
+ If you prefer to manage the server yourself:
96
+
97
+ ```python
98
+ # Disable auto-start
99
+ poly = pmxt.Polymarket(auto_start_server=False)
100
+
101
+ # Or start the server manually in a separate terminal
102
+ # $ pmxt-server
103
+ ```
104
+
105
+ ## Authentication (for Trading)
106
+
107
+ ### Polymarket
108
+
109
+ Requires your **Polygon Private Key**:
110
+
111
+ ```python
112
+ import os
113
+ import pmxt
114
+
115
+ poly = pmxt.Polymarket(
116
+ private_key=os.getenv("POLYMARKET_PRIVATE_KEY")
117
+ )
118
+
119
+ # Check balance
120
+ balances = poly.fetch_balance()
121
+ print(f"Available: ${balances[0].available}")
122
+
123
+ # Place order
124
+ order = poly.create_order(pmxt.CreateOrderParams(
125
+ market_id="663583",
126
+ outcome_id="10991849...",
127
+ side="buy",
128
+ type="limit",
129
+ amount=10,
130
+ price=0.55
131
+ ))
132
+ ```
133
+
134
+ ### Kalshi
135
+
136
+ Requires **API Key** and **Private Key**:
137
+
138
+ ```python
139
+ import os
140
+ import pmxt
141
+
142
+ kalshi = pmxt.Kalshi(
143
+ api_key=os.getenv("KALSHI_API_KEY"),
144
+ private_key=os.getenv("KALSHI_PRIVATE_KEY")
145
+ )
146
+
147
+ # Check positions
148
+ positions = kalshi.fetch_positions()
149
+ for pos in positions:
150
+ print(f"{pos.outcome_label}: ${pos.unrealized_pnl:.2f}")
151
+ ```
152
+
153
+ ## API Reference
154
+
155
+ ### Market Data Methods
156
+
157
+ - `fetch_markets(params?)` - Get active markets
158
+ - `search_markets(query, params?)` - Search markets by keyword
159
+ - `get_markets_by_slug(slug)` - Get market by URL slug/ticker
160
+ - `fetch_ohlcv(outcome_id, params)` - Get historical price candles
161
+ - `fetch_order_book(outcome_id)` - Get current order book
162
+ - `fetch_trades(outcome_id, params)` - Get trade history
163
+
164
+ ### Trading Methods (require authentication)
165
+
166
+ - `create_order(params)` - Place a new order
167
+ - `cancel_order(order_id)` - Cancel an open order
168
+ - `fetch_order(order_id)` - Get order details
169
+ - `fetch_open_orders(market_id?)` - Get all open orders
170
+
171
+ ### Account Methods (require authentication)
172
+
173
+ - `fetch_balance()` - Get account balance
174
+ - `fetch_positions()` - Get current positions
175
+
176
+ ## Data Models
177
+
178
+ All methods return clean Python dataclasses:
179
+
180
+ ```python
181
+ @dataclass
182
+ class UnifiedMarket:
183
+ id: str
184
+ title: str
185
+ outcomes: List[MarketOutcome]
186
+ volume_24h: float
187
+ liquidity: float
188
+ url: str
189
+ # ... more fields
190
+
191
+ @dataclass
192
+ class MarketOutcome:
193
+ id: str # Use this for fetch_ohlcv/fetch_order_book
194
+ label: str # "Trump", "Yes", etc.
195
+ price: float # 0.0 to 1.0 (probability)
196
+ # ... more fields
197
+ ```
198
+
199
+ See the [full API reference](../../API_REFERENCE.md) for complete documentation.
200
+
201
+ ## Important Notes
202
+
203
+ ### Use `outcome.id`, not `market.id`
204
+
205
+ For deep-dive methods like `fetch_ohlcv()`, `fetch_order_book()`, and `fetch_trades()`, you must use the **outcome ID**, not the market ID:
206
+
207
+ ```python
208
+ markets = poly.search_markets("Trump")
209
+ outcome_id = markets[0].outcomes[0].id # ✅ Correct
210
+
211
+ candles = poly.fetch_ohlcv(outcome_id, ...) # ✅ Works
212
+ candles = poly.fetch_ohlcv(markets[0].id, ...) # ❌ Wrong!
213
+ ```
214
+
215
+ ### Prices are 0.0 to 1.0
216
+
217
+ All prices represent probabilities (0.0 to 1.0). Multiply by 100 for percentages:
218
+
219
+ ```python
220
+ outcome = markets[0].outcomes[0]
221
+ print(f"Price: {outcome.price * 100:.1f}%") # "Price: 55.3%"
222
+ ```
223
+
224
+ ### Timestamps are Unix milliseconds
225
+
226
+ ```python
227
+ from datetime import datetime
228
+
229
+ candle = candles[0]
230
+ dt = datetime.fromtimestamp(candle.timestamp / 1000)
231
+ print(dt)
232
+ ```
233
+
234
+ ## Development
235
+
236
+ ```bash
237
+ # Clone the repo
238
+ git clone https://github.com/qoery-com/pmxt.git
239
+ cd pmxt/sdks/python
240
+
241
+ # Install in development mode
242
+ pip install -e ".[dev]"
243
+
244
+ # Run tests
245
+ pytest
246
+ ```
247
+
248
+ ## License
249
+
250
+ MIT
pmxt-1.0.0b1/README.md ADDED
@@ -0,0 +1,216 @@
1
+ # PMXT Python SDK
2
+
3
+ A unified Python interface for interacting with multiple prediction market exchanges (Kalshi, Polymarket).
4
+
5
+ > **Note**: This SDK requires the PMXT sidecar server to be running. See [Installation](#installation) below.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install pmxt
11
+ ```
12
+
13
+ **Prerequisites**: The Python SDK requires the PMXT server, which is distributed via npm:
14
+
15
+ ```bash
16
+ npm install -g pmxtjs
17
+ ```
18
+
19
+ That's it! The server will start automatically when you use the SDK.
20
+
21
+ ## Quick Start
22
+
23
+ ```python
24
+ import pmxt
25
+
26
+ # Initialize exchanges (server starts automatically!)
27
+ poly = pmxt.Polymarket()
28
+ kalshi = pmxt.Kalshi()
29
+
30
+ # Search for markets
31
+ markets = poly.search_markets("Trump")
32
+ print(markets[0].title)
33
+
34
+ # Get outcome details
35
+ outcome = markets[0].outcomes[0]
36
+ print(f"{outcome.label}: {outcome.price * 100:.1f}%")
37
+
38
+ # Fetch historical data (use outcome.id!)
39
+ candles = poly.fetch_ohlcv(
40
+ outcome.id,
41
+ pmxt.HistoryFilterParams(resolution="1d", limit=30)
42
+ )
43
+
44
+ # Get current order book
45
+ order_book = poly.fetch_order_book(outcome.id)
46
+ spread = order_book.asks[0].price - order_book.bids[0].price
47
+ print(f"Spread: {spread * 100:.2f}%")
48
+ ```
49
+
50
+ ### How It Works
51
+
52
+ The Python SDK automatically manages the PMXT sidecar server:
53
+
54
+ 1. **First API call**: Checks if server is running
55
+ 2. **Auto-start**: Starts server if needed (takes ~1-2 seconds)
56
+ 3. **Reuse**: Multiple Python processes share the same server
57
+ 4. **Zero config**: Just import and use!
58
+
59
+ ### Manual Server Control (Optional)
60
+
61
+ If you prefer to manage the server yourself:
62
+
63
+ ```python
64
+ # Disable auto-start
65
+ poly = pmxt.Polymarket(auto_start_server=False)
66
+
67
+ # Or start the server manually in a separate terminal
68
+ # $ pmxt-server
69
+ ```
70
+
71
+ ## Authentication (for Trading)
72
+
73
+ ### Polymarket
74
+
75
+ Requires your **Polygon Private Key**:
76
+
77
+ ```python
78
+ import os
79
+ import pmxt
80
+
81
+ poly = pmxt.Polymarket(
82
+ private_key=os.getenv("POLYMARKET_PRIVATE_KEY")
83
+ )
84
+
85
+ # Check balance
86
+ balances = poly.fetch_balance()
87
+ print(f"Available: ${balances[0].available}")
88
+
89
+ # Place order
90
+ order = poly.create_order(pmxt.CreateOrderParams(
91
+ market_id="663583",
92
+ outcome_id="10991849...",
93
+ side="buy",
94
+ type="limit",
95
+ amount=10,
96
+ price=0.55
97
+ ))
98
+ ```
99
+
100
+ ### Kalshi
101
+
102
+ Requires **API Key** and **Private Key**:
103
+
104
+ ```python
105
+ import os
106
+ import pmxt
107
+
108
+ kalshi = pmxt.Kalshi(
109
+ api_key=os.getenv("KALSHI_API_KEY"),
110
+ private_key=os.getenv("KALSHI_PRIVATE_KEY")
111
+ )
112
+
113
+ # Check positions
114
+ positions = kalshi.fetch_positions()
115
+ for pos in positions:
116
+ print(f"{pos.outcome_label}: ${pos.unrealized_pnl:.2f}")
117
+ ```
118
+
119
+ ## API Reference
120
+
121
+ ### Market Data Methods
122
+
123
+ - `fetch_markets(params?)` - Get active markets
124
+ - `search_markets(query, params?)` - Search markets by keyword
125
+ - `get_markets_by_slug(slug)` - Get market by URL slug/ticker
126
+ - `fetch_ohlcv(outcome_id, params)` - Get historical price candles
127
+ - `fetch_order_book(outcome_id)` - Get current order book
128
+ - `fetch_trades(outcome_id, params)` - Get trade history
129
+
130
+ ### Trading Methods (require authentication)
131
+
132
+ - `create_order(params)` - Place a new order
133
+ - `cancel_order(order_id)` - Cancel an open order
134
+ - `fetch_order(order_id)` - Get order details
135
+ - `fetch_open_orders(market_id?)` - Get all open orders
136
+
137
+ ### Account Methods (require authentication)
138
+
139
+ - `fetch_balance()` - Get account balance
140
+ - `fetch_positions()` - Get current positions
141
+
142
+ ## Data Models
143
+
144
+ All methods return clean Python dataclasses:
145
+
146
+ ```python
147
+ @dataclass
148
+ class UnifiedMarket:
149
+ id: str
150
+ title: str
151
+ outcomes: List[MarketOutcome]
152
+ volume_24h: float
153
+ liquidity: float
154
+ url: str
155
+ # ... more fields
156
+
157
+ @dataclass
158
+ class MarketOutcome:
159
+ id: str # Use this for fetch_ohlcv/fetch_order_book
160
+ label: str # "Trump", "Yes", etc.
161
+ price: float # 0.0 to 1.0 (probability)
162
+ # ... more fields
163
+ ```
164
+
165
+ See the [full API reference](../../API_REFERENCE.md) for complete documentation.
166
+
167
+ ## Important Notes
168
+
169
+ ### Use `outcome.id`, not `market.id`
170
+
171
+ For deep-dive methods like `fetch_ohlcv()`, `fetch_order_book()`, and `fetch_trades()`, you must use the **outcome ID**, not the market ID:
172
+
173
+ ```python
174
+ markets = poly.search_markets("Trump")
175
+ outcome_id = markets[0].outcomes[0].id # ✅ Correct
176
+
177
+ candles = poly.fetch_ohlcv(outcome_id, ...) # ✅ Works
178
+ candles = poly.fetch_ohlcv(markets[0].id, ...) # ❌ Wrong!
179
+ ```
180
+
181
+ ### Prices are 0.0 to 1.0
182
+
183
+ All prices represent probabilities (0.0 to 1.0). Multiply by 100 for percentages:
184
+
185
+ ```python
186
+ outcome = markets[0].outcomes[0]
187
+ print(f"Price: {outcome.price * 100:.1f}%") # "Price: 55.3%"
188
+ ```
189
+
190
+ ### Timestamps are Unix milliseconds
191
+
192
+ ```python
193
+ from datetime import datetime
194
+
195
+ candle = candles[0]
196
+ dt = datetime.fromtimestamp(candle.timestamp / 1000)
197
+ print(dt)
198
+ ```
199
+
200
+ ## Development
201
+
202
+ ```bash
203
+ # Clone the repo
204
+ git clone https://github.com/qoery-com/pmxt.git
205
+ cd pmxt/sdks/python
206
+
207
+ # Install in development mode
208
+ pip install -e ".[dev]"
209
+
210
+ # Run tests
211
+ pytest
212
+ ```
213
+
214
+ ## License
215
+
216
+ MIT
@@ -0,0 +1,120 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ PMXT Sidecar API
7
+
8
+ A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
9
+
10
+ The version of the OpenAPI document: 0.4.4
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "1.0.0b1"
18
+
19
+ # Define package exports
20
+ __all__ = [
21
+ "DefaultApi",
22
+ "ApiResponse",
23
+ "ApiClient",
24
+ "Configuration",
25
+ "OpenApiException",
26
+ "ApiTypeError",
27
+ "ApiValueError",
28
+ "ApiKeyError",
29
+ "ApiAttributeError",
30
+ "ApiException",
31
+ "Balance",
32
+ "BaseResponse",
33
+ "CancelOrderRequest",
34
+ "CreateOrder200Response",
35
+ "CreateOrderParams",
36
+ "CreateOrderRequest",
37
+ "ErrorDetail",
38
+ "ErrorResponse",
39
+ "FetchBalance200Response",
40
+ "FetchMarkets200Response",
41
+ "FetchMarketsRequest",
42
+ "FetchOHLCV200Response",
43
+ "FetchOHLCVRequest",
44
+ "FetchOHLCVRequestArgsInner",
45
+ "FetchOpenOrders200Response",
46
+ "FetchOpenOrdersRequest",
47
+ "FetchOrderBook200Response",
48
+ "FetchOrderBookRequest",
49
+ "FetchPositions200Response",
50
+ "FetchPositionsRequest",
51
+ "FetchTrades200Response",
52
+ "FetchTradesRequest",
53
+ "GetMarketsBySlugRequest",
54
+ "HealthCheck200Response",
55
+ "HistoryFilterParams",
56
+ "MarketFilterParams",
57
+ "MarketOutcome",
58
+ "Order",
59
+ "OrderBook",
60
+ "OrderLevel",
61
+ "Position",
62
+ "PriceCandle",
63
+ "SearchMarketsRequest",
64
+ "SearchMarketsRequestArgsInner",
65
+ "Trade",
66
+ "UnifiedMarket",
67
+ ]
68
+
69
+ # import apis into sdk package
70
+ from pmxt_internal.api.default_api import DefaultApi as DefaultApi
71
+
72
+ # import ApiClient
73
+ from pmxt_internal.api_response import ApiResponse as ApiResponse
74
+ from pmxt_internal.api_client import ApiClient as ApiClient
75
+ from pmxt_internal.configuration import Configuration as Configuration
76
+ from pmxt_internal.exceptions import OpenApiException as OpenApiException
77
+ from pmxt_internal.exceptions import ApiTypeError as ApiTypeError
78
+ from pmxt_internal.exceptions import ApiValueError as ApiValueError
79
+ from pmxt_internal.exceptions import ApiKeyError as ApiKeyError
80
+ from pmxt_internal.exceptions import ApiAttributeError as ApiAttributeError
81
+ from pmxt_internal.exceptions import ApiException as ApiException
82
+
83
+ # import models into sdk package
84
+ from pmxt_internal.models.balance import Balance as Balance
85
+ from pmxt_internal.models.base_response import BaseResponse as BaseResponse
86
+ from pmxt_internal.models.cancel_order_request import CancelOrderRequest as CancelOrderRequest
87
+ from pmxt_internal.models.create_order200_response import CreateOrder200Response as CreateOrder200Response
88
+ from pmxt_internal.models.create_order_params import CreateOrderParams as CreateOrderParams
89
+ from pmxt_internal.models.create_order_request import CreateOrderRequest as CreateOrderRequest
90
+ from pmxt_internal.models.error_detail import ErrorDetail as ErrorDetail
91
+ from pmxt_internal.models.error_response import ErrorResponse as ErrorResponse
92
+ from pmxt_internal.models.fetch_balance200_response import FetchBalance200Response as FetchBalance200Response
93
+ from pmxt_internal.models.fetch_markets200_response import FetchMarkets200Response as FetchMarkets200Response
94
+ from pmxt_internal.models.fetch_markets_request import FetchMarketsRequest as FetchMarketsRequest
95
+ from pmxt_internal.models.fetch_ohlcv200_response import FetchOHLCV200Response as FetchOHLCV200Response
96
+ from pmxt_internal.models.fetch_ohlcv_request import FetchOHLCVRequest as FetchOHLCVRequest
97
+ from pmxt_internal.models.fetch_ohlcv_request_args_inner import FetchOHLCVRequestArgsInner as FetchOHLCVRequestArgsInner
98
+ from pmxt_internal.models.fetch_open_orders200_response import FetchOpenOrders200Response as FetchOpenOrders200Response
99
+ from pmxt_internal.models.fetch_open_orders_request import FetchOpenOrdersRequest as FetchOpenOrdersRequest
100
+ from pmxt_internal.models.fetch_order_book200_response import FetchOrderBook200Response as FetchOrderBook200Response
101
+ from pmxt_internal.models.fetch_order_book_request import FetchOrderBookRequest as FetchOrderBookRequest
102
+ from pmxt_internal.models.fetch_positions200_response import FetchPositions200Response as FetchPositions200Response
103
+ from pmxt_internal.models.fetch_positions_request import FetchPositionsRequest as FetchPositionsRequest
104
+ from pmxt_internal.models.fetch_trades200_response import FetchTrades200Response as FetchTrades200Response
105
+ from pmxt_internal.models.fetch_trades_request import FetchTradesRequest as FetchTradesRequest
106
+ from pmxt_internal.models.get_markets_by_slug_request import GetMarketsBySlugRequest as GetMarketsBySlugRequest
107
+ from pmxt_internal.models.health_check200_response import HealthCheck200Response as HealthCheck200Response
108
+ from pmxt_internal.models.history_filter_params import HistoryFilterParams as HistoryFilterParams
109
+ from pmxt_internal.models.market_filter_params import MarketFilterParams as MarketFilterParams
110
+ from pmxt_internal.models.market_outcome import MarketOutcome as MarketOutcome
111
+ from pmxt_internal.models.order import Order as Order
112
+ from pmxt_internal.models.order_book import OrderBook as OrderBook
113
+ from pmxt_internal.models.order_level import OrderLevel as OrderLevel
114
+ from pmxt_internal.models.position import Position as Position
115
+ from pmxt_internal.models.price_candle import PriceCandle as PriceCandle
116
+ from pmxt_internal.models.search_markets_request import SearchMarketsRequest as SearchMarketsRequest
117
+ from pmxt_internal.models.search_markets_request_args_inner import SearchMarketsRequestArgsInner as SearchMarketsRequestArgsInner
118
+ from pmxt_internal.models.trade import Trade as Trade
119
+ from pmxt_internal.models.unified_market import UnifiedMarket as UnifiedMarket
120
+
@@ -0,0 +1,5 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from pmxt_internal.api.default_api import DefaultApi
5
+