Skip to content

Commit cc39f3d

Browse files
committed
MOD: Upgrade databento_dbn to 0.47.0
1 parent fa98b29 commit cc39f3d

3 files changed

Lines changed: 32 additions & 29 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44

55
#### Enhancements
66
- Added new off-market publisher for Cboe Futures Exchange (`XCBF_PITCH_XOFF`)
7-
- Added new `StatType` variants to be used by `XCBF.PITCH` dataset:
8-
- `UPPER_PRICE_LIMIT`
9-
- `LOWER_PRICE_LIMIT`
10-
- `BLOCK_VOLUME`
11-
- `VENUE_SPECIFIC_VOLUME_1`
7+
- Upgraded `databento-dbn` to 0.47.0:
8+
- Changed the `__repr__` implementation of all records in Python to be more Pythonic
9+
- Added new `StatType` variants to be used by `XCBF.PITCH` dataset:
10+
- `UPPER_PRICE_LIMIT`
11+
- `LOWER_PRICE_LIMIT`
12+
- `BLOCK_VOLUME`
13+
- `VENUE_SPECIFIC_VOLUME_1`
1214

1315
## 0.69.0 - 2026-01-13
1416

1517
#### Enhancements
16-
- Upgraded `databento-dbn` to 0.46.0
18+
- Upgraded `databento-dbn` to 0.46.0:
1719
- Added `DBNRecord` union type to Python which includes all record types
1820
- Removed `Record` class from Python type stubs to match code: the record classes don't
1921
share a base class. Use `DBNRecord` instead.
@@ -38,7 +40,7 @@ This release adds support for Python 3.14.
3840
#### Enhancements
3941
- Added support for Python 3.14
4042
- Functions which accept a path as an argument now expand user directories
41-
- Upgraded `databento-dbn` to 0.45.0
43+
- Upgraded `databento-dbn` to 0.45.0:
4244
- Added support for Python 3.14
4345

4446
## 0.67.0 - 2025-12-02
@@ -60,7 +62,7 @@ This release adds support for Python 3.14.
6062
- Added a property `Live.session_id` which returns the streaming session ID when the client is connected
6163
- Streams added with `Live.add_stream()` which do not define an exception handler will now emit a warning if an exception is raised while executing the callback
6264
- Callback functions added with `Live.add_callback()` which do not define an exception handler will now emit a warning if an exception is raised while executing the callback
63-
- Upgraded `databento-dbn` to 0.44.0
65+
- Upgraded `databento-dbn` to 0.44.0:
6466
- Added logic to set `code` when upgrading version 1 `SystemMsg` to newer versions
6567

6668
#### Bug fixes
@@ -73,7 +75,7 @@ This release adds support for Python 3.14.
7375

7476
#### Enhancements
7577
- Added export of `CBBOMsg` and `BBOMsg` from `databento_dbn` to the root `databento` package
76-
- Upgraded `databento-dbn` to 0.43.0
78+
- Upgraded `databento-dbn` to 0.43.0:
7779
- Added export of `F_PUBLISHER_SPECIFIC` constant to Python
7880
- Added explicit `Unset` variant for `SystemCode` and `ErrorCode`
7981
- Changed Python getters for enum fields to return the underlying type when no known variant can be found. As a result, these getters no longer raise an exception
@@ -84,7 +86,7 @@ This release adds support for Python 3.14.
8486
## 0.64.0 - 2025-09-30
8587

8688
#### Enhancements
87-
- Upgraded `databento-dbn` to 0.42.0
89+
- Upgraded `databento-dbn` to 0.42.0:
8890
- Added `ts_index` and `pretty_ts_index` properties for records in Python which provides the timestamp that is most appropriate for indexing
8991
- Fixed type stub for `channel_id` to allow None
9092

@@ -109,7 +111,7 @@ This release delivers a number of breaking changes to the Python interface for D
109111

110112
#### Breaking changes
111113
- Removed `bill_id` from the response of `batch.list_jobs()` and `batch.submit_job()`
112-
- Upgraded `databento-dbn` to 0.40.0
114+
- Upgraded `databento-dbn` to 0.40.0:
113115
- Removed `hd` property from records in Python. Header fields are accessible
114116
directly from the record
115117
- Removed ability to directly instantiate most enums from an `int` in Python and coercion
@@ -152,7 +154,7 @@ This release delivers a number of breaking changes to the Python interface for D
152154

