bybit.go.api/examples/market/server_time.go

24 lines
339 B
Go
Raw Normal View History

2023-10-30 20:26:54 +02:00
package main
import (
bybit "bybit.go.api"
"context"
"fmt"
)
func main() {
ServerTime()
}
func ServerTime() {
client := bybit.NewClient("", "")
// set to debug mode
client.Debug = true
// NewServerTimeService
serverTime := client.NewServerTimeService().Do(context.Background())
fmt.Println(bybit.PrettyPrint(serverTime))
}