summaryrefslogtreecommitdiff
path: root/shared/src
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 18:36:18 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 18:36:18 +0900
commitb23aef3a9947d4d3d8e87b595ecf547159df7289 (patch)
treec5c99869d300c4a1ace118a2dc03c5dfa3218499 /shared/src
parent5cee0686e421b1f21484c23e413692616e9e2ffa (diff)
feat(shared): add conviction, stop_loss, take_profit to Signal model
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/shared/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/src/shared/models.py b/shared/src/shared/models.py
index 0e8ca44..70820b5 100644
--- a/shared/src/shared/models.py
+++ b/shared/src/shared/models.py
@@ -45,6 +45,9 @@ class Signal(BaseModel):
price: Decimal
quantity: Decimal
reason: str
+ conviction: float = 1.0 # 0.0 to 1.0, signal strength/confidence
+ stop_loss: Optional[Decimal] = None # Price to exit at loss
+ take_profit: Optional[Decimal] = None # Price to exit at profit
created_at: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))