pmxt 0.1.0__cp311-cp311-macosx_11_0_arm64.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 ADDED
@@ -0,0 +1,5 @@
1
+ from .pmxt import *
2
+
3
+ __doc__ = pmxt.__doc__
4
+ if hasattr(pmxt, "__all__"):
5
+ __all__ = pmxt.__all__
Binary file
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: pmxt
3
+ Version: 0.1.0
4
+ Summary: The ccxt for Prediction Markets
5
+ Author: PMXT Team
6
+ License: MIT
7
+ Requires-Python: >=3.9
8
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
9
+
10
+ # PMXT: The ccxt for Prediction Markets
11
+
12
+ PMXT is a unified endpoint for trading on prediction markets (Polymarket, Kalshi, etc.), written in Rust for performance with native bindings for Python and Node.js.
13
+
14
+ ## Architecture
15
+
16
+ This project is organized as a Cargo Workspace:
17
+
18
+ - **`crates/core`**: Defines the shared `Exchange` trait and data models (`Market`, `Order`, `Ticker`).
19
+ - **`crates/polymarket`**: The implementation for Polymarket.
20
+ - **`bindings/python`**: The native Python extension (using PyO3).
21
+
22
+ ## Development
23
+
24
+ ### Prerequisites
25
+
26
+ - Rust (cargo)
27
+ - Python 3.9+
28
+ - `maturin` (for building Python bindings) -> `pip install maturin`
29
+
30
+ ### Building Python Bindings
31
+
32
+ To build and install the python library into your current environment:
33
+
34
+ ```bash
35
+ cd bindings/python
36
+ maturin develop
37
+ ```
38
+
39
+ ### Usage (Python)
40
+
41
+ ```python
42
+ import pmxt
43
+ import asyncio
44
+
45
+ async def main():
46
+ exchange = pmxt.Polymarket(api_key="your_key")
47
+ markets = await exchange.load_markets()
48
+ print(markets)
49
+
50
+ asyncio.run(main())
51
+ ```
52
+
53
+ ## Contributing
54
+
55
+ 1. Implement `Exchange` trait for a new market in `crates/new_market`.
56
+ 2. Register it in `bindings/python/src/lib.rs`.
57
+
@@ -0,0 +1,5 @@
1
+ pmxt-0.1.0.dist-info/METADATA,sha256=bpArDyGI5rcf9be8-UuEsy4twQGRTkbbWSSuNF3d0hM,1356
2
+ pmxt-0.1.0.dist-info/WHEEL,sha256=YCIKFqKR9BmZH__LtMoJskuqE9dbXrG25kRqpSR3iOs,105
3
+ pmxt/__init__.py,sha256=q8IUH2ibD5HMlVxRoKzqkjxl_9MxOiEWTjyO8PhHLFQ,99
4
+ pmxt/pmxt.cpython-311-darwin.so,sha256=zuatLDI-HcGqR2eNtMoO6dqeZyr1PWAMBNbpDewgvMY,1106032
5
+ pmxt-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.10.2)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-cp311-macosx_11_0_arm64