Skip to content

Commit c71cc19

Browse files
author
Siddha Kilaru
committed
ADD: Add InstrumentClass, IndicativeClosePrice
1 parent 2e25903 commit c71cc19

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

CHANGELOG.md

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

3+
## 0.56.0 - TBD
4+
5+
### Enhancements
6+
- Added `Index` `InstrumentClass` variant
7+
- Added `StatType` variants `IndicativeClosePrice` and `VenueSpecificPrice1`
8+
39
## 0.55.0 - 2026-04-28
410

511
### Enhancements

include/databento/enums.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ enum InstrumentClass : char {
171171
Call = 'C',
172172
// A future.
173173
Future = 'F',
174+
// An index.
175+
Index = 'I',
174176
// A stock.
175177
Stock = 'K',
176178
// A spread composed of multiple instrument classes.
@@ -436,10 +438,17 @@ enum StatType : std::uint16_t {
436438
// date.
437439
// `quantity` will be set. `ts_ref` will indicate the trading date of the volume.
438440
BlockVolume = 19,
441+
// The probable price of the last trade of an instrument published during the trading
442+
// session. `price` will be set.
443+
IndicativeClosePrice = 20,
439444
// A venue specific volume statistic. Refer to the venue documentation for more
440445
// information.
441446
// `quantity` will be set.
442447
VenueSpecificVolume1 = 10001,
448+
// A venue specific price statistic. Refer to the venue documentation for more
449+
// information.
450+
// `price` will be set.
451+
VenueSpecificPrice1 = 10002,
443452
};
444453
} // namespace stat_type
445454
using stat_type::StatType;

src/enums.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ const char* ToString(InstrumentClass instrument_class) {
253253
case InstrumentClass::Future: {
254254
return "Future";
255255
}
256+
case InstrumentClass::Index: {
257+
return "Index";
258+
}
256259
case InstrumentClass::Stock: {
257260
return "Stock";
258261
}
@@ -546,9 +549,15 @@ const char* ToString(StatType stat_type) {
546549
case StatType::BlockVolume: {
547550
return "BlockVolume";
548551
}
552+
case StatType::IndicativeClosePrice: {
553+
return "IndicativeClosePrice";
554+
}
549555
case StatType::VenueSpecificVolume1: {
550556
return "VenueSpecificVolume1";
551557
}
558+
case StatType::VenueSpecificPrice1: {
559+
return "VenueSpecificPrice1";
560+
}
552561
default: {
553562
return "Unknown";
554563
}

0 commit comments

Comments
 (0)