Are you getting the following error when running Gunbot?:
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
Don’t worry, it’s easy to fix. In most of the case this error message is caused by a temporal ban of Bitmex or other exchanges.
Why did I get banned? Because you made too many api requests per second. In order to fix it, follow these easy steps:
1 – Stop the bot and wait for 60 minutes until the temporal ban is gone. (Most of the times the temp ban expires before 60 minutes, but in some cases it can take up to 24 hours).
2- Raise bot delay and run it again. If you are running the bot on Bitmex, raise delay to 8 or higher. Note that each exchange has a different limit.