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

@@ -94,6 +94,7 @@ class Simulation(Base):
config = Column(JSON, nullable=False)
signals = Column(JSON)
klines = Column(JSON) # Price data for chart display
trade_log = Column(JSON) # Trade activity log
bot = relationship("Bot", back_populates="simulations")