morpheums/Binance.API.Csharp.Client

Api Error Code: -1021 Message: Timestamp for this request is outside of the recvWindow.

minhloc007 opened this issue · 4 comments

This issue happened just 2 days ago, is this new problem from Binance API?

image

Same error

i got similat error that was "timestamp for this request 1000ms ahead of server" and i just closed the visual stdio and open it again and the problem was gone.

It is using your machines time to generate a timestamp. This has to be within acceptable range of Binance's server. You just need to set your time either manually - or sync with an internet time server like nist.gov - this can be found under you clock settings in windows. Just hit update - sometimes takes a few attempts.

If it keeps failing, then utilize Binance's API method GetServerTime and compare it with your own. Then you'll see how many s/ms you're off.

Solved by disabling auto timezone on Windows 10.

image