Trades

Every position the agent opens — demo or live — with full lineage back to the signal and brief that caused it.

A trade is opened by the executor when (a) a signal clears risk gates and is in the latest brief's target book, or (b) an intraday reaction decides to add a position immediately. Trades carry the mode they were opened in for life — you cannot mutate a demo trade into a live trade or vice versa.

Lifecycle

  • open — position is live on eToro; the monitor loop tracks P&L.
  • closed — exited either by AI verdict, SL/TP hit, or manual close.
  • errored — broker rejected the order. error field has details.

Risk fields

FieldTypeDescription
amount_usdCapital allocated to this trade.
leverageEffective leverage on the position.
stop_loss_pct / take_profit_pctDistances from entry, configured per-trade or from defaults.
stop_loss_rate / take_profit_rateAbsolute SL/TP prices computed from open_rate.
open_rate / close_rateFill prices at open and close.
pnl_usdRealised P&L once closed.

Lineage

  • signal_id links back to the headline-scored signal.
  • That signal's brief_id links to the portfolio pass that approved it.
  • etoro_position_id is the broker's identifier for cross-referencing.
Live trades cannot be opened unless mode = live AND auto_trade_enabled = true in Config. Both gates must be explicit.