Error: Response code 418 when running Gunbot on Binance means that your API key has been temporary banned. What to do now? First of all, do not remove your Api key, specially do NOT remove your Master key. Note that error 418 is not a permanent ban, it’s just a temporary ban, same as error 429 on Poloniex.
Ok, how to get rid of “Error: Response code 418“?
error: fetchOrderBook
Error: Response code 418
at Request.module.exports._makeRequest.request [as _callback] (C:\snapshot\Gunbot-master\ctx\helper\binance\binance-api.js:0:0)
at Request.init.self.callback (C:\snapshot\Gunbot-master\node_modules\request\request.js:188:22)
at emitTwo (events.js:125:13)
at Request.emit (events.js:213:7)
at Request.<anonymous> (C:\snapshot\Gunbot-master\node_modules\request\request.js:1171:10)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at IncomingMessage.<anonymous> (C:\snapshot\Gunbot-master\node_modules\request\request.js:1091:12)
at Object.onceWrapper (events.js:312:19)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1045:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)
Follow these simple steps:
1- Stop your bot.
2- Raise BOT_DELAY to 7
3- Wait for at least 20 minutes
4- Run Gunbot.
Now your bot won’t do so many requests / seconds and you will avoid your Api being banned again.