austinyearlykim/wolf

(SOLVED) ERROR: Timestamp for this request is outside of the recvWindow

Closed this issue · 2 comments

This mistakes happens randomly
wolferror1

Binance is saying that one of WOLF's requests to check the order status is taking longer than the default 5 seconds.

https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#timing-security

I'll go ahead and add a parameter to double the accepted time, or recvWindow. That should at least make the error appear less often.

I'm hesitant to increase it more than 10 because if it takes longer than that I would rather have the next request take precedence anyway.

I'll close this issue with the commit hash when I've fixed this. Thanks @pipinoloco

After reading the Binance API documentation, which says that trade bots should use 5 seconds or fewer, I've decided to just exit the function loop if the status check is deemed invalid and just wait for the next check.

ebab0db