Skip to content

Commit 72fe8da

Browse files
committed
ADD: Add additional flags to C++ client
1 parent d702901 commit 72fe8da

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

CHANGELOG.md

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

33
## 0.6.0 - TBD
44
- Added support for imbalance schema
5+
- Added support for decoding `ts_out` field
56
- Changed `Historical::BatchDownload` to return the paths of the downloaded files
7+
- Added flags `kSnapshot` and `kMaybeBadBook`
68

79
## 0.5.0 - 2023-03-13
810
- Added `Historical::MetadataGetDatasetRange`

include/databento/flag_set.hpp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66
#include <string>
77

88
namespace databento {
9-
/// Transparent wrapper around the bit flags used in several DBN record types.
9+
// Transparent wrapper around the bit flags used in several DBN record types.
1010
class FlagSet {
1111
public:
1212
using Repr = std::uint8_t;
13-
// Last message in the packet from the venue for a given `product_id`.
13+
// Indicates it's the last message in the packet from the venue for a given
14+
// `product_id`.
1415
static constexpr Repr kLast = 1 << 7;
15-
// Aggregated price level message, not an individual order.
16+
// Indicates the message was sourced from a replay, such as a snapshot
17+
// server.
18+
static constexpr Repr kSnapshot = 1 << 5;
19+
// Indicates an aggregated price level message, not an individual order.
1620
static constexpr Repr kMbp = 1 << 4;
17-
// The `ts_recv` value is inaccurate due to clock issues or packet reordering.
21+
// Indicates the `ts_recv` value is inaccurate due to clock issues or packet
22+
// reordering.
1823
static constexpr Repr kBadTsRecv = 1 << 3;
24+
// Indicates an unrecoverable gap was detected in the channel.
25+
static constexpr Repr kMaybeBadBook = 1 << 2;
1926

2027
friend std::ostream& operator<<(std::ostream&, FlagSet);
2128

0 commit comments

Comments
 (0)