mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-18 12:20:12 +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
407 B
Python
18 lines
407 B
Python
"""
|
|
Dataset representing OHLCV data.
|
|
"""
|
|
from zipline.utils.numpy_utils import float64_dtype
|
|
|
|
from .dataset import Column, DataSet
|
|
|
|
|
|
class USEquityPricing(DataSet):
|
|
"""
|
|
Dataset representing daily trading prices and volumes.
|
|
"""
|
|
open = Column(float64_dtype)
|
|
high = Column(float64_dtype)
|
|
low = Column(float64_dtype)
|
|
close = Column(float64_dtype)
|
|
volume = Column(float64_dtype)
|