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.
Files changed (113) hide show
  1. {synpath-0.5.0 → synpath-0.5.1}/PKG-INFO +4 -4
  2. {synpath-0.5.0 → synpath-0.5.1}/README.md +3 -3
  3. {synpath-0.5.0 → synpath-0.5.1}/pyproject.toml +1 -1
  4. {synpath-0.5.0 → synpath-0.5.1}/synpath/__init__.py +1 -1
  5. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/hyperliquid.py +1 -3
  6. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/opinion.py +4 -7
  7. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/predict_fun.py +4 -7
  8. {synpath-0.5.0 → synpath-0.5.1}/Cargo.toml +0 -0
  9. {synpath-0.5.0 → synpath-0.5.1}/LICENSE +0 -0
  10. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/Cargo.lock +0 -0
  11. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/Cargo.toml +0 -0
  12. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/kalshi.rs +0 -0
  13. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/lib.rs +0 -0
  14. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/objects.rs +0 -0
  15. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/polymarket.rs +0 -0
  16. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/pyjson.rs +0 -0
  17. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/router.rs +0 -0
  18. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/signing.rs +0 -0
  19. {synpath-0.5.0 → synpath-0.5.1}/bindings/python/src/venues.rs +0 -0
  20. {synpath-0.5.0 → synpath-0.5.1}/build_backend/synpath_build.py +0 -0
  21. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/Cargo.lock +0 -0
  22. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/Cargo.toml +0 -0
  23. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/examples/decode_timing.rs +0 -0
  24. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/book.rs +0 -0
  25. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/kalshi.rs +0 -0
  26. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/lib.rs +0 -0
  27. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/opinion.rs +0 -0
  28. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/polymarket.rs +0 -0
  29. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/polymarket_us.rs +0 -0
  30. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/router.rs +0 -0
  31. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/signing.rs +0 -0
  32. {synpath-0.5.0 → synpath-0.5.1}/crates/synpath-core/src/wire.rs +0 -0
  33. {synpath-0.5.0 → synpath-0.5.1}/synpath/__main__.py +0 -0
  34. {synpath-0.5.0 → synpath-0.5.1}/synpath/_native.py +0 -0
  35. {synpath-0.5.0 → synpath-0.5.1}/synpath/base.py +0 -0
  36. {synpath-0.5.0 → synpath-0.5.1}/synpath/bucket.py +0 -0
  37. {synpath-0.5.0 → synpath-0.5.1}/synpath/client.py +0 -0
  38. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/__init__.py +0 -0
  39. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/__main__.py +0 -0
  40. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/alerts.py +0 -0
  41. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/engine.py +0 -0
  42. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/eod.py +0 -0
  43. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/events.py +0 -0
  44. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/fair_values.py +0 -0
  45. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/feeds.py +0 -0
  46. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/journal.py +0 -0
  47. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/ledger.py +0 -0
  48. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/__init__.py +0 -0
  49. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/base.py +0 -0
  50. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/day.py +0 -0
  51. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/iceberg.py +0 -0
  52. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/manager.py +0 -0
  53. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/oco.py +0 -0
  54. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/peg.py +0 -0
  55. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/routed.py +0 -0
  56. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/stop.py +0 -0
  57. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/taker.py +0 -0
  58. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/orders/twap.py +0 -0
  59. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/paper.py +0 -0
  60. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/reconcile.py +0 -0
  61. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/risk.py +0 -0
  62. {synpath-0.5.0 → synpath-0.5.1}/synpath/engine/router.py +0 -0
  63. {synpath-0.5.0 → synpath-0.5.1}/synpath/errors.py +0 -0
  64. {synpath-0.5.0 → synpath-0.5.1}/synpath/history.py +0 -0
  65. {synpath-0.5.0 → synpath-0.5.1}/synpath/hosted.py +0 -0
  66. {synpath-0.5.0 → synpath-0.5.1}/synpath/hosted_auth.py +0 -0
  67. {synpath-0.5.0 → synpath-0.5.1}/synpath/hyperliquid.py +0 -0
  68. {synpath-0.5.0 → synpath-0.5.1}/synpath/ids.py +0 -0
  69. {synpath-0.5.0 → synpath-0.5.1}/synpath/kalshi.py +0 -0
  70. {synpath-0.5.0 → synpath-0.5.1}/synpath/matching.py +0 -0
  71. {synpath-0.5.0 → synpath-0.5.1}/synpath/opinion.py +0 -0
  72. {synpath-0.5.0 → synpath-0.5.1}/synpath/polymarket.py +0 -0
  73. {synpath-0.5.0 → synpath-0.5.1}/synpath/polymarket_us.py +0 -0
  74. {synpath-0.5.0 → synpath-0.5.1}/synpath/predict_fun.py +0 -0
  75. {synpath-0.5.0 → synpath-0.5.1}/synpath/remote.py +0 -0
  76. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/__init__.py +0 -0
  77. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/__main__.py +0 -0
  78. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/api.py +0 -0
  79. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/errors.py +0 -0
  80. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/local.py +0 -0
  81. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/models.py +0 -0
  82. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/serve.py +0 -0
  83. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/store.py +0 -0
  84. {synpath-0.5.0 → synpath-0.5.1}/synpath/server/trading.py +0 -0
  85. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/__init__.py +0 -0
  86. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/__main__.py +0 -0
  87. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/base.py +0 -0
  88. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/credentials.py +0 -0
  89. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/errors.py +0 -0
  90. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/hyperliquid_signing.py +0 -0
  91. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/init.py +0 -0
  92. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/instruments.py +0 -0
  93. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/kalshi.py +0 -0
  94. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/limiter.py +0 -0
  95. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/money.py +0 -0
  96. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/opinion_signing.py +0 -0
  97. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket.py +0 -0
  98. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket_signing.py +0 -0
  99. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket_us.py +0 -0
  100. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/polymarket_us_exchange.py +0 -0
  101. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/predict_fun_signing.py +0 -0
  102. {synpath-0.5.0 → synpath-0.5.1}/synpath/trading/types.py +0 -0
  103. {synpath-0.5.0 → synpath-0.5.1}/synpath/types.py +0 -0
  104. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/__init__.py +0 -0
  105. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/base.py +0 -0
  106. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/grpc.py +0 -0
  107. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/hyperliquid.py +0 -0
  108. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/kalshi.py +0 -0
  109. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/opinion.py +0 -0
  110. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/polymarket.py +0 -0
  111. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/polymarket_us.py +0 -0
  112. {synpath-0.5.0 → synpath-0.5.1}/synpath/ws/polymarket_us_exchange.py +0 -0
  113. {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.0
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` | ✓ | ✓ not yet live-tested | WebSocket (API key) | one book per outcome token |
77
- | | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓ testnet-checked | WebSocket (no key) | one book per market, both sides read it |
78
- | | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ not yet live-tested | WebSocket (API key) | one book per market, both sides read it |
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` | ✓ | ✓ not yet live-tested | WebSocket (API key) | one book per outcome token |
31
- | | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓ testnet-checked | WebSocket (no key) | one book per market, both sides read it |
32
- | | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ not yet live-tested | WebSocket (API key) | one book per market, both sides read it |
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.0"
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"
@@ -78,7 +78,7 @@ from .types import (
78
78
  TradesRangeResponse,
79
79
  )
80
80
 
81
- __version__ = "0.5.0"
81
+ __version__ = "0.5.1"
82
82
 
83
83
  exchanges: dict[str, type[Exchange]] = {
84
84
  "kalshi": Kalshi,
@@ -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, and the
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
- **Not yet tested against the live venue.** Built to Opinion's documentation
4
- and its own SDK (`opinion_clob_sdk` 0.7, `opinion_api` 0.4): signing and
5
- amounts are checked byte for byte against the SDK's code, every request
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. Not yet tested against the live venue; see the
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
- **Not yet tested against the live venue with funds.** Built to predict.fun's
4
- documentation and its own SDK (`predict-sdk` 0.0.22): hashing and both kinds
5
- of signature are checked against independent EIP-712 encoders and the SDK's
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. Not yet tested against the live venue with
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