synpath 0.5.0__tar.gz → 0.5.1__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.
- {synpath-0.5.0 → synpath-0.5.1}/PKG-INFO +4 -4
- {synpath-0.5.0 → synpath-0.5.1}/README.md +3 -3
- {synpath-0.5.0 → synpath-0.5.1}/pyproject.toml +1 -1
- {synpath-0.5.0 → synpath-0.5.1}/synpath/__init__.py +1 -1
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/hyperliquid.py +1 -3
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/opinion.py +4 -7
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/predict_fun.py +4 -7
- {synpath-0.5.0 → synpath-0.5.1}/Cargo.toml +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/LICENSE +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/Cargo.lock +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/Cargo.toml +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/kalshi.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/lib.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/objects.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/polymarket.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/pyjson.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/router.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/signing.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/venues.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/build_backend/synpath_build.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/Cargo.lock +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/Cargo.toml +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/examples/decode_timing.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/book.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/kalshi.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/lib.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/opinion.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/polymarket.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/polymarket_us.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/router.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/signing.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/wire.rs +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/__main__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/_native.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/base.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/bucket.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/client.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/__init__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/__main__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/alerts.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/engine.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/eod.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/events.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/fair_values.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/feeds.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/journal.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/ledger.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/__init__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/base.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/day.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/iceberg.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/manager.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/oco.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/peg.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/routed.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/stop.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/taker.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/twap.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/paper.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/reconcile.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/risk.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/router.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/errors.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/history.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/hosted.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/hosted_auth.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/hyperliquid.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ids.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/kalshi.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/matching.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/opinion.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/polymarket.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/polymarket_us.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/predict_fun.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/remote.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/__init__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/__main__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/api.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/errors.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/local.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/models.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/serve.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/store.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/server/trading.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/__init__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/__main__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/base.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/credentials.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/errors.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/hyperliquid_signing.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/init.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/instruments.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/kalshi.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/limiter.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/money.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/opinion_signing.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket_signing.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket_us.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket_us_exchange.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/predict_fun_signing.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/types.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/types.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/__init__.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/base.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/grpc.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/hyperliquid.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/kalshi.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/opinion.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/polymarket.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/polymarket_us.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/polymarket_us_exchange.py +0 -0
- {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/predict_fun.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: synpath
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -73,9 +73,9 @@ One order, both order books combined, filled from the cheapest price after fees.
|
|
|
73
73
|
| <img src="assets/kalshi.png" width="20" height="20" alt="Kalshi"> | [Kalshi](https://kalshi.com) | `kalshi` | ✓ | ✓ | WebSocket | one book per market, both sides read it |
|
|
74
74
|
| <img src="assets/polymarket.png" width="20" height="20" alt="Polymarket"> | [Polymarket](https://polymarket.com) | `polymarket` | ✓ | ✓ | WebSocket | one book per outcome token |
|
|
75
75
|
| <img src="assets/polymarket.png" width="20" height="20" alt="Polymarket US"> | [Polymarket US](https://polymarket.us) | `polymarket_us` | ✓ | ✓ retail and exchange APIs | WebSocket and gRPC | one book per market, both sides read it |
|
|
76
|
-
| | [Opinion](https://opinion.trade) | `opinion` | ✓ | ✓
|
|
77
|
-
| | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓
|
|
78
|
-
| | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓
|
|
76
|
+
| | [Opinion](https://opinion.trade) | `opinion` | ✓ | ✓ | WebSocket (API key) | one book per outcome token |
|
|
77
|
+
| | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓ | WebSocket (no key) | one book per market, both sides read it |
|
|
78
|
+
| | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ | WebSocket (API key) | one book per market, both sides read it |
|
|
79
79
|
|
|
80
80
|
## Why Synpath
|
|
81
81
|
|
|
@@ -27,9 +27,9 @@ One order, both order books combined, filled from the cheapest price after fees.
|
|
|
27
27
|
| <img src="assets/kalshi.png" width="20" height="20" alt="Kalshi"> | [Kalshi](https://kalshi.com) | `kalshi` | ✓ | ✓ | WebSocket | one book per market, both sides read it |
|
|
28
28
|
| <img src="assets/polymarket.png" width="20" height="20" alt="Polymarket"> | [Polymarket](https://polymarket.com) | `polymarket` | ✓ | ✓ | WebSocket | one book per outcome token |
|
|
29
29
|
| <img src="assets/polymarket.png" width="20" height="20" alt="Polymarket US"> | [Polymarket US](https://polymarket.us) | `polymarket_us` | ✓ | ✓ retail and exchange APIs | WebSocket and gRPC | one book per market, both sides read it |
|
|
30
|
-
| | [Opinion](https://opinion.trade) | `opinion` | ✓ | ✓
|
|
31
|
-
| | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓
|
|
32
|
-
| | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓
|
|
30
|
+
| | [Opinion](https://opinion.trade) | `opinion` | ✓ | ✓ | WebSocket (API key) | one book per outcome token |
|
|
31
|
+
| | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓ | WebSocket (no key) | one book per market, both sides read it |
|
|
32
|
+
| | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ | WebSocket (API key) | one book per market, both sides read it |
|
|
33
33
|
|
|
34
34
|
## Why Synpath
|
|
35
35
|
|
|
@@ -9,7 +9,7 @@ backend-path = ["build_backend"]
|
|
|
9
9
|
|
|
10
10
|
[project]
|
|
11
11
|
name = "synpath"
|
|
12
|
-
version = "0.5.
|
|
12
|
+
version = "0.5.1"
|
|
13
13
|
description = "One API for prediction markets. Kalshi and Polymarket, normalized, with every price labelled by source and time."
|
|
14
14
|
readme = "README.md"
|
|
15
15
|
requires-python = ">=3.10"
|
|
@@ -303,9 +303,7 @@ def position_of(rows: list[dict[str, Any]], *, market_id: str, account: Account
|
|
|
303
303
|
class HyperliquidTrading(TradingExchange):
|
|
304
304
|
"""Hyperliquid outcome order entry.
|
|
305
305
|
|
|
306
|
-
Signing is checked byte for byte against the venue's own SDK
|
|
307
|
-
test network recovers the signing wallet from it; no order has been
|
|
308
|
-
filled with real funds through this adapter yet.
|
|
306
|
+
Signing is checked byte for byte against the venue's own SDK.
|
|
309
307
|
|
|
310
308
|
```python
|
|
311
309
|
from synpath.trading.credentials import load_credentials, require
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"""Opinion order entry, and the venue's order and trade records on the YES leg.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
against the SDK's wire shapes. The first account to trade through it should
|
|
7
|
-
start small.
|
|
3
|
+
Built to Opinion's documentation and its own SDK (`opinion_clob_sdk` 0.7,
|
|
4
|
+
`opinion_api` 0.4): signing and amounts are checked byte for byte against the
|
|
5
|
+
SDK's code, every request against the SDK's wire shapes.
|
|
8
6
|
|
|
9
7
|
Four facts about the venue shape this adapter.
|
|
10
8
|
|
|
@@ -345,8 +343,7 @@ def build_signed_order(
|
|
|
345
343
|
# ---------------------------------------------------------------------------
|
|
346
344
|
|
|
347
345
|
class OpinionTrading(TradingExchange):
|
|
348
|
-
"""Opinion order entry
|
|
349
|
-
module docstring.
|
|
346
|
+
"""Opinion order entry; see the module docstring.
|
|
350
347
|
|
|
351
348
|
```python
|
|
352
349
|
from synpath.trading.credentials import load_credentials, require
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"""predict.fun order entry, and the venue's order and trade records on the YES leg.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
algorithm; requests follow the venue's OpenAPI. The first account to trade
|
|
7
|
-
through it should start small.
|
|
3
|
+
Built to predict.fun's documentation and its own SDK (`predict-sdk` 0.0.22):
|
|
4
|
+
hashing and both kinds of signature are checked against independent EIP-712
|
|
5
|
+
encoders and the SDK's algorithm; requests follow the venue's OpenAPI.
|
|
8
6
|
|
|
9
7
|
**Every order is a signed message.** The order is the CTF exchange's EIP-712
|
|
10
8
|
`Order`, signed by a plain wallet or, for a Predict account (the smart
|
|
@@ -447,8 +445,7 @@ def build_signed_order(
|
|
|
447
445
|
# ---------------------------------------------------------------------------
|
|
448
446
|
|
|
449
447
|
class PredictFunTrading(TradingExchange):
|
|
450
|
-
"""predict.fun order entry
|
|
451
|
-
funds; see the module docstring.
|
|
448
|
+
"""predict.fun order entry; see the module docstring.
|
|
452
449
|
|
|
453
450
|
```python
|
|
454
451
|
from synpath.trading.credentials import load_credentials, require
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|