Get Backtest Batch Results
get_backtest_batch_resultsFetches every asset's outcome from a submit_backtest_batch call, paginated. By default (waitForCompletion: true) polls internally until every item in the batch is done — a cheap check, not one that pages through everything — so one call returns the finished page. Each item has the same aggregate metrics and recency fields (recentTradeCount/recentAvgPnlR/recentOutcomes) get_backtest_result returns for a single backtest, plus assetPair/status/error, so the single-result and batch-result shapes never drift apart. totalCount/completedCount/failedCount/pendingCount come back on every page, not just the last, so you can tell the batch is done from a single pageSize=1 call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. Default 1. | |
| batchId | No | The batchId returned by submit_backtest_batch. | |
| pageSize | No | Items per page, 1-100. Default 20. | |
| pollTimeoutMs | No | Defaults to 300000 (5 minutes) — a batch's slowest item determines the total wait, so this is higher than get_backtest_result's default. | |
| backtestApiKey | No | Your EmidLabs backtest API key. Not needed if this connector was added with a static 'x-api-key' header. | |
| backtestBaseUrl | No | Defaults to the public production API. | |
| waitForCompletion | No | If true (default), polls internally until every item in the batch is done or pollTimeoutMs elapses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| items | No | ||
| batchId | No | ||
| pageSize | No | ||
| totalCount | No | Total items in this batch, across every page — not just this one. | |
| totalPages | No | ||
| failedCount | No | How many items finished unsuccessfully (Failed, Cancelled, or Expired). | |
| pendingCount | No | How many items are still Queued or Running. The whole batch is done once this reaches 0 — true on every page, not just the last. | |
| completedCount | No | How many items finished successfully. |