metrik/metrik/flows/equities_flow.py

13 lines
431 B
Python

from metrik.flows.base import Flow, MarketClose
from metrik.tasks.nasdaq import NasdaqETFList, NasdaqCompanyList
class EquitiesFlow(Flow):
@staticmethod
def get_schedule():
return MarketClose()
def _requires(self):
return [NasdaqETFList(current_datetime=self.present, live=self.live),
NasdaqCompanyList(current_datetime=self.present,
live=self.live)]