Files
catalyst/zipline/pipeline/data/earnings.py
T
Scott Sandersonandllllllllll 8220d1ee86 ENH: Adds support for different typed adjusted arrays and adds an
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.
2015-12-08 20:24:06 -05:00

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.