From 3f3822f7c0cd646f1eff038f0df2d0d32623a7ba Mon Sep 17 00:00:00 2001 From: counterweight Date: Mon, 22 Dec 2025 15:42:31 +0100 Subject: [PATCH] feat: add PriceHistoryResponse schema --- backend/schemas.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/backend/schemas.py b/backend/schemas.py index 20f55de..819c124 100644 --- a/backend/schemas.py +++ b/backend/schemas.py @@ -276,6 +276,22 @@ class RandomNumberOutcomeResponse(BaseModel): created_at: datetime +# ============================================================================= +# Price History Schemas +# ============================================================================= + + +class PriceHistoryResponse(BaseModel): + """Response model for a price history record.""" + + id: int + source: str + pair: str + price: float + timestamp: datetime + created_at: datetime + + # ============================================================================= # Meta/Constants Schemas # =============================================================================