Skip to content

Commit 73f6a9a

Browse files
committed
MOD: Upgrade databento_dbn to 0.58.0
1 parent 089deb5 commit 73f6a9a

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
- Added time-based backpressure to the live client: pauses reading records from the live
77
gateway when the internal queue spans more than 1 second of data by `ts_index`
88
(`ts_recv` when present, otherwise `ts_event`)
9-
- Added `INDEX` `InstrumentClass` variant
10-
- Added `StatType` variants `INDICATIVE_CLOSE_PRICE` and `VENUE_SPECIFIC_PRICE_1`
9+
- Upgraded `databento-dbn` to 0.58.0:
10+
- Added flat per-level properties (`bid_px_00`, `pretty_ask_px_03`, etc.) to the
11+
Python `MBP1Msg`, `MBP10Msg`, `BBOMsg`, `CMBP1Msg`, and `CBBOMsg` record classes
12+
for parity with the DataFrame layout
13+
- Added `INDEX` `InstrumentClass` variant
14+
- Added `StatType` variants `INDICATIVE_CLOSE_PRICE` and `VENUE_SPECIFIC_PRICE_1`
15+
1116

1217
## 0.77.0 - 2026-04-28
1318

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 distributions of Anaconda 2023.x and above.
3232
The minimum dependencies as found in the `pyproject.toml` are also listed below:
3333
- python = "^3.10"
3434
- aiohttp = "^3.8.3"
35-
- databento-dbn = "~0.56.0"
35+
- databento-dbn = "~0.58.0"
3636
- numpy = ">=1.23.5"
3737
- pandas = ">=1.5.3"
3838
- pip-system-certs = ">=4.0" (Windows only)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dynamic = [ "classifiers" ]
1010
dependencies = [
1111
"aiohttp>=3.8.3,<4.0.0; python_version < '3.12'",
1212
"aiohttp>=3.9.0,<4.0.0; python_version >= '3.12'",
13-
"databento-dbn~=0.56.0",
13+
"databento-dbn~=0.58.0",
1414
"numpy>=1.23.5; python_version < '3.12'",
1515
"numpy>=1.26.0; python_version >= '3.12'",
1616
"pandas>=1.5.3,<4.0.0",

tests/test_historical_data.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ def test_mbp_fields(
5252
difference = fields.symmetric_difference(struct._ordered_fields)
5353

5454
# Assert
55-
assert "levels" in difference
56-
57-
# bid/ask size, price, ct for each level, plus the levels field
58-
assert len(difference) == 6 * level_count + 1
55+
assert difference == {"levels"}
5956

6057

6158
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)