synpath 0.9.0__tar.gz → 0.10.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 (147) hide show
  1. {synpath-0.9.0 → synpath-0.10.0}/PKG-INFO +23 -5
  2. {synpath-0.9.0 → synpath-0.10.0}/README.md +21 -3
  3. {synpath-0.9.0 → synpath-0.10.0}/pyproject.toml +2 -2
  4. {synpath-0.9.0 → synpath-0.10.0}/synpath/__init__.py +17 -5
  5. synpath-0.10.0/synpath/azuro.py +1086 -0
  6. {synpath-0.9.0 → synpath-0.10.0}/synpath/client.py +36 -0
  7. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/__main__.py +6 -0
  8. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/feeds.py +57 -0
  9. synpath-0.10.0/synpath/gemini.py +874 -0
  10. {synpath-0.9.0 → synpath-0.10.0}/synpath/ids.py +10 -3
  11. synpath-0.10.0/synpath/matchbook.py +1029 -0
  12. synpath-0.10.0/synpath/myriad.py +1111 -0
  13. synpath-0.10.0/synpath/novig.py +797 -0
  14. synpath-0.10.0/synpath/prophetx.py +949 -0
  15. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/serve.py +2 -1
  16. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/__init__.py +20 -1
  17. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/__main__.py +56 -2
  18. synpath-0.10.0/synpath/trading/azuro.py +722 -0
  19. synpath-0.10.0/synpath/trading/azuro_signing.py +316 -0
  20. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/credentials.py +331 -2
  21. synpath-0.10.0/synpath/trading/gemini.py +807 -0
  22. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/init.py +109 -1
  23. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/instruments.py +36 -0
  24. synpath-0.10.0/synpath/trading/matchbook.py +842 -0
  25. synpath-0.10.0/synpath/trading/myriad.py +938 -0
  26. synpath-0.10.0/synpath/trading/myriad_signing.py +299 -0
  27. synpath-0.10.0/synpath/trading/novig.py +766 -0
  28. synpath-0.10.0/synpath/trading/novig_signing.py +258 -0
  29. synpath-0.10.0/synpath/trading/prophetx.py +773 -0
  30. {synpath-0.9.0 → synpath-0.10.0}/synpath/types.py +51 -8
  31. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/__init__.py +19 -1
  32. synpath-0.10.0/synpath/ws/azuro.py +263 -0
  33. synpath-0.10.0/synpath/ws/gemini.py +540 -0
  34. synpath-0.10.0/synpath/ws/matchbook.py +397 -0
  35. synpath-0.10.0/synpath/ws/myriad.py +563 -0
  36. synpath-0.10.0/synpath/ws/novig.py +982 -0
  37. synpath-0.10.0/synpath/ws/prophetx.py +631 -0
  38. {synpath-0.9.0 → synpath-0.10.0}/Cargo.toml +0 -0
  39. {synpath-0.9.0 → synpath-0.10.0}/LICENSE +0 -0
  40. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/Cargo.lock +0 -0
  41. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/Cargo.toml +0 -0
  42. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/kalshi.rs +0 -0
  43. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/lib.rs +0 -0
  44. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/objects.rs +0 -0
  45. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/polymarket.rs +0 -0
  46. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/pyjson.rs +0 -0
  47. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/router.rs +0 -0
  48. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/signing.rs +0 -0
  49. {synpath-0.9.0 → synpath-0.10.0}/bindings/python/src/venues.rs +0 -0
  50. {synpath-0.9.0 → synpath-0.10.0}/build_backend/synpath_build.py +0 -0
  51. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/Cargo.lock +0 -0
  52. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/Cargo.toml +0 -0
  53. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/examples/decode_timing.rs +0 -0
  54. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/book.rs +0 -0
  55. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/kalshi.rs +0 -0
  56. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/lib.rs +0 -0
  57. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/opinion.rs +0 -0
  58. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/polymarket.rs +0 -0
  59. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/polymarket_us.rs +0 -0
  60. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/router.rs +0 -0
  61. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/signing.rs +0 -0
  62. {synpath-0.9.0 → synpath-0.10.0}/crates/synpath-core/src/wire.rs +0 -0
  63. {synpath-0.9.0 → synpath-0.10.0}/synpath/__main__.py +0 -0
  64. {synpath-0.9.0 → synpath-0.10.0}/synpath/_deprecated.py +0 -0
  65. {synpath-0.9.0 → synpath-0.10.0}/synpath/_native.py +0 -0
  66. {synpath-0.9.0 → synpath-0.10.0}/synpath/base.py +0 -0
  67. {synpath-0.9.0 → synpath-0.10.0}/synpath/betfair.py +0 -0
  68. {synpath-0.9.0 → synpath-0.10.0}/synpath/bucket.py +0 -0
  69. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/__init__.py +0 -0
  70. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/alerts.py +0 -0
  71. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/engine.py +0 -0
  72. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/eod.py +0 -0
  73. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/events.py +0 -0
  74. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/fair_values.py +0 -0
  75. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/journal.py +0 -0
  76. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/ledger.py +0 -0
  77. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/__init__.py +0 -0
  78. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/base.py +0 -0
  79. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/day.py +0 -0
  80. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/iceberg.py +0 -0
  81. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/manager.py +0 -0
  82. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/oco.py +0 -0
  83. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/peg.py +0 -0
  84. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/routed.py +0 -0
  85. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/stop.py +0 -0
  86. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/taker.py +0 -0
  87. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/orders/twap.py +0 -0
  88. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/paper.py +0 -0
  89. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/reconcile.py +0 -0
  90. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/risk.py +0 -0
  91. {synpath-0.9.0 → synpath-0.10.0}/synpath/engine/router.py +0 -0
  92. {synpath-0.9.0 → synpath-0.10.0}/synpath/errors.py +0 -0
  93. {synpath-0.9.0 → synpath-0.10.0}/synpath/history.py +0 -0
  94. {synpath-0.9.0 → synpath-0.10.0}/synpath/hosted.py +0 -0
  95. {synpath-0.9.0 → synpath-0.10.0}/synpath/hosted_auth.py +0 -0
  96. {synpath-0.9.0 → synpath-0.10.0}/synpath/hyperliquid.py +0 -0
  97. {synpath-0.9.0 → synpath-0.10.0}/synpath/kalshi.py +0 -0
  98. {synpath-0.9.0 → synpath-0.10.0}/synpath/limitless.py +0 -0
  99. {synpath-0.9.0 → synpath-0.10.0}/synpath/matching.py +0 -0
  100. {synpath-0.9.0 → synpath-0.10.0}/synpath/opinion.py +0 -0
  101. {synpath-0.9.0 → synpath-0.10.0}/synpath/polymarket.py +0 -0
  102. {synpath-0.9.0 → synpath-0.10.0}/synpath/polymarket_us.py +0 -0
  103. {synpath-0.9.0 → synpath-0.10.0}/synpath/predict_fun.py +0 -0
  104. {synpath-0.9.0 → synpath-0.10.0}/synpath/remote.py +0 -0
  105. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/__init__.py +0 -0
  106. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/__main__.py +0 -0
  107. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/api.py +0 -0
  108. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/errors.py +0 -0
  109. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/local.py +0 -0
  110. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/models.py +0 -0
  111. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/store.py +0 -0
  112. {synpath-0.9.0 → synpath-0.10.0}/synpath/server/trading.py +0 -0
  113. {synpath-0.9.0 → synpath-0.10.0}/synpath/smarkets.py +0 -0
  114. {synpath-0.9.0 → synpath-0.10.0}/synpath/sx_bet.py +0 -0
  115. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/base.py +0 -0
  116. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/errors.py +0 -0
  117. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/hyperliquid.py +0 -0
  118. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/hyperliquid_signing.py +0 -0
  119. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/kalshi.py +0 -0
  120. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/limiter.py +0 -0
  121. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/limitless.py +0 -0
  122. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/limitless_signing.py +0 -0
  123. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/money.py +0 -0
  124. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/opinion.py +0 -0
  125. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/opinion_signing.py +0 -0
  126. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/polymarket.py +0 -0
  127. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/polymarket_signing.py +0 -0
  128. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/polymarket_us.py +0 -0
  129. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/polymarket_us_exchange.py +0 -0
  130. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/predict_fun.py +0 -0
  131. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/predict_fun_signing.py +0 -0
  132. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/sx_bet.py +0 -0
  133. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/sx_bet_signing.py +0 -0
  134. {synpath-0.9.0 → synpath-0.10.0}/synpath/trading/types.py +0 -0
  135. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/base.py +0 -0
  136. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/betfair.py +0 -0
  137. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/grpc.py +0 -0
  138. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/hyperliquid.py +0 -0
  139. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/kalshi.py +0 -0
  140. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/limitless.py +0 -0
  141. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/opinion.py +0 -0
  142. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/polymarket.py +0 -0
  143. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/polymarket_us.py +0 -0
  144. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/polymarket_us_exchange.py +0 -0
  145. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/predict_fun.py +0 -0
  146. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/smarkets.py +0 -0
  147. {synpath-0.9.0 → synpath-0.10.0}/synpath/ws/sx_bet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synpath
