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.
- {synpath-0.8.0 → synpath-0.8.1}/PKG-INFO +1 -1
- {synpath-0.8.0 → synpath-0.8.1}/pyproject.toml +1 -1
- {synpath-0.8.0 → synpath-0.8.1}/synpath/__init__.py +1 -1
- {synpath-0.8.0 → synpath-0.8.1}/synpath/history.py +8 -2
- {synpath-0.8.0 → synpath-0.8.1}/synpath/types.py +3 -3
- {synpath-0.8.0 → synpath-0.8.1}/Cargo.toml +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/LICENSE +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/README.md +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/Cargo.lock +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/Cargo.toml +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/kalshi.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/lib.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/objects.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/polymarket.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/pyjson.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/router.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/signing.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/bindings/python/src/venues.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/build_backend/synpath_build.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/Cargo.lock +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/Cargo.toml +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/examples/decode_timing.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/book.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/kalshi.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/lib.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/opinion.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/polymarket.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/polymarket_us.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/router.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/signing.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/crates/synpath-core/src/wire.rs +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/__main__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/_deprecated.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/_native.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/base.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/bucket.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/client.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/__init__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/__main__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/alerts.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/engine.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/eod.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/events.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/fair_values.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/feeds.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/journal.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/ledger.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/__init__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/base.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/day.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/iceberg.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/manager.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/oco.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/peg.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/routed.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/stop.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/taker.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/orders/twap.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/paper.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/reconcile.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/risk.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/engine/router.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/errors.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/hosted.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/hosted_auth.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/hyperliquid.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ids.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/kalshi.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/limitless.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/matching.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/opinion.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/polymarket.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/polymarket_us.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/predict_fun.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/remote.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/__init__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/__main__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/api.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/errors.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/local.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/models.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/serve.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/store.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/server/trading.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/sx_bet.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/__init__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/__main__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/base.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/credentials.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/errors.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/hyperliquid.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/hyperliquid_signing.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/init.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/instruments.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/kalshi.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/limiter.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/limitless.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/limitless_signing.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/money.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/opinion.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/opinion_signing.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket_signing.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket_us.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/polymarket_us_exchange.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/predict_fun.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/predict_fun_signing.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/sx_bet.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/sx_bet_signing.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/trading/types.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/__init__.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/base.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/grpc.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/hyperliquid.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/kalshi.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/limitless.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/opinion.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/polymarket.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/polymarket_us.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/polymarket_us_exchange.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/predict_fun.py +0 -0
- {synpath-0.8.0 → synpath-0.8.1}/synpath/ws/sx_bet.py +0 -0
|
@@ -9,7 +9,7 @@ backend-path = ["build_backend"]
|
|
|
9
9
|
|
|
10
10
|
[project]
|
|
11
11
|
name = "synpath"
|
|
12
|
-
version = "0.8.
|
|
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"
|
|
@@ -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
|
-
|
|
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
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|