Skip to content

Commit 8f9de0b

Browse files
committed
ADD: Add ARCX publisher
1 parent 9582238 commit 8f9de0b

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.19.2 - TBD
4+
5+
### Enhancements
6+
- Added `ARCX.PILLAR.ARCX` publisher
7+
38
## 0.19.1 - 2023-09-08
49

510
#### Bug fixes

databento/common/publishers.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,8 @@ class Publisher(StringyMixin, str, Enum):
692692
DBEQ Basic - IEX.
693693
DBEQ_BASIC_EPRL
694694
DBEQ Basic - MIAX Pearl.
695+
ARCX_PILLAR_ARCX
696+
NYSE Arca Integrated.
695697
696698
"""
697699

@@ -737,6 +739,7 @@ class Publisher(StringyMixin, str, Enum):
737739
DBEQ_BASIC_XCIS = "DBEQ.BASIC.XCIS"
738740
DBEQ_BASIC_IEXG = "DBEQ.BASIC.IEXG"
739741
DBEQ_BASIC_EPRL = "DBEQ.BASIC.EPRL"
742+
ARCX_PILLAR_ARCX = "ARCX.PILLAR.ARCX"
740743

741744
@classmethod
742745
def from_int(cls, value: int) -> Publisher:
@@ -827,6 +830,8 @@ def from_int(cls, value: int) -> Publisher:
827830
return Publisher.DBEQ_BASIC_IEXG
828831
if value == 42:
829832
return Publisher.DBEQ_BASIC_EPRL
833+
if value == 43:
834+
return Publisher.ARCX_PILLAR_ARCX
830835
raise ValueError(f"Integer value {value} does not correspond with any Publisher variant")
831836

832837
def to_int(self) -> int:
@@ -917,6 +922,8 @@ def to_int(self) -> int:
917922
return 41
918923
if self == Publisher.DBEQ_BASIC_EPRL:
919924
return 42
925+
if self == Publisher.ARCX_PILLAR_ARCX:
926+
return 43
920927
raise ValueError("Invalid Publisher")
921928
@property
922929
def venue(self) -> Venue:
@@ -1007,6 +1014,8 @@ def venue(self) -> Venue:
10071014
return Venue.IEXG
10081015
if self == Publisher.DBEQ_BASIC_EPRL:
10091016
return Venue.EPRL
1017+
if self == Publisher.ARCX_PILLAR_ARCX:
1018+
return Venue.ARCX
10101019
raise ValueError("Unexpected Publisher value")
10111020
@property
10121021
def dataset(self) -> Dataset:
@@ -1097,6 +1106,8 @@ def dataset(self) -> Dataset:
10971106
return Dataset.DBEQ_BASIC
10981107
if self == Publisher.DBEQ_BASIC_EPRL:
10991108
return Dataset.DBEQ_BASIC
1109+
if self == Publisher.ARCX_PILLAR_ARCX:
1110+
return Dataset.ARCX_PILLAR
11001111
raise ValueError("Unexpected Publisher value")
11011112

11021113
@property
@@ -1188,4 +1199,6 @@ def description(self) -> str:
11881199
return "DBEQ Basic - IEX"
11891200
if self == Publisher.DBEQ_BASIC_EPRL:
11901201
return "DBEQ Basic - MIAX Pearl"
1202+
if self == Publisher.ARCX_PILLAR_ARCX:
1203+
return "NYSE Arca Integrated"
11911204
raise ValueError("Unexpected Publisher value")

0 commit comments

Comments
 (0)