diff --git a/index.js b/index.js index 0e8e75b..8aa21bc 100644 --- a/index.js +++ b/index.js @@ -435,6 +435,12 @@ class LiveStrategyExecution extends EventEmitter { this.perfManager.on('update', () => this._emitStrategyExecutionResults('perf', { price: this.priceFeed.price.toNumber() })) } + async restartExecution (ws2Manager) { + this.ws2Manager = ws2Manager + this._registerManagerEventListeners() + await this.execute() + } + /** * @public */