153155
#### Enhancements
154156
- Added `parquet_schema` option to `DBNStore.to_parquet()` for overriding the pyarrow schema.
155-
- Upgraded `databento-dbn` to 0.39.0
157+
- Upgraded `databento-dbn` to 0.39.0:
156158
- Added `side()` and `unpaired_side()` methods to `ImbalanceMsg` that convert the fields
157159
of the same name to the `Side` enum
158160
- Added `pretty_auction_time` property in Python for `ImbalanceMsg`
@@ -173,7 +175,7 @@ Python
173175
## 0.59.0 - 2025-07-15
174176

175177
#### Enhancements
176-
- Upgraded `databento-dbn` to 0.37.1
178+
- Upgraded `databento-dbn` to 0.37.1:
177179
- Fix buffer growth in `DbnFsm::write_all()`, which is used by `DBNDecoder.write()`
178180

179181
#### Breaking changes
@@ -188,7 +190,7 @@ Python
188190
#### Enhancements
189191
- Changed the `tz` parameter in `DBNStore.to_df()` to accept `datetime.tzinfo` instead of `pytz.BaseTzInfo` explicitly
190192
- Modified the dependency specification for `databento_dbn` to allow for compatible patch versions
191-
- Upgraded `databento-dbn` to 0.36.2
193+
- Upgraded `databento-dbn` to 0.36.2:
192194
- Fixed change in behavior where Python `DBNDecoder.decode()` wouldn't always decode all available data on the first call
193195

194196
## 0.57.1 - 2025-06-17
@@ -197,7 +199,7 @@ Python
197199
- Changed the following Venue, Publisher, and Dataset descriptions:
198200
- "ICE Futures Europe (Financials)" renamed to "ICE Europe Financials"
199201
- "ICE Futures Europe (Commodities)" renamed to "ICE Europe Commodities"
200-
- Upgraded `databento-dbn` to 0.36.1
202+
- Upgraded `databento-dbn` to 0.36.1:
201203
- Fixed setting of `ts_out` property of DbnFsm based on decoded metadata. This
202204
was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
203205
- Fixed decoding of `ts_out` with first records in DBNDecoder
@@ -208,7 +210,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
208210
## 0.57.0 - 2025-06-10
209211

210212
#### Enhancements
211-
- Upgraded `databento-dbn` to 0.36.0
213+
- Upgraded `databento-dbn` to 0.36.0:
212214
- Added missing Python type stubs for several leg properties of `InstrumentDefMsg`
213215

214216
#### Bug fixes
@@ -283,7 +285,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
283285
- Added `exchanges` parameter to `Reference.corporate_actions.get_range(...)`
284286
- Added `is_last` field to live subscription requests which will be used to improve
285287
the handling of split subscription requests
286-
- Upgraded `databento-dbn` to 0.35.0
288+
- Upgraded `databento-dbn` to 0.35.0:
287289
- This version delivers DBN version 3 (DBNv3), which is the new default
288290
- Improved the performance of the Python `DBNDecoder`
289291

@@ -300,7 +302,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
300302
## 0.53.0 - 2025-04-29
301303

302304
#### Enhancements
303-
- Upgraded `databento-dbn` to 0.33.1
305+
- Upgraded `databento-dbn` to 0.33.1:
304306
- Added `SystemCode` and `ErrorCode` enums to indicate types of system and error messages
305307
- Added `code()` methods to SystemMsg and ErrorMsg to retrieve the enum value if one exists and equivalent properties in Python
306308

@@ -311,7 +313,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
311313

312314
#### Enhancements
313315
- Added new optional `id` field to `SubscriptionRequest` class which will be used for improved error messages
314-
- Upgraded `databento-dbn` to 0.32.0
316+
- Upgraded `databento-dbn` to 0.32.0:
315317
- Fixed `RType` variant names in Python to match `Schema`
316318
- Added missing Python type declarations for `RType` variants
317319
- Fixed issue with Python `_hidden_fields` definition that caused `KeyError: _reserved1_00`
@@ -320,7 +322,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
320322
## 0.51.0 - 2025-04-08
321323

322324
#### Enhancements
323-
- Upgraded `databento-dbn` to 0.31.0
325+
- Upgraded `databento-dbn` to 0.31.0:
324326
- Fixed Python type annotation for `SystemMsg.is_heartbeat()` method that was previously annotated as a property
325327

