Skip to content

Commit

Permalink
max: simplify QueryTicker
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 19, 2024
1 parent aced149 commit afc664f
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 afc664f

Please sign in to comment.