Hi, if the time is not synchronized on the computer, then I get an error.
Please fix timestamp code:
Socket
var expireTime = DateTimeConverter.ConvertToMilliseconds(DateTime.UtcNow.AddSeconds(5))!;
change to:
var expireTime = DateTimeConverter.ConvertToMilliseconds(DateTime.UtcNow.AddDays(1))!;
Rest
parameters.Add("timestamp", GetMillisecondTimestamp(apiClient));
change to:
parameters.Add("timestamp", DateTimeConverter.ConvertToMilliseconds(GetTimestamp(apiClient).AddMilliseconds(-1000)).Value.ToString(CultureInfo.InvariantCulture));
Hi, if the time is not synchronized on the computer, then I get an error. Please fix timestamp code:
Socket var expireTime = DateTimeConverter.ConvertToMilliseconds(DateTime.UtcNow.AddSeconds(5))!; change to: var expireTime = DateTimeConverter.ConvertToMilliseconds(DateTime.UtcNow.AddDays(1))!;
Rest parameters.Add("timestamp", GetMillisecondTimestamp(apiClient)); change to: parameters.Add("timestamp", DateTimeConverter.ConvertToMilliseconds(GetTimestamp(apiClient).AddMilliseconds(-1000)).Value.ToString(CultureInfo.InvariantCulture));
https://bybit-exchange.github.io/docs/futuresV2/linear/#t-authenticationparameters Please make sure that the timestamp parameter adheres to the following rule: server_time - recv_window <= timestamp < server_time + 1000; server_time stands for Bybit server time, which can be queried via the Server Time endpoint.