tardis-dev 4.2.1__tar.gz → 4.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tardis-dev
3
- Version: 4.2.1
3
+ Version: 4.3.0
4
4
  Summary: Python client for tardis.dev - historical tick-level cryptocurrency market data replay API.
5
5
  Keywords: cryptocurrency data feed,market data,api client,orderbook,crypto markets data replay,historical data,historical cryptocurrency prices,cryptocurrency api
6
6
  Author: Thad
@@ -9,7 +9,7 @@ markers = [
9
9
 
10
10
  [project]
11
11
  name = "tardis-dev"
12
- version = "4.2.1"
12
+ version = "4.3.0"
13
13
  description = "Python client for tardis.dev - historical tick-level cryptocurrency market data replay API."
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.9,<4.0"
@@ -50,7 +50,7 @@ async def replay(
50
50
  api_key: str = "",
51
51
  cache_dir: str = DEFAULT_CACHE_DIR,
52
52
  endpoint: str = DEFAULT_ENDPOINT,
53
- timeout: int = 60,
53
+ timeout: int = 135,
54
54
  http_proxy: Optional[str] = None,
55
55
  compression: ReplayCompression = "zstd",
56
56
  decode_response: bool = True,
@@ -309,9 +309,10 @@ async def _fetch_slice_if_not_cached(
309
309
  replay_cached_slices[slice_date] = CachedSlice(cached_slice_path, requested_slice_size)
310
310
  return SliceDownloadResult(requested_slice_size, DEFAULT_DATA_FEED_SLICE_SIZE)
311
311
 
312
+ request_compression = "zstd-multiframe" if compression == "zstd" else compression
312
313
  fetch_url = (
313
314
  f"{endpoint}/data-feeds/{exchange}?from={_format_replay_query_date(from_date)}"
314
- f"&offset={offset}&compression={compression}"
315
+ f"&offset={offset}&compression={request_compression}"
315
316
  )
316
317
  if requested_slice_size > DEFAULT_DATA_FEED_SLICE_SIZE:
317
318
  fetch_url += f"&sliceSize={requested_slice_size}"
File without changes
File without changes