@qtsurfer/sdk
    Preparing search index...

    Interface BacktestRequest

    const request: BacktestRequest = {
    strategy: source,
    exchangeId: 'binance',
    instrument: 'BTC/USDT',
    from: '2026-01-01T00:00:00Z',
    to: '2026-02-01T00:00:00Z',
    };

    Backtest against a dataset you uploaded instead of an exchange instrument by replacing instrument with datasetId (and exchangeId: 'user'):

    const request: BacktestRequest = {
    strategy: source,
    exchangeId: 'user',
    datasetId: 'ds_123',
    from: '2026-01-01T00:00:00Z',
    to: '2026-02-01T00:00:00Z',
    };
    interface BacktestRequest {
        datasetId?: string;
        datasetVersionId?: string;
        equityCurve?: EquityCurveOptions;
        exchangeId: string;
        from: string;
        instrument?: string;
        storeSignals?: boolean;
        strategy: string;
        to: string;
    }
    Index
    datasetId?: string

    Id of a dataset you uploaded, in place of instrument. Exactly one of instrument/datasetId is required. Pairs with exchangeId: 'user'.

    datasetVersionId?: string

    Optional specific version of datasetId; omit to use its current version. Requires datasetId.

    equityCurve?: EquityCurveOptions

    Optional server-side transform for the returned equity curve.

    exchangeId: string

    Exchange id, e.g. binance, or the reserved value user when backtesting against datasetId.

    from: string

    Date range start (ISO-8601, ISO DATE or BASIC ISO DATE)

    instrument?: string

    Instrument symbol, e.g. BTC/USDT. Exactly one of instrument/datasetId is required.

    storeSignals?: boolean

    When true, the worker uploads emitted signals to object storage.

    strategy: string

    Strategy source code (Java)

    to: string

    Date range end (same formats as from)