Strategy Backtest
run_backtestBacktest a trading strategy on real historical data: describe rules in plain language for a custom event-driven backtest, run a standard strategy template, or optimize a strategy’s parameters. [Paid: $0.75–$2.00 per call from your Einstein credit balance. Free alternatives exist for several of these — see list_einstein_capabilities.]
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": {
"strategy": "<strategy>"
},
"name": "run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | custom (plain-language rules) · standard · engine · optimize. | custom |
| asset | No | Asset to backtest against. | |
| strategy | Yes | Plain-language strategy description or template name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skill | No | Which Einstein capability answered. These tools route onto one of many skills by an enum argument, so this names the branch that actually ran. | |
| reason | No | Why there is no analysis, when `available` is false. | |
| analysis | No | The written answer, identical to the result's text block. This is the field to read: the rest of the payload is whichever capability answered, and its shape varies by tool and by argument. | |
| available | No | True when the analysis ran. False when it did not — no capability matched the arguments, the caller is out of credit, billing was unavailable, or the skill produced nothing. NOT a statement about the market. |