Api Error Code: -1021 Message: Timestamp for this request is outside of the recvWindow.
minhloc007 opened this issue · 4 comments
minhloc007 commented
Elfarrar commented
Same error
akildemir commented
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.
nullablebool commented
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.
minhloc007 commented