Create Strategy
create_strategyCreates a paper-trading strategy from a template or code spec, defining its name, symbol, parameters, and optional description.
Instructions
Create a strategy from a spec.
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>",
"spec": "<spec>"
},
"name": "create_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable strategy name | |
| spec | Yes | Strategy spec. Template track: {"kind": "template", "template": "sma_cross", "symbol": "AAPL", "params": {"fast": 10, "slow": 30, "quantity": 5}} Code track (if enabled for your group): {"kind": "code", "symbol": "AAPL", "source": "def on_bar(ctx):\n ..."} | |
| description | No | Optional description |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||