Skip to content

Commit e0a40bf

Browse files
author
Dane Rigby
committed
ADD: Update clients to support year split
1 parent edda55c commit e0a40bf

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

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

3-
### 0.55.0 - TBD
3+
## 0.55.0 - TBD
44

5-
##### Enhancements
5+
### Enhancements
66
- Added new publisher values for Cboe Titanium Cboe Global Indices Feed
7+
- Added `Year` to `SplitDuration` enum for yearly historical batch job submissions
78

89
## 0.54.0 - 2026-04-21
910

include/databento/enums.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ enum class SplitDuration : std::uint8_t {
2424
Day = 0,
2525
Week,
2626
Month,
27+
Year,
2728
None,
2829
};
2930

src/enums.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ const char* ToString(SplitDuration duration_interval) {
4848
case SplitDuration::Month: {
4949
return "month";
5050
}
51+
case SplitDuration::Year: {
52+
return "year";
53+
}
5154
case SplitDuration::None: {
5255
return "none";
5356
}
@@ -979,6 +982,9 @@ SplitDuration FromString(const std::string& str) {
979982
if (str == "month") {
980983
return SplitDuration::Month;
981984
}
985+
if (str == "year") {
986+
return SplitDuration::Year;
987+
}
982988
if (str == "none") {
983989
return SplitDuration::None;
984990
}

0 commit comments

Comments
 (0)