diff options
Diffstat (limited to 'python/sma_positions.py')
| -rw-r--r-- | python/sma_positions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/sma_positions.py b/python/sma_positions.py index de1665e5..0a9b8f3e 100644 --- a/python/sma_positions.py +++ b/python/sma_positions.py @@ -1,4 +1,4 @@ -from report_ops.sma import IsoselSMA, BowdstSMA +from report_ops.sma import SMA import datetime from serenitas.analytics.dates import prev_business_day import logging @@ -16,11 +16,11 @@ if __name__ == "__main__": help="work date", ) args = parser.parse_args() - for sma_cls in ( - IsoselSMA, - BowdstSMA, + for fund in ( + "BOWDST", + "ISOSEL", ): - sma = sma_cls(args.date) + sma = SMA["fund"](args.date) try: sma.email_positions() except ValueError as e: |
