@qtsurfer/api-client
    Preparing search index...

    Function prepareBacktest

    • Prepare backtest data Enqueues a prepare task over the requested date range. Returns immediately with a jobId; poll GET /backtest/{exchangeId}/{type}/prepare/{jobId} for completion.

      The same params always return the same jobId (idempotent). Repeated calls with identical params do not enqueue duplicate work — they reuse the existing job.

      Every source in DataSourceType can be prepared, but not every one can then be run: funding data can be prepared and is rejected by execute and executeSweep. A kline prepare takes the bar width from cadence — see PrepareRequest.

      exchangeId: user is reserved for your own uploaded data. Instead of a managed exchange, it prepares from a dataset you created via POST /datasets (see the Dataset endpoints) — send datasetId in place of instrument. See PrepareRequest below for the two request shapes.

      Type Parameters

      • ThrowOnError extends boolean = false

      Returns RequestResult<AcceptedJob, ResponseError, ThrowOnError>