first commit
This commit is contained in:
18
app/schemas/fundamental.py
Normal file
18
app/schemas/fundamental.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Pydantic schemas for fundamental data endpoints."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class FundamentalResponse(BaseModel):
|
||||
"""Envelope-ready fundamental data response."""
|
||||
|
||||
symbol: str
|
||||
pe_ratio: float | None = None
|
||||
revenue_growth: float | None = None
|
||||
earnings_surprise: float | None = None
|
||||
market_cap: float | None = None
|
||||
fetched_at: datetime | None = None
|
||||
Reference in New Issue
Block a user