feat: add PriceHistoryResponse schema
This commit is contained in:
parent
7339858a02
commit
3f3822f7c0
1 changed files with 16 additions and 0 deletions
|
|
@ -276,6 +276,22 @@ class RandomNumberOutcomeResponse(BaseModel):
|
||||||
created_at: datetime
|
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
|
# Meta/Constants Schemas
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue