Skip to content

Commit 2814e04

Browse files
committed
ADD: Add stub data for BBO-1s BBO-1m and Status
1 parent fa9de8c commit 2814e04

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

databento/common/constants.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from databento_dbn import OHLCVMsg
1414
from databento_dbn import Schema
1515
from databento_dbn import StatMsg
16+
from databento_dbn import StatusMsg
1617
from databento_dbn import TradeMsg
1718

1819
from databento.common.types import DBNRecord
@@ -39,6 +40,7 @@
3940
Schema.OHLCV_1D: OHLCVMsg,
4041
Schema.OHLCV_EOD: OHLCVMsg,
4142
Schema.STATISTICS: StatMsg,
43+
Schema.STATUS: StatusMsg,
4244
Schema.TBBO: MBP1Msg,
4345
Schema.TRADES: TradeMsg,
4446
Schema.CBBO: CBBOMsg,
@@ -60,6 +62,13 @@
6062
Schema.OHLCV_1H: OHLCVMsg,
6163
Schema.OHLCV_1D: OHLCVMsg,
6264
Schema.STATISTICS: StatMsg,
65+
Schema.STATUS: StatusMsg,
6366
Schema.TBBO: MBP1Msg,
6467
Schema.TRADES: TradeMsg,
68+
Schema.CBBO: CBBOMsg,
69+
Schema.CBBO_1S: CBBOMsg,
70+
Schema.CBBO_1M: CBBOMsg,
71+
Schema.TCBBO: CBBOMsg,
72+
Schema.BBO_1S: MBP1Msg,
73+
Schema.BBO_1M: MBP1Msg,
6574
}
267 Bytes
Binary file not shown.
268 Bytes
Binary file not shown.
188 Bytes
Binary file not shown.

tests/data/generator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
(Schema.MBO, ["ESH1"], "2020-12-28"),
3030
(Schema.MBP_1, ["ESH1"], "2020-12-28"),
3131
(Schema.MBP_10, ["ESH1"], "2020-12-28"),
32+
(Schema.BBO_1S, ["ESH1"], "2020-12-28"),
33+
(Schema.BBO_1M, ["ESH1"], "2020-12-28"),
3234
(Schema.TBBO, ["ESH1"], "2020-12-28"),
3335
(Schema.TRADES, ["ESH1"], "2020-12-28"),
3436
(Schema.OHLCV_1S, ["ESH1"], "2020-12-28"),
@@ -37,6 +39,7 @@
3739
(Schema.OHLCV_1D, ["ESH1"], "2020-12-28"),
3840
(Schema.DEFINITION, ["ESH1"], "2020-12-28"),
3941
(Schema.STATISTICS, ["ESH1"], "2020-12-28"),
42+
(Schema.STATUS, ["ESH1"], "2020-12-28"),
4043
],
4144
Dataset.XNAS_ITCH: [
4245
(Schema.MBO, ["NVDA"], "2020-12-28"),

tests/test_live_client.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,9 +1487,6 @@ async def test_live_stream_with_reconnect(
14871487
14881488
"""
14891489
# Arrange
1490-
# TODO: Remove when status schema is available
1491-
if schema == "status":
1492-
pytest.skip("no stub data for status schema")
14931490
if schema == "ohlcv-eod":
14941491
pytest.skip("no stub data for ohlcv-eod schema")
14951492
if schema == "imbalance":
@@ -1500,10 +1497,6 @@ async def test_live_stream_with_reconnect(
15001497
pytest.skip("no stub data for cbbo-1s schema")
15011498
if schema == "cbbo-1m":
15021499
pytest.skip("no stub data for cbbo-1m schema")
1503-
if schema == "bbo-1s":
1504-
pytest.skip("no stub data for bbo-1s schema")
1505-
if schema == "bbo-1m":
1506-
pytest.skip("no stub data for bbo-1m schema")
15071500
if schema == "tcbbo":
15081501
pytest.skip("no stub data for tcbbo schema")
15091502

0 commit comments

Comments
 (0)