mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
Merge pull request #1595 from c9s/c9s/simplify-max-query-ticker
REFACTOR: [max] simplify max query ticker
This commit is contained in:
commit
d61498cf39
|
@ -72,7 +72,10 @@ func (e *Exchange) Name() types.ExchangeName {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Exchange) QueryTicker(ctx context.Context, symbol string) (*types.Ticker, error) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user