synpath 0.5.1__tar.gz → 0.7.0__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 (121) hide show
  1. {synpath-0.5.1 → synpath-0.7.0}/PKG-INFO +63 -6
  2. {synpath-0.5.1 → synpath-0.7.0}/README.md +62 -5
  3. {synpath-0.5.1 → synpath-0.7.0}/pyproject.toml +1 -1
  4. {synpath-0.5.1 → synpath-0.7.0}/synpath/__init__.py +9 -5
  5. {synpath-0.5.1 → synpath-0.7.0}/synpath/client.py +11 -1
  6. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/__main__.py +2 -0
  7. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/feeds.py +17 -0
  8. {synpath-0.5.1 → synpath-0.7.0}/synpath/ids.py +1 -1
  9. synpath-0.7.0/synpath/limitless.py +620 -0
  10. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/serve.py +1 -1
  11. synpath-0.7.0/synpath/sx_bet.py +631 -0
  12. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/__init__.py +7 -1
  13. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/__main__.py +6 -1
  14. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/credentials.py +102 -1
  15. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/init.py +28 -0
  16. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/instruments.py +6 -0
  17. synpath-0.7.0/synpath/trading/limitless.py +755 -0
  18. synpath-0.7.0/synpath/trading/limitless_signing.py +153 -0
  19. synpath-0.7.0/synpath/trading/sx_bet.py +655 -0
  20. synpath-0.7.0/synpath/trading/sx_bet_signing.py +172 -0
  21. {synpath-0.5.1 → synpath-0.7.0}/synpath/types.py +35 -0
  22. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/__init__.py +7 -1
  23. synpath-0.7.0/synpath/ws/limitless.py +385 -0
  24. synpath-0.7.0/synpath/ws/sx_bet.py +499 -0
  25. {synpath-0.5.1 → synpath-0.7.0}/Cargo.toml +0 -0
  26. {synpath-0.5.1 → synpath-0.7.0}/LICENSE +0 -0
  27. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/Cargo.lock +0 -0
  28. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/Cargo.toml +0 -0
  29. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/kalshi.rs +0 -0
  30. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/lib.rs +0 -0
  31. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/objects.rs +0 -0
  32. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/polymarket.rs +0 -0
  33. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/pyjson.rs +0 -0
  34. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/router.rs +0 -0
  35. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/signing.rs +0 -0
  36. {synpath-0.5.1 → synpath-0.7.0}/bindings/python/src/venues.rs +0 -0
  37. {synpath-0.5.1 → synpath-0.7.0}/build_backend/synpath_build.py +0 -0
  38. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/Cargo.lock +0 -0
  39. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/Cargo.toml +0 -0
  40. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/examples/decode_timing.rs +0 -0
  41. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/book.rs +0 -0
  42. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/kalshi.rs +0 -0
  43. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/lib.rs +0 -0
  44. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/opinion.rs +0 -0
  45. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/polymarket.rs +0 -0
  46. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/polymarket_us.rs +0 -0
  47. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/router.rs +0 -0
  48. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/signing.rs +0 -0
  49. {synpath-0.5.1 → synpath-0.7.0}/crates/synpath-core/src/wire.rs +0 -0
  50. {synpath-0.5.1 → synpath-0.7.0}/synpath/__main__.py +0 -0
  51. {synpath-0.5.1 → synpath-0.7.0}/synpath/_native.py +0 -0
  52. {synpath-0.5.1 → synpath-0.7.0}/synpath/base.py +0 -0
  53. {synpath-0.5.1 → synpath-0.7.0}/synpath/bucket.py +0 -0
  54. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/__init__.py +0 -0
  55. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/alerts.py +0 -0
  56. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/engine.py +0 -0
  57. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/eod.py +0 -0
  58. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/events.py +0 -0
  59. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/fair_values.py +0 -0
  60. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/journal.py +0 -0
  61. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/ledger.py +0 -0
  62. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/__init__.py +0 -0
  63. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/base.py +0 -0
  64. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/day.py +0 -0
  65. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/iceberg.py +0 -0
  66. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/manager.py +0 -0
  67. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/oco.py +0 -0
  68. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/peg.py +0 -0
  69. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/routed.py +0 -0
  70. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/stop.py +0 -0
  71. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/taker.py +0 -0
  72. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/orders/twap.py +0 -0
  73. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/paper.py +0 -0
  74. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/reconcile.py +0 -0
  75. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/risk.py +0 -0
  76. {synpath-0.5.1 → synpath-0.7.0}/synpath/engine/router.py +0 -0
  77. {synpath-0.5.1 → synpath-0.7.0}/synpath/errors.py +0 -0
  78. {synpath-0.5.1 → synpath-0.7.0}/synpath/history.py +0 -0
  79. {synpath-0.5.1 → synpath-0.7.0}/synpath/hosted.py +0 -0
  80. {synpath-0.5.1 → synpath-0.7.0}/synpath/hosted_auth.py +0 -0
  81. {synpath-0.5.1 → synpath-0.7.0}/synpath/hyperliquid.py +0 -0
  82. {synpath-0.5.1 → synpath-0.7.0}/synpath/kalshi.py +0 -0
  83. {synpath-0.5.1 → synpath-0.7.0}/synpath/matching.py +0 -0
  84. {synpath-0.5.1 → synpath-0.7.0}/synpath/opinion.py +0 -0
  85. {synpath-0.5.1 → synpath-0.7.0}/synpath/polymarket.py +0 -0
  86. {synpath-0.5.1 → synpath-0.7.0}/synpath/polymarket_us.py +0 -0
  87. {synpath-0.5.1 → synpath-0.7.0}/synpath/predict_fun.py +0 -0
  88. {synpath-0.5.1 → synpath-0.7.0}/synpath/remote.py +0 -0
  89. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/__init__.py +0 -0
  90. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/__main__.py +0 -0
  91. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/api.py +0 -0
  92. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/errors.py +0 -0
  93. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/local.py +0 -0
  94. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/models.py +0 -0
  95. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/store.py +0 -0
  96. {synpath-0.5.1 → synpath-0.7.0}/synpath/server/trading.py +0 -0
  97. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/base.py +0 -0
  98. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/errors.py +0 -0
  99. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/hyperliquid.py +0 -0
  100. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/hyperliquid_signing.py +0 -0
  101. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/kalshi.py +0 -0
  102. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/limiter.py +0 -0
  103. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/money.py +0 -0
  104. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/opinion.py +0 -0
  105. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/opinion_signing.py +0 -0
  106. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/polymarket.py +0 -0
  107. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/polymarket_signing.py +0 -0
  108. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/polymarket_us.py +0 -0
  109. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/polymarket_us_exchange.py +0 -0
  110. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/predict_fun.py +0 -0
  111. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/predict_fun_signing.py +0 -0
  112. {synpath-0.5.1 → synpath-0.7.0}/synpath/trading/types.py +0 -0
  113. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/base.py +0 -0
  114. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/grpc.py +0 -0
  115. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/hyperliquid.py +0 -0
  116. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/kalshi.py +0 -0
  117. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/opinion.py +0 -0
  118. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/polymarket.py +0 -0
  119. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/polymarket_us.py +0 -0
  120. {synpath-0.5.1 → synpath-0.7.0}/synpath/ws/polymarket_us_exchange.py +0 -0
  121. {synpath-0.5.1 → synpath-0.7.0}/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.1
