Skip to content

Commit

Permalink
Merge pull request #1595 from c9s/c9s/simplify-max-query-ticker
Browse files Browse the repository at this point in the history
REFACTOR: [max] simplify max query ticker
  • Loading branch information
c9s committed Mar 26, 2024
2 parents 5769c67 + d399b39 commit d61498c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/exchange/max/exchange.go
Expand Up @@ -72,7 +72,10 @@ func (e *Exchange) Name() types.ExchangeName {
}

func (e *Exchange) QueryTicker(ctx context.Context, symbol string) (*types.Ticker, error) {
ticker, err := e.client.PublicService.Ticker(toLocalSymbol(symbol))
req := e.client.NewGetTickerRequest()
req.Market(toLocalSymbol(symbol))
ticker, err := req.Do(ctx)

if err != nil {
return nil, err
}
Expand Down

0 comments on commit d61498c

Please sign in to comment.