algotrader icon indicating copy to clipboard operation
algotrader copied to clipboard

TypeError: Scheduler.onMarketOpen is not a function

Open skagraw2 opened this issue 5 years ago • 0 comments

Hi, I am getting following error while using given example in the package. Please help how to fix it.

using node v12.13.0.

c:\test\node examples\highest-open-interest.js C:\test\node_modules\algotrader2\examples\highest-open-interest.js:28 Scheduler.onMarketOpen(5 * 60000, open).catch(error => console.error(error)); // Run every day on market open ^

TypeError: Scheduler.onMarketOpen is not a function at Object. (C:\test\node_modules\algotrader2\examples\highest-open-interest.js:28:11) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) at internal/main/run_main_module.js:17:11

skagraw2 avatar Nov 21 '19 16:11 skagraw2