Spaces:
Running
Running
File size: 463 Bytes
3fe0726 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from dataclasses import dataclass
from datetime import date as date_type
from typing import Optional
@dataclass
class StockSplitEvent:
"""Represents a stock split event"""
date: date_type
company: str
ticker: str
ratio: str
option_symbol: Optional[str] = ""
announcement_date: Optional[date_type] = None
ex_date: Optional[date_type] = None
record_date: Optional[date_type] = None
payable_date: Optional[date_type] = None
|