synpath 0.8.0__tar.gz → 0.8.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 (122) hide show
  1. {synpath-0.8.0 → synpath-0.8.1}/PKG-INFO +1 -1
  2. {synpath-0.8.0 → synpath-0.8.1}/pyproject.toml +1 -1
  3. {synpath-0.8.0 → synpath-0.8.1}/synpath/__init__.py +1 -1
  4. {synpath-0.8.0 → synpath-0.8.1}/synpath/history.py +8 -2
  5. {synpath-0.8.0 → synpath-0.8.1}/synpath/types.py +3 -3
  6. {synpath-0.8.0 → synpath-0.8.1}/Cargo.toml +0 -0
  7. {synpath-0.8.0 → synpath-0.8.1}/LICENSE +0 -0
  8. {synpath-0.8.0 → synpath-0.8.1}/README.md +0 -0
  9. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/Cargo.lock +0 -0
  10. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/Cargo.toml +0 -0
  11. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/kalshi.rs +0 -0
  12. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/lib.rs +0 -0
  13. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/objects.rs +0 -0
  14. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/polymarket.rs +0 -0
  15. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/pyjson.rs +0 -0
  16. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/router.rs +0 -0
  17. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/signing.rs +0 -0
  18. {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/venues.rs +0 -0
  19. {synpath-0.8.0 → synpath-0.8.1}/build_backend/synpath_build.py +0 -0
  20. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/Cargo.lock +0 -0
  21. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/Cargo.toml +0 -0
  22. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/examples/decode_timing.rs +0 -0
  23. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/book.rs +0 -0
  24. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/kalshi.rs +0 -0
  25. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/lib.rs +0 -0
  26. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/opinion.rs +0 -0
  27. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/polymarket.rs +0 -0
  28. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/polymarket_us.rs +0 -0
  29. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/router.rs +0 -0
  30. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/signing.rs +0 -0
  31. {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/wire.rs +0 -0
  32. {synpath-0.8.0 → synpath-0.8.1}/synpath/__main__.py +0 -0
  33. {synpath-0.8.0 → synpath-0.8.1}/synpath/_deprecated.py +0 -0
  34. {synpath-0.8.0 → synpath-0.8.1}/synpath/_native.py +0 -0
  35. {synpath-0.8.0 → synpath-0.8.1}/synpath/base.py +0 -0
  36. {synpath-0.8.0 → synpath-0.8.1}/synpath/bucket.py +0 -0
  37. {synpath-0.8.0 → synpath-0.8.1}/synpath/client.py +0 -0
  38. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/__init__.py +0 -0
  39. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/__main__.py +0 -0
  40. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/alerts.py +0 -0
  41. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/engine.py +0 -0
  42. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/eod.py +0 -0
  43. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/events.py +0 -0
  44. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/fair_values.py +0 -0
  45. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/feeds.py +0 -0
  46. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/journal.py +0 -0
  47. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/ledger.py +0 -0
  48. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/__init__.py +0 -0
  49. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/base.py +0 -0
  50. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/day.py +0 -0
  51. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/iceberg.py +0 -0
  52. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/manager.py +0 -0
  53. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/oco.py +0 -0
  54. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/peg.py +0 -0
  55. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/routed.py +0 -0
  56. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/stop.py +0 -0
  57. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/taker.py +0 -0
  58. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/twap.py +0 -0
  59. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/paper.py +0 -0
  60. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/reconcile.py +0 -0
  61. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/risk.py +0 -0
  62. {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/router.py +0 -0
  63. {synpath-0.8.0 → synpath-0.8.1}/synpath/errors.py +0 -0
  64. {synpath-0.8.0 → synpath-0.8.1}/synpath/hosted.py +0 -0
  65. {synpath-0.8.0 → synpath-0.8.1}/synpath/hosted_auth.py +0 -0
  66. {synpath-0.8.0 → synpath-0.8.1}/synpath/hyperliquid.py +0 -0
  67. {synpath-0.8.0 → synpath-0.8.1}/synpath/ids.py +0 -0
  68. {synpath-0.8.0 → synpath-0.8.1}/synpath/kalshi.py +0 -0
  69. {synpath-0.8.0 → synpath-0.8.1}/synpath/limitless.py +0 -0
  70. {synpath-0.8.0 → synpath-0.8.1}/synpath/matching.py +0 -0
  71. {synpath-0.8.0 → synpath-0.8.1}/synpath/opinion.py +0 -0
  72. {synpath-0.8.0 → synpath-0.8.1}/synpath/polymarket.py +0 -0
  73. {synpath-0.8.0 → synpath-0.8.1}/synpath/polymarket_us.py +0 -0
  74. {synpath-0.8.0 → synpath-0.8.1}/synpath/predict_fun.py +0 -0
  75. {synpath-0.8.0 → synpath-0.8.1}/synpath/remote.py +0 -0
  76. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/__init__.py +0 -0
  77. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/__main__.py +0 -0
  78. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/api.py +0 -0
  79. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/errors.py +0 -0
  80. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/local.py +0 -0
  81. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/models.py +0 -0
  82. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/serve.py +0 -0
  83. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/store.py +0 -0
  84. {synpath-0.8.0 → synpath-0.8.1}/synpath/server/trading.py +0 -0
  85. {synpath-0.8.0 → synpath-0.8.1}/synpath/sx_bet.py +0 -0
  86. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/__init__.py +0 -0
  87. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/__main__.py +0 -0
  88. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/base.py +0 -0
  89. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/credentials.py +0 -0
  90. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/errors.py +0 -0
  91. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/hyperliquid.py +0 -0
  92. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/hyperliquid_signing.py +0 -0
  93. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/init.py +0 -0
  94. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/instruments.py +0 -0
  95. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/kalshi.py +0 -0
  96. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/limiter.py +0 -0
  97. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/limitless.py +0 -0
  98. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/limitless_signing.py +0 -0
  99. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/money.py +0 -0
  100. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/opinion.py +0 -0
  101. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/opinion_signing.py +0 -0
  102. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket.py +0 -0
  103. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket_signing.py +0 -0
  104. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket_us.py +0 -0
  105. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket_us_exchange.py +0 -0
  106. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/predict_fun.py +0 -0
  107. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/predict_fun_signing.py +0 -0
  108. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/sx_bet.py +0 -0
  109. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/sx_bet_signing.py +0 -0
  110. {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/types.py +0 -0
  111. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/__init__.py +0 -0
  112. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/base.py +0 -0
  113. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/grpc.py +0 -0
  114. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/hyperliquid.py +0 -0
  115. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/kalshi.py +0 -0
  116. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/limitless.py +0 -0
  117. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/opinion.py +0 -0
  118. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/polymarket.py +0 -0
  119. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/polymarket_us.py +0 -0
  120. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/polymarket_us_exchange.py +0 -0
  121. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/predict_fun.py +0 -0
  122. {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/sx_bet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synpath
3
- Version: 0.8.0
3
+ Version: 0.8.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
@@ -9,7 +9,7 @@ backend-path = ["build_backend"]
9
9
 
10
10
  [project]
11
11
  name = "synpath"
12
- version = "0.8.0"
12
+ version = "0.8.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"
@@ -80,7 +80,7 @@ from .types import (
80
80
  TradesRangeResponse,
81
81
  )
82
82
 
83
- __version__ = "0.8.0"
83
+ __version__ = "0.8.1"
84
84
 
85
85
  exchanges: dict[str, type[Exchange]] = {
86
86
  "kalshi": Kalshi,
@@ -12,7 +12,9 @@ else:
12
12
 
13
13
  Needs a Synpath API key (`SYNPATH_API_KEY`, or `api_key=`). The service lives at
14
14
  `https://api2.synpath.dev` unless `base_url=` or `SYNPATH_HISTORY_URL` says otherwise.
15
- Times are recorder receive times in Unix milliseconds. Coverage varies by market and
15
+ Book query times use recorder receive time in Unix milliseconds. Trade query
16
+ times use the basis named in the response metadata; venue time is supported.
17
+ Coverage varies by market and
16
18
  has gaps, which every answer says explicitly: a missing book comes back with an
17
19
  `absence_reason`, never as an empty book. A range too large to return whole raises
18
20
  `BadRequest`; narrow it or raise `limit` (`examples/track_historical_book.py`
@@ -64,7 +66,11 @@ def fetch_trades_range(
64
66
  market_id: str, start_ms: int, end_ms: int, *, limit: int | None = None,
65
67
  api_key: str | None = None, base_url: str | None = None, client: Any = None,
66
68
  ) -> TradesRangeResponse:
67
- """Trades between `start_ms` and `end_ms`, with the coverage they were recorded under."""
69
+ """Trades between `start_ms` and `end_ms`, with recording coverage.
70
+
71
+ The response metadata names the time basis. Coverage boundaries come from
72
+ recorder time and cannot be mapped exactly onto venue event time.
73
+ """
68
74
  body = _post("/v1/trades/range", {"market_id": market_id, "start_ms": start_ms, "end_ms": end_ms,
69
75
  "limit": limit},
70
76
  base_url=base_url, client=client, api_key=api_key)
@@ -372,11 +372,11 @@ class Trade(_Base):
372
372
 
373
373
 
374
374
  # Historical types extend the live market objects without changing their
375
- # contract. Queries use recorder receive time; Trade.timestamp remains the
376
- # venue's execution time when available.
375
+ # contract. The response metadata identifies the query clock. Trade.timestamp
376
+ # remains the venue's execution time when available.
377
377
  class HistoryMetadata(_Base):
378
378
  dataset_version: str
379
- time_basis: Literal["recorder_receive"] = "recorder_receive"
379
+ time_basis: Literal["recorder_receive", "venue"] = "recorder_receive"
380
380
  processed_through_ms: int | None = None
381
381
 
382
382
 
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