Skip to content

Commit b914509

Browse files
author
Jack Culhane
committed
ADD: Add new publisher for Cboe Futures off market
1 parent 8c5c2b7 commit b914509

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

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

3+
## 0.70.0 - TBD
4+
5+
#### Enhancements
6+
- Added new off-market publisher for Cboe Futures Exchange (`XCBF_PITCH_XOFF`)
7+
38
## 0.69.0 - 2026-01-13
49

510
#### Enhancements

databento/common/publishers.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,8 @@ class Publisher(StringyMixin, str, Enum):
11161116
European Energy Exchange EOBI - Off-Market Trades.
11171117
XCBF_PITCH_XCBF
11181118
Cboe Futures Exchange.
1119+
XCBF_PITCH_XOFF
1120+
Cboe Futures Exchange - Off-Market Trades.
11191121
11201122
"""
11211123

@@ -1224,6 +1226,7 @@ class Publisher(StringyMixin, str, Enum):
12241226
XEUR_EOBI_XOFF = "XEUR.EOBI.XOFF"
12251227
XEEE_EOBI_XOFF = "XEEE.EOBI.XOFF"
12261228
XCBF_PITCH_XCBF = "XCBF.PITCH.XCBF"
1229+
XCBF_PITCH_XOFF = "XCBF.PITCH.XOFF"
12271230

12281231
@classmethod
12291232
def from_int(cls, value: int) -> Publisher:
@@ -1440,6 +1443,8 @@ def from_int(cls, value: int) -> Publisher:
14401443
return Publisher.XEEE_EOBI_XOFF
14411444
if value == 105:
14421445
return Publisher.XCBF_PITCH_XCBF
1446+
if value == 106:
1447+
return Publisher.XCBF_PITCH_XOFF
14431448
raise ValueError(f"Integer value {value} does not correspond with any Publisher variant")
14441449

14451450
def to_int(self) -> int:
@@ -1656,6 +1661,8 @@ def to_int(self) -> int:
16561661
return 104
16571662
if self == Publisher.XCBF_PITCH_XCBF:
16581663
return 105
1664+
if self == Publisher.XCBF_PITCH_XOFF:
1665+
return 106
16591666
raise ValueError("Invalid Publisher")
16601667

16611668
@property
@@ -1873,6 +1880,8 @@ def venue(self) -> Venue:
18731880
return Venue.XOFF
18741881
if self == Publisher.XCBF_PITCH_XCBF:
18751882
return Venue.XCBF
1883+
if self == Publisher.XCBF_PITCH_XOFF:
1884+
return Venue.XOFF
18761885
raise ValueError("Unexpected Publisher value")
18771886

18781887
@property
@@ -2090,6 +2099,8 @@ def dataset(self) -> Dataset:
20902099
return Dataset.XEEE_EOBI
20912100
if self == Publisher.XCBF_PITCH_XCBF:
20922101
return Dataset.XCBF_PITCH
2102+
if self == Publisher.XCBF_PITCH_XOFF:
2103+
return Dataset.XCBF_PITCH
20932104
raise ValueError("Unexpected Publisher value")
20942105

20952106
@property
@@ -2307,4 +2318,6 @@ def description(self) -> str:
23072318
return "European Energy Exchange EOBI - Off-Market Trades"
23082319
if self == Publisher.XCBF_PITCH_XCBF:
23092320
return "Cboe Futures Exchange"
2321+
if self == Publisher.XCBF_PITCH_XOFF:
2322+
return "Cboe Futures Exchange - Off-Market Trades"
23102323
raise ValueError("Unexpected Publisher value")

0 commit comments

Comments
 (0)