Fix Ticker outputs and update applicable APIs

This commit is contained in:
Adrian Gallagher
2017-03-06 05:25:14 +11:00
parent 2726b6308d
commit f07f6b3b17
9 changed files with 149 additions and 77 deletions

View File

@@ -157,6 +157,7 @@ func (i *ItBit) GetTickerPrice(currency string) (TickerPrice, error) {
tickerPrice.Bid = ticker.Bid
tickerPrice.FirstCurrency = currency[0:3]
tickerPrice.SecondCurrency = currency[3:]
tickerPrice.Last = ticker.LastPrice
tickerPrice.High = ticker.High24h
tickerPrice.Low = ticker.Low24h
tickerPrice.Volume = ticker.Volume24h