You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Changelog
2
2
3
+
## 0.34.1 - 2024-05-21
4
+
5
+
#### Enhancements
6
+
- Added `use_snapshot` parameter to `Live.subscribe`, defaults to `False`
7
+
3
8
## 0.34.0 - 2024-05-14
4
9
5
10
#### Enhancements
@@ -11,6 +16,9 @@
11
16
- Fixed an issue where `batch.download`, `batch.download_async`, and `timeseries.get_range` could use a lot of memory while streaming data
12
17
- Fixed an issue where reusing a `Live` client with an open output stream would drop DBN records when received at the same time as the `Metadata` header
13
18
19
+
##### Deprecations
20
+
- The `start_date` and `end_date` keys in the response from `Historical.metadata.get_dataset_range` will be removed in a future release. Use the new `start` and `end` keys instead, which include time resolution
Copy file name to clipboardExpand all lines: databento/live/client.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -379,6 +379,7 @@ def subscribe(
379
379
symbols: Iterable[str|int] |str|int=ALL_SYMBOLS,
380
380
stype_in: SType|str=SType.RAW_SYMBOL,
381
381
start: str|int|None=None,
382
+
use_snapshot: bool=False,
382
383
) ->None:
383
384
"""
384
385
Subscribe to a data stream. Multiple subscription requests can be made
@@ -401,11 +402,14 @@ def subscribe(
401
402
The input symbology type to resolve from.
402
403
start : str or int, optional
403
404
UNIX nanosecond epoch timestamp to start streaming from (inclusive), based on `ts_event`. Must be within 24 hours except when requesting the mbo or definition schemas.
405
+
use_snapshot: bool, default to 'False'
406
+
Reserved for future use.
404
407
405
408
Raises
406
409
------
407
410
ValueError
408
411
If a dataset is given that does not match the previous datasets.
412
+
If use_snapshot is True and start is not None.
409
413
BentoError
410
414
If creating the connection times out.
411
415
If creating the connection fails.
@@ -419,11 +423,12 @@ def subscribe(
419
423
420
424
"""
421
425
logger.info(
422
-
"subscribing to %s:%s %s start=%s",
426
+
"subscribing to %s:%s %s start=%s use_snapshot=%s",
0 commit comments