mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-04 12:45:06 +08:00
EarningsCalendar loader. - Moves most of AdjustedArray back into Python. The window iterator is the only part that's performance-intensive. - Adds a bootleg templating system for creating specialized versions of AdjustedArrayWindow for each concrete type we care about. - Adds support for differently dtyped terms in pipeline. This allows us to use datetime64s which are needed in the EarningsCalendar. - Adds EarningsCalendar dataset for the next and previous earnings announcements in pipeline. - Adds in memory loader for EarningsCalendar. - Adds blaze loader for EarningsCalendar.
18 lines
482 B
Python
18 lines
482 B
Python
"""
|
|
Dataset representing dates of upcoming earnings.
|
|
"""
|
|
from zipline.utils.numpy_utils import datetime64ns_dtype
|
|
|
|
from .dataset import Column, DataSet
|
|
|
|
|
|
class EarningsCalendar(DataSet):
|
|
"""
|
|
Dataset representing dates of upcoming or recently announced earnings.
|
|
"""
|
|
next_announcement = Column(datetime64ns_dtype)
|
|
previous_announcement = Column(datetime64ns_dtype)
|
|
|
|
# TODO: Provide categorical columns for when during the day the
|
|
# announcement occurred.
|