Skip to content

Commit fd2dfd0

Browse files
author
Siddha Kilaru
committed
ADD: Add new SystemCode enum UNSUBSCRIBE_ACK
1 parent 368d430 commit fd2dfd0

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.67.0 - Upcoming
4+
5+
### Enhancements
6+
- Added `UnsubscribeAck` to the `SystemCode` enum for acknowledging unsubscribe requests
7+
38
## 0.66.0 - 2026-08-25
49

510
### Enhancements

include/databento/enums.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ enum SystemCode : std::uint8_t {
700700
// Signals that all records for interval-based schemas have been published for the
701701
// given timestamp.
702702
EndOfInterval = 4,
703+
// An acknowledgement of an unsubscribe request.
704+
UnsubscribeAck = 5,
703705
// No system code was specified or this record was upgraded from a version 1 struct
704706
// where
705707
// the code field didn't exist.

src/enums.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,9 @@ const char* ToString(SystemCode system_code) {
875875
case SystemCode::EndOfInterval: {
876876
return "end_of_interval";
877877
}
878+
case SystemCode::UnsubscribeAck: {
879+
return "unsubscribe_ack";
880+
}
878881
case SystemCode::Unset: {
879882
return "unset";
880883
}
@@ -1345,6 +1348,9 @@ SystemCode FromString(const std::string& str) {
13451348
if (str == "end_of_interval") {
13461349
return SystemCode::EndOfInterval;
13471350
}
1351+
if (str == "unsubscribe_ack") {
1352+
return SystemCode::UnsubscribeAck;
1353+
}
13481354
if (str == "unset") {
13491355
return SystemCode::Unset;
13501356
}

0 commit comments

Comments
 (0)