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

    Type Alias PrepareBacktestErrors

    type PrepareBacktestErrors = {
        "400": ResponseError;
        "402": PlanRequiredError;
        "403": InsufficientScopeError;
        "404": ResponseError;
        "429": ResponseError;
    }
    Index

    Invalid request or parameters. Also returned when from is older than the configured lookback window or to is in the future, or when type is kline and cadence is not one of the cadences kline data is available at (the message lists them). For exchangeId: user, also returned when the dataset's current upload has not finished ingesting, or cadence asks for a finer granularity than the dataset's own discovered cadence (or one that isn't an exact multiple of it), or the requested range exceeds your tier's range limit.

    cadence is not one of the cadences your plan includes (see PrepareRequest); the message names it, your plan and what the plan includes. Does not apply to exchangeId: user. Retrying will not help until the plan changes, so there is no Retry-After.

    The API key behind the token does not carry the scope this operation needs; required names it. Create or edit the key in the web app to give it that scope, then ask for a new token: the scopes of a token are the ones the key had when it was issued. See Authentication and scopes.

    Exchange or data source type not found. For exchangeId: user, also returned when datasetId (or a pinned datasetVersionId) doesn't exist or isn't yours.

    Rate limited. Returned when the global queue exceeds capacity or the user has too many active backtests. Does not apply to exchangeId: user — a dataset prepare reads an already-ingested file rather than enqueueing worker capacity.