326328
## 0.50.0 - 2025-03-18
@@ -346,7 +348,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
346348
- `UNDEF_STAT_QUANTITY`
347349
- `UNDEF_TIMESTAMP`
348350
- Added export of `BidAskPair` and `ConsolidatedBidAskPair` from `databento_dbn` to the root `databento` package
349-
- Upgraded `databento-dbn` to 0.29.0
351+
- Upgraded `databento-dbn` to 0.29.0:
350352
- Added `COMMODITY_SPOT` `InstrumentClass` variant
351353
- Improved handling of `datetime` and `date` objects in `start` and `end` parameters
352354

@@ -368,7 +370,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
368370
- Added export of `TradingEvent` enum from `databento_dbn` to the root `databento` package
369371
- Added new dataset `EQUS.MINI` and new publishers `EQUS.MINI.EQUS`, `XNYS.TRADES.EQUS`
370372
- Removed upper bound for supported `python` versions; the constraint is now `^3.9`
371-
- Upgraded `databento-dbn` to 0.27.0
373+
- Upgraded `databento-dbn` to 0.27.0:
372374
- Fixed export of `InstrumentDefMsgV3` to Python
373375

374376
#### Bug fixes
@@ -378,7 +380,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
378380
## 0.47.0 - 2024-12-17
379381

380382
#### Enhancements
381-
- Upgraded `databento-dbn` to 0.25.0
383+
- Upgraded `databento-dbn` to 0.25.0:
382384
- Added type aliases for `TBBOMsg`, `BBO1SMsg`, `BBO1MMsg`, `TCBBOMsg`, `CBBO1SMsg`,
383385
`CBBO1MMsg` in Python
384386
- Removed exports for `CBBOMsg` and `BBOMsg` in the root `databento` package in favor of aliased versions from `databento-dbn`
@@ -387,7 +389,7 @@ was preventing `ts_out` from being correctly decoded in the Python DBNDecoder
387389

388390
#### Enhancements
389391
- Removed deprecated `packaging` parameter from `Historical.batch.submit_job`. Job files can be downloaded individually or as zip files after the job completes
390-
- Upgraded `databento-dbn` to 0.24.0
392+
- Upgraded `databento-dbn` to 0.24.0:
391393
- Added handling for `UNDEF_TIMESTAMP` in `pretty_` timestamp getters for Python. They now return `None` in the case of `UNDEF_TIMESTAMP`
392394

393395
## 0.45.0 - 2024-11-12
@@ -397,7 +399,7 @@ This release adds support for Python 3.13.
397399
#### Enhancements
398400
- Added support for Python 3.13
399401
- Added new IntelligentCross venues `ASPN`, `ASMT`, and `ASPI`
400-
- Upgraded `databento-dbn` to 0.23.1
402+
- Upgraded `databento-dbn` to 0.23.1:
401403
- Fixed `pretty_activation` getter in `databento_dbn` returning `expiration` instead
402404
- Fixed some `pretty_` getters in `databento_dbn` didn't correctly handle `UNDEF_PRICE`
403405

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ 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.46.0",
13+
"databento-dbn~=0.47.0",
1414
"numpy>=1.23.5; python_version < '3.12'",
1515
"numpy>=1.26.0; python_version >= '3.12'",
16-
"pandas>=1.5.3",
16+
"pandas>=1.5.3,<4.0.0",
1717
"pip-system-certs>=4.0; platform_system == 'Windows'",
1818
"pyarrow>=13.0.0",
1919
"requests>=2.27.0",
@@ -50,6 +50,7 @@ mypy = "1.5.1"
5050
pytest = "^7.4.2"
5151
pytest-asyncio = "==0.21.1"
5252
ruff = "^0.0.291"
53+
tomli = "^2.0.1"
5354
types-requests = "^2.30.0.0"
5455
teamcity-messages = "^1.32"
5556

tests/test_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from datetime import date
88

99
import pytest
10-
import tomllib
10+
import tomli
1111

1212
import databento
1313
from tests import PROJECT_ROOT
@@ -43,7 +43,7 @@ def fixture_pyproject_version() -> str:
4343
"""
4444
# Arrange, Act, Assert
4545
with open(PROJECT_ROOT / "pyproject.toml", "rb") as pyproject:
46-
data = tomllib.load(pyproject)
46+
data = tomli.load(pyproject)
4747
return data["project"]["version"]
4848

4949

0 commit comments

Comments
 (0)