binance-exchange / binance-java-api

binance-java-api is a lightweight Java library for the Binance API, supporting synchronous and asynchronous requests, as well as event streaming using WebSockets.
MIT License
834 stars 627 forks source link

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

Closed mohamedchennouf closed 2 years ago

mohamedchennouf commented 2 years ago

I just tried to run a simple function inside the readme but i got this error : Timestamp for this request was 1000ms ahead of the server's time. For exemple :

TickerStatistics tickerStatistics = client.get24HrPriceStatistics("DOGE"); System.out.println(tickerStatistics.getLastPrice());

or

List openOrders = client.getOpenOrders(new OrderRequest("DOGE")); System.out.println(openOrders);

mohamedchennouf commented 2 years ago

My bad, i call the services inside a synchronious thread