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

    Type Alias ExecuteBacktestData

    type ExecuteBacktestData = {
        body: {
            baseConfig?: SweepBaseConfig;
            equityCurve?: EquityCurveOptions;
            params?: { [key: string]: ScalarStrategyParamValue };
            prepareJobId: string;
            storeSignals?: boolean;
            strategyId: StrategyId;
        };
        path: { exchangeId: string; type: DataSourceType };
        query?: never;
        url: "/backtest/{exchangeId}/{type}/execute";
    }
    Index
    body: {
        baseConfig?: SweepBaseConfig;
        equityCurve?: EquityCurveOptions;
        params?: { [key: string]: ScalarStrategyParamValue };
        prepareJobId: string;
        storeSignals?: boolean;
        strategyId: StrategyId;
    }

    Execute task parameters

    Type Declaration

    • OptionalbaseConfig?: SweepBaseConfig

      Capital/fee/position-size overrides for this one run — the same shape executeSweep's baseConfig accepts. Omit to run at the platform defaults (initialFunding: 100, feeRate: 0.001). buyFeeRate/sellFeeRate/feeLeg are accepted for shape compatibility with a sweep's baseConfig, but this endpoint has one fee-rate slot: a value that implies asymmetric buy/sell fees, or a non-default feeLeg, is rejected with 400.

    • OptionalequityCurve?: EquityCurveOptions
    • Optionalparams?: { [key: string]: ScalarStrategyParamValue }

      Strategy properties to apply to this run. Omit to run the strategy's declared defaults, which is exactly what a request without this field has always done.

      Each key is the name declared on the strategy's @StrategyProperty, which need NOT match the Java field it annotates — GET/POST /strategy returns declaredProperties for precisely this. A key naming no declared property is rejected: the job fails with the list of names the strategy does declare, rather than completing at the defaults and handing back a plausible result for parameters nobody chose.

      Scalars only — number, string or boolean. Ranges and lists belong to executeSweep; one request here is one run. null is not a value: leave the key out to keep a property at its default. Keys are made of letters, digits, _, - and dots, and may not be strategyId, storeSignals, equityCurve, backtestEnabled or backtestFakeExecution — those configure the job rather than the strategy.

    • prepareJobId: string

      Job ID returned by POST /prepare (must be in Completed state)

    • OptionalstoreSignals?: boolean

      When true, the worker uploads emitted signals to object storage and the response includes signalsUrl / signalsId fields. Defaults to false.

    • strategyId: StrategyId
    path: { exchangeId: string; type: DataSourceType }

    Type Declaration

    • exchangeId: string

      ID of the exchange for the backtesting process, or the reserved value user if prepareJobId came from a dataset-backed prepare.

    • type: DataSourceType

      The type of data source to execute from

    query?: never
    url: "/backtest/{exchangeId}/{type}/execute"