Skip to content

Commit 3a813cd

Browse files
authored
VER: Release 0.53.0
See release notes.
2 parents ec3c75a + 7de7eaf commit 3a813cd

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.53.0 - 2025-04-29
4+
5+
#### Enhancements
6+
- Upgraded `databento-dbn` to 0.33.1
7+
- Added `SystemCode` and `ErrorCode` enums to indicate types of system and error messages
8+
- Added `code()` methods to SystemMsg and ErrorMsg to retrieve the enum value if one exists and equivalent properties in Python
9+
10+
#### Bug fixes
11+
- Fixed issue where all `SystemMsg` records were logged as gateway heartbeats
12+
313
## 0.52.0 - 2025-04-15
414

515
#### Enhancements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The library is fully compatible with the latest distribution of Anaconda 3.9 and
3232
The minimum dependencies as found in the `pyproject.toml` are also listed below:
3333
- python = "^3.9"
3434
- aiohttp = "^3.8.3"
35-
- databento-dbn = "0.32.0"
35+
- databento-dbn = "0.33.1"
3636
- numpy= ">=1.23.5"
3737
- pandas = ">=1.5.3"
3838
- pip-system-certs = ">=4.0" (Windows only)

databento/historical/api/batch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ def submit_job(
9595
schema : Schema or str {'mbo', 'mbp-1', 'mbp-10', 'trades', 'tbbo', 'ohlcv-1s', 'ohlcv-1m', 'ohlcv-1h', 'ohlcv-1d', 'definition', 'statistics', 'status'}, default 'trades' # noqa
9696
The data record schema for the request.
9797
start : pd.Timestamp, datetime, date, str, or int
98-
The start datetime of the request time range (inclusive).
98+
The start of the request time range (inclusive).
99+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
99100
Assumes UTC as timezone unless passed a tz-aware object.
100101
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
101102
end : pd.Timestamp, datetime, date, str, or int, optional
102-
The end datetime of the request time range (exclusive).
103+
The end of the request time range (exclusive).
104+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
103105
Assumes UTC as timezone unless passed a tz-aware object.
104106
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
105107
Defaults to the forward filled value of `start` based on the resolution provided.

databento/historical/api/timeseries.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ def get_range(
6161
The dataset code (string identifier) for the request.
6262
start : pd.Timestamp, datetime, date, str, or int
6363
The start datetime of the request time range (inclusive).
64+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
6465
Assumes UTC as timezone unless passed a tz-aware object.
6566
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
6667
end : pd.Timestamp, datetime, date, str, or int, optional
6768
The end datetime of the request time range (exclusive).
69+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
6870
Assumes UTC as timezone unless passed a tz-aware object.
6971
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
7072
Defaults to the forward filled value of `start` based on the resolution provided.
@@ -156,11 +158,13 @@ async def get_range_async(
156158
dataset : Dataset or str
157159
The dataset code (string identifier) for the request.
158160
start : pd.Timestamp, datetime, date, str, or int
159-
The start datetime of the request time range (inclusive).
161+
The start of the request time range (inclusive).
162+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
160163
Assumes UTC as timezone unless passed a tz-aware object.
161164
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
162165
end : pd.Timestamp, datetime, date, str, or int, optional
163-
The end datetime of the request time range (exclusive).
166+
The end of the request time range (exclusive).
167+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
164168
Assumes UTC as timezone unless passed a tz-aware object.
165169
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
166170
Defaults to the forward filled value of `start` based on the resolution provided.

databento/live/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def _process_dbn(self, data: bytes) -> None:
374374
)
375375
self._error_msgs.append(record.err)
376376
elif isinstance(record, databento_dbn.SystemMsg):
377-
if record.is_heartbeat:
377+
if record.is_heartbeat():
378378
logger.debug("gateway heartbeat")
379379
else:
380380
logger.info(

databento/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.52.0"
1+
__version__ = "0.53.0"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databento"
3-
version = "0.52.0"
3+
version = "0.53.0"
44
description = "Official Python client library for Databento"
55
authors = [
66
"Databento <[email protected]>",
@@ -32,7 +32,7 @@ aiohttp = [
3232
{version = "^3.8.3", python = "<3.12"},
3333
{version = "^3.9.0", python = "^3.12"}
3434
]
35-
databento-dbn = "0.32.0"
35+
databento-dbn = "0.33.1"
3636
numpy = [
3737
{version = ">=1.23.5", python = "<3.12"},
3838
{version = ">=1.26.0", python = "^3.12"}

0 commit comments

Comments
 (0)