Function addWorkerSchema

  • Registers a worker in the framework.

    A worker binds a run mode (backtest, paper or live) to optional strategy, exchange and frame references; the symbol list is NOT part of the schema — Worker.run receives it per call and forks ONE child process for the whole list.

    Parameters

    Returns void

    addWorkerSchema({
    workerName: "my-worker",
    live: true,
    });

    Worker.run(["BTCUSDT", "ETHUSDT"]);