Skip to content

Commit a1ed42d

Browse files
authored
VER: Release 0.47.0
See release notes.
2 parents deb029e + 674e405 commit a1ed42d

File tree

7 files changed

+29
-14
lines changed

7 files changed

+29
-14
lines changed

CHANGELOG.md

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

3+
## 0.47.0 - 2024-12-17
4+
5+
#### Enhancements
6+
- Upgraded `databento-dbn` to 0.25.0
7+
- Added type aliases for `TBBOMsg`, `BBO1SMsg`, `BBO1MMsg`, `TCBBOMsg`, `CBBO1SMsg`,
8+
`CBBO1MMsg` in Python
9+
- Removed exports for `CBBOMsg` and `BBOMsg` in the root `databento` package in favor of aliased versions from `databento-dbn`
10+
311
## 0.46.0 - 2024-12-10
412

513
#### 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.24.0"
35+
- databento-dbn = "0.25.0"
3636
- numpy= ">=1.23.5"
3737
- pandas = ">=1.5.3"
3838
- pip-system-certs = ">=4.0" (Windows only)

databento/__init__.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import logging
22
import warnings
33

4-
from databento_dbn import BBOMsg
5-
from databento_dbn import CBBOMsg
4+
from databento_dbn import CMBP1Msg
65
from databento_dbn import Compression
76
from databento_dbn import Encoding
87
from databento_dbn import ErrorMsg
@@ -21,6 +20,12 @@
2120
from databento_dbn import SymbolMappingMsg
2221
from databento_dbn import SystemMsg
2322
from databento_dbn import TradeMsg
23+
from databento_dbn.v2 import BBO1MMsg
24+
from databento_dbn.v2 import BBO1SMsg
25+
from databento_dbn.v2 import CBBO1MMsg
26+
from databento_dbn.v2 import CBBO1SMsg
27+
from databento_dbn.v2 import TBBOMsg
28+
from databento_dbn.v2 import TCBBOMsg
2429

2530
from databento.common import API_VERSION
2631
from databento.common import bentologging
@@ -50,18 +55,17 @@
5055
from databento.version import __version__ # noqa
5156

5257

53-
# Alias for convenience
54-
TBBOMsg = MBP1Msg
55-
56-
5758
__all__ = [
5859
"API_VERSION",
59-
"BBOMsg",
60+
"BBO1MMsg",
61+
"BBO1SMsg",
6062
"BentoClientError",
6163
"BentoError",
6264
"BentoHttpError",
6365
"BentoServerError",
64-
"CBBOMsg",
66+
"CBBO1MMsg",
67+
"CBBO1SMsg",
68+
"CMBP1Msg",
6569
"Compression",
6670
"DBNRecord",
6771
"DBNStore",
@@ -96,6 +100,9 @@
96100
"SymbolMappingMsg",
97101
"SymbologyResolution",
98102
"SystemMsg",
103+
"TBBOMsg",
104+
"TBBOMsg",
105+
"TCBBOMsg",
99106
"TradeMsg",
100107
"Venue",
101108
]

databento/common/dbnstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def __init__(self, data_source: DataSource) -> None:
380380
def __iter__(self) -> Generator[DBNRecord, None, None]:
381381
reader = self.reader
382382
decoder = DBNDecoder(
383-
upgrade_policy=VersionUpgradePolicy.UPGRADE,
383+
upgrade_policy=VersionUpgradePolicy.UPGRADE_TO_V2,
384384
)
385385
while True:
386386
raw = reader.read(DBNStore.DBN_READ_SIZE)

databento/live/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(
8282
self._heartbeat_interval_s = heartbeat_interval_s
8383

8484
self._dbn_decoder = databento_dbn.DBNDecoder(
85-
upgrade_policy=VersionUpgradePolicy.UPGRADE,
85+
upgrade_policy=VersionUpgradePolicy.UPGRADE_TO_V2,
8686
)
8787
self._gateway_decoder = GatewayDecoder()
8888

databento/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.46.0"
1+
__version__ = "0.47.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.46.0"
3+
version = "0.47.0"
44
description = "Official Python client library for Databento"
55
authors = [
66
"Databento <support@databento.com>",
@@ -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.24.0"
35+
databento-dbn = "0.25.0"
3636
numpy = [
3737
{version = ">=1.23.5", python = "<3.12"},
3838
{version = ">=1.26.0", python = "^3.12"}

0 commit comments

Comments
 (0)