‘Timestamp for this request is outside of the recvWindow’ error in CCXT

If I use CCXT on my Windows machine I periodically get ‘Timestamp for this request is outside of the recvWindow’ error.

Exchange has the following options by default:

If I create an exchange like this:

const exchange = new exchangeClass(
{
    apiKey: row.apiKey,
    secret: row.apiSecret,
    timeout: row.timeout,
    enableRateLimit: true,
    options: {
        adjustForTimeDifference: true,
        recvWindow: 10000,
    }
});

they calculate timeDifference:

and the error does not occur anymore.

Leave a Reply

Your email address will not be published. Required fields are marked *