hirokisan / bybit

Bybit client library for Go
https://pkg.go.dev/github.com/hirokisan/bybit/v2
MIT License
90 stars 58 forks source link

add sync server time service #133

Closed Sagleft closed 11 months ago

Sagleft commented 11 months ago

Example of a request problem when the local time is not synchronized:

10002, invalid request, please check your server timestamp or recv_window param. req_timestamp[1688721030939],server_timestamp[1688721231460],recv_window[5000]

Solution: added a service to get server time and a method to synchronize local and server time (delta detection).

Sagleft commented 11 months ago

I will reopen the PR, make it from the branch