Skip to content

Commit 4d2cf84

Browse files
ADD: Add new stats type for MWCB
1 parent b125ff4 commit 4d2cf84

4 files changed

Lines changed: 22 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:

python/python/databento_dbn/_lib.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,12 @@ class StatType(Enum):
840840
INDICATIVE_CLOSE_PRICE
841841
The probable price of the last trade of an instrument published during the trading
842842
session. `price` will be set.
843+
MWCB_LEVEL_1
844+
The Market-Wide Circuit Breaker (MWCB) Level 1 threshold (7%), expressed as S&P 500 index points. `price` will be set.
845+
MWCB_LEVEL_2
846+
The Market-Wide Circuit Breaker (MWCB) Level 2 threshold (13%), expressed as S&P 500 index points. `price` will be set.
847+
MWCB_LEVEL_3
848+
The Market-Wide Circuit Breaker (MWCB) Level 3 threshold (20%), expressed as S&P 500 index points. `price` will be set.
843849
VENUE_SPECIFIC_VOLUME_1
844850
A venue specific volume statistic. Refer to the venue documentation for more information.
845851
`quantity` will be set.
@@ -869,6 +875,9 @@ class StatType(Enum):
869875
LOWER_PRICE_LIMIT: int
870876
BLOCK_VOLUME: int
871877
INDICATIVE_CLOSE_PRICE: int
878+
MWCB_LEVEL_1: int
879+
MWCB_LEVEL_2: int
880+
MWCB_LEVEL_3: int
872881
VENUE_SPECIFIC_VOLUME_1: int
873882
VENUE_SPECIFIC_PRICE_1: int
874883

rust/dbn/src/enums.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,15 @@ pub enum StatType {
10461046
/// session. `price` will be set.
10471047
#[pyo3(name = "INDICATIVE_CLOSE_PRICE")]
10481048
IndicativeClosePrice = 20,
1049+
/// The Market-Wide Circuit Breaker (MWCB) Level 1 threshold (7%), expressed as S&P 500 index points. `price` will be set.
1050+
#[pyo3(name = "MWCB_LEVEL_1")]
1051+
MwcbLevel1 = 21,
1052+
/// The Market-Wide Circuit Breaker (MWCB) Level 2 threshold (13%), expressed as S&P 500 index points. `price` will be set.
1053+
#[pyo3(name = "MWCB_LEVEL_2")]
1054+
MwcbLevel2 = 22,
1055+
/// The Market-Wide Circuit Breaker (MWCB) Level 3 threshold (20%), expressed as S&P 500 index points. `price` will be set.
1056+
#[pyo3(name = "MWCB_LEVEL_3")]
1057+
MwcbLevel3 = 23,
10491058
/// A venue specific volume statistic. Refer to the venue documentation for more information.
10501059
/// `quantity` will be set.
10511060
#[pyo3(name = "VENUE_SPECIFIC_VOLUME_1")]

rust/dbn/src/python/enums.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,9 @@ impl StatType {
978978
Self::LowerPriceLimit => "LOWER_PRICE_LIMIT",
979979
Self::BlockVolume => "BLOCK_VOLUME",
980980
Self::IndicativeClosePrice => "INDICATIVE_CLOSE_PRICE",
981+
Self::MwcbLevel1 => "MWCB_LEVEL_1",
982+
Self::MwcbLevel2 => "MWCB_LEVEL_2",
983+
Self::MwcbLevel3 => "MWCB_LEVEL_3",
981984
Self::VenueSpecificVolume1 => "VENUE_SPECIFIC_VOLUME_1",
982985
Self::VenueSpecificPrice1 => "VENUE_SPECIFIC_PRICE_1",
983986
}

0 commit comments

Comments
 (0)