binance / binance-connector-dotnet

Lightweight connector for integration with Binance API
MIT License
207 stars 69 forks source link

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

Closed MrElecmen closed 1 year ago

MrElecmen commented 1 year ago

Reproduction steps

var wallet = new Wallet(httpClient: _httpClient, apiKey: user.BinanceApiKey, apiSecret: user.BinanceApiSecret); string userassets = string.Empty; try { userassets = await wallet.UserAsset(); } catch (Exception exception) { throw new Exception(exception.Message); }

Expected behavior

Result should be successfull

Actual Behavior

Exception : Timestamp for this request was 1000ms ahead of the server's time.

.NET version

.NET Framework 6.0.x

Operating system

Windows

Environment

No response

dotnet --info

No response

2pd commented 1 year ago

Please sync your local time. If you are working on Linux server, http://www.ntp.org/ is a very popular tool for that.