Solve Binance Error “request was 1000ms ahead of server’s time”
Post-id: 41
Date: 23/09/2022
Python — Binance API Error
Timestamp for this request was 1000ms ahead of the server’s time
Solve problems
If you see an error message like this That means your computer is having trouble syncing time from the Internet.
The solution to this problem is very simple. You just need to open the “Date and Time” page and click on Sync as shown below.
After that, your program will resume working normally.
But what if your computer is having trouble syncing time? And you must face this problem often. You’ll need to modify the resync server as follows:
NOTE: Please run this command in cmd as administrator
w32tm /config /syncfromflags:manual /manualpeerlist:"th.pool.ntp.org 3.th.pool.ntp.org 0.asia.pool.ntp.org 2.asia.pool.ntp.org"
Then press ENTER
w32tm /config /update
ENTER
w32tm /resync
ENTER
net stop w32time
net start w32time
If you have problems running this command Try running this command.
w32tm /unregister
w32tm /register
and start doing all the steps again.
Checking
If you want to check the results This set of commands can be used
w32tm /query /status
Run result example
Solve with Python
If you don’t want to waste time typing all the commands in cmd, you can run it through this set of python code.
Enjoy!!!