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.
errorfield has details.
Risk fields
| Field | Type | Description |
|---|---|---|
| amount_usd | — | Capital allocated to this trade. |
| leverage | — | Effective leverage on the position. |
| stop_loss_pct / take_profit_pct | — | Distances from entry, configured per-trade or from defaults. |
| stop_loss_rate / take_profit_rate | — | Absolute SL/TP prices computed from open_rate. |
| open_rate / close_rate | — | Fill prices at open and close. |
| pnl_usd | — | Realised P&L once closed. |
Lineage
signal_idlinks back to the headline-scored signal.- That signal's
brief_idlinks to the portfolio pass that approved it. etoro_position_idis 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.