3
+ Version: 0.7.0
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Financial and Insurance Industry
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -59,10 +59,56 @@ One open-source API across Kalshi, Polymarket, Polymarket US and Opinion: market
59
59
 
60
60
  </div>
61
61
 
62
- **🆕 New: Smart order routing across Kalshi and Polymarket.**<br/>
63
- One order, both order books combined, filled from the cheapest price after fees. **[See how it works →](https://www.synpath.dev/docs/concepts/buckets)**
62
+ **🆕 New: free tick-level Kalshi order book history.**<br/>
63
+ Every public Kalshi market, full depth, every change and every trade, straight from Kalshi's live feed. Sign up from your terminal and query it in one line of Python. **[Get it in 60 seconds ↓](#free-kalshi-tick-data-in-60-seconds)**
64
64
 
65
- ⭐ **If Synpath saves you time, [star it on GitHub](https://github.com/Synpath-ai/synpath).** It's how other traders find it.
65
+ ⭐ **[Star Synpath on GitHub](https://github.com/Synpath-ai/synpath)** if the data saves you money. Stars are how we decide what to open up next.
66
+
67
+ ---
68
+
69
+ ## Free Kalshi tick data in 60 seconds
70
+
71
+ **1. Install**
72
+
73
+ ```bash
74
+ pip install synpath
75
+ ```
76
+
77
+ **2. Sign up**: opens Google sign-in in your browser, then returns to the terminal. Free, no card.
78
+
79
+ ```bash
80
+ synpath login
81
+ ```
82
+
83
+ **3. Create your API key**: it's saved on your machine and Python picks it up automatically.
84
+
85
+ ```bash
86
+ synpath keys create my-laptop
87
+ ```
88
+
89
+ **4. Query any moment**
90
+
91
+ ```python
92
+ import synpath
93
+
94
+ t = 1790776800000 # any moment, in Unix milliseconds
95
+
96
+ # The full book exactly as it stood at that millisecond
97
+ snap = synpath.fetch_order_book_at("kalshi:KXQUANTUM-30", as_of_ms=t)
98
+ print(snap.book.bids[0].price, snap.book.asks[0].price, len(snap.book.bids), "bid levels")
99
+
100
+ # Every change over an hour: a starting book, then each update in arrival order
101
+ changes = synpath.fetch_order_book_range("kalshi:KXQUANTUM-30", start_ms=t, end_ms=t + 3_600_000)
102
+
103
+ # Every trade: price, size and taker side
104
+ trades = synpath.fetch_trades_range("kalshi:KXQUANTUM-30", start_ms=t, end_ms=t + 3_600_000)
105
+ ```
106
+
107
+ No silent gaps: if we weren't recording at a moment, you get the reason instead of an empty book. Up to an hour per request; plain HTTP works too (`Authorization: Bearer <key>`). More: **[synpath.dev/tick-data](https://www.synpath.dev/tick-data)** · **[API reference](https://www.synpath.dev/docs/api-reference/history/book-at)**
108
+
109
+ > ⭐ **Free data stays free as long as people use it.** If this saves you a data bill, [star the repo](https://github.com/Synpath-ai/synpath). It takes one click and it's how other traders find it.
110
+
111
+ **Also new: smart order routing across Kalshi and Polymarket.** One order, both order books combined, filled from the cheapest price after fees. [See how it works →](https://www.synpath.dev/docs/concepts/buckets)
66
112
 
67
113
  ---
68
114
 
@@ -76,6 +122,8 @@ One order, both order books combined, filled from the cheapest price after fees.
76
122
  | | [Opinion](https://opinion.trade) | `opinion` | ✓ | ✓ | WebSocket (API key) | one book per outcome token |
77
123
  | | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓ | WebSocket (no key) | one book per market, both sides read it |
78
124
  | | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ | WebSocket (API key) | one book per market, both sides read it |
125
+ | | [Limitless](https://limitless.exchange) | `limitless` | ✓ | ✓ | WebSocket | one book per market, both sides read it |
126
+ | | [SX Bet](https://sx.bet) | `sx_bet` | ✓ sports | ✓ | WebSocket | one book per market, both sides read it |
79
127
 
80
128
  ## Why Synpath
81
129
 
@@ -94,7 +142,7 @@ pip install "synpath[grpc]" # + Polymarket US exchange gRPC streams
94
142
 
95
143
  Python 3.10 or newer. The hot paths (order books, reading the venues' book streams, order signing and the order router) run on a Rust core that ships prebuilt inside the wheel for Linux, macOS and Windows; nothing else to install.
96
144
 
97
- **Hosted API.** Run `synpath login`, then `synpath keys create`. It serves tick-level Kalshi order book and trade history, and cross-venue market matching. Trading stays on your machine: Synpath never holds your keys or funds.
145
+ **Hosted API.** Run `synpath login`, then `synpath keys create` ([step by step ↑](#free-kalshi-tick-data-in-60-seconds)). It serves tick-level Kalshi order book and trade history, and cross-venue market matching. Trading stays on your machine: Synpath never holds your keys or funds.
98
146
 
99
147
  ## Quick Start
100
148
 
@@ -125,7 +173,7 @@ fee.estimate(price=0.50, contracts=100) # 1.75
125
173
  **Same code, every venue**
126
174
 
127
175
  ```python
128
- for venue_id in synpath.exchanges: # ['kalshi', 'polymarket', 'polymarket_us', 'opinion', 'hyperliquid', 'predict_fun']
176
+ for venue_id in synpath.exchanges: # ['kalshi', 'polymarket', 'polymarket_us', 'opinion', 'hyperliquid', 'predict_fun', 'limitless', 'sx_bet']
129
177
  with synpath.exchange(venue_id) as venue:
130
178
  page = venue.fetch_markets(limit=5)
131
179
 
@@ -158,6 +206,15 @@ async with PolymarketMarketStream() as stream:
158
206
  print(event.market_id, event.side, event.best_bid, event.best_ask)
159
207
  ```
160
208
 
209
+ **Cross-venue matching: the same market on other venues**
210
+
211
+ ```python
212
+ synpath.match_market("kalshi:KXHIGHTATL-26SEP23-B80") # .matched: the same question on another venue, or None
213
+ synpath.match_event("kalshi:KXHIGHTATL-26SEP23") # each venue's events on the same event
214
+ ```
215
+
216
+ Matching is hosted at `api.synpath.dev` and needs a Synpath API key (`synpath login`, then `synpath keys create`). A match is a deterministic parse both listings land on, not a similarity score, and `side_map` says when one venue asks the question the other way round. Crypto up-or-down markets are never matched, since each venue sets its own price to beat. Browse matched events at [synpath.dev](https://www.synpath.dev); API: [match a market](https://www.synpath.dev/docs/api-reference/matching/market), [match an event](https://www.synpath.dev/docs/api-reference/matching/event).
217
+
161
218
  **Smart order routing: one order across Kalshi and Polymarket**
162
219
 
163
220
  ```python
@@ -13,10 +13,56 @@ One open-source API across Kalshi, Polymarket, Polymarket US and Opinion: market
13
13
 
14
14
  </div>
15
15
 
16
- **🆕 New: Smart order routing across Kalshi and Polymarket.**<br/>
17
- One order, both order books combined, filled from the cheapest price after fees. **[See how it works →](https://www.synpath.dev/docs/concepts/buckets)**
16
+ **🆕 New: free tick-level Kalshi order book history.**<br/>
17
+ Every public Kalshi market, full depth, every change and every trade, straight from Kalshi's live feed. Sign up from your terminal and query it in one line of Python. **[Get it in 60 seconds ↓](#free-kalshi-tick-data-in-60-seconds)**
18
18
 
19
- ⭐ **If Synpath saves you time, [star it on GitHub](https://github.com/Synpath-ai/synpath).** It's how other traders find it.
19
+ ⭐ **[Star Synpath on GitHub](https://github.com/Synpath-ai/synpath)** if the data saves you money. Stars are how we decide what to open up next.
20
+
21
+ ---
22
+
23
+ ## Free Kalshi tick data in 60 seconds
24
+
25
+ **1. Install**
26
+
27
+ ```bash
28
+ pip install synpath
29
+ ```
30
+
31
+ **2. Sign up**: opens Google sign-in in your browser, then returns to the terminal. Free, no card.
32
+
33
+ ```bash
34
+ synpath login
35
+ ```
36
+
37
+ **3. Create your API key**: it's saved on your machine and Python picks it up automatically.
38
+
39
+ ```bash
40
+ synpath keys create my-laptop
41
+ ```
42
+
43
+ **4. Query any moment**
44
+
45
+ ```python
46
+ import synpath
47
+
48
+ t = 1790776800000 # any moment, in Unix milliseconds
49
+
50
+ # The full book exactly as it stood at that millisecond
51
+ snap = synpath.fetch_order_book_at("kalshi:KXQUANTUM-30", as_of_ms=t)
52
+ print(snap.book.bids[0].price, snap.book.asks[0].price, len(snap.book.bids), "bid levels")
53
+
54
+ # Every change over an hour: a starting book, then each update in arrival order
55
+ changes = synpath.fetch_order_book_range("kalshi:KXQUANTUM-30", start_ms=t, end_ms=t + 3_600_000)
56
+
57
+ # Every trade: price, size and taker side
58
+ trades = synpath.fetch_trades_range("kalshi:KXQUANTUM-30", start_ms=t, end_ms=t + 3_600_000)
59
+ ```
60
+
61
+ No silent gaps: if we weren't recording at a moment, you get the reason instead of an empty book. Up to an hour per request; plain HTTP works too (`Authorization: Bearer <key>`). More: **[synpath.dev/tick-data](https://www.synpath.dev/tick-data)** · **[API reference](https://www.synpath.dev/docs/api-reference/history/book-at)**
62
+
63
+ > ⭐ **Free data stays free as long as people use it.** If this saves you a data bill, [star the repo](https://github.com/Synpath-ai/synpath). It takes one click and it's how other traders find it.
64
+
65
+ **Also new: smart order routing across Kalshi and Polymarket.** One order, both order books combined, filled from the cheapest price after fees. [See how it works →](https://www.synpath.dev/docs/concepts/buckets)
20
66
 
21
67
  ---
22
68
 
@@ -30,6 +76,8 @@ One order, both order books combined, filled from the cheapest price after fees.
30
76
  | | [Opinion](https://opinion.trade) | `opinion` | ✓ | ✓ | WebSocket (API key) | one book per outcome token |
31
77
  | | [Hyperliquid](https://app.hyperliquid.xyz) | `hyperliquid` | ✓ outcome markets (HIP-4) | ✓ | WebSocket (no key) | one book per market, both sides read it |
32
78
  | | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ | WebSocket (API key) | one book per market, both sides read it |
79
+ | | [Limitless](https://limitless.exchange) | `limitless` | ✓ | ✓ | WebSocket | one book per market, both sides read it |
80
+ | | [SX Bet](https://sx.bet) | `sx_bet` | ✓ sports | ✓ | WebSocket | one book per market, both sides read it |
33
81
 
34
82
  ## Why Synpath
35
83
 
@@ -48,7 +96,7 @@ pip install "synpath[grpc]" # + Polymarket US exchange gRPC streams
48
96
 
49
97
  Python 3.10 or newer. The hot paths (order books, reading the venues' book streams, order signing and the order router) run on a Rust core that ships prebuilt inside the wheel for Linux, macOS and Windows; nothing else to install.
50
98
 
51
- **Hosted API.** Run `synpath login`, then `synpath keys create`. It serves tick-level Kalshi order book and trade history, and cross-venue market matching. Trading stays on your machine: Synpath never holds your keys or funds.
99
+ **Hosted API.** Run `synpath login`, then `synpath keys create` ([step by step ↑](#free-kalshi-tick-data-in-60-seconds)). It serves tick-level Kalshi order book and trade history, and cross-venue market matching. Trading stays on your machine: Synpath never holds your keys or funds.
52
100
 
53
101
  ## Quick Start
54
102
 
@@ -79,7 +127,7 @@ fee.estimate(price=0.50, contracts=100) # 1.75
79
127
  **Same code, every venue**
80
128
 
81
129
  ```python
82
- for venue_id in synpath.exchanges: # ['kalshi', 'polymarket', 'polymarket_us', 'opinion', 'hyperliquid', 'predict_fun']
130
+ for venue_id in synpath.exchanges: # ['kalshi', 'polymarket', 'polymarket_us', 'opinion', 'hyperliquid', 'predict_fun', 'limitless', 'sx_bet']
83
131
  with synpath.exchange(venue_id) as venue:
84
132
  page = venue.fetch_markets(limit=5)
85
133
 
@@ -112,6 +160,15 @@ async with PolymarketMarketStream() as stream:
112
160
  print(event.market_id, event.side, event.best_bid, event.best_ask)
113
161
  ```
114
162
 
163
+ **Cross-venue matching: the same market on other venues**
164
+
165
+ ```python
166
+ synpath.match_market("kalshi:KXHIGHTATL-26SEP23-B80") # .matched: the same question on another venue, or None
167
+ synpath.match_event("kalshi:KXHIGHTATL-26SEP23") # each venue's events on the same event
168
+ ```
169
+
170
+ Matching is hosted at `api.synpath.dev` and needs a Synpath API key (`synpath login`, then `synpath keys create`). A match is a deterministic parse both listings land on, not a similarity score, and `side_map` says when one venue asks the question the other way round. Crypto up-or-down markets are never matched, since each venue sets its own price to beat. Browse matched events at [synpath.dev](https://www.synpath.dev); API: [match a market](https://www.synpath.dev/docs/api-reference/matching/market), [match an event](https://www.synpath.dev/docs/api-reference/matching/event).
171
+
115
172
  **Smart order routing: one order across Kalshi and Polymarket**
116
173
 
117
174
  ```python
@@ -9,7 +9,7 @@ backend-path = ["build_backend"]
9
9
 
10
10
  [project]
11
11
  name = "synpath"
12
- version = "0.5.1"
12
+ version = "0.7.0"
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"
@@ -45,6 +45,8 @@ from .polymarket_us import PolymarketUS
45
45
  from .opinion import Opinion
46
46
  from .hyperliquid import Hyperliquid
47
47
  from .predict_fun import PredictFun
48
+ from .limitless import Limitless
49
+ from .sx_bet import SxBet
48
50
  from .matching import match_event, match_market
49
51
  from .history import fetch_order_book_at, fetch_order_book_range, fetch_trades_range
50
52
  from .bucket import Bucket, BucketMember, BucketOrderReport, BucketPosition
@@ -78,7 +80,7 @@ from .types import (
78
80
  TradesRangeResponse,
79
81
  )
80
82
 
81
- __version__ = "0.5.1"
83
+ __version__ = "0.7.0"
82
84
 
83
85
  exchanges: dict[str, type[Exchange]] = {
84
86
  "kalshi": Kalshi,
@@ -87,6 +89,8 @@ exchanges: dict[str, type[Exchange]] = {
87
89
  "opinion": Opinion,
88
90
  "hyperliquid": Hyperliquid,
89
91
  "predict_fun": PredictFun,
92
+ "limitless": Limitless,
93
+ "sx_bet": SxBet,
90
94
  }
91
95
  """Every venue this library speaks, by id."""
92
96
 
@@ -107,7 +111,7 @@ def exchange(venue: str, **kwargs) -> Exchange:
107
111
  # keeps working. Imported last, after the read API it builds on.
108
112
  from .trading import (
109
113
  TradingExchange, KalshiTrading, PolymarketTrading, PolymarketUSTrading, PolymarketUSExchangeTrading,
110
- OpinionTrading, HyperliquidTrading, PredictFunTrading,
114
+ OpinionTrading, HyperliquidTrading, PredictFunTrading, LimitlessTrading, SxBetTrading,
111
115
  Account, Balance, EditRequest, FeeEstimate, Fill, HeldBy, Liquidity,
112
116
  Order, OrderRequest, OrderStatus, OrderType, Position, PositionSide,
113
117
  Precision, Settlement, SettlementState, Side, TimeInForce,
@@ -136,7 +140,7 @@ _STREAM_CLASSES = (
136
140
  "PolymarketUSExchangeInstrumentStream", "PolymarketUSExchangePositionStream",
137
141
  "PolymarketUSExchangeMarketDataStream", "PolymarketUSExchangeBalanceLedgerStream",
138
142
  "OpinionMarketStream", "OpinionUserStream", "HyperliquidMarketStream", "HyperliquidUserStream",
139
- "PredictFunMarketStream", "PredictFunUserStream",
143
+ "PredictFunMarketStream", "PredictFunUserStream", "LimitlessMarketStream", "LimitlessUserStream", "SxBetMarketStream", "SxBetUserStream",
140
144
  )
141
145
  _SERVER_NAMES = ("create_app", "create_trading_app", "VenueRegistry", "ControlStore", "Principal")
142
146
 
@@ -158,7 +162,7 @@ def __getattr__(name: str):
158
162
 
159
163
 
160
164
  __all__ = [
161
- "Kalshi", "Polymarket", "PolymarketUS", "Opinion", "Hyperliquid", "PredictFun", "Exchange", "exchange", "exchanges",
165
+ "Kalshi", "Polymarket", "PolymarketUS", "Opinion", "Hyperliquid", "PredictFun", "Limitless", "SxBet", "Exchange", "exchange", "exchanges",
162
166
  "Capability", "HttpClient", "RateLimiter",
163
167
  "Market", "Event", "Outcome", "Quote", "MarketStats", "OrderBook",
164
168
  "OrderLevel", "Trade", "Candle", "FeeSchedule", "Series", "Page",
@@ -175,7 +179,7 @@ __all__ = [
175
179
  "MarketNotFound", "NotSupported", "AuthenticationError",
176
180
  # order entry
177
181
  "TradingExchange", "KalshiTrading", "PolymarketTrading", "PolymarketUSTrading", "PolymarketUSExchangeTrading",
178
- "OpinionTrading", "HyperliquidTrading", "PredictFunTrading",
182
+ "OpinionTrading", "HyperliquidTrading", "PredictFunTrading", "LimitlessTrading", "SxBetTrading",
179
183
  "Account", "Balance", "EditRequest", "FeeEstimate", "Fill", "HeldBy", "Liquidity",
180
184
  "Order", "OrderRequest", "OrderStatus", "OrderType", "Position", "PositionSide",
181
185
  "Precision", "Settlement", "SettlementState", "Side", "TimeInForce",
@@ -368,7 +368,17 @@ def _predict_fun(creds: Credentials) -> TradingExchange:
368
368
  return PredictFunTrading(creds) # type: ignore[arg-type]
369
369
 
370
370
 
371
+ def _limitless(creds: Credentials) -> TradingExchange:
372
+ from .trading.limitless import LimitlessTrading
373
+ return LimitlessTrading(creds) # type: ignore[arg-type]
374
+
375
+
376
+ def _sx_bet(creds: Credentials) -> TradingExchange:
377
+ from .trading.sx_bet import SxBetTrading
378
+ return SxBetTrading(creds) # type: ignore[arg-type]
379
+
380
+
371
381
  _TRADING = {
372
382
  "kalshi": _kalshi, "polymarket": _polymarket, "polymarket_us": _polymarket_us, "opinion": _opinion,
373
- "hyperliquid": _hyperliquid, "predict_fun": _predict_fun,
383
+ "hyperliquid": _hyperliquid, "predict_fun": _predict_fun, "limitless": _limitless, "sx_bet": _sx_bet,
374
384
  }
@@ -63,6 +63,8 @@ ADAPTERS = {
63
63
  "opinion": ("..trading.opinion", "OpinionTrading"),
64
64
  "hyperliquid": ("..trading.hyperliquid", "HyperliquidTrading"),
65
65
  "predict_fun": ("..trading.predict_fun", "PredictFunTrading"),
66
+ "limitless": ("..trading.limitless", "LimitlessTrading"),
67
+ "sx_bet": ("..trading.sx_bet", "SxBetTrading"),
66
68
  }
67
69
 
68
70
 
@@ -94,6 +94,23 @@ def default_streams(adapters: Mapping[str, Any], credentials: Mapping[str, Any])
94
94
  market=PredictFunMarketStream(api_key=creds.api_key),
95
95
  private=PredictFunUserStream(api_key=creds.api_key, jwt=jwt) if jwt else None,
96
96
  )
97
+ elif venue == "limitless":
98
+ from ..ws.limitless import LimitlessMarketStream, LimitlessUserStream
99
+ token_id, secret = getattr(creds, "token_id", None), getattr(creds, "secret", None)
100
+ catalog = getattr(adapter, "catalog", None)
101
+ out[venue] = VenueStreams(
102
+ market=LimitlessMarketStream(),
103
+ private=LimitlessUserStream(token_id=token_id, secret=secret, catalog=catalog) if token_id and secret else None,
104
+ )
105
+ elif venue == "sx_bet" and creds is not None:
106
+ # Every SX Bet channel, public ones included, needs the API key.
107
+ from ..ws.sx_bet import SxBetMarketStream, SxBetUserStream
108
+ testnet = bool(getattr(creds, "testnet", False))
109
+ catalog = getattr(adapter, "catalog", None)
110
+ out[venue] = VenueStreams(
111
+ market=SxBetMarketStream(api_key=creds.api_key, testnet=testnet, catalog=catalog),
112
+ private=SxBetUserStream(api_key=creds.api_key, testnet=testnet, address=creds.address),
113
+ )
97
114
  else:
98
115
  log.info("synpath.engine.feeds: no stream for %s; its orders reach the engine by polling", venue)
99
116
  return out
@@ -15,7 +15,7 @@ The colon is safe as a separator: no venue's native id contains one.
15
15
  """
16
16
  from __future__ import annotations
17
17
 
18
- VENUES: tuple[str, ...] = ("kalshi", "polymarket", "polymarket_us", "opinion", "hyperliquid", "predict_fun")
18
+ VENUES: tuple[str, ...] = ("kalshi", "polymarket", "polymarket_us", "opinion", "hyperliquid", "predict_fun", "limitless", "sx_bet")
19
19
  """Every venue this library speaks, by id. `synpath.exchanges` is the same
20
20
  list with the adapter classes attached; this one exists so the id helpers do
21
21
  not import the adapters."""