Skip to content

Commit a6f6df9

Browse files
ADD: Add new stats type for MWCB
1 parent d402045 commit a6f6df9

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Enhancements
66
- Added new publisher values for Cboe Titanium Cboe Global Indices Feed
7+
- Added `StatType` variants `MwcbLevel1`, `MwcbLevel2`, and `MwcbLevel3`
78

89
### Breaking changes
910
- Renamed the following Venue, Dataset, and Publisher:

include/databento/enums.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,15 @@ enum StatType : std::uint16_t {
444444
// The probable price of the last trade of an instrument published during the trading
445445
// session. `price` will be set.
446446
IndicativeClosePrice = 20,
447+
// The Market-Wide Circuit Breaker (MWCB) Level 1 threshold (7%), expressed as S&P 500
448+
// index points. `price` will be set.
449+
MwcbLevel1 = 21,
450+
// The Market-Wide Circuit Breaker (MWCB) Level 2 threshold (13%), expressed as S&P
451+
// 500 index points. `price` will be set.
452+
MwcbLevel2 = 22,
453+
// The Market-Wide Circuit Breaker (MWCB) Level 3 threshold (20%), expressed as S&P
454+
// 500 index points. `price` will be set.
455+
MwcbLevel3 = 23,
447456
// A venue specific volume statistic. Refer to the venue documentation for more
448457
// information.
449458
// `quantity` will be set.

src/enums.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,15 @@ const char* ToString(StatType stat_type) {
555555
case StatType::IndicativeClosePrice: {
556556
return "IndicativeClosePrice";
557557
}
558+
case StatType::MwcbLevel1: {
559+
return "MwcbLevel1";
560+
}
561+
case StatType::MwcbLevel2: {
562+
return "MwcbLevel2";
563+
}
564+
case StatType::MwcbLevel3: {
565+
return "MwcbLevel3";
566+
}
558567
case StatType::VenueSpecificVolume1: {
559568
return "VenueSpecificVolume1";
560569
}

0 commit comments

Comments
 (0)