Skip to content

Commit df58449

Browse files
FIX: Fix TRF publishers to point to source
1 parent 6803051 commit df58449

File tree

2 files changed

+35
-28
lines changed

2 files changed

+35
-28
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
- Removed live session ID parsing to `int`, that could cause a session to fail when
77
nothing was wrong
88

9+
#### Breaking changes
10+
- Renamed publishers from deprecated datasets to their respective sources (`XNAS.NLS`
11+
and `XNYS.TRADES` respectively)
12+
13+
#### Deprecations
14+
- Deprecated dataset values `FINN.NLS` and `FINY.TRADES`
15+
916
## 0.31.1 - 2024-03-20
1017

1118
#### Enhancements

databento/common/publishers.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@ class Dataset(StringyMixin, str, Enum):
458458
EPRL_DOM
459459
MIAX Pearl Depth.
460460
FINN_NLS
461-
FINRA/Nasdaq TRF.
461+
FINRA/Nasdaq TRF (DEPRECATED).
462462
FINY_TRADES
463-
FINRA/NYSE TRF.
463+
FINRA/NYSE TRF (DEPRECATED).
464464
OPRA_PILLAR
465465
OPRA Binary.
466466
DBEQ_BASIC
@@ -690,9 +690,9 @@ def description(self) -> str:
690690
if self == Dataset.EPRL_DOM:
691691
return "MIAX Pearl Depth"
692692
if self == Dataset.FINN_NLS:
693-
return "FINRA/Nasdaq TRF"
693+
return "FINRA/Nasdaq TRF (DEPRECATED)"
694694
if self == Dataset.FINY_TRADES:
695-
return "FINRA/NYSE TRF"
695+
return "FINRA/NYSE TRF (DEPRECATED)"
696696
if self == Dataset.OPRA_PILLAR:
697697
return "OPRA Binary"
698698
if self == Dataset.DBEQ_BASIC:
@@ -758,11 +758,11 @@ class Publisher(StringyMixin, str, Enum):
758758
MEMX Memoir Depth.
759759
EPRL_DOM_EPRL
760760
MIAX Pearl Depth.
761-
FINN_NLS_FINN
761+
XNAS_NLS_FINN
762762
FINRA/Nasdaq TRF Carteret.
763-
FINN_NLS_FINC
763+
XNAS_NLS_FINC
764764
FINRA/Nasdaq TRF Chicago.
765-
FINY_TRADES_FINY
765+
XNYS_TRADES_FINY
766766
FINRA/NYSE TRF.
767767
OPRA_PILLAR_AMXO
768768
OPRA - NYSE American.
@@ -905,9 +905,9 @@ class Publisher(StringyMixin, str, Enum):
905905
XCIS_TRADES_XCIS = "XCIS.TRADES.XCIS"
906906
MEMX_MEMOIR_MEMX = "MEMX.MEMOIR.MEMX"
907907
EPRL_DOM_EPRL = "EPRL.DOM.EPRL"
908-
FINN_NLS_FINN = "FINN.NLS.FINN"
909-
FINN_NLS_FINC = "FINN.NLS.FINC"
910-
FINY_TRADES_FINY = "FINY.TRADES.FINY"
908+
XNAS_NLS_FINN = "XNAS.NLS.FINN"
909+
XNAS_NLS_FINC = "XNAS.NLS.FINC"
910+
XNYS_TRADES_FINY = "XNYS.TRADES.FINY"
911911
OPRA_PILLAR_AMXO = "OPRA.PILLAR.AMXO"
912912
OPRA_PILLAR_XBOX = "OPRA.PILLAR.XBOX"
913913
OPRA_PILLAR_XCBO = "OPRA.PILLAR.XCBO"
@@ -1008,11 +1008,11 @@ def from_int(cls, value: int) -> Publisher:
10081008
if value == 16:
10091009
return Publisher.EPRL_DOM_EPRL
10101010
if value == 17:
1011-
return Publisher.FINN_NLS_FINN
1011+
return Publisher.XNAS_NLS_FINN
10121012
if value == 18:
1013-
return Publisher.FINN_NLS_FINC
1013+
return Publisher.XNAS_NLS_FINC
10141014
if value == 19:
1015-
return Publisher.FINY_TRADES_FINY
1015+
return Publisher.XNYS_TRADES_FINY
10161016
if value == 20:
10171017
return Publisher.OPRA_PILLAR_AMXO
10181018
if value == 21:
@@ -1173,11 +1173,11 @@ def to_int(self) -> int:
11731173
return 15
11741174
if self == Publisher.EPRL_DOM_EPRL:
11751175
return 16
1176-
if self == Publisher.FINN_NLS_FINN:
1176+
if self == Publisher.XNAS_NLS_FINN:
11771177
return 17
1178-
if self == Publisher.FINN_NLS_FINC:
1178+
if self == Publisher.XNAS_NLS_FINC:
11791179
return 18
1180-
if self == Publisher.FINY_TRADES_FINY:
1180+
if self == Publisher.XNYS_TRADES_FINY:
11811181
return 19
11821182
if self == Publisher.OPRA_PILLAR_AMXO:
11831183
return 20
@@ -1340,11 +1340,11 @@ def venue(self) -> Venue:
13401340
return Venue.MEMX
13411341
if self == Publisher.EPRL_DOM_EPRL:
13421342
return Venue.EPRL
1343-
if self == Publisher.FINN_NLS_FINN:
1343+
if self == Publisher.XNAS_NLS_FINN:
13441344
return Venue.FINN
1345-
if self == Publisher.FINN_NLS_FINC:
1345+
if self == Publisher.XNAS_NLS_FINC:
13461346
return Venue.FINC
1347-
if self == Publisher.FINY_TRADES_FINY:
1347+
if self == Publisher.XNYS_TRADES_FINY:
13481348
return Venue.FINY
13491349
if self == Publisher.OPRA_PILLAR_AMXO:
13501350
return Venue.AMXO
@@ -1507,12 +1507,12 @@ def dataset(self) -> Dataset:
15071507
return Dataset.MEMX_MEMOIR
15081508
if self == Publisher.EPRL_DOM_EPRL:
15091509
return Dataset.EPRL_DOM
1510-
if self == Publisher.FINN_NLS_FINN:
1511-
return Dataset.FINN_NLS
1512-
if self == Publisher.FINN_NLS_FINC:
1513-
return Dataset.FINN_NLS
1514-
if self == Publisher.FINY_TRADES_FINY:
1515-
return Dataset.FINY_TRADES
1510+
if self == Publisher.XNAS_NLS_FINN:
1511+
return Dataset.XNAS_NLS
1512+
if self == Publisher.XNAS_NLS_FINC:
1513+
return Dataset.XNAS_NLS
1514+
if self == Publisher.XNYS_TRADES_FINY:
1515+
return Dataset.XNYS_TRADES
15161516
if self == Publisher.OPRA_PILLAR_AMXO:
15171517
return Dataset.OPRA_PILLAR
15181518
if self == Publisher.OPRA_PILLAR_XBOX:
@@ -1674,11 +1674,11 @@ def description(self) -> str:
16741674
return "MEMX Memoir Depth"
16751675
if self == Publisher.EPRL_DOM_EPRL:
16761676
return "MIAX Pearl Depth"
1677-
if self == Publisher.FINN_NLS_FINN:
1677+
if self == Publisher.XNAS_NLS_FINN:
16781678
return "FINRA/Nasdaq TRF Carteret"
1679-
if self == Publisher.FINN_NLS_FINC:
1679+
if self == Publisher.XNAS_NLS_FINC:
16801680
return "FINRA/Nasdaq TRF Chicago"
1681-
if self == Publisher.FINY_TRADES_FINY:
1681+
if self == Publisher.XNYS_TRADES_FINY:
16821682
return "FINRA/NYSE TRF"
16831683
if self == Publisher.OPRA_PILLAR_AMXO:
16841684
return "OPRA - NYSE American"

0 commit comments

Comments
 (0)