submit_strategy
Submit a strategy for full validation and live deployment.
Runs the complete 7-stage validation pipeline:
1. static_check — code safety (banned imports, syntax)
2. in_sample — sanity check on training data
3. out_of_sample — test on unseen data (70/30 split)
4. walk_forward — rolling window validation
5. randomized_start — different random start points
6. perturbation — market stress test
7. holdout — server-side reserved data (pass/fail only)
If all stages pass, the strategy is registered for isolated live
paper trading with status="incubating". Promotion to "live" requires
a proven track record.
Args:
name: Human-readable strategy name (e.g. "ETH Momentum v2").
domain: Trading domain key (e.g. "eth_usdc").
code: Python source code implementing the Strategy contract.
user_id: The creator's user ID.
symbol: Price symbol for historical data.
Returns JSON with: success, strategy_id, bot_id, validation results
per stage, or error details.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"domain": "<domain>",
"code": "<code>",
"user_id": "<user_id>"
},
"name": "submit_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | Yes | ||
| domain | Yes | ||
| symbol | No | ETHUSDT | |
| user_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |