Variable BrokerConst

Broker: BrokerAdapter

Global singleton instance of BrokerAdapter. Provides static-like access to all broker commit methods and lifecycle controls.

import { Broker } from "backtest-kit";

Broker.useBrokerAdapter(MyBrokerAdapter);
const dispose = Broker.enable();