I implemented a functionality that reduces my order latency from an average of 800ms to 300ms.
I added a new option called 'foreverAgent' as a boolean. When set to true, the promiseRequest will add 'opt.forever = true' and activate a setInterval function to ping the Binance 'ping' endpoint, ensuring the HTTP connection remains alive
I implemented a functionality that reduces my order latency from an average of 800ms to 300ms. I added a new option called 'foreverAgent' as a boolean. When set to true, the promiseRequest will add 'opt.forever = true' and activate a setInterval function to ping the Binance 'ping' endpoint, ensuring the HTTP connection remains alive