run_optimize
Optimize strategy parameters using Optuna to maximize a selected metric such as Sharpe ratio. Supports custom trials and persistence for later application.
Instructions
Optimize strategy parameters with Optuna for symbol. metric defaults to sharpe_ratio.
save defaults to true so the result JSON is persisted (with `saved_path` in the
response) and can be fed to `apply_optimization`; pass save=false to skip saving.
Long-running: up to a 600-second timeout; reports progress to capable clients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| metric | No | ||
| symbol | Yes | ||
| trials | No | ||
| strategy_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| error | Yes |