mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
21 lines
374 B
Go
21 lines
374 B
Go
package alphapoint
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/thraser-/gocryptotrader/exchanges/ticker"
|
|
)
|
|
|
|
func (a *Alphapoint) GetTickerPrice(currency string) TickerPrice {
|
|
var tickerPrice TickerPrice
|
|
ticker, err := a.GetTicker(currency)
|
|
if err != nil {
|
|
log.Println(err)
|
|
return TickerPrice{}
|
|
}
|
|
tickerPrice.Ask = ticker.Ask
|
|
tickerPrice.Bid = ticker.Bid
|
|
|
|
return tickerPrice
|
|
}
|