Skip to content

Commit e396111

Browse files
committed
MOD: Upgrade databento_dbn to 0.22.0
1 parent bd0eca4 commit e396111

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-5
lines changed

CHANGELOG.md

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

33
## 0.43.0 - TBD
44

5+
#### Enhancements
6+
- Upgraded `databento-dbn` to 0.22.0
7+
58
#### Breaking changes
69
- Removed support for Python 3.8 due to end of life
710

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

databento/common/constants.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44
from databento_dbn import BBOMsg
55
from databento_dbn import CBBOMsg
6+
from databento_dbn import CMBP1Msg
67
from databento_dbn import ImbalanceMsg
78
from databento_dbn import InstrumentDefMsg
89
from databento_dbn import InstrumentDefMsgV1
@@ -42,7 +43,7 @@
4243
Schema.STATUS: StatusMsg,
4344
Schema.TBBO: MBP1Msg,
4445
Schema.TRADES: TradeMsg,
45-
Schema.CBBO: CBBOMsg,
46+
Schema.CMBP_1: CMBP1Msg,
4647
Schema.CBBO_1S: CBBOMsg,
4748
Schema.CBBO_1M: CBBOMsg,
4849
Schema.TCBBO: CBBOMsg,
@@ -64,7 +65,7 @@
6465
Schema.STATUS: StatusMsg,
6566
Schema.TBBO: MBP1Msg,
6667
Schema.TRADES: TradeMsg,
67-
Schema.CBBO: CBBOMsg,
68+
Schema.CMBP_1: CMBP1Msg,
6869
Schema.CBBO_1S: CBBOMsg,
6970
Schema.CBBO_1M: CBBOMsg,
7071
Schema.TCBBO: CBBOMsg,

databento/common/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
DBNRecord = Union[
1313
databento_dbn.BBOMsg,
1414
databento_dbn.CBBOMsg,
15+
databento_dbn.CMBP1Msg,
1516
databento_dbn.MBOMsg,
1617
databento_dbn.MBP1Msg,
1718
databento_dbn.MBP10Msg,

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.20.1"
35+
databento-dbn = "0.22.0"
3636
numpy = [
3737
{version = ">=1.23.5", python = "<3.12"},
3838
{version = "^1.26.0", python = "^3.12"}

tests/test_common_symbology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def create_symbol_mapping_message(
151151
SymbolMappingMsg
152152
153153
"""
154-
return SymbolMappingMsg( # type: ignore [call-arg]
154+
return SymbolMappingMsg(
155155
publisher_id=publisher_id,
156156
instrument_id=instrument_id,
157157
ts_event=ts_event,

tests/test_live_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,7 @@ async def test_live_stream_with_reuse(
15201520
"cbbo-1s",
15211521
"cbbo-1m",
15221522
"tcbbo",
1523+
"cmbp-1",
15231524
"bbo-1s",
15241525
"bbo-1m",
15251526
):

0 commit comments

Comments
 (0)