Adds CurrencyPair to tickerPrice creation

This commit is contained in:
Scott
2017-03-26 18:45:38 +11:00
parent 150ee09529
commit dedfad5d1f
15 changed files with 15 additions and 0 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.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency
tickerPrice.Last = ticker.LastPrice
tickerPrice.High = ticker.High24h
tickerPrice.Low = ticker.Low24h