Set Auto-execution Config (per symbol)
set_auto_execution_configConfigure per-symbol auto-execution. When enabled for a symbol, TraderWAI's backend automatically executes suggested orders (from suggest_order) for that symbol on the chosen broker account(s) — the user does not have to review them. This is the same configuration available on the TraderWAI website. Creates or updates the config for the given symbol. Get broker account IDs with get_broker_accounts. Note: the take profit always comes from each suggestion, not from this config. Requires the global auto-execution switch to also be ON (see set_global_auto_execution).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Trading symbol (e.g. EUR_USD). | |
| enabled | Yes | Enable (true) or disable (false) auto-execution of suggested orders for this symbol | |
| maxPerDay | No | Safety cap: max number of auto-executions per day for this symbol | |
| brokerConfigs | No | Broker account(s) where orders are auto-executed. Required when enabling. | |
| skipIfOpenPosition | No | If true (default), do not open a new order when a position already exists for the symbol |