Skip to content

Commit 98ce544

Browse files
committed
ADD: Add commodity spot instrument class
1 parent c89b5c8 commit 98ce544

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
- Added `Subscriptions()` getter methods to `LiveBlocking` and `LiveThreaded` for
99
getting all active subscriptions
1010

11+
### Breaking changes
12+
- Added `CommoditySpot` `InstrumentClass` variant
13+
1114
## 0.29.0 - 2025-02-04
1215

1316
### Enhancements

include/databento/enums.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ enum InstrumentClass : char {
191191
FutureSpread = 'S',
192192
OptionSpread = 'T',
193193
FxSpot = 'X',
194+
CommoditySpot = 'Y',
194195
};
195196
} // namespace instrument_class
196197
using instrument_class::InstrumentClass;

src/enums.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ const char* ToString(InstrumentClass instrument_class) {
392392
case instrument_class::FxSpot: {
393393
return "FxSpot";
394394
}
395+
case instrument_class::CommoditySpot: {
396+
return "CommoditySpot";
397+
}
395398
default: {
396399
return "Unknown";
397400
}

0 commit comments

Comments
 (0)