Skip to content

Commit 30233a0

Browse files
committed
MOD: Upgrade databento_dbn version to 0.42.0
1 parent 9489fe9 commit 30233a0

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## 0.63.1 - TBD
44

5+
#### Enhancements
6+
- Upgraded `databento-dbn` to 0.42.0
7+
- Added `ts_index` and `pretty_ts_index` properties for records in Python which provides the timestamp that is most appropriate for indexing
8+
- Fixed type stub for `channel_id` to allow None
9+
510
#### Bug fixes
611
- Fixed type hint for `start` parameter in `Live.subscribe()`
712

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.36.1"
35+
- databento-dbn = "~0.42.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
@@ -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.41.0"
35+
databento-dbn = "~=0.42.0"
3636
numpy = [
3737
{version = ">=1.23.5", python = "<3.12"},
3838
{version = ">=1.26.0", python = "^3.12"}

tests/test_historical_data.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def test_mbo_fields() -> None:
1313
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
1414
fields.remove("record_size")
1515
fields.remove("size_hint")
16+
fields.remove("ts_index")
1617

1718
# Act
1819
difference = fields.symmetric_difference(struct._ordered_fields)
@@ -42,6 +43,7 @@ def test_mbp_fields(
4243
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
4344
fields.remove("record_size")
4445
fields.remove("size_hint")
46+
fields.remove("ts_index")
4547

4648
# Act
4749
difference = fields.symmetric_difference(struct._ordered_fields)
@@ -74,6 +76,7 @@ def test_ohlcv_fields(
7476
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
7577
fields.remove("record_size")
7678
fields.remove("size_hint")
79+
fields.remove("ts_index")
7780

7881
# Act
7982
difference = fields.symmetric_difference(struct._ordered_fields)
@@ -92,6 +95,7 @@ def test_trades_struct() -> None:
9295
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
9396
fields.remove("record_size")
9497
fields.remove("size_hint")
98+
fields.remove("ts_index")
9599

96100
# Act
97101
difference = fields.symmetric_difference(struct._ordered_fields)
@@ -110,6 +114,7 @@ def test_definition_struct() -> None:
110114
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
111115
fields.remove("record_size")
112116
fields.remove("size_hint")
117+
fields.remove("ts_index")
113118

114119
# Act
115120
difference = fields.symmetric_difference(struct._ordered_fields)
@@ -128,6 +133,7 @@ def test_imbalance_struct() -> None:
128133
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
129134
fields.remove("record_size")
130135
fields.remove("size_hint")
136+
fields.remove("ts_index")
131137

132138
# Act
133139
difference = fields.symmetric_difference(struct._ordered_fields)
@@ -146,6 +152,7 @@ def test_statistics_struct() -> None:
146152
fields = set(f for f in dir(struct) if not f.startswith(("_", "pretty_")))
147153
fields.remove("record_size")
148154
fields.remove("size_hint")
155+
fields.remove("ts_index")
149156

150157
# Act
151158
difference = fields.symmetric_difference(struct._ordered_fields)

0 commit comments

Comments
 (0)