DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.21k stars 2.04k forks source link

if (!match) throw new Error('invalid bucket size spec: ' + spec); #2737

Open leopardcoder opened 3 years ago

leopardcoder commented 3 years ago

System information

I write a commmand in linux. I get this error quite often: ./zenbot.sh sim binance.ANKR-BNB --strategy ti_hma --filename /home/linas/zenbot/simulations/ANKR-BNB/ti_hma_binance_ANKR-BNB_20210501_20200531.html --start 20210501 --end 20210530 --buy_pct 1 --sell_pct 1 -- silent

I get this error: /home/linas/zenbot/node_modules/timebucket/lib/bucket-size.js:15 if (!match) throw new Error('invalid bucket size spec: ' + spec); ^ Error: invalid bucket size spec: undefined at BucketSize.parse (/home/linas/zenbot/node_modules/timebucket/lib/bucket-size.js:15:21) at new BucketSize (/home/linas/zenbot/node_modules/timebucket/lib/bucket-size.js:5:21) at Bucket.resize (/home/linas/zenbot/node_modules/timebucket/lib/bucket.js:30:14) at Command. (/home/linas/zenbot/commands/sim.js:106:49) at Command.listener [as _actionHandler] (/home/linas/zenbot/node_modules/commander/index.js:413:31) at Command._parseCommand (/home/linas/zenbot/node_modules/commander/index.js:914:14) at Command._dispatchSubcommand (/home/linas/zenbot/node_modules/commander/index.js:865:18) at Command._parseCommand (/home/linas/zenbot/node_modules/commander/index.js:882:12) at Command.parse (/home/linas/zenbot/node_modules/commander/index.js:717:10) at /home/linas/zenbot/zenbot.js:46:13

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.