Open hslimi opened 6 years ago
When running the bot for several hours i got this error:
_header: 'GET /api/v1/ticker/24hr?symbol=BNBBTC HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nX-MBX-APIKEY: xxx\r\nUser-Agent: axios/0.18.0\r\nHost: www.binance.com\r\nConnection: close\r\n\r\n', _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, timeout: undefined, method: 'GET', path: '/api/v1/ticker/24hr?symbol=BNBBTC', _ended: true, res: [IncomingMessage], aborted: undefined, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, _redirectable: [Writable], [Symbol(isCorked)]: false, [Symbol(outHeadersKey)]: [Object] }, data: { code: -1003, msg: 'Way too many requests; IP banned until 1529256050872. Please use the websocket for live updates to avoid bans.' } } } Error Message: Way too many requests; IP banned until 1529256050872. Please use the websocket for live updates to avoid bans. Error action Error: Invalid get_ticker
This is due to the bot using the REST API instead of using the WebSockets available.
When running the bot for several hours i got this error: