sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.88k stars 2.2k forks source link

Timestamp for this request was 1000ms ahead of the server's time. #901

Open savioz opened 3 years ago

savioz commented 3 years ago

<class 'binance.exceptions.BinanceAPIException'> APIError(code=-1021): Timestamp for this request was 1000ms ahead of the server's time.

when opening a futures order

client.futures_create_order(symbol=symbol, side="BUY", type="MARKET", quantity=quantity)

The client has been created with tesnet=True

LordOberlord commented 3 years ago

Try to resync your windows clock or use external Software like NetTime.