3
- Version: 0.9.0
3
+ Version: 0.10.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
@@ -32,7 +32,7 @@ Provides-Extra: server
32
32
  Provides-Extra: trading
33
33
  Provides-Extra: ws
34
34
  License-File: LICENSE
35
- Summary: One API for 8 prediction markets: Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless and SX Bet. Market data, streaming, self-hosted trading and smart order routing.
35
+ Summary: One API for 16 prediction markets and sports exchanges: Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless, SX Bet, Myriad, Gemini, Betfair, Smarkets, Novig, Matchbook, ProphetX and Azuro. Market data, streaming, self-hosted trading and smart order routing.
36
36
  Keywords: prediction-markets,kalshi,polymarket,polymarket-us,opinion,hyperliquid,predict-fun,limitless,sx-bet,unified-api,trading,market-data
37
37
  Author: Synpath
38
38
  License: MIT
@@ -51,7 +51,7 @@ Project-URL: Repository, https://github.com/Synpath-ai/synpath
51
51
  # Synpath – One API for prediction markets <a href="https://x.com/Synpath_Dev"><img src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fx.com%2FSynpath_Dev&style=social&label=Follow" alt="Follow @Synpath_Dev on X" height="28"></a>
52
52
 
53
53
  **Build on prediction markets without building against each one.**<br/>
