jaggedsoft / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
1.58k stars 768 forks source link

Implemented a functionality that significantly reduces order latency #892

Closed vikt20 closed 1 year ago

vikt20 commented 1 year ago

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