Skip to content

Commit c7f98f4

Browse files
author
Jack Culhane
committed
ADD: Add new StatType enum variants for XCBF.PITCH
1 parent d45547a commit c7f98f4

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
### Enhancements
66
- Added new off-market publisher for Cboe Futures Exchange (`XCBF_PITCH_XOFF`)
7+
- Added new `StatType` variants to be used by `XCBF.PITCH` dataset:
8+
- `UpperPriceLimit`
9+
- `LowerPriceLimit`
10+
- `BlockVolume`
11+
- `VenueSpecificVolume1`
712

813
## 0.45.0 - 2025-12-10
914

include/databento/enums.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,20 @@ enum StatType : std::uint16_t {
416416
// official opening auction nor the official closing auction. `price` will be set.
417417
// `quantity` will be set when provided by the venue.
418418
UncrossingPrice = 16,
419+
// The exchange defined upper price limit. `price` will be set with the standard
420+
// precision.
421+
UpperPriceLimit = 17,
422+
// The exchange defined lower price limit. `price` will be set with the standard
423+
// precision.
424+
LowerPriceLimit = 18,
425+
// The number of Block contracts cleared for an instrument on the previous trading
426+
// date.
427+
// `quantity` will be set. `ts_ref` will indicate the trading date of the volume.
428+
BlockVolume = 19,
429+
// A venue specific volume statistic. Refer to the venue documentation for more
430+
// information.
431+
// `quantity` will be set.
432+
VenueSpecificVolume1 = 10001,
419433
};
420434
} // namespace stat_type
421435
using stat_type::StatType;

src/enums.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,18 @@ const char* ToString(StatType stat_type) {
520520
case StatType::UncrossingPrice: {
521521
return "UncrossingPrice";
522522
}
523+
case StatType::UpperPriceLimit: {
524+
return "UpperPriceLimit";
525+
}
526+
case StatType::LowerPriceLimit: {
527+
return "LowerPriceLimit";
528+
}
529+
case StatType::BlockVolume: {
530+
return "BlockVolume";
531+
}
532+
case StatType::VenueSpecificVolume1: {
533+
return "VenueSpecificVolume1";
534+
}
523535
default: {
524536
return "Unknown";
525537
}

0 commit comments

Comments
 (0)