I’m creating a bot for ByBit. When I place a sell or buy order, this error happens. sometimes my code works with this error, and sometimes it doesn’t. What does it depend on?
2024-05-16 15:00:28 – pybit._http_manager – ERROR – Timestamp for this request is outside of the recvWindow. (ErrCode: 10002). Added 2.5 seconds to recv_window. 2 retries remain.
2024-05-16 15:00:31 – pybit._http_manager – ERROR – invalid request, please check your server timestamp or recv_window param. req_timestamp[1715860831737],server_timestamp[1715860830613],recv_window[5000] (ErrCode: 10002). Added 2.5 seconds to recv_window. 2 retries remain.
The difference between server time and local time is ~1 sec. I changed rcvwindow and still nothing changed.
doctor0120 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.