diff --git a/anxhttp.go b/anxhttp.go index c9588946..937b454c 100644 --- a/anxhttp.go +++ b/anxhttp.go @@ -207,6 +207,7 @@ func (a *ANX) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = ticker.Data.Sell.Value tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[3:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = ticker.Data.Low.Value tickerPrice.Last = ticker.Data.Last.Value tickerPrice.Volume = ticker.Data.Vol.Value diff --git a/bitfinexhttp.go b/bitfinexhttp.go index bb720e99..1ffffe38 100644 --- a/bitfinexhttp.go +++ b/bitfinexhttp.go @@ -303,6 +303,7 @@ func (b *Bitfinex) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = tickerNew.Bid tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[3:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = tickerNew.Low tickerPrice.Last = tickerNew.Last tickerPrice.Volume = tickerNew.Volume diff --git a/bitstamphttp.go b/bitstamphttp.go index 6d26df07..cb41d9f3 100644 --- a/bitstamphttp.go +++ b/bitstamphttp.go @@ -292,6 +292,7 @@ func (b *Bitstamp) 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.Low = ticker.Low tickerPrice.Last = ticker.Last tickerPrice.Volume = ticker.Volume diff --git a/btcchttp.go b/btcchttp.go index 0426bfa7..4d4b88a5 100644 --- a/btcchttp.go +++ b/btcchttp.go @@ -282,6 +282,7 @@ func (b *BTCC) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = ticker.Buy tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[3:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = ticker.Low tickerPrice.Last = ticker.Last tickerPrice.Volume = ticker.Vol diff --git a/btcehttp.go b/btcehttp.go index 636c5748..559534dd 100644 --- a/btcehttp.go +++ b/btcehttp.go @@ -216,6 +216,7 @@ func (b *BTCE) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = ticker.Sell tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[3:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = ticker.Low tickerPrice.Last = ticker.Last tickerPrice.Volume = ticker.Vol_cur diff --git a/btcmarkets.go b/btcmarkets.go index fac5d58e..ad9483a0 100644 --- a/btcmarkets.go +++ b/btcmarkets.go @@ -205,6 +205,7 @@ func (b *BTCMarkets) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = ticker.BestBID tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[3:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Last = ticker.LastPrice ProcessTicker(b.GetName(), tickerPrice.FirstCurrency, tickerPrice.SecondCurrency, tickerPrice) return tickerPrice, nil diff --git a/gdaxhttp.go b/gdaxhttp.go index b523112d..672ecaeb 100644 --- a/gdaxhttp.go +++ b/gdaxhttp.go @@ -377,6 +377,7 @@ func (g *GDAX) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[4:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Volume = stats.Volume tickerPrice.Last = ticker.Price tickerPrice.High = stats.High diff --git a/geminihttp.go b/geminihttp.go index ede3ea25..abca3e3a 100644 --- a/geminihttp.go +++ b/geminihttp.go @@ -251,6 +251,7 @@ func (g *Gemini) 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.Last tickerPrice.Volume = ticker.Volume.USD ProcessTicker(g.GetName(), tickerPrice.FirstCurrency, tickerPrice.SecondCurrency, tickerPrice) diff --git a/huobihttp.go b/huobihttp.go index d9534cdb..03ee2a17 100644 --- a/huobihttp.go +++ b/huobihttp.go @@ -154,6 +154,7 @@ func (h *HUOBI) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = ticker.Buy tickerPrice.FirstCurrency = StringToUpper(currency[0:3]) tickerPrice.SecondCurrency = StringToUpper(currency[3:]) + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = ticker.Low tickerPrice.Last = ticker.Last tickerPrice.Volume = ticker.Vol diff --git a/itbithttp.go b/itbithttp.go index 33a5f7d6..647be14f 100644 --- a/itbithttp.go +++ b/itbithttp.go @@ -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 diff --git a/lakebtchttp.go b/lakebtchttp.go index bb7875c8..d23647df 100644 --- a/lakebtchttp.go +++ b/lakebtchttp.go @@ -210,6 +210,7 @@ func (l *LakeBTC) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Last = result.Last tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = currency[3:] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency ProcessTicker(l.GetName(), tickerPrice.FirstCurrency, tickerPrice.SecondCurrency, tickerPrice) return tickerPrice, nil } diff --git a/liquihttp.go b/liquihttp.go index 83dfb11d..8bd4c1dd 100644 --- a/liquihttp.go +++ b/liquihttp.go @@ -250,6 +250,7 @@ func (l *Liqui) GetTickerPrice(currency string) (TickerPrice, error) { currencies := SplitStrings(currency, "_") tickerPrice.FirstCurrency = currencies[0] tickerPrice.SecondCurrency = currencies[1] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = ticker.Low tickerPrice.Last = ticker.Last tickerPrice.Volume = ticker.Vol_cur diff --git a/localbitcoinshttp.go b/localbitcoinshttp.go index feeac26d..8dd16c4d 100644 --- a/localbitcoinshttp.go +++ b/localbitcoinshttp.go @@ -155,6 +155,7 @@ func (l *LocalBitcoins) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Last = value.Rates.Last tickerPrice.FirstCurrency = currency[0:3] tickerPrice.SecondCurrency = key + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Volume = value.VolumeBTC ProcessTicker(l.GetName(), tickerPrice.FirstCurrency, tickerPrice.SecondCurrency, tickerPrice) } diff --git a/okcoinhttp.go b/okcoinhttp.go index 060cf554..4f9d5758 100644 --- a/okcoinhttp.go +++ b/okcoinhttp.go @@ -349,6 +349,7 @@ func (o *OKCoin) GetTickerPrice(currency string) (TickerPrice, error) { tickerPrice.Bid = ticker.Buy tickerPrice.FirstCurrency = StringToUpper(currency[0:3]) tickerPrice.SecondCurrency = StringToUpper(currency[4:]) + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Low = ticker.Low tickerPrice.Last = ticker.Last tickerPrice.Volume = ticker.Vol diff --git a/poloniexhttp.go b/poloniexhttp.go index 224c1016..9627a19a 100644 --- a/poloniexhttp.go +++ b/poloniexhttp.go @@ -181,6 +181,7 @@ func (p *Poloniex) GetTickerPrice(currency string) (TickerPrice, error) { currencyPair := SplitStrings(currency, "_") tickerPrice.FirstCurrency = currencyPair[0] tickerPrice.SecondCurrency = currencyPair[1] + tickerPrice.CurrencyPair = tickerPrice.FirstCurrency + "_" + tickerPrice.SecondCurrency tickerPrice.Ask = ticker[currency].Last tickerPrice.Bid = ticker[currency].HighestBid tickerPrice.High = ticker[currency].HighestBid