Are you getting “TypeError: Cannot read property ‘1’ of undefined” message when running Gunbot? If the answer is “yes”, don’t panic as most of the times this message doesn’t affect Gunbot at all, and the bot will work 100% fine.
Note that in the case you are running the bot on a Raspberry the message will be “-1” instead of “1”, that is: “TypeError: Cannot read property ‘-1’ of undefined”
Anyway let’s see how we can get rid of this message. Most of the times this message appears when time sync is not 100% perfect. Now the question is, how can we sync the time in our system?
Last but not less, in the case you are running Gunbot on Bitmex, this error could mean you got a soft ban for making too many uncompleted orders that get cancelled before get filled. It also can appear if you are running the bot with a very low delay. If you think this is your case, stop the bot for 30 minutes and start it again setting a higher delay.