# generated by datamodel-codegen:
#   filename:  stock.json
#   timestamp: 2024-05-13T16:50:32+00:00

from __future__ import annotations

from typing import List, Optional

from pydantic import BaseModel


class Datum(BaseModel):
    security_id: str
    fiscal: int
    quarter: int
    cash: Optional[str]
    da: Optional[str]
    debt_to_equity: Optional[str]
    equity: Optional[str]
    earning_per_share: Optional[str]
    earning_per_share_yoy: Optional[str]
    earning_per_share_qoq: Optional[str]
    gpm: Optional[str]
    gross_profit: Optional[str]
    net_profit: Optional[str]
    net_profit_yoy: Optional[str]
    net_profit_qoq: Optional[str]
    npm: Optional[str]
    revenue: Optional[str]
    revenue_yoy: Optional[str]
    revenue_qoq: Optional[str]
    roa: Optional[str]
    roe: Optional[str]
    sga: Optional[str]
    sga_per_revenue: Optional[str]
    total_debt: Optional[str]
    dividend_yield: str
    book_value_per_share: Optional[str]
    close: str
    mkt_cap: str
    price_earning_ratio: Optional[str]
    price_book_value: Optional[str]
    ev_per_ebit_da: str
    ebit_dattm: None
    paid_up_capital: None
    cash_cycle: Optional[str]
    operating_activities: Optional[str]
    investing_activities: Optional[str]
    financing_activities: Optional[str]
    asset: Optional[str]
    end_of_year_date: Optional[str]


class Model(BaseModel):
    status: bool
    statusCode: int
    data: List[Datum]
