binance-connector-node icon indicating copy to clipboard operation
binance-connector-node copied to clipboard

Specifying a Connection/Request Timeout

Open d11wtq opened this issue 1 year ago • 1 comments

According to the README:

Customizable base URL, request timeout and HTTP proxy

However I can't see how you'd provide a request timeout. It looks like no such option is passed through to axios.

Would be good to have something like:

new Spot(apiKey, apiSecret, {
  baseURL: 'https://testnet.binance.vision',
  requestTimeout: 5000,
})

I just had a momentary internet outage and when it came back online my bot was in a hung state as it somehow had sent a request and was expecting a response it would never receive.

d11wtq avatar Jul 22 '22 04:07 d11wtq

We will support it in future.

Thanks

2pd avatar Jul 22 '22 10:07 2pd

This is supported in latest version.

2pd avatar Oct 05 '22 00:10 2pd