Fix: Analytics Worker berechnet jetzt alle Tabellen pro Tag
Some checks failed
Deployment / deploy-docker (push) Has been cancelled
Some checks failed
Deployment / deploy-docker (push) Has been cancelled
This commit is contained in:
@@ -19,7 +19,11 @@ class BaseExchange(abc.ABC):
|
|||||||
def fetch_latest_trades(self) -> List[Trade]:
|
def fetch_latest_trades(self) -> List[Trade]:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@property
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def fetch_trades_generator(self, **kwargs):
|
||||||
|
"""Standard generator implementation that yields batches from fetch_latest_trades.
|
||||||
|
Subclasses should override this if they can stream data more efficiently."""
|
||||||
|
yield self.fetch_latest_trades(**kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user