binance: call set server time service

This commit is contained in:
c9s 2021-05-16 15:03:31 +08:00
parent fad1e39bba
commit 5c10f8a4e2

View File

@ -41,6 +41,7 @@ type Exchange struct {
func New(key, secret string) *Exchange {
var client = binance.NewClient(key, secret)
_, _ = client.NewSetServerTimeService().Do(context.Background())
return &Exchange{
Client: client,
}