1
0
mirror of https://github.com/bspeice/metrik synced 2024-11-05 06:58:12 -05:00
metrik/metrik/flows/rates_flow.py
Bradlee Speice f2390ba34f Get command-line tools up and running
I now have something that actually gets stuff done.
2016-08-22 21:34:54 -04:00

15 lines
349 B
Python

from metrik.flows.base import Flow, WeekdayMidnight
from metrik.tasks.ice import LiborRateTask
class LiborFlow(Flow):
@staticmethod
def get_schedule():
return WeekdayMidnight()
def _requires(self):
currencies = ['USD']
return [LiborRateTask(self.present, currency)
for currency in currencies]