Added Coinbase GBP support.

This commit is contained in:
Adrian Gallagher
2015-05-04 18:10:34 +10:00
parent e81ed646c1
commit a2461826c1
3 changed files with 17 additions and 7 deletions

View File

@@ -137,9 +137,15 @@ func (c *Coinbase) Run() {
go func() {
CoinbaseStats := c.GetStats("BTC-USD")
CoinbaseTicker := c.GetTicker("BTC-USD")
log.Printf("Coinbase BTC: Last %f High %f Low %f Volume %f\n", CoinbaseTicker.Price, CoinbaseStats.High, CoinbaseStats.Low, CoinbaseStats.Volume)
log.Printf("Coinbase BTC: Last $%f High $%f Low $%f Volume %f\n", CoinbaseTicker.Price, CoinbaseStats.High, CoinbaseStats.Low, CoinbaseStats.Volume)
AddExchangeInfo(c.GetName(), "BTC", CoinbaseTicker.Price, CoinbaseStats.Volume)
}()
go func() {
CoinbaseStats := c.GetStats("BTC-GBP")
CoinbaseTicker := c.GetTicker("BTC-GBP")
log.Printf("Coinbase BTC: Last £%f High £%f Low £%f Volume %f\n", CoinbaseTicker.Price, CoinbaseStats.High, CoinbaseStats.Low, CoinbaseStats.Volume)
AddExchangeInfo(c.GetName(), "BTC-GDP", CoinbaseTicker.Price, CoinbaseStats.Volume)
}()
time.Sleep(time.Second * c.RESTPollingDelay)
}
}