Skip to content

Commit d0d358b

Browse files
committed
ADD: Add additional RecordFlags to Python
1 parent 8a88b30 commit d0d358b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#### Enhancements
66
- Increase `Live` session connection & authentication timeouts
7+
- Added new `F_TOB` and `F_MAYBE_BAD_BOOK` variants to `RecordFlags`
78

89
#### Bug fixes
910
- Fixed an issue where calling `Live.subscribe` from a `Live` client callback would cause a deadlock

databento/common/enums.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,24 @@ class RecordFlags(StringyMixin, IntFlag): # type: ignore
199199
200200
F_LAST
201201
Last message in the packet from the venue for a given `instrument_id`.
202+
F_TOB
203+
Indicates a top-of-book message, not an individual order.
202204
F_SNAPSHOT
203205
Message sourced from a replay, such as a snapshot server.
204206
F_MBP
205207
Aggregated price level message, not an individual order.
206208
F_BAD_TS_RECV
207209
The `ts_recv` value is inaccurate (clock issues or reordering).
210+
F_MAYBE_BAD_BOOK
211+
Indicates an unrecoverable gap was detected in the channel.
208212
209213
Other bits are reserved and have no current meaning.
210214
211215
"""
212216

213217
F_LAST = 128
218+
F_TOB = 64
214219
F_SNAPSHOT = 32
215220
F_MBP = 16
216221
F_BAD_TS_RECV = 8
222+
F_MAYBE_BAD_BOOK = 4

0 commit comments

Comments
 (0)