feat: add trade activity dashboard

Shows what happened at each candle:
- BUY/SELL/HOLD actions
- Price at that time
- Reason for action
- Entry price for positions

Trade log is stored in DB and displayed in frontend.
This commit is contained in:
shokollm
2026-04-12 04:28:40 +00:00
parent 01ec8bc539
commit dd61c32ea7
9 changed files with 259 additions and 3 deletions

View File

@@ -118,6 +118,7 @@ class SimulationResponse(BaseModel):
config: dict
signals: Optional[List[dict]]
klines: Optional[List[dict]] = None # Price data for chart
trade_log: Optional[List[dict]] = None # Trade activity log
class Config:
from_attributes = True