send_signal
Submit a trading signal to YOUR EA (phase 2). dry_run=true (default) only validates and previews the payload without sending anything. Sending live (dry_run=false) needs a key with the trade scope (read keys get scope_required). Requires a plan with trading; lot 0 = EA sizing; symbol and action are validated server-side. Cap: 10/min. Pass idempotency_key when retrying: the same key within 24 h is not sent twice (duplicate: true). closebuy/closesell are non-directional aliases: they close ALL positions of the symbol; use close with side for one direction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sl | No | Read in the account's SL/TP mode (Pips by default): a distance, not a price, unless sltp_mode is price. On modify the distance runs from the current price, -1 removes the level and 0 leaves it as it is. | |
| tp | No | Read in the account's SL/TP mode (Pips by default): a distance, not a price, unless sltp_mode is price. On modify the distance runs from the current price, -1 removes the level and 0 leaves it as it is. | |
| lot | No | 0 = the EA sizes from account risk | |
| tp1 | No | ||
| tp2 | No | ||
| tp3 | No | ||
| tp4 | No | ||
| tp5 | No | ||
| side | No | buy/sell (directional close or cancel filter) | |
| price | No | Entry price (pendings/replace) | |
| action | Yes | ||
| sl_pct | No | Stop loss as % of the entry price (0-50) | |
| symbol | Yes | ||
| tp_pct | No | Take profit as % of the entry price (0-50) | |
| comment | No | ||
| dry_run | No | ||
| percent | No | Partial close percent (close) | |
| trailing | No | ||
| tsl_dist | No | Trailing distance from the price, in points. Left out = the account's value. Needs tsl_trigger. | |
| tsl_step | No | Minimum move of the stop before it is updated, in points. Left out = the account's value. Needs tsl_trigger. | |
| breakeven | No | ||
| entry_pct | No | ||
| sltp_mode | No | price = sl and tp of THIS signal are absolute prices, whatever the account's SL/TP mode says. On entries it needs EA v4.06 or newer; on modify, any EA. | |
| account_id | No | Your account id (the id returned by accounts) | |
| entry_pips | No | ||
| order_type | No | Pending type filter (cancel/replace) | |
| tsl_trigger | No | Trailing for the position this signal opens: profit in points at which it starts. Greater than 0. Entries only; a modify cannot change it. | |
| idempotency_key | No | Optional; same key within 24 h = not sent again |