Skip to content

Commit 6abd012

Browse files
committed
ADD: Add none action
1 parent 22af4a0 commit 6abd012

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.24.0 - TBD
4+
5+
### Enhancements
6+
- Added new `None` `Action` variant that will be gradually rolled out
7+
to historical and live `GLBX.MDP3` data
8+
39
## 0.23.0 - 2024-09-25
410

511
### Enhancements

include/databento/enums.hpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,11 @@ enum RType : std::uint8_t {
149149
} // namespace rtype
150150
using rtype::RType;
151151

152-
// A tick action.
152+
// An order event or order book operation.
153153
//
154-
// Additional actions may be added in the future.
154+
// For example usage see:
155+
// - https://databento.com/docs/examples/order-book/order-actions
156+
// - https://databento.com/docs/examples/order-book/order-tracking
155157
namespace action {
156158
// enum because future variants may be added in the future.
157159
enum Action : char {
@@ -167,6 +169,8 @@ enum Action : char {
167169
Add = 'A',
168170
// Reset the book; clear all orders for an instrument.
169171
Clear = 'R',
172+
// Has no effect on the book, but may carry `flags` or other information.
173+
None = 'N',
170174
};
171175
} // namespace action
172176
using action::Action;

src/enums.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ const char* ToString(Action action) {
354354
case Action::Clear: {
355355
return "Clear";
356356
}
357+
case Action::None: {
358+
return "None";
359+
}
357360
default: {
358361
return "Unknown";
359362
}

0 commit comments

Comments
 (0)