bybit.go.api/market.go

24 lines
422 B
Go
Raw Normal View History

2023-10-30 20:26:54 +02:00
package bybit
import (
"context"
"net/http"
)
// Binance Check Server Time endpoint (GET /v5/market/time)
type ServerTime struct {
c *Client
}
// Send the request
func (s *ServerTime) Do(ctx context.Context, opts ...RequestOption) (res []byte) {
r := &request{
method: http.MethodGet,
endpoint: "/v5/market/time",
secType: secTypeNone,
}
data, _ := s.c.callAPI(ctx, r, opts...)
res = data
return res
}