Skip to content

Commit 4b49919

Browse files
author
Zach Banks
committed
ADD: Add F_SNAPSHOT flag for replayed data
1 parent c57df4e commit 4b49919

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

databento/common/enums.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ class Flags(Enum):
136136

137137
# Last message in the packet from the venue for a given `product_id`
138138
F_LAST = 1 << 7
139+
# Message sourced from a replay, such as a snapshot server
140+
F_SNAPSHOT = 1 << 5
139141
# Aggregated price level message, not an individual order
140142
F_MBP = 1 << 4
141143
# The `ts_recv` value is inaccurate (clock issues or reordering)

databento/common/parsing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def parse_flags(value: int, apply_bitmask: bool = False) -> List[str]:
284284
285285
Possible values include:
286286
- F_LAST: Last message in the packet from the venue for a given `product_id`
287+
- F_SNAPSHOT: Message sourced from a replay, such as a snapshot server
287288
- F_MBP: Aggregated price level message, not an individual order
288289
- F_BAD_TS_RECV: The `ts_recv` value is inaccurate (clock issues or reordering)
289290

0 commit comments

Comments
 (0)