first commit
This commit is contained in:
21
app/schemas/trade_setup.py
Normal file
21
app/schemas/trade_setup.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Pydantic schemas for trade setup endpoints."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class TradeSetupResponse(BaseModel):
|
||||
"""A single trade setup detected by the R:R scanner."""
|
||||
|
||||
id: int
|
||||
symbol: str
|
||||
direction: str
|
||||
entry_price: float
|
||||
stop_loss: float
|
||||
target: float
|
||||
rr_ratio: float
|
||||
composite_score: float
|
||||
detected_at: datetime
|
||||
Reference in New Issue
Block a user