mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-26 13:18:31 +08:00
BUG: correctly create asset finder MAINT: rename fixture STY: fixes for flake8 STY: add space around assignment MAINT: add var back to constructor MAINT: remove unused import MAINT: compare var with None directly MAINT: fix merge errors
26 lines
739 B
Python
26 lines
739 B
Python
"""
|
|
Dataset representing dates of upcoming dividends.
|
|
"""
|
|
from zipline.utils.numpy_utils import datetime64ns_dtype, float64_dtype
|
|
|
|
from .dataset import Column, DataSet
|
|
|
|
|
|
class DividendsByExDate(DataSet):
|
|
next_date = Column(datetime64ns_dtype)
|
|
previous_date = Column(datetime64ns_dtype)
|
|
next_amount = Column(float64_dtype)
|
|
previous_amount = Column(float64_dtype)
|
|
|
|
|
|
class DividendsByPayDate(DataSet):
|
|
next_date = Column(datetime64ns_dtype)
|
|
previous_date = Column(datetime64ns_dtype)
|
|
next_amount = Column(float64_dtype)
|
|
previous_amount = Column(float64_dtype)
|
|
|
|
|
|
class DividendsByAnnouncementDate(DataSet):
|
|
previous_announcement_date = Column(datetime64ns_dtype)
|
|
previous_amount = Column(float64_dtype)
|