Skip to content

Commit

Permalink
ADD: Add top-of-book flag
Browse files Browse the repository at this point in the history
  • Loading branch information
threecgreen committed Oct 20, 2023
1 parent 43b3f50 commit 6d747a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Added `ToIso8601` for `UnixNanos` for converting to human-readable ISO8601 datetime
string
- Added `kUndefTimestamp` and `kUndefStatQuantity` constants
- Added flag `kTob` for top-of-book messages

## 0.13.0 - 2023-09-21
### Enhancements
Expand Down
2 changes: 2 additions & 0 deletions include/databento/flag_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class FlagSet {
// Indicates it's the last message in the packet from the venue for a given
// `instrument_id`.
static constexpr Repr kLast = 1 << 7;
// Indicates a top-of-book message, not an individual order.
static constexpr Repr kTob = 1 << 6;
// Indicates the message was sourced from a replay, such as a snapshot
// server.
static constexpr Repr kSnapshot = 1 << 5;
Expand Down

0 comments on commit 6d747a4

Please sign in to comment.