Initial stage of the engine builder: requires at least one policy.

The first preTrade/builtin call advances to [JsReadyEngineBuilder]. marketData opens a market-data builder without leaving this stage. The engine always uses no-op locking for the single-threaded WASM runtime.

Methods

  • Returns void

  • Returns void

  • Opens a market-data builder with the given default TTL.

    The resulting service uses no-op locks.

    Parameters

    Returns MarketDataBuilder

  • Registers a custom pre-trade policy and advances to the ready builder.

    policy is any JS object implementing the Policy shape; it is adapted to a core PreTradePolicy immediately.

    Errors

    Throws ParamError when policy is not a valid Policy object.

    Parameters

    Returns ReadyEngineBuilder