screamer.js
    Preparing search index...

    Function BacktestL1TradesOrders

    • Backtest a two-sided market maker against top-of-book quotes with a trade tape driving the fills, into a costed equity curve.

      Parameters

      Returns ScreamerOp

    • Backtest a two-sided market maker against top-of-book quotes with a trade tape driving the fills, into a costed equity curve.

      Parameters

      • OptionalmakerFee: number

        Fractional fee on a maker fill; negative for a rebate.

      • OptionaltakerFee: number

        Fractional fee on a taker fill (an order that crosses the spread on arrival).

      • Optionalfill: string

        Fill rule for a trade at your price. "touch" fills a participation partial; "breach" fills only on a trade through.

      • OptionalparticipationRatio: number

        Fraction of an at-price trade's size captured (front-of-queue at 1.0).

      • OptionaltickSize: number

        Instrument price grid (0 = continuous). A marketable order walks one tick past the displayed quote for the size beyond it; slippage offsets round up to whole ticks.

      • OptionalminPosition: number

        Inventory floor; sell fills are capped so the position never falls below it. The default, -inf, is no bound.

      • OptionalmaxPosition: number

        Inventory ceiling; buy fills are capped so the position never exceeds it. The default, inf, is no bound.

      • Optionalmultiplier: number

        Contract multiplier applied to mark-to-market PnL, fill slippage, and proportional fees.

      • OptionalmakerFeePerContract: number

        Fixed fee (or rebate when negative) charged per contract on maker fills.

      • OptionaltakerFeePerContract: number

        Fixed fee (or rebate when negative) charged per contract on taker fills.

      • Optionalslippage: number

        Adverse price offset on every taker (market) fill, read in slippage_unit. A buy fills higher and a sell lower; resting limit fills never slip.

      • OptionalslippageUnit: string

        Unit of slippage: "fraction" of the reference price (5 bps = 5e-4), "ticks" of tick_size, or "price" (an absolute amount).

      Returns ScreamerOp