first commit
This commit is contained in:
17
app/schemas/ticker.py
Normal file
17
app/schemas/ticker.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Ticker request/response schemas."""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class TickerCreate(BaseModel):
|
||||
symbol: str = Field(..., description="NASDAQ ticker symbol (e.g. AAPL)")
|
||||
|
||||
|
||||
class TickerResponse(BaseModel):
|
||||
id: int
|
||||
symbol: str
|
||||
created_at: datetime
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
Reference in New Issue
Block a user