mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
max: simplify QueryTicker
This commit is contained in:
parent
693b641612
commit
d399b39c44
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user