Open kingkong404 opened 1 year ago
Hi @kingkong404 , I am having trouble to reproduce this on my side.
Are you doing lots of orders when running watchOrders
?
Maybe you can provide the script you are running and a verbose output?
Also by the message error it looks like it could be more an issue of permissions than a rate limit exceeded?
Hi @kingkong404 , I am having trouble to reproduce this on my side. Are you doing lots of orders when running
watchOrders
? Maybe you can provide the script you are running and a verbose output?Also by the message error it looks like it could be more an issue of permissions than a rate limit exceeded?
Hi @pcriadoperez after some more testing I believe the issue happens when 2 web sockets are open potentially. The situation in which it is occurring is on server boot after a restart.
Example: Server working fine with Bybit WS for watch orders Server restarts Tries to create a new Bybit WS for watch orders but creates error as likely the prior Bybit WS was not properly closed on server restart. Force restart of server again fixes this.
Same issue - rate limit from watchOrders - looks like it's calling https://api.bybit.com/v5/asset/coin/query-info?
Operating System
No response
Programming Languages
JS
CCXT Version
2.5.70
Description
Getting a rate limit exceeded message freqently on bybit while having
enableRateLimit
set to true. I believe this is happening while listening to / calling bybit.watchOrders() Server restart seems to fix the issue.export const bybit = new ccxtpro.bybit({ apiKey: process.env.BYBIT_API, secret: process.env.BYBIT_SECRET, enableRateLimit: true, })