Skip to content

Commit 93da15b

Browse files
author
Zach Banks
committed
ADD: Add Publisher enums to client libraries
1 parent a062a43 commit 93da15b

File tree

15 files changed

+1208
-24
lines changed

15 files changed

+1208
-24
lines changed

databento/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
from databento.common import bentologging
2222
from databento.common.dbnstore import DBNStore
23-
from databento.common.enums import Dataset
2423
from databento.common.enums import Delivery
2524
from databento.common.enums import FeedMode
2625
from databento.common.enums import HistoricalGateway
@@ -33,6 +32,9 @@
3332
from databento.common.error import BentoError
3433
from databento.common.error import BentoHttpError
3534
from databento.common.error import BentoServerError
35+
from databento.common.publishers import Dataset
36+
from databento.common.publishers import Publisher
37+
from databento.common.publishers import Venue
3638
from databento.historical.api import API_VERSION
3739
from databento.historical.client import Historical
3840
from databento.live import DBNRecord
@@ -49,7 +51,9 @@
4951
"BentoHttpError",
5052
"BentoServerError",
5153
"Compression",
54+
"Publisher",
5255
"Dataset",
56+
"Venue",
5357
"Delivery",
5458
"Encoding",
5559
"FeedMode",

databento/common/enums.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,6 @@ class FeedMode(StringyMixin, str, Enum):
122122
LIVE = "live"
123123

124124

125-
@unique
126-
@coercible
127-
class Dataset(StringyMixin, str, Enum):
128-
"""
129-
Represents a dataset code (string identifier).
130-
"""
131-
132-
GLBX_MDP3 = "GLBX.MDP3"
133-
XNAS_ITCH = "XNAS.ITCH"
134-
135-
136125
@unique
137126
@coercible
138127
class SplitDuration(StringyMixin, str, Enum):

0 commit comments

Comments
 (0)