From b5ff066aa23697b8b335ff6c00fcf3134db04a97 Mon Sep 17 00:00:00 2001 From: Edwin Date: Wed, 3 Jan 2024 11:30:50 +0800 Subject: [PATCH] pkg/exchange: print symbol --- pkg/exchange/bitget/exchange.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/exchange/bitget/exchange.go b/pkg/exchange/bitget/exchange.go index 4cacd200d..38b96bf42 100644 --- a/pkg/exchange/bitget/exchange.go +++ b/pkg/exchange/bitget/exchange.go @@ -143,10 +143,10 @@ func (e *Exchange) QueryTicker(ctx context.Context, symbol string) (*types.Ticke req.Symbol(symbol) resp, err := req.Do(ctx) if err != nil { - return nil, fmt.Errorf("failed to query ticker: %w", err) + return nil, fmt.Errorf("failed to query ticker, symbol: %s, err: %w", symbol, err) } if len(resp) != 1 { - return nil, fmt.Errorf("unexpected length of query single symbol: %+v", resp) + return nil, fmt.Errorf("unexpected length of query single symbol: %s, resp: %+v", symbol, resp) } ticker := toGlobalTicker(resp[0])