Skip to content

Commit

Permalink
Better abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed May 7, 2024
1 parent 473c6f8 commit 334c910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roboquant/alpaca/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def subscribe_bars(self, *symbols: str):
self.stream.subscribe_bars(self.__handle_bars, *symbols)


class AlpacaHistoricFeed(HistoricFeed):
class _AlpacaHistoricFeed(HistoricFeed):

def _process_bars(self, bar_set, freq: str):
for symbol, data in bar_set.items():
Expand All @@ -108,7 +108,7 @@ def _process_quotes(self, quote_set):
super()._add_item(time, item)


class AlpacaHistoricStockFeed(AlpacaHistoricFeed):
class AlpacaHistoricStockFeed(_AlpacaHistoricFeed):
"""Get historic stock prices from Alpaca.
Support for bars, trades and quotes.
"""
Expand Down Expand Up @@ -151,7 +151,7 @@ def retrieve_quotes(self, *symbols, start=None, end=None):
self._process_quotes(res.data)


class AlpacaHistoricCryptoFeed(AlpacaHistoricFeed):
class AlpacaHistoricCryptoFeed(_AlpacaHistoricFeed):
"""Get historic crypto-currency prices from Alpaca.
Support for bars and trades.
"""
Expand Down

0 comments on commit 334c910

Please sign in to comment.