54
- One open-source API across 8 venues (Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless and SX Bet): market data, order entry, live streams, and an execution engine that remembers what it sent. In-process from Python, over REST and WebSocket from anywhere.
54
+ One open-source API across 16 venues (Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless, SX Bet, Myriad and Gemini, and the sports betting venues Betfair, Smarkets, Novig, Matchbook, ProphetX and Azuro): market data, order entry, live streams, and an execution engine that remembers what it sent. In-process from Python, over REST and WebSocket from anywhere.
55
55
 
56
56
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
57
57
  <a href="https://pepy.tech/projects/synpath"><img src="https://img.shields.io/pepy/dt/synpath?label=Total%20Downloads&color=blue" alt="Total Downloads"></a>
@@ -126,16 +126,34 @@ No silent gaps: if we weren't recording at a moment, you get the reason instead
126
126
  | | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ | WebSocket (API key) | one book per market, both sides read it |
127
127
  | | [Limitless](https://limitless.exchange) | `limitless` | ✓ | ✓ | WebSocket | one book per market, both sides read it |
128
128
  | | [SX Bet](https://sx.bet) | `sx_bet` | ✓ sports | ✓ | WebSocket | one book per market, both sides read it |
129
+ | | [Gemini Predictions](https://www.gemini.com/predictions) | `gemini` | ✓ no account, sports taxonomy | ✓ US accounts with Prediction Markets access | WebSocket (no key for books) | one book per contract, in YES space |
129
130
  | | [Betfair Exchange](https://www.betfair.com/exchange) | `betfair` | ✓ your own account and app key (delayed key: 1-180 s late, 3 levels) | — | Exchange Stream API (TLS socket) | one book per runner, back and lay read as YES |
130
131
  | | [Smarkets](https://smarkets.com) | `smarkets` | ✓ no account (quotes delayed without a login) | — | polled from REST quotes | one book per contract, bids are YES bids |
132
+ | | [Novig](https://novig.com) | `novig` | ✓ sports, no key | ✓ (US, identity and location checks; Paper for play money) | WebSocket (trading key), else polled from the public book | one book per market, both sides read it |
133
+ | | [Matchbook](https://www.matchbook.com) | `matchbook` | ✓ no account | ✓ your own login | polled from REST | one book per runner, back and lay read as YES |
134
+ | | [ProphetX](https://www.prophetx.co) | `prophetx` | ✓ sports (Trading API key pair, or a Market Data API key) | ✓ | WebSocket (Trading API key pair) | one book per line, both sides read it |
135
+ | | [Azuro](https://azuro.org) | `azuro` | ✓ sports, no key | ✓ bets with a worst price | WebSocket (no key) | no book: the pool's quoted odds, one level a side sized by its limits |
136
+ | | [Myriad](https://myriad.markets) | `myriad` | ✓ order-book and AMM markets, sports | ✓ order book | WebSocket (no key) | one book per market, both sides read it; AMM books built from the pool |
131
137
 
132
138
  Betfair is a betting exchange, not a prediction market, read here the same way: each runner (selection) is a yes/no market, `betfair:1.234567890-47972`, and the Betfair market holding the runners is the event. Every Betfair call needs your own Betfair account and application key, and the API is refused from several countries (the US, Germany, France, the Netherlands, Singapore, India, Turkey, the UAE and others). Betfair's keys are for your own betting: showing its prices to anyone else needs a data licence from Betfair. See [capabilities](docs/capabilities.md#betfair).
133
139
 
140
+ Gemini Predictions is Gemini Titan's CFTC-registered event-contract exchange. Each contract is a yes/no market named by its instrument symbol, `gemini:GEMI-NBA-2610232000-CHI-MIL-M-MIL`, and the Gemini event holding the contracts is the event. Sports events carry Gemini's taxonomy (moneyline, spread, total, prop; the sport, scope and statistic), which listings filter on. Market data needs no account; trading needs a Gemini account with Prediction Markets access (US) and an API key. See [capabilities](docs/capabilities.md#gemini).
141
+
134
142
  Smarkets, a UK betting exchange, is read the same way: each contract is a yes/no market, `smarkets:164973231-456060183`, and the Smarkets market holding the contracts is the event. Its market data needs no account (quotes are delayed without a login); betting needs Smarkets' approved API access, which this library does not use yet. Smarkets' API terms allow viewing prices and betting on your own account, and prohibit odds scraping. See [capabilities](docs/capabilities.md#smarkets).
135
143
 
144
+ Novig, a US sports exchange, lists two-outcome markets (a moneyline, a spread, a total, a Yes/No prop), each one yes/no market, `novig:01a1577c-d666-7e81-852e-68bed1446801`, under its game as the event. Its catalog, books and trades are public and need no key. Trading signs each request with a subaccount's key; Production trades real money for verified US customers outside Arizona, Michigan and Nevada, and Paper (`NOVIG_ENV=paper`) is the same API with play money. Novig's parlay RFQ, for registered liquidity providers, is not supported yet. See [capabilities](docs/capabilities.md#novig).
145
+
146
+ Matchbook, a betting exchange licensed in the UK and Alderney, is read the same way: each runner is a yes/no market, `matchbook:<event id>-<market id>-<runner id>`, and the Matchbook market holding the runners is the event. Its market data needs no account; betting logs in with your own Matchbook username and password. Every GET is chargeable on Matchbook's API plans (£100 per million a month), and its terms allow viewing prices and betting on your own account only. See [capabilities](docs/capabilities.md#matchbook).
147
+
148
+ ProphetX, a US peer-to-peer sports exchange, is read the way SX Bet is: each line (a moneyline, or a spread or total at one number) is a yes/no market whose first side is YES, `prophetx:44285780-90de769f4f4977a04446ed203e957351` (the event, then the YES side's strike id), and the game is the event. Prices are American odds, converted exactly to probabilities. Every call needs a key: the Trading API key pair, which any KYC-approved ProphetX account generates under API Integration, or a Market Data API key issued by ProphetX on request. See [capabilities](docs/capabilities.md#prophetx).
149
+
150
+ Azuro is an onchain sports betting protocol: a shared liquidity pool takes every bet at the odds it quotes, so there is no order book and nothing rests. A two-outcome condition ("Total Goals Over/Under 2.5") is one yes/no market, `azuro:<conditionId>`, with the lower outcome id as YES; a condition with three or more outcomes (1X2, correct score) is one market per outcome, `azuro:<conditionId>-<outcomeId>`, where only YES can be bought. The game is the event. Prices are `1 / odds`. Ids are the same on every chain; `Azuro(chain=...)` picks the pool read (Polygon USDT by default, Base WETH). Bets are EIP-712 messages signed by your wallet and placed on chain by Azuro's relayer. Azuro's bet API and streams are refused from some regions. See [capabilities](docs/capabilities.md#azuro).
151
+
152
+ Myriad runs order-book markets on BNB Chain and AMM (pool) markets on BNB Chain, Abstract and Linea behind one API. A market id carries its network, and `amm` for a pool market, since the two kinds number their markets separately: `myriad:56-2385` is an order-book market, `myriad:56-amm-2385` an unrelated pool market. Order entry is on the order book; a pool trade is an on-chain transaction this library does not send. See [capabilities](docs/capabilities.md#myriad).
153
+
136
154
  ## Why Synpath
137
155
 
138
- - **Liquidity is fragmented. Your time shouldn't be.** The same market trades on Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless and SX Bet, each with its own API, units and quirks. Synpath gives you one interface for all of them, and smart order routing buys from whichever book is cheapest. Spend your time on alpha, not plumbing.
156
+ - **Liquidity is fragmented. Your time shouldn't be.** The same market trades on Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless, SX Bet, Myriad and Gemini, and the sports betting venues Betfair, Smarkets, Novig, Matchbook, ProphetX and Azuro, each with its own API, units and quirks. Synpath gives you one interface for all of them, and smart order routing buys from whichever book is cheapest. Spend your time on alpha, not plumbing.
139
157
 
140
158
  - **Traders deserve advanced order types.** Stops, trailing stops, icebergs, OCO, brackets, TWAP and pegs, on every venue, even where the exchange has none. Orders are journaled before they're sent, so a crash never places one twice.
141
159
 
@@ -181,7 +199,7 @@ fee.estimate(price=0.50, contracts=100) # 1.75
181
199
  **Same code, every venue**
182
200
 
183
201
  ```python
184
- for venue_id in synpath.exchanges: # [..., 'sx_bet', 'betfair', 'smarkets'] (Betfair and predict.fun need keys)
202
+ for venue_id in synpath.exchanges: # [..., 'betfair', 'smarkets', 'novig', 'matchbook', 'prophetx', 'azuro', 'myriad', 'gemini'] (Betfair, predict.fun and ProphetX need keys)
185
203
  with synpath.exchange(venue_id) as venue:
186
204
  page = venue.fetch_markets(limit=5)
187
205
 
@@ -5,7 +5,7 @@
5
5
  # Synpath – One API for prediction markets <a href="https://x.com/Synpath_Dev"><img src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fx.com%2FSynpath_Dev&style=social&label=Follow" alt="Follow @Synpath_Dev on X" height="28"></a>
6
6
 
7
7
  **Build on prediction markets without building against each one.**<br/>
8
- One open-source API across 8 venues (Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless and SX Bet): market data, order entry, live streams, and an execution engine that remembers what it sent. In-process from Python, over REST and WebSocket from anywhere.
8
+ One open-source API across 16 venues (Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless, SX Bet, Myriad and Gemini, and the sports betting venues Betfair, Smarkets, Novig, Matchbook, ProphetX and Azuro): market data, order entry, live streams, and an execution engine that remembers what it sent. In-process from Python, over REST and WebSocket from anywhere.
9
9
 
10
10
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
11
11
  <a href="https://pepy.tech/projects/synpath"><img src="https://img.shields.io/pepy/dt/synpath?label=Total%20Downloads&color=blue" alt="Total Downloads"></a>
@@ -80,16 +80,34 @@ No silent gaps: if we weren't recording at a moment, you get the reason instead
80
80
  | | [predict.fun](https://predict.fun) | `predict_fun` | ✓ (API key) | ✓ | WebSocket (API key) | one book per market, both sides read it |
81
81
  | | [Limitless](https://limitless.exchange) | `limitless` | ✓ | ✓ | WebSocket | one book per market, both sides read it |
82
82
  | | [SX Bet](https://sx.bet) | `sx_bet` | ✓ sports | ✓ | WebSocket | one book per market, both sides read it |
83
+ | | [Gemini Predictions](https://www.gemini.com/predictions) | `gemini` | ✓ no account, sports taxonomy | ✓ US accounts with Prediction Markets access | WebSocket (no key for books) | one book per contract, in YES space |
83
84
  | | [Betfair Exchange](https://www.betfair.com/exchange) | `betfair` | ✓ your own account and app key (delayed key: 1-180 s late, 3 levels) | — | Exchange Stream API (TLS socket) | one book per runner, back and lay read as YES |
84
85
  | | [Smarkets](https://smarkets.com) | `smarkets` | ✓ no account (quotes delayed without a login) | — | polled from REST quotes | one book per contract, bids are YES bids |
86
+ | | [Novig](https://novig.com) | `novig` | ✓ sports, no key | ✓ (US, identity and location checks; Paper for play money) | WebSocket (trading key), else polled from the public book | one book per market, both sides read it |
87
+ | | [Matchbook](https://www.matchbook.com) | `matchbook` | ✓ no account | ✓ your own login | polled from REST | one book per runner, back and lay read as YES |
88
+ | | [ProphetX](https://www.prophetx.co) | `prophetx` | ✓ sports (Trading API key pair, or a Market Data API key) | ✓ | WebSocket (Trading API key pair) | one book per line, both sides read it |
89
+ | | [Azuro](https://azuro.org) | `azuro` | ✓ sports, no key | ✓ bets with a worst price | WebSocket (no key) | no book: the pool's quoted odds, one level a side sized by its limits |
90
+ | | [Myriad](https://myriad.markets) | `myriad` | ✓ order-book and AMM markets, sports | ✓ order book | WebSocket (no key) | one book per market, both sides read it; AMM books built from the pool |
85
91
 
86
92
  Betfair is a betting exchange, not a prediction market, read here the same way: each runner (selection) is a yes/no market, `betfair:1.234567890-47972`, and the Betfair market holding the runners is the event. Every Betfair call needs your own Betfair account and application key, and the API is refused from several countries (the US, Germany, France, the Netherlands, Singapore, India, Turkey, the UAE and others). Betfair's keys are for your own betting: showing its prices to anyone else needs a data licence from Betfair. See [capabilities](docs/capabilities.md#betfair).
87
93
 
94
+ Gemini Predictions is Gemini Titan's CFTC-registered event-contract exchange. Each contract is a yes/no market named by its instrument symbol, `gemini:GEMI-NBA-2610232000-CHI-MIL-M-MIL`, and the Gemini event holding the contracts is the event. Sports events carry Gemini's taxonomy (moneyline, spread, total, prop; the sport, scope and statistic), which listings filter on. Market data needs no account; trading needs a Gemini account with Prediction Markets access (US) and an API key. See [capabilities](docs/capabilities.md#gemini).
95
+
88
96
  Smarkets, a UK betting exchange, is read the same way: each contract is a yes/no market, `smarkets:164973231-456060183`, and the Smarkets market holding the contracts is the event. Its market data needs no account (quotes are delayed without a login); betting needs Smarkets' approved API access, which this library does not use yet. Smarkets' API terms allow viewing prices and betting on your own account, and prohibit odds scraping. See [capabilities](docs/capabilities.md#smarkets).
89
97
 
98
+ Novig, a US sports exchange, lists two-outcome markets (a moneyline, a spread, a total, a Yes/No prop), each one yes/no market, `novig:01a1577c-d666-7e81-852e-68bed1446801`, under its game as the event. Its catalog, books and trades are public and need no key. Trading signs each request with a subaccount's key; Production trades real money for verified US customers outside Arizona, Michigan and Nevada, and Paper (`NOVIG_ENV=paper`) is the same API with play money. Novig's parlay RFQ, for registered liquidity providers, is not supported yet. See [capabilities](docs/capabilities.md#novig).
99
+
100
+ Matchbook, a betting exchange licensed in the UK and Alderney, is read the same way: each runner is a yes/no market, `matchbook:<event id>-<market id>-<runner id>`, and the Matchbook market holding the runners is the event. Its market data needs no account; betting logs in with your own Matchbook username and password. Every GET is chargeable on Matchbook's API plans (£100 per million a month), and its terms allow viewing prices and betting on your own account only. See [capabilities](docs/capabilities.md#matchbook).
101
+
102
+ ProphetX, a US peer-to-peer sports exchange, is read the way SX Bet is: each line (a moneyline, or a spread or total at one number) is a yes/no market whose first side is YES, `prophetx:44285780-90de769f4f4977a04446ed203e957351` (the event, then the YES side's strike id), and the game is the event. Prices are American odds, converted exactly to probabilities. Every call needs a key: the Trading API key pair, which any KYC-approved ProphetX account generates under API Integration, or a Market Data API key issued by ProphetX on request. See [capabilities](docs/capabilities.md#prophetx).
103
+
104
+ Azuro is an onchain sports betting protocol: a shared liquidity pool takes every bet at the odds it quotes, so there is no order book and nothing rests. A two-outcome condition ("Total Goals Over/Under 2.5") is one yes/no market, `azuro:<conditionId>`, with the lower outcome id as YES; a condition with three or more outcomes (1X2, correct score) is one market per outcome, `azuro:<conditionId>-<outcomeId>`, where only YES can be bought. The game is the event. Prices are `1 / odds`. Ids are the same on every chain; `Azuro(chain=...)` picks the pool read (Polygon USDT by default, Base WETH). Bets are EIP-712 messages signed by your wallet and placed on chain by Azuro's relayer. Azuro's bet API and streams are refused from some regions. See [capabilities](docs/capabilities.md#azuro).
105
+
106
+ Myriad runs order-book markets on BNB Chain and AMM (pool) markets on BNB Chain, Abstract and Linea behind one API. A market id carries its network, and `amm` for a pool market, since the two kinds number their markets separately: `myriad:56-2385` is an order-book market, `myriad:56-amm-2385` an unrelated pool market. Order entry is on the order book; a pool trade is an on-chain transaction this library does not send. See [capabilities](docs/capabilities.md#myriad).
107
+
90
108
  ## Why Synpath
91
109
 
92
- - **Liquidity is fragmented. Your time shouldn't be.** The same market trades on Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless and SX Bet, each with its own API, units and quirks. Synpath gives you one interface for all of them, and smart order routing buys from whichever book is cheapest. Spend your time on alpha, not plumbing.
110
+ - **Liquidity is fragmented. Your time shouldn't be.** The same market trades on Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless, SX Bet, Myriad and Gemini, and the sports betting venues Betfair, Smarkets, Novig, Matchbook, ProphetX and Azuro, each with its own API, units and quirks. Synpath gives you one interface for all of them, and smart order routing buys from whichever book is cheapest. Spend your time on alpha, not plumbing.
93
111
 
94
112
  - **Traders deserve advanced order types.** Stops, trailing stops, icebergs, OCO, brackets, TWAP and pegs, on every venue, even where the exchange has none. Orders are journaled before they're sent, so a crash never places one twice.
95
113
 
@@ -135,7 +153,7 @@ fee.estimate(price=0.50, contracts=100) # 1.75
135
153
  **Same code, every venue**
136
154
 
137
155
  ```python
138
- for venue_id in synpath.exchanges: # [..., 'sx_bet', 'betfair', 'smarkets'] (Betfair and predict.fun need keys)
156
+ for venue_id in synpath.exchanges: # [..., 'betfair', 'smarkets', 'novig', 'matchbook', 'prophetx', 'azuro', 'myriad', 'gemini'] (Betfair, predict.fun and ProphetX need keys)
139
157
  with synpath.exchange(venue_id) as venue:
140
158
  page = venue.fetch_markets(limit=5)
141
159
 
@@ -9,8 +9,8 @@ backend-path = ["build_backend"]
9
9
 
10
10
  [project]
11
11
  name = "synpath"
12
- version = "0.9.0"
13
- description = "One API for 8 prediction markets: Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless and SX Bet. Market data, streaming, self-hosted trading and smart order routing."
12
+ version = "0.10.0"
13
+ description = "One API for 16 prediction markets and sports exchanges: Kalshi, Polymarket, Polymarket US, Opinion, Hyperliquid, predict.fun, Limitless, SX Bet, Myriad, Gemini, Betfair, Smarkets, Novig, Matchbook, ProphetX and Azuro. Market data, streaming, self-hosted trading and smart order routing."
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.10"
16
16
  license = { text = "MIT" }
@@ -47,8 +47,14 @@ from .hyperliquid import Hyperliquid
47
47
  from .predict_fun import PredictFun
48
48
  from .limitless import Limitless
49
49
  from .sx_bet import SxBet
50
+ from .myriad import Myriad
50
51
  from .betfair import Betfair
51
52
  from .smarkets import Smarkets
53
+ from .novig import Novig
54
+ from .matchbook import Matchbook
55
+ from .prophetx import ProphetX
56
+ from .azuro import Azuro
57
+ from .gemini import Gemini
52
58
  from .matching import match_event, match_market
53
59
  from .history import fetch_order_book_at, fetch_order_book_range, fetch_trades_range
54
60
  from .bucket import Bucket, BucketMember, BucketOrderReport, BucketPosition
@@ -82,7 +88,7 @@ from .types import (
82
88
  TradesRangeResponse,
83
89
  )
84
90
 
85
- __version__ = "0.9.0"
91
+ __version__ = "0.10.0"
86
92
 
87
93
  exchanges: dict[str, type[Exchange]] = {
88
94
  "kalshi": Kalshi,
@@ -95,6 +101,12 @@ exchanges: dict[str, type[Exchange]] = {
95
101
  "sx_bet": SxBet,
96
102
  "betfair": Betfair,
97
103
  "smarkets": Smarkets,
104
+ "novig": Novig,
105
+ "matchbook": Matchbook,
106
+ "prophetx": ProphetX,
107
+ "azuro": Azuro,
108
+ "myriad": Myriad,
109
+ "gemini": Gemini,
98
110
  }
99
111
  """Every venue this library speaks, by id."""
100
112
 
@@ -115,7 +127,7 @@ def exchange(venue: str, **kwargs) -> Exchange:
115
127
  # keeps working. Imported last, after the read API it builds on.
116
128
  from .trading import (
117
129
  TradingExchange, KalshiTrading, PolymarketTrading, PolymarketUSTrading, PolymarketUSExchangeTrading,
118
- OpinionTrading, HyperliquidTrading, PredictFunTrading, LimitlessTrading, SxBetTrading,
130
+ OpinionTrading, HyperliquidTrading, PredictFunTrading, LimitlessTrading, SxBetTrading, NovigTrading, MatchbookTrading, ProphetXTrading, AzuroTrading, MyriadTrading, GeminiTrading,
119
131
  Account, Balance, EditRequest, FeeEstimate, Fill, HeldBy, Liquidity,
120
132
  Order, OrderRequest, OrderStatus, OrderType, Position, PositionSide,
121
133
  Precision, Settlement, SettlementState, Side, TimeInForce, TriggerSource,
@@ -145,7 +157,7 @@ _STREAM_CLASSES = (
145
157
  "PolymarketUSExchangeMarketDataStream", "PolymarketUSExchangeBalanceLedgerStream",
146
158
  "OpinionMarketStream", "OpinionUserStream", "HyperliquidMarketStream", "HyperliquidUserStream",
147
159
  "PredictFunMarketStream", "PredictFunUserStream", "LimitlessMarketStream", "LimitlessUserStream", "SxBetMarketStream", "SxBetUserStream",
148
- "BetfairMarketStream", "SmarketsMarketStream",
160
+ "BetfairMarketStream", "SmarketsMarketStream", "NovigMarketStream", "NovigUserStream", "MatchbookMarketStream", "ProphetXMarketStream", "ProphetXUserStream", "AzuroMarketStream", "MyriadMarketStream", "MyriadUserStream", "GeminiMarketStream", "GeminiUserStream",
149
161
  )
150
162
  _SERVER_NAMES = ("create_app", "create_trading_app", "VenueRegistry", "ControlStore", "Principal")
151
163
 
@@ -167,7 +179,7 @@ def __getattr__(name: str):
167
179
 
168
180
 
169
181
  __all__ = [
170
- "Kalshi", "Polymarket", "PolymarketUS", "Opinion", "Hyperliquid", "PredictFun", "Limitless", "SxBet", "Betfair", "Smarkets", "Exchange", "exchange", "exchanges",
182
+ "Kalshi", "Polymarket", "PolymarketUS", "Opinion", "Hyperliquid", "PredictFun", "Limitless", "SxBet", "Betfair", "Smarkets", "Novig", "Matchbook", "ProphetX", "Azuro", "Myriad", "Gemini", "Exchange", "exchange", "exchanges",
171
183
  "Capability", "HttpClient", "RateLimiter",
172
184
  "Market", "Event", "Outcome", "Quote", "MarketStats", "OrderBook",
173
185
  "OrderLevel", "Trade", "Candle", "FeeSchedule", "Series", "Page",
@@ -184,7 +196,7 @@ __all__ = [
184
196
  "MarketNotFound", "NotSupported", "AuthenticationError",
185
197
  # order entry
186
198
  "TradingExchange", "KalshiTrading", "PolymarketTrading", "PolymarketUSTrading", "PolymarketUSExchangeTrading",
187
- "OpinionTrading", "HyperliquidTrading", "PredictFunTrading", "LimitlessTrading", "SxBetTrading",
199
+ "OpinionTrading", "HyperliquidTrading", "PredictFunTrading", "LimitlessTrading", "SxBetTrading", "NovigTrading", "MatchbookTrading", "ProphetXTrading", "AzuroTrading", "MyriadTrading", "GeminiTrading",
188
200
  "Account", "Balance", "EditRequest", "FeeEstimate", "Fill", "HeldBy", "Liquidity",
189
201
  "Order", "OrderRequest", "OrderStatus", "OrderType", "Position", "PositionSide",
190
202
  "Precision", "Settlement", "SettlementState", "Side", "TimeInForce", "TriggerSource",