export_backtest
Export a multi-strategy comparison as an Excel workbook.
Quota-counted; needs a key whose plan includes full-metrics export
(a 403 means the configured key's plan does not — do not retry).
Returns the workbook base64-encoded — decode and write it to a
``.xlsx`` file.
Args:
data_source: Shared data source (same shape as run_backtest).
strategies: Same shape as compare_backtests' ``strategies``.
include_benchmark: Add a buy-and-hold benchmark to the export.
Returns:
{"filename", "content_type", "size_bytes", "content_base64"}. A
400/422 rejection returns {"accepted": false, "error": ...};
capacity/timeout/permission failures raise a tool error. If the
encoded workbook would exceed the output size limit, raises a
tool error — narrow the request (shorter date range, fewer
strategies, coarser frequency) and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategies | Yes | ||
| data_source | Yes | ||
| include_benchmark | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||